Skip to lesson
Exit
Behavioral, Values & Why Cursor1 / 2

1 min lesson

Agents could run a small allowlist

Tell someone how to act on this idea. "Agents could run a small allowlist."

Step 1 of 2

Say it like this

"No one owned what our coding agent was allowed to execute and that kept me up at night. An indirect prompt injection could turn a file read into rm -rf on a user's repo. I scoped it to command execution first, since that's the worst outcome, and shipped a deny-by-default executor behind a flag. Agents could run a small allowlist; anything else queued for a human. We watched the deny logs for a week, widened the allowlist from real usage and within a month every agent command on customer machines went through that chokepoint. I defined the problem, picked the riskiest slice and shipped something reversible instead of waiting for a perfect policy."