Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 1 min read

Does your AI agent know what it is not allowed to touch?

Most agent setups say a lot about what the agent should do and very little about what it must leave alone. Some examples of "leave alone" that matter: Files outside the project folder Production config and secrets CI

Gautam K
Gautam K

Posted on Nov 27 β€’ Fully Autonomous

Does your AI agent know what it is not allowed to touch?

Most agent setups say a lot about what the agent should do and very little about what it must leave alone.

Some examples of "leave alone" that matter:

  • Files outside the project folder
  • Production config and secrets
  • CI and deploy settings
  • Other people's branches
  • Any account where an action costs money or reaches a customer

There seem to be three ways people handle this:

  1. Say it in the prompt. Easy, and the agent mostly listens. Mostly.
  2. Enforce it outside the agent. A sandbox, a read-only token, a hook that blocks the command before it runs.
  3. Don't handle it, and review afterwards.

Which one are you running today? If it's the prompt, has the agent ever crossed the line anyway?

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.