> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloud Detection and Response integration

> Detect and respond to cloud events in near real-time with Plerion CDR, and trigger alerts through Workflows.

With [Cloud Detection and Response (CDR)](https://au.app.plerion.com/settings/integrations/add/AWS/CdrAws), you can ingest event-driven detections from your AWS environment into Plerion. These detections generate findings that you can route to **[workflows](https://docs.plerion.com/guides/platform/workflows.md)** to notify teams or open tickets in third party tools like Email, Slack, Jira, or PagerDuty.

***

## Prerequisites

* You are logged in to a **tenant** that already has at least one **AWS Account integration**.
* You have permissions to deploy CloudFormation **StackSets** in AWS.

***

## Steps to enable the CDR integration

**1. On the Plerion dashboard, go to Settings > Integrations**

![Sidebar navigation with Settings expanded and Integrations highlighted](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/settings-integrations-sidenav.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=76e3ee2c20634eb080fc39574d8b029f)

**2. Find AWS cloud detection and response and click the + button**

![Integrations page with AWS CDR option and plus button to add integration](https://mintcdn.com/pleriondocs/E3Y8xTGiPNRnarz2/images/integrations/aws/add-cdr.png?fit=max\&auto=format\&n=E3Y8xTGiPNRnarz2\&q=85\&s=d3308e8e059c800ebf73ce7c0420956e)

**3. Select AWS accounts to connect**

From the list of integrated AWS accounts, select one or more accounts and click **Add integration(s)**.

**4. Follow the guided setup**

After adding your AWS account(s), Plerion provides instructions to deploy CDR using **CloudFormation StackSets** in AWS.\
You can choose between:

* **Single account, multi-region**
* **Multi-account, multi-region**

***

### Single account, multi-region onboarding

> [!WARNING]
>
> Before creating the StackSet, ensure the following **self-managed** roles exist (per AWS guidance): `AWSCloudFormationStackSetAdministrationRole` and `AWSCloudFormationStackSetExecutionRole`.

**1. Open StackSets in the AWS console**

* Sign in to the target AWS account.
* Navigate to **CloudFormation > StackSets** and click `Create`.
* For reference, see the [AWS StackSets getting started guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-getting-started.html).

**2. Choose a template**

* **Permissions**:
  * **IAM admin role ARN**: Select `IAM role name` and choose `AWSCloudFormationStackSetAdministrationRole`
  * **IAM execution role name**: `AWSCloudFormationStackSetExecutionRole`
* **Prerequisite - Prepare template**: Template is ready
* **Specify template - Template source**: Amazon S3 URL
  * Paste the S3 URL provided by Plerion

**3. Specify StackSet details**

* Enter the **StackSet name** provided by Plerion.
* Optionally add a description.

**4. Configure StackSet options**

* Optionally add **tags**.
* Set **Execution configuration** to **Active** (recommended) to allow concurrent, non-conflicting operations.

**5. Set deployment options**

* **Add stacks to stack set**: Deploy new stacks
* **Accounts**: Select \`Deploy stacks in account and enter the current account ID
* **Regions**: Select all regions where you want to enable CDR
* **Deployment options (optional)**:
  * Maximum concurrent accounts: 1
  * Failure tolerance: 0
  * Region concurrency: Parallel

**6. Review and submit**

* Review the configuration.
* Check **I acknowledge that AWS CloudFormation might create IAM resources**.
* Click `Submit`.
* When all stacks complete successfully, resources will begin sending events to Plerion.

***

### Multi-account, multi-region onboarding

> [!WARNING]
>
> Currently, CDR **does not** support multi-account onboarding when your **AWS management account** is included. Contact **[support@plerion.com](mailto:support@plerion.com)** if you need to onboard the management account.

**1. Open StackSets in the AWS console**

* Sign in to the target AWS account.
* Navigate to **CloudFormation > StackSets** and click `Create`.
* For reference, see the [AWS StackSets getting started guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-getting-started.html).

**2. Choose a template**

* **Permissions**: Service-managed permissions
* **Prerequisite - Prepare template**: Template is ready
* **Specify template - Template source**: Amazon S3 URL
  * * Paste the S3 URL provided by Plerion

**3. Specify StackSet details**

* Enter the **StackSet name** provided by Plerion.
* Optionally add a description.

**4. Configure StackSet options**

* Optionally add **tags**.
* Set **Execution configuration** to **Active** (recommended) to allow concurrent, non-conflicting operations.

**5. Set deployment options**

* **Add stacks to stack set**: Deploy new stacks
* **Deployment targets**: Deploy to organizational units (OUs)
* **AWS OU ID**: Provide one or more OUs (or **Root**) that contain all target accounts
* **Account filter type (optional)**: **Intersection**
* **Account numbers**: paste the account IDs provided
* **Auto-deployment**: Deactivated
* **Regions**: Select all regions where you want to enable CDR
* Optionally specify **deployment options**

**6. Review and submit**

* Review the configuration.
* Check **I acknowledge that AWS CloudFormation might create IAM resources**.
* Click `Submit`.
* When all stacks complete successfully, resources will begin sending events to Plerion.

***

## Configure workflows for CDR findings

**1. On the Plerion dashboard, go to Settings > Workflows**

![Sidebar navigation with Settings expanded and Workflows highlighted](https://mintcdn.com/pleriondocs/aAbSgb-XpyKaPJ6T/images/product/workflows/settings-workflows-sidenav.png?fit=max\&auto=format\&n=aAbSgb-XpyKaPJ6T\&q=85\&s=2a654fba169c6f1bd00703e9ac5a8c31)

**2. Click Add workflow**

![Workflow page with Add workflow button on top](https://mintcdn.com/pleriondocs/aAbSgb-XpyKaPJ6T/images/product/workflows/add-new-workflow-button.png?fit=max\&auto=format\&n=aAbSgb-XpyKaPJ6T\&q=85\&s=b0697dcb9a6797c2e0fe218d938cbe9c)

**3. Enter a name and description**

Turn on the **Enabled** toggle to activate the workflow and start receiving alerts.

![Workflow page with name, description and Enabled toggle](https://mintcdn.com/pleriondocs/aAbSgb-XpyKaPJ6T/images/product/workflows/workflow-name-and-description.png?fit=max\&auto=format\&n=aAbSgb-XpyKaPJ6T\&q=85\&s=b0f33476eb44ffcbbdc2da45723b718a)

**4. Define your conditions**

* Add a **Finding** condition.
* CDR findings are identified by detection IDs such as `PLERION-CLOUDTRAIL-<number>`, `PLERION-GUARDDUTY-1`, `PLERION-MACIE-1`, or `PLERION-ACCESSANALYZER-1`.
  * [View the full list of CDR findings here](https://docs.plerion.com/guides/integrations/aws/additional-aws-configurations/cdr-integration.md#list-of-cdr-findings)
* Select one or more detection IDs to include in the workflow.

![Add a workflow condition for assets, findings or vulnerabilities](https://mintcdn.com/pleriondocs/aAbSgb-XpyKaPJ6T/images/product/workflows/add-workflow-condition.png?fit=max\&auto=format\&n=aAbSgb-XpyKaPJ6T\&q=85\&s=12c278b1d3c06b43c4e814762ee13a9b)

**5. Select where alerts should be delivered**

Alerts that match the defined conditions will appear in your Plerion alerts dashboard and can also be sent to configured third-party integrations.

**6. Click Save to create your workflow**

***

## Suppressing CDR findings

CDR findings and alerts stay active until you manually suppress them. Follow these steps:

**1. Find the CDR finding to suppress**

* Go to the [Findings dashboard](https://app.plerion.com/findings/list?status=FAILED\&suppressed=false).
* Filter by **Detection** using `PLERION-CLOUDTRAIL-` (or other CDR prefixes).

**2. Suppress findings**

* Click the kebab menu (`⋮`) and select `Suppress`.
* To view suppressed findings later, set the **Suppressed** filter to `True`.

![Findings dashboard showing CDR findings suppression option](https://mintcdn.com/pleriondocs/C9oLEYQGt2AhEJ9n/images/integrations/aws/suppress-cdr-findings.png?fit=max\&auto=format\&n=C9oLEYQGt2AhEJ9n\&q=85\&s=754756aaca3dd0d23eb0f57b84a0555f)

***

## Disabling CDR

**1. Update or remove workflows**

Delete or modify any workflows that run on CDR findings.

**2. Remove the CDR integration in Plerion**

Go to `Settings` > `Integrations`, click **{X} active integration(s)** on the CDR panel, select your desired integration, and click the **trash** icon to remove it.

**3. Delete the CloudFormation stacks in AWS**

In each linked AWS account, open **CloudFormation**, search for `CDR`, and delete the Plerion CDR stack(s).

***

## CDR data lifecycle

* **Findings**: CDR findings (e.g. `PLERION-CLOUDTRAIL-X`) are permanently deleted **90 days** after the **first observed** date.
* **Event history**: Principal history events associated with a CDR finding are permanently deleted once they are older than **90 days**.

***

## How CDR selects a principal

When a new event is received by a CDR integration, part of the process determines which **principal** created the event. Selecting principals consistently is important to ensure:

* Event history is associated with the correct principal
* Exclusions are applied accurately

### Source of events

Most events processed by a CDR integration originate from **AWS CloudTrail management events**.

The [AWS CloudTrail user identity reference](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html) is used to determine the principal for each event.

Pass-through detections from **GuardDuty, Macie,** and **Access Analyzer** do not involve principal selection.

### Selection criteria

The principal is selected based on the `userIdentity.type` field in the event. The following mappings apply:

* **Root** → `Root`
* **IAMUser** → `userName`
* **AssumedRole** → `principalId`
* **Role** → `userName`
* **FederatedUser** → `sessionContext.sessionIssuer.userName`
* **Directory** → `userName`
* **AWSAccount** → `accountId`
* **AWSService** → `invokedBy`
* **IdentityCenterUser** → `onBehalfOf.userId`
* **Unknown** → `userName`
* **SAMLUser** → `userName`
* **WebIdentityUser** → `userName`

If no value is available for the selected field, the principal is set to `Unknown`, with the `userIdentity.type` value appended.

***

## List of CDR findings

* **PLERION-CLOUDTRAIL-3** — Detect a successful login to the AWS Management Console by the Root user
* **PLERION-CLOUDTRAIL-5** — Detect a successful AWS console login
* **PLERION-CLOUDTRAIL-7** — Detect an AWS Config rule deletion
* **PLERION-CLOUDTRAIL-8** — Detect an AWS Config change to stop recording
* **PLERION-CLOUDTRAIL-9** — Detect the deletion of an AWS CloudTrail trail
* **PLERION-CLOUDTRAIL-10** — Detect suspending the recording of AWS API calls and log file delivery
* **PLERION-CLOUDTRAIL-12** — Detect an update to a CloudTrail setting that specifies log delivery
* **PLERION-CLOUDTRAIL-15** — Detect an unauthorized AWS API call
* **PLERION-CLOUDTRAIL-25** — Detect the deletion of an Amazon GuardDuty detector
* **PLERION-CLOUDTRAIL-32** — Detect the deletion of flow logs
* **PLERION-CLOUDTRAIL-33** — Detect the deletion of a WAFv2 web ACL
* **PLERION-CLOUDTRAIL-34** — Detect the deletion of a WAFv2 rule or rule group
* **PLERION-CLOUDTRAIL-59** — Detect the deletion of a WAFv1 web ACL
* **PLERION-CLOUDTRAIL-60** — Detect the deletion of a WAFv1 rule or rule group
* **PLERION-CLOUDTRAIL-61** — Detect detaching a WAF from CloudFront
* **PLERION-CLOUDTRAIL-62** — Detect detaching a WAF from API Gateway
* **PLERION-CLOUDTRAIL-63** — Detect detaching a WAF from ALB
* **PLERION-GUARDDUTY-1** — Amazon GuardDuty finding created
* **PLERION-MACIE-1** — Amazon Macie finding created
* **PLERION-ACCESSANALYZER-1** — AWS IAM Access Analyzer finding created
* **PLERION-CLOUDTRAIL-68** — Detect attempts to remove event selectors in CloudTrail
* **PLERION-CLOUDTRAIL-70** — Detect attempts to leave the AWS Organization
* **PLERION-CLOUDTRAIL-71** — Detect attempts to update EC2 user data
* **PLERION-CLOUDTRAIL-72** — Detect attempts to exfiltrate an AMI by sharing it
* **PLERION-CLOUDTRAIL-73** — Detect attempts to exfiltrate an EBS snapshot by sharing it
* **PLERION-CLOUDTRAIL-74** — Detect attempts to exfiltrate an RDS snapshot by sharing it
* **PLERION-CLOUDTRAIL-75** — Detect attempts to change MFA settings for an IAM user
* **PLERION-CLOUDTRAIL-76** — Detect creation of new IAM user access keys
* **PLERION-CLOUDTRAIL-77** — Detect attempts to disable Amazon Macie
* **PLERION-CLOUDTRAIL-78** — Detect attempts to delete IAM Access Analyzer
* **PLERION-CLOUDTRAIL-79** — Detect attempts to export an EC2 instance
* **PLERION-CLOUDTRAIL-80** — Detect attempts to export an RDS Aurora database snapshot
* **PLERION-CLOUDTRAIL-81** — Detect attempts to remove transfer lock from a Route 53 domain
* **PLERION-CLOUDTRAIL-82** — Detect attempts to transfer a Route 53 domain to another account
* **PLERION-CLOUDTRAIL-83** — Detect IAM password recovery requests
* **PLERION-CLOUDTRAIL-84** — Detect compromised AWS keys (from AWS Health; needs `us-east-1` among your CDR regions)
* **PLERION-CLOUDTRAIL-85** — Detect the deletion of Amazon Bedrock model invocation logging
* **PLERION-CLOUDTRAIL-86** — Detect a new AWS Security Incident Response case (off by default)
* **PLERION-CLOUDTRAIL-87** — Detect an update to an AWS Security Incident Response case (off by default)
* **PLERION-CLOUDTRAIL-88** — Detect a new comment on an AWS Security Incident Response case (off by default)
* **PLERION-CLOUDTRAIL-89** — Detect an edited comment on an AWS Security Incident Response case (off by default)

***

## IP address data

CDR findings can show the network an event came from, such as its country and network owner. IP address data is powered by [IPinfo](https://ipinfo.io), used under the [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) licence.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.