Skip to content
Connectors

Scanner deep dive

AWS S3

SourceGAOpen source + Enterprise · Hosted or self-hosted

The AWS S3 integration scans objects in S3 buckets for credentials and other sensitive data.

Unauthenticated public-bucket scans (CLI) or authenticated scans with AWS credentials

Use cases and coverage

Scanning use cases

  • Check a support-export bucket before sharing it

    For a private support bucket, use an AWS identity that can list the bucket and read its objects. Scan the exports for credentials copied into configuration files or diagnostic bundles.

  • Review an export your team publishes publicly

    For a bucket your team makes publicly listable and readable, use the CLI without AWS credentials. Select the bucket and its export prefix, then trace any finding to the job that produced the object.

Related incidentUber’s cloud access key in a private repository · Service accessed

2016 · Service accessed

The FTC’s revised complaint says an AWS key in Uber’s private GitHub repository was used to download files from S3.

How this relates to AWS S3

S3 held the downloaded data. A scan of S3 objects alone would omit the reported key location in GitHub.

Review AWS S3 scan scope

Federal Trade Commission report · 2016 Data Breach, paragraph 24

Source check

Atlas AI-assisted source check · 2026-11-22. The publisher describes the event or study. The Atlas explains its relevance to this connector. Detection depends on the scan scope and detectors in use.

What it covers

Compare in matrix

What the docs page’s Capabilities table says, sorted into what the source reaches, how deep it reads and how it runs. Hatched segments and dashes are capabilities the page doesn’t mention. Select ⓘ for what each one means.

  • objects

What it reaches

3 supported · 1 not documented

  • History✓
  • Attachments✓
  • Progress info✓
  • Comments–

How deep it reads

3 supported · 1 not documented

  • Archives✓
  • Binaries✓
  • Base64✓
  • Office docs–

How it runs

2 supported · 4 not documented

  • Filters✓
  • Auto-resume✓
  • Real-time–
  • Pre-commit–
  • Pre-receive–
  • In CI–

Limits

Caveats the docs page states, like size caps or content it skips.

  • Objects in S3 Glacier cold storage are not scanned.

The open-source CLI also skips, whatever the flags

  • Objects in Glacier and Glacier Instant Retrieval storage
  • Objects over 250 MiB (--max-object-size can lower this cap, not raise it)
  • Empty objects
  • Image, audio and video files, on the shared skip list

From the pinned open-source README. The Enterprise docs page may list fewer.

What TruffleHog documents

Integration guide

A role with no buckets listed scans every bucket that role can list. With buckets listed, each role tries each bucket. The web setup takes an access key and secret for an IAM identity with read access.

Read the AWS S3 integration guide
Open-source CLI

Narrow a bucket scan by object-key prefix or file extension. The CLI evaluates those filters before downloading an object. An excluded prefix wins if it overlaps an included prefix.

Read the pinned README passage

Sources checked .

Scan setup and permissions

Set it up

Pick how you’ll run it: each tab has its steps and its options. Enterprise paths come from Truffle’s public docs. The open-source CLI is read from the public TruffleHog code at a pinned commit; it’s a separate product from Enterprise.

Web interface or local configuration

  1. Name the AWS accounts and buckets you want covered. The scanner needs an IAM user, role or instance profile that can list buckets and download objects.
  2. Set it up from Integrations in the web UI with an access key and secret, or in a local config file using one of four authentication modes. For buckets in other AWS accounts, use role assumption: each target role needs a trust policy that lets the scanner’s identity assume it.

Suggested contact (Atlas suggestion) · AWS account owner or cloud IAM administrator

Suggested first check (Atlas suggestion) · Confirm the scanner identity can list your pilot bucket and read one object in it.

Setup reference checked 2026-11-26 · Configuration

Config file options (4)

Options for sources.S3 in a local YAML config. Required fields come first.

AWS S3 configuration options
FieldWhat it doesType
bucketsExplicit list of buckets to scan. Omit to scan all buckets the identity can list.list
ignoreBucketsBuckets to skip during scanning.list
maxObjectSizeMaximum object size in bytes. Objects larger than this are skipped.integer
rolesList of role ARNs to assume. Required for role assumption modes.list

Check the options in your installed version with trufflehog s3 --help.

  1. Name buckets with --bucket, or use --ignore-bucket to scan every listable bucket except those. The two flags can’t be combined. Use --include-prefix to scan only part of a bucket.
  2. With no credential flags the CLI scans anonymously, which works only on buckets that allow public listing and reads. It does not use your local AWS profile. For private buckets, add --cloud-environment (the AWS SDK credential chain) or --key and --secret. --role-arn then assumes a role with those credentials.

Suggested contact (Atlas suggestion) · AWS storage owner and scanner operator

Suggested first check (Atlas suggestion) · Confirm that the pilot bucket allows listing and reading through the chosen access path.

Setup reference checked 2026-11-26 · s3 command declaration, S3 source credentials

$ trufflehog s3

Find credentials in S3 buckets. pkg/sources/s3 · main.go line 178

Open-source TruffleHog, read from the public code at commit ffdee00 (v3.99.9-6-gffdee00a). Newer releases may differ.

All 14 CLI flagsNone required
trufflehog s3 flags
FlagWhat it doesType
--keyS3 key used to authenticate. Can be provided with environment variable AWS_ACCESS_KEY_ID.string
--role-arnSpecify the ARN of an IAM role to assume for scanning. You can repeat this flag.strings
--secretS3 secret used to authenticate. Can be provided with environment variable AWS_SECRET_ACCESS_KEY.string
--session-tokenS3 session token used to authenticate temporary credentials. Can be provided with environment variable AWS_SESSION_TOKEN.string
--cloud-environmentUse IAM credentials in cloud environment.bool
--bucketName of S3 bucket to scan. You can repeat this flag. Incompatible with --ignore-bucket.strings
--ignore-bucketName of S3 bucket to ignore. You can repeat this flag. Incompatible with --bucket.strings
--max-object-sizeMaximum size of objects to scan. Objects larger than this will be skipped. (Byte units eg. 512B, 2KB, 4MB)Default 250MB.bytes
--endpointEndpoint of an S3-compatible service to scan instead of AWS S3. (eg. https://s3.internal.example.com)string
--regionRegion used to sign requests. Defaults to us-east-1.string
--include-prefixOnly scan objects whose key starts with this prefix. You can repeat this flag.strings
--exclude-prefixSkip objects whose key starts with this prefix. You can repeat this flag. Takes precedence over --include-prefix.strings
--include-extensionOnly scan objects with this file extension, written without a leading dot (eg. tf). You can repeat this flag. Incompatible with --exclude-extension.strings
--exclude-extensionSkip objects with this file extension, written without a leading dot (eg. zip). You can repeat this flag. Incompatible with --include-extension.strings

Access

Choose how the scanner connects. The permission lists below apply to authenticated integration setup.

Scan access modes

Unauthenticated
For a public bucket you manage, the open-source CLI can scan without AWS credentials when the bucket permits anonymous listing and the objects permit anonymous reads. A public link to one object establishes only that object's readability.
Authenticated
Use an AWS identity for private buckets or restricted objects. The scanner needs permission to list the bucket and read the objects in scope. The Enterprise setup guide describes IAM credentials and assumed roles.

S3 CLI access modesTruffleHog S3 integration setupAWS listing permissionsAWS object-read permissionsChecked 2026-11-22

All read-only, as documented.

Authenticated integration methods

  • IAM credentials
  • IAM role assumption
  • IAM role assumption with instance profile
  • Static credentials

Permissions

5 permissions
  • s3:GetBucketLocationAllow
  • s3:ListAllMyBucketsAllow
  • s3:ListBucketAllow
  • s3:GetObjectAllow
  • sts:AssumeRoleRole assumption onlyAllow

Before authenticated setup

  • AWS account
  • IAM identity

If AWS S3 keys leak

The credentials you give this connector are secrets too. These detectors find AWS S3 keys anywhere TruffleHog scans, not only inside AWS S3.

Recent changes

From TruffleHog’s release notes, after review. Tags show whether each change is in Enterprise, open source, or both.

4 release-note items mention this connector. The Atlas hasn’t checked them yet, so they aren’t listed here. See all release notes

Sources and related tools

Docs OSS codeReviewed· 2026-12-01File and knowledge stores

Evidence

Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so.