Cloud Security

Panther's Cloud Security works by scanning AWS accounts, modeling the Resources within them, using Policies to detect misconfigurations, and optionally remediating vulnerable resources.

Common security misconfigurations include:

  • S3 Buckets without encryption

  • Security Groups allowing inbound SSH traffic from

  • Access Keys being older than 90 days

  • IAM policies that are too permissive

How It Works

Architecture Diagram

When adding a new AWS account for infrastructure monitoring, Panther first conducts a baseline scan and models resources in your account.

Account scans are performed daily to ensure the most consistent state possible. This works by using an assumable IAM Role with ReadOnly permissions.

Resources can also be tracked in real-time using CloudTrail or CloudWatch Events.


Panther can scan an unlimited number of AWS accounts.

Each resource is associated with the account's label (Prod, Dev, Test, etc).

Add Your Account

The first step is to add a new AWS account source by navigating to Cloud Security > Sources > Add Account:

Enter your account Name and AWS Account ID.

If you want to enable real-time scans or automatic remediation, make sure to tick the boxes here!

Click Next, then download the generated template or click directly into the CloudFormation Console:

Clicking the Launch Stack button will open CloudFormation in the AWS account you are currently logged into with pre-populated stack variables:

Make sure to check the acknowledgement in the Capabilitiesbox

Click the Create stack button. After about 15 seconds, the stack's Status should change to CREATE_COMPLETE. If there is an error creating the stack, then an IAM role with the same name may already exist in your account.

Back in the UI, click Next, then Save Source to complete this setup:

Real-Time Events

The next section will detail how to monitor changes to AWS resources in real-time.


To configure real-time events to Panther from multiple regions and accounts, we can use AWS CloudFormation StackSets.

The following diagram illustrates this with an example model:

Plan Your Account Layout

In this case, the account running Panther will act as the Administrator account to manage stack creation and updates.

All other accounts to onboard will act as Target accounts to send CloudWatch logs to Panther.

The Administrator account may also be the Target account. To run and scan a single AWS account, this will always be the case, and both IAM roles are required.

Setup Administrator Account

By default, Panther deployments create a CloudFormation StackSet "Admin" role called:


For example, if Panther is deployed in us-west-2:


This IAM role allows the StackSet to assume roles in target accounts to orchestrate the creation of real-time events in as many regions as needed:

"Version": "2012-10-17",
"Statement": [
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::*:role/PantherCloudFormationStackSetExecutionRole-<PantherRegion>",
"Effect": "Allow"

This IAM Role is only assumable by the Panther Deployment account.

Onboard Accounts

In order for target accounts to be onboarded, you must have checked the box during the account setup above!

Login to the Administrator account's AWS Console, and open the CloudFormation StackSets page:

Click the Create StackSet button on the top right, select Template is ready, and enter the following Amazon S3 URL:

Click Next.

Name the StackSet panther-real-time-events.

Enter the 12-digit AWS Account ID where Panther is deployed in the MasterAccountId field.

In the QueueArn field, paste the following (substituting the AWS account ID of the account running Panther):


Click Next.

Under the Permissions tab, add the IAM admin role name:


And the IAM execution role name:


Click Next.

Add the AWS Account IDs of the Target Accounts in the Account numbers field, separated by commas.

Select Add all regions or a list of desired regions, set Maximum concurrent accounts to 5, and click Next.

Click Submit at the bottom of the page to create the StackSet.

To check on the status of the StackSet, check the Operations tab:

Awesome! You should now have real-time CloudWatch events sending to Panther.

Adding Additional Accounts

To add more accounts to the StackSet above, use the following steps:

Make sure you have at least one AWS Account Source configured with the DeployCloudWatchEventSetupset totrue

  1. Sign in to the Administrator account's AWS Console

  2. On the CloudFormation StackSets page, select the panther-real-time-events StackSet

  3. Select the Actions button on the top right and select Add new stacks to StackSet

  4. Add the new AWS account ID's into the Account numbers field, specify regions, and click through to the Submit button