Skip to content

ppiankov/s3spectre

Repository files navigation

s3spectre

CI Go Report Card ANCC

s3spectre — S3 bucket drift and lifecycle auditor. Part of SpectreHub.

What it is

  • Scan mode cross-references S3 bucket refs in code against live AWS state
  • Discover mode inspects buckets for public access, missing encryption, and lifecycle gaps
  • Detects missing buckets, stale prefixes, version sprawl, and drift
  • Supports baseline mode to suppress known findings on repeat runs
  • Outputs text, JSON, SARIF, and SpectreHub formats

What it is NOT

  • Not a replacement for AWS Config Rules or GuardDuty — not real-time
  • Not a data scanner — never reads object contents, only metadata
  • Not a remediation tool — reports only, never modifies buckets
  • Not a cost calculator — identifies waste, does not estimate dollars

Quick start

Homebrew

brew tap ppiankov/tap
brew install s3spectre

From source

git clone https://github.com/ppiankov/s3spectre.git
cd s3spectre
make build

Usage

s3spectre discover --region us-east-1 --format json

CLI commands

Command Description
s3spectre scan Cross-reference code bucket refs against live S3 state
s3spectre discover Inspect S3 buckets for waste and misconfigurations
s3spectre version Print version

SpectreHub integration

s3spectre feeds S3 bucket findings into SpectreHub for unified visibility across your infrastructure.

spectrehub collect --tool s3spectre

Safety

s3spectre operates in read-only mode. It inspects and reports — never modifies, deletes, or alters your buckets.

Documentation

Document Contents
CLI Reference Full command reference, flags, and configuration

License

MIT — see LICENSE.


Built by Obsta Labs

About

S3 auditor for codebases and AWS. Scans repos for S3 bucket/object references, compares against AWS, detects missing buckets, unused buckets, stale objects, and suspicious versioned files.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages