Admin Account Audit is a Rust CLI tool to audit Azure role assignments and group ownerships, focusing on identifying non-admin users who have been granted elevated permissions or own security groups. The tool fetches all role assignments, users, and groups, and outputs a JSON report listing non-admin users with direct or group-based role assignments, as well as non-admin group owners.
- Designed for Azure environments
- Outputs results as a JSON file
- Helps organizations identify potential privilege escalations
Windows:
- Download the latest Windows binary from the releases page.
- Unzip and place
admin_account_audit.exesomewhere in yourPATH.
Other operating systems:
Currently, only Windows binaries are provided. However, you can build from source on Linux or macOS using Rust and Cargo:
git clone https://github.com/AAFC-Cloud/admin-account-audit.git
cd admin-account-audit
cargo build --releaseThe resulting binary will be in target/release/.
admin_account_audit <output_path> [--overwrite-existing]<output_path>: Path to write the JSON results.--overwrite-existing: Overwrite the output file if it already exists.
admin_account_audit output.json --overwrite-existingCopyright belongs to © His Majesty the King in Right of Canada, as represented by the Minister of Agriculture and Agri-Food, 2025.
