How do I prevent prompt injection from making an AI agent take a harmful action?
Assume some injections will get through, and make sure an injected instruction still cannot produce a harmful action. Decide each action outside the model against the task and the authority the agent was given, so text the model reads cannot widen what it may do.
Filters that look for injected instructions help, and they will miss some. The harm comes from the action that follows: the email sent, the record deleted, the data exported. That action is where a deterministic control can hold.
Watchlight AI Beacon evaluates each governed action against policy before it executes, with no language model in the decision. Policy can also narrow what the rest of a run may do once the agent has read sensitive data, such as sending data outside the company.
Keep a stop ready as well. If an agent starts behaving unlike itself, containment can end the run or quarantine the agent before the next action.
