VMware/Security: Opvizor OpBot, cool, but scary too.
I've posted about OpBot in the past w/ a brief overview on how you can setup and deploy. It's a very cool and immensely useful tool. However, I must balance this with security. Responsibly deployed, it can be a very useful tool. However, there is a dark side to this from a security management perspective. It also poses the very real risk for allowing generic internet access from within your datacenter.
First off, OpBot from Opvizor makes it very clear that you should only grant it's integration account read-only access. You can do 'destructive' PowerCLI commands by passing login info via slack, but also not recommended. As much as they have created an immensely useful tool, it also is somewhat of a pandora's box. It's brought to light a security hole that can be difficult to secure at scale. Currently Opvizor is the only one that I know of that makes this type of appliance, but that doesn't stop the many possible clones of this type of tech.
Basically what's happened is that it's a method in which a malicious VMware admin could deploy said appliance, give it an elevated service account (AD or otherwise) and no one would be any the wiser. Now to be clear, a VMware admin should never be deploying things into a datacenter w/o a proper change/audit control process. In the very least, anything deployed should be well documented and known.
NSX helps in this aspect w/ micro-segmentation. Everything placed into service receives a specific policy and can communicate w/ only what is needed. However, it'll only help as far as the security is implemented. If complete outbound internet is open as a 'standard', then you've effectively enabled OpBot or things like it unfettered access. First knee-jerk reaction is likely blocking Slack connectivity unless specifically enabled for said purpose. However, this only guarantees to a "Slack", this does not protect from slack clones or the like.
Solution?:
It's not super simple, but here are some thoughts (for VMware solutions specifically):
First off, OpBot from Opvizor makes it very clear that you should only grant it's integration account read-only access. You can do 'destructive' PowerCLI commands by passing login info via slack, but also not recommended. As much as they have created an immensely useful tool, it also is somewhat of a pandora's box. It's brought to light a security hole that can be difficult to secure at scale. Currently Opvizor is the only one that I know of that makes this type of appliance, but that doesn't stop the many possible clones of this type of tech.
Basically what's happened is that it's a method in which a malicious VMware admin could deploy said appliance, give it an elevated service account (AD or otherwise) and no one would be any the wiser. Now to be clear, a VMware admin should never be deploying things into a datacenter w/o a proper change/audit control process. In the very least, anything deployed should be well documented and known.
NSX helps in this aspect w/ micro-segmentation. Everything placed into service receives a specific policy and can communicate w/ only what is needed. However, it'll only help as far as the security is implemented. If complete outbound internet is open as a 'standard', then you've effectively enabled OpBot or things like it unfettered access. First knee-jerk reaction is likely blocking Slack connectivity unless specifically enabled for said purpose. However, this only guarantees to a "Slack", this does not protect from slack clones or the like.
Solution?:
It's not super simple, but here are some thoughts (for VMware solutions specifically):
- Audit/Change Control over Identity Management System (Active Directory) and whatnot.
- Any new service/shared account created should be immensely scrutinized.
- Change Auditor is a pretty good tool for this.
- Audit/Change Control to "Roles" in vCenter (Log Insight can help somewhat in this aspect, Hytrust CloudControl would give you a workflow engine in addition to audit capabilities.)
- Basically any account granted an 'admin-type' role should be alerted upon w/o an a peer-reviewed change control system.
- Any new role implemented should also be scrutinized for scope and alerting/monitoring put in place for 'high-risk' type roles.
- Any change to role permissions scrutinized as well.
- Audit/Change Control over passwords for 'service/shared' accounts. (Hytrust Cloud Control includes password vaulting for ESXi hosts)
- Password Repo such as LastPass/1Password/OneIdentity, etc.
- No single or group of people should actually EVER know by memory service/shared account passwords.
- Passwords should be changed based upon audit of password repo access when an employee leaves the company.
- This would hopefully mitigate a time-consuming process of changing all passwords that said employee may or may not have used.
- Password Repo should have complete audit trail as well as alerts for specific types of access.
- More advanced, you could use the password repo system to change passwords automatically after a 'manual' checkout scenario.
- HyTrust does this for ESXi root passwords automatically.
- Network Security/Audit/Change Control (Palo Alto App ID Security)
- Subscribe to the mantra of trust nothing in or out.
- Peer Review all changes.
- Access to vCenter via NSX security policies audit/change workflow.
- Anything allowed access to vCenter should be audited.
- Palo Alto Firewalls can add an extra layer of heuristics type security to block anything not defined as allowable outside of just ports using something like app id.
Minimally, HyTrust CloudControl could mitigate a large amount of risk for a Slack type bot by using its workflow engine, however none of this really matters if you don't have a proper process behind it. It may also not mitigate proper Identity Management controls.
Bottom Line:
This is a trust problem, however, this is why security, auditing, and change control processes are essential. It's not a matter of simply disallowing useful tools, such as Opbot, for the sake of security. It's about being smart and 'knowing' what's happening in your environment so you can implement productive tools to move the business forward all while being secure and safe.
Visual Aid:
Comments