Amazon Security Hub Integration

AWS Security Hub gives you a comprehensive view of your high-priority security alerts and compliance status across AWS accounts.

With Security Hub, you can have a single place that aggregates, organizes, and prioritizes your security alerts, or findings, from multiple AWS services, such as Amazon GuardDuty, Amazon Inspector, and Amazon Macie, as well as from AWS Partner solutions.

What does Opsgenie offer Amazon Security Hub users?

Use Opsgenie's Amazon Security Hub Integration to forward Amazon Security Hub findings to Opsgenie. Opsgenie determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

Amazon Security Hub sends findings which match with the corresponding CloudWatch Event rule to CloudWatch. Selecting SNS topic for target let you publish the related event message for findings to SNS which will send this message to Opsgenie at the end.

Add Amazon Security Hub Integration to Opsgenie

  1. Please create an Opsgenie account if you haven't done so already.
  2. Go to Opsgenie Amazon Security Hub Integration page.

For Free and Essentials plans, you can only add the integrations from the Team Dashboards, please use the alternative instructions given below to add this integration.

  1. Specify who is notified of Amazon Security Hub alerts using the Teams field. Auto-complete suggestions are provided as you type.

An alternative for Step 2) and Step 3) is to add the integration from the Team Dashboard of the team which will own the integration. To add an integration directly to a team, navigate to the Team Dashboard and open Integrations tab. Click Add Integration and select the integration that you would like to add.

  1. Copy the API Key.
  2. Click Save Integration.

Configuration in Amazon Security Hub

  1. Go to Security Hub, click Settings and select Custom actions from tab.
  1. Click Create custom action and fill the necessary fields.
  1. You will see the created action.

You can use CloudFormation template to create CloudWatch Event Rule and SNS Topic.

Configuration in Amazon SNS

  1. Go to AWS SNS and select Topics, then click Create topic.
  1. Then, click Create subscription to send SNS messages to Opsgenie.
  1. Select HTTPS from protocol and give Opsgenie's API endpoint using the URL provided from the integration.

Configuration in Amazon CloudWatch Events

  1. Go to Amazon CloudWatch and select Rules under Events, then click Create rule.
  2. Select Event Pattern as Event Source and select Build event pattern to match all events from the dropdown menu.
  1. Edit event pattern preview and copy & paste the following.
{
  "source": [
    "aws.securityhub"
  ],
  "detail-type": [
    "Security Hub Findings - Custom Action"
  ],
  "resources": [
    <custom action arn you created in security hub>
  ]
}
  1. Then, select SNS topic from the dropdown menu in Targets part and select the topic you created before.
  1. Click configure details and fill the necessary fields in the opening page.
  1. Then, click Create rule.

Updated 6 months ago

Amazon Security Hub Integration


AWS Security Hub gives you a comprehensive view of your high-priority security alerts and compliance status across AWS accounts.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.