2026-11-26 15:39 UTC

AI Access Auditor offers local permission audits and revocation for coding agents

state: seedheat: mediumuncertainty: mediumrelevance: highcoding-agents agent-permissions ai-securitydirmedmr-alt

What is this?

AI Access Auditor is a free, MIT-licensed app from the GitHub maintainer dirmedmr-alt, with releases described for macOS, Windows and Linux. The repository says it scans coding-agent permissions, credentials and related settings; can revoke grants with backup and undo; watches for new access; and optionally uses supported agents’ hooks to ask before tool actions. It also offers command-line scanning. The linked repository is the main first-party evidence; an echo record repeats its description, while the Hacker News post provides discovery context rather than independent validation. The supplied sources do not establish adoption or independently verify the tool’s security and coverage.

Why it matters

As coding agents gain permission to run commands, connect tools and use stored credentials, users need ways to see and limit the access they have accumulated. This tool makes that control more concrete: it could help developers audit and revoke risky grants locally, and add an approval step for some agent actions. Its potential is meaningful, but claims about coverage and protection come from the project itself; it is a single maintainer’s project, not evidence of broad deployment or a complete security boundary.

Current assessment

New: the project’s repository describes an available cross-platform app and CLI for auditing access associated with many coding agents and AI tools. Listed functions include scanning grants and secrets (with previews masked), identifying some unused permissions using agent session logs, revoking access with backups and undo, monitoring changes, and optional action prompts implemented through Claude Code, Codex CLI and Gemini CLI hooks. The repository says data stays on the computer, telemetry is absent, and updates are checked against release checksums; these are maintainer claims, not an independent security assessment. Availability and platform support are described in the repository, with some limitations: Windows installers are not signed yet, and certain monitoring or macOS privacy checks differ by platform. Hook coverage and behavior vary by agent, and the tool cannot prevent every system-level permission or action. No independent testing, user adoption, or evidence of effectiveness is supplied. Track releases, security reviews, supported-agent changes and external validation before treating its risk scores or safeguards as dependable.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 282h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-14 22:22 (minted)⭐ origin echo-reconstructedThe repository describes a local app for scanning agent grants and related credentials, revoking access, monitoring changes, and optionally
dirmedmr-alt on github (echo) · attributed from hn.story.50501121 · published time unknown
—
11-14 21:35first on hacker news · published · lag ?See and revoke what your AI coding agents can access
dirmed
—
11-14 21:35amplified on hacker news 👑hn.story.50501121
dirmed
peak 1 · 0 comments · 103% of case engagement
11-14 22:20our radar first saw it · lag ?discovery anchor: hn.story.50501121—
pace: p13 vs 2096 stories at the 168h mark (now 282h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnSee and revoke what your AI coding agents can access
Retrieved article excerpt

Open article · Retrieved 2026-11-14T22:21:34.093593+00:00

# AI Access Auditor

**See everything your AI coding agents can access on your computer, and take any of it back.**

[Latest release](https://github.com/dirmedmr-alt/ai-access-auditor/releases/latest)
[Downloads](https://github.com/dirmedmr-alt/ai-access-auditor/releases)
[License: MIT](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/LICENSE)
[macOS | Windows | Linux](https://camo.githubusercontent.com/bbeb45560120ba7f62b69c93a46e4411a636c24ec6b6cc3cc01677053defda85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d6d61634f5325323025374325323057696e646f77732532302537432532304c696e75782d6c6967687467726579)

Claude Code, Codex, Gemini CLI, Cursor, OpenCode and other agents collect permissions over time: auto-approved
commands, MCP servers with tokens, trusted folders, saved logins, API keys left in their logs. AI Access Auditor
finds all of it, explains each item in one line, and lets you remove it with one click, with undo.

[Demo: open the riskiest grant, revoke it, then undo it from History](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/docs/images/demo.gif)

Demo with invented data: revoke a risky permission, then undo it from History.

## Install

**[Download from the website](https://dirmedmr-alt.github.io/ai-access-auditor/)** (free), or from the
[latest release](https://github.com/dirmedmr-alt/ai-access-auditor/releases/latest).

|  |  |
| --- | --- |
| **Mac** | macOS 13 or later, Apple Silicon and Intel. Signed and notarized by Apple. Or with Homebrew: `brew tap dirmedmr-alt/tap && brew trust dirmedmr-alt/tap && brew install --cask ai-access-auditor` |
| **Windows** | Windows 10 and 11, x64 and ARM installers. Not signed yet, so SmartScreen may warn once: More info → Run anyway. |
| **Linux** | `.deb` for Ubuntu and Debian (x64 and arm64): `sudo apt install ./AI-Access-Auditor-*.deb`. AppImage for other x64 distributions (needs `libfuse2t64` on Ubuntu 22.04+, `libfuse2` on 22.04). |

## What it does

- **Finds every grant:** tool and command permissions, MCP servers, trusted folders, hooks, saved logins,
  API keys in your shell and environment, startup entries, and secrets left in agents' session logs (shown masked).
- **Explains and scores them:** a safety score, and a one-line explanation of each risk.
- **Shows what's actually used:** when each permission, folder and MCP server was last used, from the agents' own session logs (Claude Code, Codex CLI and Gemini CLI). Grants never used are marked "Unused", and one click revokes them all.
- **Takes access back:** revoke one grant or many at once, now or after a time limit. Every change is backed up first and can be undone.
- **Watches for changes:** a popup the moment an agent gains new access. Keep it, keep it for a while, or remove it.
- **Asks before agents act:** an optional popup before Claude Code, Codex or Gemini CLI runs a tool, through their own hook systems.

AI Access Auditor overview: safety score, new access, protection switches and top risks

[Popup asking before Claude Code runs a command](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/docs/images/popup-gate.png)
[Popup showing new access gained by an agent](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/docs/images/popup-new-access.png)

## Command line

The same scan runs in a terminal, in scripts and in CI. It needs [Node.js](https://nodejs.org) 18 or later, and nothing is installed:

```
npx github:dirmedmr-alt/ai-access-auditor --scan          # every grant, grouped by agent
npx github:dirmedmr-alt/ai-access-auditor --unused        # only grants never used
npx github:dirmedmr-alt/ai-access-auditor --json          # as JSON, keys and tokens masked
npx github:dirmedmr-alt/ai-access-auditor --fail-on high  # exit code 1 if a high-risk grant isn't marked as reviewed
```

Or from a copy of this repository: `node server.js --scan`. Run `--help` for every option.

## Updates

When a new version is out, the app downloads it in the background from this repository's releases and checks it before anything is installed: the checksum published with the release must match, and on a Mac the app must also be signed with this developer's Apple Developer ID and notarized by Apple. Then one click on **Restart to update** installs it. The `.deb` packages, which need administrator rights, keep a download link instead.

## Privacy

Everything stays on your computer: no account, no telemetry. The only network request is a daily check for a
new version on GitHub, which you can turn off in Setup. The local server listens only on 127.0.0.1, checks a
per-session token, and masks secrets in its output.

## Security

Read the security reviews: [the first](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/docs/security-review.md), and [the second](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/docs/security-review-2.md), from issues reported by Mohamed Lemine. To report a problem privately, see [SECURITY.md](https://github.com/dirmedmr-alt/ai-access-auditor/blob/main/SECURITY.md).

## Full details

On Linux the app lives in the tray instead of the menu bar. It finds the same agent access, and in place of
the Mac-only parts it checks systemd and autostart jobs, logins saved in GNOME Keyring or KWallet (by name only),
and membership of the `docker` group. On Windows it checks startup entries (registry and Startup folder),
scheduled tasks, logins in Credential Manager, API keys in the user environment, and admin rights without a UAC
prompt. Uploads aren't watched on Windows.

### What it scans

- **Claude Code:** tool permissions, permission modes, trusted folders, MCP servers and hooks
- **Claude Desktop:** folder grants, browser control, scheduled tasks and permission bypass
- **MCP servers** in Cursor, VS Code, Windsurf, Gemini CLI, Zed, Codex, Cline and Roo Code
- **macOS privacy grants** for AI apps and terminals (this needs Full Disk Access)
- **Saved logins** for AI tools and GitHub in your Keychain (names only, never the secrets)
- **Background agents:** LaunchAgents and LaunchDaemons, plus crontab lines that start AI tools
- **AI extensions** in VS Code, Cursor and Windsurf, and in Chrome, Brave, Edge and Arc
- **Local AI servers** (Ollama, LM Studio) that other devices on your network can reach
- **Other agents' permissions:**
  - Codex: approval policy, sandbox and trusted projects
  - Gemini CLI: auto-accept, allowed tools and trusted folders
  - Cursor CLI: allow rules
  - Copilot CLI: trusted folders, allow-all mode, allowed URLs, and the "always allow" answers it saved per project
  - Windsurf: Cascade's command allow list
  - Kiro: trusted commands, and the allow rules in `permissions.yaml` (Kiro 1.0)
  - Zed: its agent's tool permissions, and the older "always allow" switch
  - Continue: tools its CLI (`cn`) may use without asking, and MCP servers in `config.yaml`
  - Cline: the CLI's auto-approve settings, and MCP tools set to run without asking (Cline, Roo Code)
  - VS Code, Cursor and Windsurf: Copilot auto-approve settings
  - OpenCode: permissions
  - Aider and Goose: auto modes
  - MCP servers in Copilot CLI, Amazon Q, Kiro, OpenCode, Continue, Cline CLI and Claude Desktop extensions
- **Agents running right now** with approvals off (`--dangerously-skip-permissions`, `--yolo`, `--full-auto`, `-y`, and so on) or as root. These can be stopped from the popup
- **Secrets in agents' session history:** keys, tokens and private keys left in the session logs agents keep on disk (only masked previews are shown), with one click to remove them from the log, and a link to cancel each key with the service that issued it (removing it from the log doesn't stop it from working)
- **Left behind after uninstalling:** agents you removed whose folder still holds saved logins, permissions or past conversations
- **Data sharing:** agents' usage statistics and telemetry, sessions shared publicly, and editors' usage data, with one click to turn each off; plus links to each AI service's training settings
- **Privileges every agent inherits from you:** passwordless sudo, loaded SSH keys, and GitHub, AWS, gcloud, Azure, Kubernetes, Docker and npm logins
- **API keys** exported in your shell startup files
- **Optional "watch all apps":** macOS privacy permissions and background jobs for every app, not just AI apps

### Menu bar and alerts

The Mac app stays in the menu bar after you close its window. Every 5 minutes
it checks for new access. When an agent gains something new, the shield turns red, a notification shows
what was added, and the grant is labeled "New" in the app. "Open at Login" in the shield menu starts it
quietly when you log in. Grants that exist on the first run become your starting list, so you're only
alerted about changes after that.

### Live protection

- **New access pops up right away.** The app watches the agents' config files. When anything gains access, a floating window asks whether to **Keep** it (forever, or for 1 hour, 1 day or 7 days) or **Remove** it.
- **Ask before agents act** (switches on the Overview; one hook script, `gate.js`, for all three):
  - **Claude Code:** a `PermissionRequest` hook in `~/.claude/settings.json`. The popup replaces Claude Code's prompt; Allow can be "just this once" or "always".
  - **Codex CLI:** `PermissionRequest` and `PreToolUse` hooks in `~/.codex/hooks.json`. The popup replaces Codex's prompt, and also steps in when Codex runs without asking (bypass / full-auto). Codex asks you to trust new hooks once (`/hooks`).
  - **Gemini CLI:** a `BeforeTool` hook in `~/.gemini/settings.json`. Gemini's own prompt can't be skipped, so the popup only appears when Gemini wouldn't ask (YOLO, or edits in auto-edit mode).
  - If the app isn't running, each agent works as usual. Every answer is listed under Decisions.
- **New AI agents:** when Claude Code, Codex, Gemini or another agent or AI app appears on the Mac, a popup offers to turn on Allow / Deny for it.
- **AI tools being installed:** `npx … setup`, `npm install -g`, `brew install`, `pipx`, `uv tool install` and `… mcp add` of MCP servers, skills or agent packages, with who started it and what it's connecting to.
- **Data leaving the Mac:** per-process upload counters (`nettop`, every 2 s). Programs an AI agent started are flagged from 64 KB to one address, other apps from 20 MB, with the sensitive files they have open. Stop it, allow it once, or always for that app.
- **Agent skills, sign-ins and "always allow" rules:** skills in every agent's skills folder; logins saved as plain text (`~/.codex/auth.json`, `~/.gemini/oauth_creds.json`) or in the Keychain; Gemini's saved policy rules. All revocable, with a backup.
- macOS privacy prompts (Screen Recording, Accessibility and so on) come from the system itself, so the app can only report them afterwards.

### Actions

- **Revoke:** backs up the file first. You can also tick several grants and revoke them together.
- **Revoke automatically:** after 1 hour, 1 day, 7 days or 30 days.
- **Mark as reviewed:** for grants you want to keep.
- **Restore:** on the History tab.

Every action is logged in `~/.ai-access-audit/`.

## Build it yourself

`./build-app.sh`, then open `dist/AI Access Auditor.app`, or `./build-app.sh --install` to put it in
/Applications. It needs Node.js (`brew install node`) and doesn't use a browser. The Linux and Windows app is
in `desktop/` (Electron); see `build-linux.sh` and `appveyor.yml`.

```
npm start        # browser version: open the link it prints (it contains the page's access token)
npm run scan     # print the findings in the terminal
```

## Releases

Releases are built and published by the maintainer. The Mac app is signed with a Developer ID and notarized
by Apple (`macos/node.entitlements` lets the bundled Node.js compile JavaScript). Linux files are built with
`build-linux.sh`, and the Windows installers are built and tested by AppVeyor (`appveyor.yml`) on every push.
Each release publish
dirmed10
🟧 echo.github ⭐The repository describes a local app for scanning agent grants and related credentials, revoking access, monitoring changes, and optionally dirmedmr-alt——

Interpretation history

Decision trace