AWS VPC

Connecting AWS VPC logs to your Panther Console

Overview

Panther supports ingesting Amazon Web Services (AWS) Virtual Private Cloud (VPC) logs via AWS S3.

For information on ingesting VPC DNS logs, see the VPC DNS logging section below.

How to onboard AWS VPC logs to Panther

To pull VPC logs into Panther, you will need to set up an S3 bucket in the Panther Console to stream data from your AWS account.

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

  2. Click Create New.

  3. Search "AWS" to see the list of available log sources.

  4. Select AWS VPC.

  5. Select AWS S3 bucket for your source to begin setup. Follow Panther’s documentation for configuring S3 for Data Transport.

VPC DNS logging

With additional configuration in AWS, you can also use this integration to monitor DNS queries. Malicious actors can use DNS for data theft, C2, DNS tunneling, cache poisoning, DNS hijacking, and more. Logging the queries made and responses received by devices in your network can be valuable in proactive alerting and investigations.

The instructions below explain how to log queries from your AWS services within VPCs to an S3 bucket. The query logging configuration happens within Route 53 and applies to the VPCs within your specified region. A configuration is required per region, but can be applied to multiple VPCs of that region.

Step 1: Configure query logging in Route 53

  1. Log in to your AWS account.

  2. Navigate to the Route 53 service within the region you plan to log.

  3. On the lefthand side, under Resolver, click Query Logging.

    • You should be redirected to a “Query logging configurations” page. If not, try clicking “Query Logging” link again.

    The query logging configurations page in AWS has a message in the middle of the screen that says you don't have any configurations

  4. In the upper right corner, click Configure Query Logging.

  5. On the next page, fill in the Query Logging configuration form:

    • Name: Enter a descriptive name.

    • Destination for query logs: Select S3 bucket.

    • Amazon S3 Bucket: Select the S3 bucket where you want to configure query logging.

    • VPC Logs: Add all the VPCs you would like to start logging DNS queries from. Search for a VPC, then click Add VPC.

  6. At the bottom of the page, click Configure query logging.

    • Within a few minutes, you should start receiving logs within your S3 bucket at s3://BucketName/BucketPrefix/AWSLogs/ACCOUNTID/vpcdnsquerylogs/VPCName/Year/Month/Day

Step 2: Onboard log source

After onboarding the source with the AWS.VPCDns log type, VPCDNS logs will be ingested into Panther.

Example DNS Event

Panther-built detections

See Panther's prewritten AWS rules in the panther-analysis Github repository.

Querying logs in Data Explorer

See example SQL queries, for use in Panther's Data Explorer, in VPC logs queries.

Supported AWS VPC log types

Panther supports AWS.VPCDns and AWS.VPCFlow.

AWS.VPCDns

DNS query logs represent the queries that VPC DNS resolvers forward to Route 53. For more information, see AWS's documentation on Resolver query log format.

AWS.VPCFlow

VPC Flow is a VPC NetFlow log, which is a layer 3 representation of network traffic in EC2.

Note that for Panther to properly ingest VPC NetFlow logs, they must come directly from S3, in CSV format with a header.

For more information, see AWS's documentation providing flow log record examples.

Last updated

Was this helpful?