Show what an AI coding agent running as you could reach.
Start with: Passwordless sudo gives full root
Remove the NOPASSWD rule and require a password, or scope it to a few read-only commands.
An agent could run any command as root without a password, directly or through a program that can start other programs.
Remove the NOPASSWD rule and require a password, or scope it to a few read-only commands.
Control of the Docker daemon is equivalent to root on the host.
Remove the agent's access to the Docker socket or put a restricted proxy in front of it.
Membership in these groups lets a process act as root on this computer.
Remove the agent's user from these groups and give it a narrow, dedicated path instead.
An allow rule lets the agent run broad shell commands without asking you.
Remove broad Bash allow rules or narrow them to the specific commands the agent needs.
An agent running as you can read the key and use it to log in to the machines it is authorized for.
Add a passphrase (ssh-keygen -p -f <key>) or replace the key with a short-lived one.
An agent could read these saved logins and act as you.
Remove credentials you no longer use, keep permissions at 600, and prefer short-lived tokens.
An agent could read these saved logins and act as you.
Remove credentials you no longer use, keep permissions at 600, and prefer short-lived tokens.
Other local users or processes can read this file.
Restrict this file to its owner (chmod 600).
Any agent you start inherits these variables and can read the credentials.
Remove long-lived credentials from your shell environment; use a credential helper or short-lived tokens instead.
Its contents look like credentials an agent could copy or use.
Remove it if unused; otherwise keep it outside the home and prefer short-lived credentials.
A local coding agent can run with your user permissions.
Review its permission mode and avoid bypass/dangerous flags.
Each host in your SSH setup is somewhere an agent could connect using your keys.
Remove unused keys and hosts, and give agents a dedicated key with limited reach.