Integrate with AWS Security Hub
- 1 Overview
- 2 Set up the integration
- 2.1 Add Amazon Security Hub integration
- 2.2 Configure the integration in Amazon Security Hub
- 2.3 Create subscriptions to send SNS messages to Jira Service Management
- 2.4 Create an Amazon CloudWatch Event rule
- 2.5 Select an SNS topic for the target in Amazon EventBridge Events
- 2.6 Send alert updates back to Amazon Security Hub
Overview
What does the integration offer?
With Amazon 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.
Use the Amazon Security Hub integration to forward Amazon Security Hub findings to Jira Service Management. Jira Service Management 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 they are acknowledged or closed.
How does the integration work?
Amazon Security Hub sends findings matching the corresponding CloudWatch Event rule to CloudWatch. Selecting an SNS topic for the target lets you publish the related event message for findings to SNS which will send this message to Jira Service Management at the end.
Jira Service Management also supports sending updates back to Amazon Security Hub when these actions are performed on Jira Service Management alerts created by Amazon Security Hub integration:
When an alert is Acknowledged in Jira Service Management, update the Finding workflow status to Notified in Amazon Security Hub.
When an alert is Closed in Jira Service Management, update the Finding workflow status to Resolved in Amazon Security Hub.
When a Note is added to the alert in Jira Service Management, add the same Note to the Finding in Amazon Security Hub.
When an alert Priority is updated in Jira Service Management, update the severity of the Finding in Amazon Security Hub.
Set up the integration
Amazon Security Hub is a bidirectional integration. Adding it to Jira Service Management and configuring it to send alert updates back to Amazon Security Hub (when some actions are performed on the alerts created in Jira Service Management) involves a sequence of steps:
Add an Amazon Security Hub integration in Jira Service Management
Configure the integration in Amazon Security Hub
Create subscriptions to send SNS messages to Jira Service Management
Create an Amazon CloudWatch Event rule
Select an SNS topic for the target in Amazon EventBridge Events
Send updates back to Amazon Security Hub
Add Amazon Security Hub integration
If you're using the Free or Standard plan in Jira Service Management, you can only add this integration from your team’s operations page. To access the feature through Settings
(gear icon) > Products
(under JIRA SETTINGS) > OPERATIONS
, you need to be on Premium or Enterprise plan.
Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management assigns the alerts received through this integration to your team only.
To add an Amazon Security Hub integration in Jira Service Management:
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “Amazon Security Hub”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.Expand the Steps to configure the integration section and copy the integration endpoint URL.
You will use this URL while configuring the integration in Amazon Security Hub later.Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
Configure the integration in Amazon Security Hub
Create a custom Security Hub action.
Create a rule in CloudWatch Events for Security Hub findings and an SNS topic for CloudWatch Event target by using the CloudFormation template.
Paste the URL you copied while adding the integration in Jira Service Management into SNSSubEndpoint in the CloudFormation template.
Copy-paste the following (after entering the custom Security Hub action ARN you created in Step 1) into EventPatternParameter in the CloudFormation template.
{ "source": [ "aws.securityhub" ], "detail-type": [ "Security Hub Findings - Custom Action" ], "resources": [ "< CUSTOM ACTION ARN YOU CREATED IN SECURITY HUB >" ] }
If the configuration is successful, a confirmation alert is created in Jira Service Management.
Select Send alert updates back to Amazon Security Hub to turn on the outgoing functionality.
Allow Jira Service Management to access the Security Hub resources through an IAM Role.
Use CloudFormation template to create an IAM role.Copy-paste the IAM Role ARN into AmazonSecurityHub Role ARN.
Select the AWS region where you’ve set up the Security Hub.
Create subscriptions to send SNS messages to Jira Service Management
Selecting an SNS topic for the target lets you publish the related event message for findings to SNS.
Go to AWS SNS, select Topics > Create topic.
When on the Subscription tab, select Create subscription.
This is how you’ll send SNS messages to Jira Service Management.In the Protocol field, select HTTPS as an endpoint type.
In the Endpoint field, enter the API endpoint URL you copied while adding the integration in Jira Service Management.
Create an Amazon CloudWatch Event rule
Create an Amazon CloudWatch Event rule so Amazon Security Hub can send findings matching the rule to CloudWatch.
In your Amazon CloudWatch account, select Events > Rules.
Select Create rule.
In the Event Source section, select the Event Pattern option.
Select Build event pattern to match all events from the dropdown menu.
Select Edit in the Event Pattern Preview and copy-paste the script given in this section.
In the Targets section, select the SNS topic from the dropdown menu, then select the topic you created before.
Select Configure details and enter a name, description, and other information.
Select Create rule.
Event pattern preview script
Copy the following script and paste it into the Event pattern preview section of Event Source.
Select an SNS topic for the target in Amazon EventBridge Events
Selecting an SNS topic for the target lets you publish the related event message for findings to SNS which will send this message to Jira Service Management at the end.
Go to Amazon EventBridge and select Rules.
Select Create rule.
In Step 1, enter a Name and Description for this rule.
Select Rule with an event pattern as Rule type and select Next.
In Step 2, select AWS events and EventBrigde partner events as the Event source.
Select AWS services as Event source.
Select Security Hub as AWS Service.
In the Event Type section, select the custom action you created in the security hub.
Select Next.
In Step 3, select SNS topic from the dropdown menu in Target types, then select the topic you created earlier in the Topic field.
Select Next.
In Step 5, review and create the rule.
Send alert updates back to Amazon Security Hub
Complete the following steps in Jira Service Management to send alert updates back to Amazon Security Hub:
From the Amazon Security Hub integration page in Jira Service Management, select the Send alert updates back to Amazon Security Hub checkbox.
Allow Jira Service Management to access security hub resources using an IAM Role. To create a role that allows Jira Service Management to access security hub resources, you can use the CloudFormation template.
Make sure that all the input parameters to the cloudformation template (such as the API URL from the integration page (pre-populated), Jira Service Management Aws AccountId (pre-populated), and RoleName) are correct. The role name should be in jsmSecurityHubRole* format.
Copy the IAM role ARN created in the previous step and paste it into AmazonSecurityHub Role ARN.
Select the region where the Security Hub is enabled.
Sample payload from Amazon Security Hub
See also
https://operations-help.atlassian.net/wiki/spaces/OPSHELP/pages/2097191