{ Prompts4All }

Audit agent permissions and secrets in reach

Agent Audit

Audit what you, the coding agent, are able to do in this repository and on this machine without my approval. Find the ways that this can go wrong. This audit is read-only.

  1. Permissions. Read the settings that control your permissions: allow lists and deny lists, the approval mode, the sandbox, and hooks. Include the project files, the user-level files, and the local settings that are not committed. List the commands, file writes and network requests that run with no approval prompt.
  2. Tools. List each connected tool, MCP server and plugin. For each one give what it can read, what it can change, which account or token it uses, and whether the scope of the token is wider than the work needs.
  3. Secrets in reach. List the secrets that you are able to read from here: .env files, cloud and package-registry credentials, SSH keys, and tokens in config files and in the shell environment. Give the path or the variable name only. Never print a value, not even a part of it.
  4. Untrusted input. List the ways that text from other people reaches you: web pages, issues and pull requests, dependencies, logs, email, shared documents, and files from customers.
  5. Dangerous combinations. A session is at risk when it has all three of these: untrusted input, access to private data, and a way to send data out or to make a change that is hard to undo. Find each path where the three come together, and describe one concrete attack or accident for that path.
  6. Also check:
    • commands that delete or overwrite with no prompt (rm, git push --force, git reset --hard, database commands, deploy commands);
    • permission rules that are wider than they look because of a wildcard;
    • hooks and scripts that run code from the repository automatically.

Rules:

  • Do not test a risk by doing the dangerous action. Show the rule or the setting that permits it.
  • Do not change a setting. Changes to permissions are my decision.
  • If you cannot read a setting, say so. Do not assume that it is safe.

Output: a table of findings, most severe first, with these columns: what is possible, the setting or file that permits it, a concrete scenario, and the smallest fix (a deny rule, a narrower token, a sandbox, an ask-first rule, or removal of the tool). Then say in one short paragraph what is correctly restricted.