S3 Source

Onboarding AWS S3 as a Data Transport log source in the Panther Console

Overview

Panther supports configuring your Amazon S3 bucket as a Data Transport to pull security logs from S3 buckets.

First you will configure the S3 source in your Panther Console, then you will configure your S3 bucket to send notifications when it receives new data.

Data can be sent compressed (or uncompressed). Learn more about compression specifications in Ingesting compressed data in Panther.

See the diagram below to understand how data flows from your application(s) into Panther using S3 (in SaaS):

A diagram shows how data flows from a customer application into Panther, using the S3 bucket Data Transport. The flow is as follows: Application(s), S3 bucket, SNS topic, SQS, Panther application, IAM role (assumed by Panther), KMS key (optional), S3 bucket, Panther application, Parse & normalize, real-time detections, Alerts generated, Long-term retention in Snowflake, and Alert Destinations

How set up an AWS S3 bucket log source in Panther

The instructions below outline how to set up an S3 integration manually, in the Panther Console. It's also possible to manage your S3 log source using the Panther API, or using Terraform.

To set up an S3 log source in Panther, follow the steps below. You can also view the data ingestion video overview for a quick walkthrough of S3 source setup.

Prerequisite

Step 1: Configure the S3 bucket source in Panther

  1. In the left-hand navigation bar of your Panther Console, click Configure > Log Sources.

  2. In the upper right corner, click Create New.

  3. Click the Custom Log Formats tile.

  4. In the AWS S3 Bucket tile on the slide-out panel, click Start.

  5. On the "Configure your source" page, enter values for the following fields:

    • Name: Enter a descriptive name for the S3 source.

    • AWS Account ID: Enter the 12-digit AWS Account ID where the S3 buckets are located.

    • Bucket Name: Enter the ID or name of the S3 bucket to onboard.

    • KMS Key ARN (optional): If your data is encrypted using KMS-SSE, provide the ARN of the KMS key.

  6. If you would like to attach schemas for this source and/or configure inclusive or exclusive bucket prefixes, click Configure Prefixes & Schemas (Optional). You can also perform these actions after the source is set up.

    1. In the S3 Prefixes & Schemas popup modal, create combinations of S3 prefixes, schemas, and exclusion filters, according the structure of your data storage in S3.

      • To attach one or more schemas to all data in the bucket, leave the S3 Prefix field blank. This will create a wildcard (*) prefix.

    2. Click Apply Changes.

  7. Click Setup.

Step 2: Set up an IAM role

Panther needs an AWS IAM role with permissions to read objects from your S3 bucket. You can choose from the following options:

On the IAM Role Setup page, there are three options: Using the AWS Console UI, CloudFormation or Terraform File, or I want to set everything up on my own

Using the AWS Console UI

Launch a CloudFormation stack using the AWS console:

  1. On the Create IAM Role page, locate the tile labeled Using the AWS Console UI. At the bottom of the tile, click Continue.

  2. Click Launch Console UI.

    • You will be redirected to the AWS console in a new browser tab, with the template URL pre-filled.

    • The CloudFormation stack will create an AWS IAM role with the minimum required permissions to read objects from your S3 bucket.

    • Click the "Outputs" tab of the CloudFormation stack in AWS, and note the Role ARN.

  3. Navigate back to the Panther Console.

  4. Enter the Role ARN.

  5. Click Setup.

  6. Proceed to the Finish the Source Setup section in this documentation.

Step 3: Finish the source setup

You will be directed to a success screen:

The success screen reads, "Everything looks good! Panther will now automatically pull & process logs from your account"
  • If any permission errors are detected, they will be displayed and you will be asked to try configuring the IAM role again.

  • You can optionally enable one or more Detection Packs.

  • The Trigger an alert when no events are processed setting defaults to YES. We recommend leaving this enabled, as you will be alerted if data stops flowing from the log source after a certain period of time. The timeframe is configurable, with a default of 24 hours.

    The "Trigger an alert when no events are processed" toggle is set to YES. The "How long should Panther wait before it sends you an alert that no events have been processed" setting is set to 1 Day
  • If you have not done so already, attach one or more schemas to the source.

    1. Click Attach or Infer Schemas.

Viewing ingested logs

After your log source is configured, you can search ingested data using Search or Data Explorer.

It is recommended to keep the data added to your S3 bucket for at least seven days before expiring it. Under normal circumstances, Panther processes new objects within minutes of them being added to your S3 bucket, however if the Panther ingestion service is experiencing availability issues, it could take longer for new objects to be processed.

Manual IAM role creation: Additional steps

When you set up the IAM role manually, you must also follow the instructions below to configure your S3 buckets to send notifications when new data arrives.

Step 1: Create or modify an SNS topic

How to create an SNS topic

Note: If you already have configured the bucket to send All object create events to an SNS topic, instead follow the Modify an existing SNS topic tab, and subscribe it to Panther's input data queue.

Only one SNS topic (per AWS account) is required, meaning multiple S3 buckets within one AWS account can all use the same SNS topic. If you've already created an SNS topic for a different S3 bucket in the same AWS account, you can skip this step.

First you need to create an SNS Topic and SNS Subscription to notify Panther that new data is ready for processing.

  1. Log into the AWS Console of the account that owns the S3 bucket.

  2. Select the AWS Region where your S3 bucket is located and navigate to the CloudFormation console.

  3. Navigate to the Stacks section. Select Create Stack (with new resources).

  4. Under the "Specify template" section, enter the following Amazon S3 URL:

    https://panther-public-cloudformation-templates.s3-us-west-2.amazonaws.com/panther-log-processing-notifications/latest/template.yml

  5. Specify the following stack details:

    • Stack name: A name of your choice, e.g. panther-log-processing-notifications-<bucket-label>

    • MasterAccountId: The 12 digit AWS Account ID where Panther is deployed

    • PantherRegion: The region where Panther is deployed

    • SnsTopicName: The name of the SNS topic receiving the notification. The default value is panther-notifications-topic

  6. Click Next, Next, and then Create Stack to complete the process.

    • This stack has one output: SnsTopicArn.

Step 2: Configure event notifications on the S3 bucket

With the SNS topic created, the final step is to enable notifications from the S3 buckets.

  1. Navigate to the AWS S3 Console, select the relevant bucket, and click the Properties tab.

  2. Locate the Event notifications card.

  3. Click Create event notification and use the following settings:

    • In the General Configuration section:

      • Event name: PantherEventNotifications

      • Prefix (optional): Limits notifications to objects with keys that start with matching characters

      • Suffix (optional): Limits notifications to objects with keys that end in matching characters

        Avoid creating multiple filters that use overlapping prefixes and suffixes. Otherwise, your configuration will not be considered valid.

    • In the Event Types card, check the box next to All object create events.

    • In the Destination card:

      • Under Destination, select SNS topic.

      • For SNS topic, select the SNS topic you created or modified in an earlier step.

        • If you used the default topic name in the CloudFormation template provided, the SNS topic is named panther-notifications-topic.

        • If you are using a custom SNS topic, ensure it has the correct policies set and a subscription to the Panther SQS queue.

Last updated

Was this helpful?

#2402: Closed beta: AI Event Summaries

Change request updated