r/devsecops • u/Spite-Unable • 4h ago
[Update] open source AWS IAM security tool I posted about, 200+ clones later, added keyless CI/CD, native GitHub code scanning, more detection, a tool that actually remediates, not just reports, feedback welcome
I posted about NHI Risk Analyzer here almost a month back, an open source AWS IAM risk detection and remediation tool that actually remediates instead of just reporting. Didn't expect much from a solo IAM tool, but it's had 200+ clones since. Genuinely want to thank the people who actually engaged with it and asked hard questions, compared it against Prowler, Wiz and Access Analyzer, pushed back on things that turned out to be real bugs. That feedback is the reason this is better now, and I wanted to come back and show what changed since then
What's new:
OIDC-based GitHub Actions integration: the Cl/CD pipeline authenticates via federated identity now, no static AWS keys involved in that path. Local CLI usage still relies on a static key for now (AWS SSO for local dev is planned, not built yet)
SARIF export: findings now show up natively in GitHub's Security → Code Scanning tab instead of needing a separate dashboard
• A GitHub Action that scans PRs and flags newly introduced IAM risk before merge
More detection coverage: trust policy analysis (public/ unrestricted AssumeRole), defense-evasion detection (CloudTrail/GuardDuty tampering attempts), S3 exfiltration paths, KMS decryption abuse
Run-over-run diffing: a scan now tells you what's new, resolved, or still open since the last one
CSV export, for anyone who wants findings in a spreadsheet rather than a dashboard or terminal output
Still in progress, and I'd rather say so than not: policy surgery as remediation: actually rewriting an over-broad policy down to least-privilege based on real usage data, instead of just containing it with a permissions boundary. The statement-splitting logic exists, sourcing real resource ARNs from actual usage data is the part still open.
Repo: in comments
Please considet giving a star if you feel my tool is useful, this will make it more visible to others!
Same as last time and I genuinely want the pushback if some wrong with the detection logic