Now you might think I’m currently getting Firewall Manager events based on the screenshot above but I’m not. The integration is all up and running but I don’t have anything configured within Firewall Manager.
You see, Security Hub will gracefully connect to all enabled services but still relies on proper configuration of the underlying services. This leads to a few important points:
- Remember, Security Hub is region locked and each region will only see the security findings for the other services enabled in the same region. AWS will fix this eventually, but as of this writing it’s where we are for now.
- Findings and events from other services feed into Security Hub in pretty much real time. We’ve found no significant delay when we pull in GuardDuty events, for example, via Security Hub. In other news, AWS could use some standards on when how they intercap their service names.
- If you set up multi-account aggregation this doesn’t automatically standardize the configurations of the underlying services in the different accounts. This can be an advantage if you want to treat different environments differently, such as skipping the Security Standards for development accounts but keeping them for production accounts.
Now keep scrolling down and you will see all the Security Hub Partner Integrations. These fall into three categories:
- Findings partners that send findings into Security Hub. These all use the ASFF and are not limited to AWS configuration findings. You can, for example, integrate with vulnerability assessment tools for your operating system/application findings.
- Take action partners that act on the findings. These can be as simple as accepting notifications or as complex as user-guided or automated remediation, like we do at DisruptOps.
- Partners, again like DisruptOps, that both send and act on findings.
Now when I say “findings” remember that every finding is an event. It’s up to the partner to decide when to send their findings in and you will see a spread between time-based batch updates and individual events. Batch updates tend to be used for assessments and individual events for change or trigger based findings, like a potential misuse of a credential. This holds true for AWS integrations as well.
Every partner will have their own configuration instructions. For DisruptOps, it’s under the Integrations tab of our console or you can automate integration with Infrastructure as Code. An advantage of tools like ours is that we can correlate the findings across all accounts and regions, which become especially important as you start manually taking action or enabling automations.
Multiple Accounts, but Not Regions
Although Security Hub does not yet support cross-region aggregation and configuration, it does support multiple accounts. Security Hub uses the Master/Member Account structure. This is (unfortunately) outside of AWS Organizations. To use the Master/Member structure start with a desired Master account, which we recommend is your security operations account. Then issue invitations to all your member accounts by entering the account IDs or uploading a spreadsheet of the IDs.
It’s a pain to handle in the console, and CloudFormation does not support configuring Master/Member accounts. There are two options to reduce the overhead for those of you with many accounts and regions:
- Script up a Lambda function or command line tool to automate via API. As painful as this sounds, some of you with large account infrastructures already have some of these capabilities in place. This is even what AWS Control Tower has to do to wire things up, so you aren’t alone.
- Use a third-party tool (yes, like DisruptOps) that configures Security Hub and aggregates and manages all findings centrally.
- Tools like ours get to skip the whole Master/Member issue entirely if we need to and just collect findings from the individual accounts and regions.
Forward Those Findings and Events
If you recall from our first post, the secret weapon in Security Hub is the aggregation of all these different kinds of findings and events into a single hub using a single format (the Amazon Security Findings Format, ASFF) and creating CloudWatch Events for the findings. In our next post we will get into the nuances of findings and managing findings, but many of you will want to pull or push these into other tools.
Pulling findings is a single API call using the GetFindings operation (get-findings on the CLI). but generally you will want to use the push method so you get them in near real time.
Every finding is a CloudWatch Event and you can define a CloudWatch Rule to trigger and forward findings using the usual menagerie of CloudWatch actions like sending to SNS or a Lambda function. But Security Hub actually supports three different kinds of CloudWatch Events:
- Findings, which are triggered by the BatchUpdateFindings and BatchImportFindings events. These are the complete findings in the ASFF.
- Custom action events for findings. We will talk more about custom actions in a future post, but essentially in the console or via API you can apply a custom action to a finding which creates a new CloudWatch event with the finding and the tag for the action. Thus you can create a CloudWatch Rule that only looks for a “remediate with DisruptOps” custom action which then forwards that event.
- Custom action events for Insights. We haven’t talked about Insights yet, but they are filtering rules (e.g. all resources with a finding of port 22 open to 0.0.0.0/0). These custom actions create a new CloudWatch Event with the Insight and all the associated resources, but not the findings themselves.
The sweet spot for external integrations like ours is to just send everything. Custom actions are used if you use Security Hub as your console. Sending all events is a simple CloudWatch Rule:
The best part? This includes all findings from Guard Duty, Macie, and the other AWS and third party integrations… all in the ASFF for easy parsing.
(For those of you using DisruptOps, we handle this automatically during the integration process).
That’s it for your basic configuration. In the next post we will review the different features in the console to finish up the fundamentals, then we will go more into detail on how to integrate Security Hub into your security operations by getting events and findings into the right hands and taking actions to respond and remediate.
Supercharging AWS Security Hub: 4 Part Series
Part 1 | Part 2 | Part 3 | Part 4