# How to Prevent Prompt Injection in AI Agents

DevFeed: [How to Prevent Prompt Injection in AI Agents](<https://devfeed.tech/articles/how-to-prevent-prompt-injection-in-ai-agents-29790.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/prevent-prompt-injection/>)

Author: sam.nawab@goteleport.com (Sam Nawab)

Published: 2026-02-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [prompt injection](<https://devfeed.tech/topics/prompt-injection.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [agentic-workflows](<https://devfeed.tech/tags/agentic-workflows.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [prompt-injection](<https://devfeed.tech/tags/prompt-injection.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

This article explains how prompt injection affects AI agents that combine system prompts, retrieved context, user input, and tool-related inputs. It describes how manipulated inputs can influence tool calls, API calls, deployment targets, and operational decisions in connected infrastructure, and discusses controls for limiting the impact.

## Source excerpt

Prevent prompt injection in AI agents by understanding how agentic workflows affect infrastructure and what controls help contain blast radius.