<< Home | Tech
Reduced impact of prompt injection attacks by limiting agency
| Area | Tech |
| AI used | Any |
| Source | r/PromptEngineering |
| Posted | 2026-11-08 |
The move
Restrict the agent's tool access and require human approval for irreversible actions.Steps
- Audit your agent and remove any tools it does not strictly need.
- Implement a mandatory human-in-the-loop approval step for all irreversible actions.
- Treat all external data, such as fetched web pages or user input, as inherently hostile.
- Log all agent actions to ensure any successful injection leaves a clear audit trail.
Prompt for your AI
Review my current agent's tool list: [list tools]. Identify which tools are not strictly necessary for the core task and suggest a workflow to require human approval before the agent executes [list irreversible actions like sending emails or deleting files].
What happened
Developers often fail to stop prompt injection by trying to filter text or instruct the AI to ignore malicious commands. Research shows these methods are unreliable because the AI cannot distinguish between instructions and untrusted data. Instead of trying to prevent the injection, the effective strategy is to limit the damage an AI can do if it is compromised.Watch out
Limiting tool access may reduce the agent's autonomy and utility. Human approval steps introduce latency into automated workflows.Give it to your agent
Read https://howtheyuse.ai/p/reduced-impact-of-prompt-injection-attacks-by-limiting-agency.md and help me do this.