Audit Labs
audit-tools
(stable v1.0.0) is a collection of runnable Python scripts, SQL queries, shell scripts,
and an interactive terminal UI (audit_tui.py) for collecting evidence and running
repeatable tests across common enterprise systems. Use them as-is or adapt them to your environment.
Source and issue tracking live on GitHub. Older introductory notebooks are archived in audit-labs/tutorials.
Contents
| Directory | Description |
|---|---|
applications/aws/ |
IAM users, account/root security, password policy, public S3 access, open security groups, CloudTrail, Config, and SSO. |
applications/github/ |
Admin enumeration, org security settings, webhooks, deploy keys, secret-scanning and Dependabot alerts, audit logs, branch protections, and commits. |
applications/gitlab/ |
Group and project members, branch protections, approvals, pipelines, and audit events. |
databases/ |
Admin enumeration and password queries for PostgreSQL, MySQL, Oracle, MongoDB, and generic SQL. |
os/linux/ |
Linux system reporting, password file analysis, and SSH root login checks. |
sampling/ |
Reproducible random and stratified sampling with fixed seeds. |
project_management/ |
Audit project tracking dashboards for Alteryx, Dash, and Power BI. |
tui/ |
Interactive terminal UI (audit_tui.py) for running GitHub, GitLab, and AWS checks into a CSV evidence package. |
Usage
Dependencies are grouped into optional extras so a locked-down machine only installs what a procedure needs. Releases are tagged so engagements can pin an exact revision.
git clone https://github.com/audit-labs/audit-tools
cd audit-tools
# Install only the extras you need
pip install ".[aws]" # AWS collectors (boto3)
pip install ".[collectors]" # GitHub / GitLab collectors
pip install ".[analysis]" # sampling + pandas / Excel
pip install ".[tui]" # interactive terminal UI
pip install ".[all]" # everything
Run the interactive TUI or invoke standalone scripts directly:
python audit_tui.py
python sampling/sample.py
./os/linux/report/linux.sh
Scope & Contributing
Typical use cases include ITGC testing, SOX, SOC 1/2, ISO 27001, and NIST 800-53 evidence collection. Contributions are welcome. Fork audit-labs/audit-tools, add a script or query for your stack, and open a pull request.