Amazon GuardDuty Integration Guide | PagerDuty

Amazon GuardDuty Integration Benefits

The Amazon GuardDuty integration allows you to automate response workflows for security issues that could affect your AWS infrastructure.

PagerDuty ensures that the correct people receive notifications regarding unauthorized behavior, and you can use PagerDuty alert grouping to reduce noise by grouping similar alerts into a single incident.

Requirements

PagerDuty Permissions

Managers, Admins, Global Admins, and the Account Owner can configure the integration.

AWS Permissions

If you set up and manage AWS Config, you must have full-access permissions. Read the Amazon documentation Granting Permissions for AWS Config Administration for more information about managing permissions in AWS.

How It Works

This is a one-way integration. GuardDuty rules send finding events to PagerDuty, and those events generate incidents.

Version

This guide details the configuration of the Amazon GuardDuty V1 integration.

Integration Walkthrough

In PagerDuty

There are two ways to integrate Amazon GuardDuty with PagerDuty:

Integrate With Event Orchestration

Configure a Global Orchestration Integration

  1. Configure a Global Orchestration in your PagerDuty account.
  2. Navigate to AIOps Event Orchestration and click the name of your Global Orchestration.
  3. Select the Global Orchestration Key dropdown and copy the Integration Key.
  4. Once you have your Integration Key, the Integration URL is:

https://events.pagerduty.com/x-ere/YOUR_INTEGRATION_KEY_HERE

Proceed to the In the AWS Management Console section.

Configure a Service Orchestration Integration

  1. Configure a Service Orchestration in your PagerDuty account.
  2. Create a Generic Events API integration on the same service.
  3. Copy the Integration Key and paste it into the following URL:

https://events.pagerduty.com/x-ere/YOUR_INTEGRATION_KEY_HERE

Proceed to the In the AWS Management Console section.

Integrate With a PagerDuty Service

Add to a New Service

  1. To add the integration to a new service, navigate to Services Service Directory and click New Service.
  2. Follow the prompts and configure the service to your preferences. On the Integrations screen, select Amazon GuardDuty from the search bar dropdown.
  3. Click Create Service.
  4. You are now in the service Integrations tab. Find your integration in the list and click to view and copy your Integration URL. Keep it in a safe place for later use.
  5. Proceed to the In the AWS Management Console section.

Add to an Existing Service

  1. To add an integration to an existing service, navigate to Services Service Directory and select the service where you want to configure the integration.
  2. Select the Integrations tab and click Add another integration.
  3. Select Amazon GuardDuty from the search bar dropdown and click Add.
  4. Find your integration in the list and click to view and copy your Integration URL. Keep it in a safe place for later use.
  5. Proceed to the In the AWS Management Console section.

In the AWS Management Console

  1. In the Services search bar, search and select Simple Notification Service. In the SNS dashboard left menu, select Topics and click Create Topic. This topic routes alerts to PagerDuty from AWS.
  2. Select the Standard topic type.
  3. Enter the following information in the fields provided, then click Create topic:
FieldValue
NameEnter a name for your topic. You can name your topic after your PagerDuty service name.
Display name (optional)Enter an optional display name.
  1. In the left menu, select Subscriptions and click Create Subscription.
  2. Enter the following information in the fields provided, then click Create Subscription:
FieldValue
Topic ARNSelect the Topic ARN of the topic you created in the previous section.
ProtocolSelect HTTPS.
EndpointPaste your Integration URL generated in the previous section.
Enable raw message deliveryCheck this checkbox if you integrate with Global Orchestrations. Uncheck this checkbox if you do not integrate with Global Orchestrations.
  1. Your subscription confirms automatically. Refresh the page to verify the Status is Confirmed and not PendingConfirmation.
  2. If you have not enabled GuardDuty, follow the Amazon documentation to enable it. If you already enabled GuardDuty, proceed to the next step.
  3. In the Services search bar, search and select EventBridge.
  4. In the left menu, select Rules and click Create Rule.
  5. Enter the following information in the fields provided, then click Next:
FieldValue
NameEnter an identifiable name.
Description (optional)Enter a description of the rule, pattern, and targets.
Event BusSelect default.
Enable the rule on the selected event busToggle to the on position.
Rule with an event patternThis option is preselected automatically.
  1. Enter the following information in the fields provided, then click Next:
FieldValue
Event sourceSelect AWS events or EventBridge partner events.
Sample event (optional)View sample events if desired.
Event SourceSelect AWS services.
AWS ServiceSelect GuardDuty.
Event typeSelect GuardDuty Finding.
  1. Enter the following information in the fields provided, then click Next:
FieldValue
Target typesSelect AWS service.
Select a targetSearch and select SNS topic.
TopicSearch and select the topic created in the previous section.
  1. Add optional tags based on your preference, then click Next.
  2. Review your settings and click Create Rule. To create more rules, repeat steps 9 through 14.

To verify the configuration is successful, navigate to the Amazon GuardDuty console, select Settings in the left menu, and click Generate Sample Findings. Select Findings in the left menu to view the generated sample findings. In PagerDuty, you see the correlated sample alert.