audit-labs/audit-tools

A collection of scripts, queries, and other goodies you can use in an audit. audit automation compliance evidence scripts

Commit 31922eb3f1

31922eb3f1ba91b956b0dde94d35e061f7c7c573

parent: 7eb1b86bc9

Unsigned

cmc <hello@cleberg.net> ยท 2025-05-28 17:59 UTC
committer: <noreply@github.com>

feat: convert README to org-mode and update content (#10)

Layout: unified ยท split

README.org +88 โˆ’90
@@ -1,104 +1,102 @@
1* Background
1#+TITLE: Audit Tools by Christian Cleberg
2#+AUTHOR: Christian Cleberg
3#+OPTIONS: toc:nil
24
3I have been an auditor for years, starting with operational/financial
4audits and quickly transitioning to technology audits early in my
5career.
5* ๐Ÿ“Š Audit Tools by Christian Cleberg
66
7While performing technology audits, attestations, etc., you will find
8that it requires a lot of manual effort if you don't use the right tools
9to automate as much as possible.
7Welcome to *Audit Tools* โ€” a collection of open-source Python scripts and
8resources designed to help auditors, risk professionals, and data analysts
9automate common audit tasks and analytics.
1010
11This repository serves as my personal collection of audit tools that I
12want to save and re-use later.
11Whether you're new to audit automation or an experienced tech-enabled auditor,
12this toolkit offers practical, real-world examples you can use, customize, and
13build upon.
1314
14** Scope
15* ๐Ÿ“ฆ What's Inside
1516
16While I created the scripts and tools within this repository
17specifically for the applications I use, I am working to include
18edge-cases and niche tools as I can.
17This repository contains Python scripts and templates for common audit
18procedures and control testing activities, including:
1919
20For now, refer to the tree below for application coverage.
20- โœ… *Pseudo-Random Sampling*
21- โœ… *GITC Extractions and Analysis*
22- โœ… *Project Management Tracking & Visualizations*
23- โœ… *Cloud Platform Analysis (planned)*
24- โœ… *Audit AI Prompts & Guides (planned)*
2125
22#+begin_src shell
23tree -I ".git*|venv"
26The goal is to provide practical, easy-to-understand tools that auditors and
27analysts can quickly deploy in their environments.
28
29* ๐Ÿš€ Getting Started
30
31**Clone the Repository**
32
33#+begin_src bash
34git clone https://github.com/ccleberg/audit-tools.git
35cd audit-tools
2436#+end_src
2537
26#+begin_src text
27.
28โ”œโ”€โ”€ applications
29โ”‚ย ย  โ”œโ”€โ”€ github
30โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ github_admins.py
31โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ github_audit_log.py
32โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ github_branch_protections.py
33โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ github_commits.py
34โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ README.org
35โ”‚ย ย  โ””โ”€โ”€ gitlab
36โ”‚ย ย  โ”œโ”€โ”€ approvals.py
37โ”‚ย ย  โ”œโ”€โ”€ branch_protections.py
38โ”‚ย ย  โ”œโ”€โ”€ passwords.py
39โ”‚ย ย  โ”œโ”€โ”€ pipelines.py
40โ”‚ย ย  โ”œโ”€โ”€ provisioning.py
41โ”‚ย ย  โ”œโ”€โ”€ README.org
42โ”‚ย ย  โ”œโ”€โ”€ repositories.py
43โ”‚ย ย  โ””โ”€โ”€ users.py
44โ”œโ”€โ”€ CODEOWNERS
45โ”œโ”€โ”€ databases
46โ”‚ย ย  โ”œโ”€โ”€ mongo
47โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ admins.py
48โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ README.org
49โ”‚ย ย  โ”œโ”€โ”€ mysql
50โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ mysql_admins_alt.sql
51โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ mysql_admins.sql
52โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ passwords.sql
53โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ README.org
54โ”‚ย ย  โ”œโ”€โ”€ oracle
55โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ oracle_admins_alt.sql
56โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ oracle_admins.sql
57โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ README.org
58โ”‚ย ย  โ”œโ”€โ”€ postgres
59โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ admins.sql
60โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ passwords.sql
61โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ README.org
62โ”‚ย ย  โ””โ”€โ”€ sql
63โ”‚ย ย  โ”œโ”€โ”€ admins.sql
64โ”‚ย ย  โ”œโ”€โ”€ passwords
65โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ example_data.csv
66โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ passwords.py
67โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ query.sql
68โ”‚ย ย  โ””โ”€โ”€ README.org
69โ”œโ”€โ”€ LICENSE
70โ”œโ”€โ”€ os
71โ”‚ย ย  โ””โ”€โ”€ linux
72โ”‚ย ย  โ”œโ”€โ”€ passwords.sh
73โ”‚ย ย  โ”œโ”€โ”€ README.org
74โ”‚ย ย  โ””โ”€โ”€ ssh_root_login.sh
75โ”œโ”€โ”€ project_management
76โ”‚ย ย  โ”œโ”€โ”€ alteryx
77โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ project_email_reminders.yxmd
78โ”‚ย ย  โ”œโ”€โ”€ dash
79โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ app.py
80โ”‚ย ย  โ””โ”€โ”€ powerbi
81โ”‚ย ย  โ””โ”€โ”€ project_dashboard
82โ”‚ย ย  โ”œโ”€โ”€ project_dashboard.pbix
83โ”‚ย ย  โ””โ”€โ”€ project_data.xlsx
84โ”œโ”€โ”€ README.org
85โ”œโ”€โ”€ requirements.txt
86โ””โ”€โ”€ sampling
87 โ”œโ”€โ”€ README.org
88 โ”œโ”€โ”€ sample.html
89 โ”œโ”€โ”€ sample-html.png
90 โ””โ”€โ”€ sample.py
38**Install Dependencies**
39
40/Required for Python scripts/
41
42#+begin_src bash
43pip install -r requirements.txt
9144#+end_src
9245
93* Development
94** Python
46**Run a Sample Script**
9547
96For the Python scripts, use the following to activate a virtual
97environment for consistent packing:
48Example: Run the *Linux OS Report* tool.
9849
99#+begin_src shell
100python3 -m venv venv
101source ./venv/bin/activate
102pip install PACKAGE_NAME
103python3 ./PYTHON_SCRIPT.py
50#+begin_src bash
51./os/linux/report/linux.sh
10452#+end_src
53
54View the results in your terminal or within the file created by the script.
55
56* ๐Ÿ“– Learn More
57
58If you're new to audit analytics or Python scripting, start here:
59- [[https://realpython.com][Python for Auditors]]
60- [[https://audit-analytics.com][Audit Analytics 101]]
61- [[https://pandas.pydata.org/docs/getting_started/][Intro to Pandas Documentation]]
62
63Also, check out the =notebooks/= folder for interactive tutorials and use cases.
64
65* ๐Ÿค How to Contribute
66
67Want to add your own audit scripts or improve existing ones? Contributions are
68welcome!
69
70**Ways to Help**
71- Submit new Python scripts for audit use cases.
72- Suggest enhancements or new features via [[https://github.com/ccleberg/audit-tools/issues][Issues]].
73- Improve documentation or write beginner-friendly tutorials.
74- Test existing tools on new datasets and report issues.
75
76**To Contribute**
771. Fork this repo
782. Create a new branch:
79 #+begin_src bash
80 git checkout -b my-feature
81 #+end_src
823. Commit your changes:
83 #+begin_src bash
84 git commit -m 'Added new audit test'
85 #+end_src
864. Push to the branch:
87 #+begin_src bash
88 git push origin my-feature
89 #+end_src
905. Open a Pull Request
91
92* ๐Ÿ‘ค About the Creator
93
94Made with โค๏ธ by [[https://cleberg.net/][Christian Cleberg]].
95
96I'm a technology assurance leader passionate about audit innovation, AI in
97audit, and building practical tools for auditors and risk professionals.
98
99* ๐Ÿ“œ License
100
101This project is licensed under the *GNU General Public License v3.0* โ€” see the
102[[file:LICENSE][LICENSE]] file for details.