By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Protected paths and ignore files

Agents need guardrails that keep them away from secrets and from their own configuration. Deny rules on .env and credential paths, ignore files such as .cursorignore, and built-in protection for .git and agent settings folders all help. Ignore files often limit indexing and reads by tools but not what a shell command can open.

Read in this order

  1. OfficialClaude Code: Permission modes (protected paths)Start here: which paths stay protected even in permissive modes.
  2. OfficialCursor: Ignore fileHow ignore files work and where their coverage stops.
  3. OfficialClaude Code: SecurityHow deny rules and sandboxing combine to protect secrets.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.