# sudoers and privilege auditor

> Offline audit of copied sudoers/passwd/group for NOPASSWD, wildcards, shell escapes, extra UID 0 and empty passwords.

sudoers and privilege auditor is a paid AI agent skill on Agensi by Big t, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 1
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sudoers-and-privilege-auditor
- Tags: security, devops, research, sudo, sudoers, linux, privilege-escalation, gtfobins

## About this skill

**Find the sudo rule that is actually a root shell.**

Point this at copies of `/etc/sudoers`, `sudoers.d/`, `/etc/passwd` and `/etc/group`. It flags NOPASSWD, command wildcards, SETENV, ineffective `ALL, !/usr/bin/passwd` negation, GTFOBins sudo escapes (vim, less, find, …), dangerous Defaults, multiple UID 0 accounts and empty password fields. Expected `root ALL` / `%sudo ALL` rules are INFO, not noise.

### What's included
SKILL.md, `scripts/sudoers_audit.py`, bundled GTFOBins sudo list (455 binaries, API snapshot 2026-10-12), references, sample host files.

### Going further: paid skills from the same creator
- **server log threat hunter:** hunt auth.log for the break-in that abused these rules.
- **linux cis style config auditor:** broader host hardening score.
- **small business security audit:** whole-business checkup.

## Known limitations

- Not a full sudoers grammar validator — still run `visudo -c` on the host.
- GTFOBins list is a snapshot; new techniques appear over time.
- `#include` directives are reported so you remember to audit the included files too.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the sudoers and privilege auditor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it change sudoers?

No. It only reads copies you provide and writes a report.

### Why is root ALL only INFO?

It's the normal Debian/Ubuntu default. NOPASSWD ALL for other users is CRITICAL.

### What's GTFOBins?

A community catalog of Unix binaries that can be abused to escape restricted shells or elevate privileges. We ship the sudo-context list.

### Can I pass a whole /etc dump folder?

Yes — pass the directory; sudoers, sudoers.d/*, passwd and group are picked up.

### Is negation with ! safe?

No. sudoers(5) says subtracting commands from ALL with `!` is generally not effective.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
