...
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.
Code Block { "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 enable 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.
Then select Select Create rule.
In the Event Source section, select the Event Pattern option.
Then selectSelect 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’ve you created before.
Select Configure details and enter a name, description, and other information.
When done, select Select Create rule.
Event pattern preview script
...
Code Block |
---|
{ "source": [ "aws.securityhub" ], "detail-type": [ "Security Hub Findings - Custom Action" ], "resources": [ <custom action arn you created in security hub> ] } |
...
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 patternspattern as Rue 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 before earlier in the Topic field.
Select Next.
In Step 5, review and create the rule.
...