srzafkiell@dev
case-studies/scoutsuite-runner.md -- less

ScoutSuite Runner

Containerized AWS security audits | personal tooling, public repository | engagement data stays out of it

context

Cloud configuration audits with ScoutSuite, run from a Windows laptop against client AWS accounts with read-only audit credentials. Each engagement needs a clean run, a record of what was scanned, and deliverables a client can act on, not a raw HTML report.

problem

Installing the scanner and its dependencies on every machine is friction; credentials end up in shell history or on disk; shared accounts throttle a full scan; and the scanner's output is an HTML dashboard plus a JavaScript results file that nobody turns into a task list by hand.

what I did

  • Packaged ScoutSuite in a Docker image and drove it with PowerShell scripts: one creates the credentials folder from placeholders (the folder is git-ignored), one runs the scan with that folder mounted read-only into the container, one opens the newest report.
  • Wrote one timestamped folder per engagement under reports/, so every run is reproducible and attributable.
  • Added service scoping and adaptive retries with a raised attempt limit, so a scan of a busy shared account finishes instead of tripping rate limits, with report language that states exactly what was assessed.
  • Wrote a Python generator that strips the JavaScript wrapper, walks every finding, normalises severities, deduplicates, applies a minimum severity and an optional project filter, and writes five outputs: a findings CSV, a remediation plan with P1 to P3 tasks, a Markdown draft, a DOCX draft (python-docx) and a summary JSON for automation.
  • Documented the least-privilege setup: the AWS SecurityAudit policy on a temporary IAM user, and key rotation after the engagement.

stack

Docker PowerShell Python ScoutSuite AWS IAM python-docx

outcome

  • The first engagement triaged 157 High and Medium findings (94 High) across 19 services into P1 to P3 tasks.
  • Five deliverables from one parser, with the summary JSON ready for n8n, ClickUp or a shared drive.
  • Credentials never enter the repository or the image; the container only ever reads them.

Public tooling. Engagement reports and credentials live outside the repository and are not shown.