Source: Preliminary findings from the JetBrains Developer Ecosystem Survey 2026 • 15,000+ developers worldwide

Risk pattern
Why it matters
Example scenario
Prompt injection
Agent behavior is overridden through user input, allowing unauthorized tool calls or bypassing approval rules
A user submits a task that also instructs the agent to ignore approval rules and call an unauthorized tool
Indirect prompt injection
Malicious instructions embedded in content the agent reads redirect its actions without the user's knowledge
A support ticket contains hidden text redirecting the agent to forward customer data externally
An agent with full database write access deletes records while running a routine cleanup task
An agent passes an internal API key to a third-party model provider when assembling context for a task
A broad "clean up" instruction leads to a deleted production configuration file
A shared agent returns private repository details to a different team's session due to missing retrieval scope
An agent places a duplicate order based on cached inventory data from a previous API response
An agent sends an external email containing confidential pricing data without requiring confirmation
A failing deployment is retried 30 times, creating dozens of orphaned cloud resources
Broad access increases the blast radius of any failure
Agents include secrets or proprietary data in prompts, exposing them to logs or third-party providers
Agent performs irreversible actions without validation
Agent surfaces data from the wrong project or workspace, violating access boundaries
Agent acts on stale or compromised tool output, producing incorrect or harmful results
Agent performs high-risk actions without a review step, sending unauthorized external communications
Failed actions compound into larger incidents
Over-permissioned tools
Sensitive data leakage
Unsafe tool execution
Cross-project data exposure
Untrusted retrieval sources
Weak human approval boundaries
Autonomous retry loops
Traditional text-only chatbots primarily generate responses, while AI agents can also interact with external tools, access sensitive data, and modify systems. Both require protection against prompt injection and data exposure, but agents introduce additional risks because their actions can have direct consequences beyond the conversation. Securing these workflows requires controls over tool permissions, action validation, and human approval, in addition to prompt filtering and output moderation.
Every tool is a live credential the agent can spend. One call might drop a table, push a branch, or email a customer, and the agent decides when to make it based on text it just read. Two things set the ceiling on the damage: how much the tool's credentials are permitted to do, and whether anything inspects the tool's output before the agent acts on it. Leave both open and you have an unsupervised account with production access.
Indirect prompt injection broadens the attack surface beyond users interacting directly with an agent. Attackers may place malicious instructions in a web page, support ticket, or repository comment that the agent later reads, even without having direct access to the agent itself. Any agent that retrieves, summarizes, or acts on external information inherits this risk, and processing more untrusted sources creates additional opportunities for malicious content to influence its behavior.
Work through the categories in this article against your own deployment: whether direct or indirect injection can redirect the agent, whether its tools are scoped to what the task needs, whether sensitive data can travel through prompts or tool inputs, whether high-risk actions require approval, whether tool outputs get validated, and whether stop conditions exist for retry loops. Combining automated testing with manual red-teaming surfaces most gaps before they become incidents.
Damaso Sanoja is an engineer who is passionate about helping others make data-driven decisions to achieve their goals. This has motivated him to write numerous articles on the most popular relational databases, customer relationship management systems, enterprise resource planning systems, master data management tools, and, more recently, data warehouse systems used for machine learning and AI projects. You can blame this fixation on data management on his first computer being a Commodore 64 without a floppy disk.
Explore JetBrains AI solutions that help you build, use, and scale AI agents across the software development lifecycle.
Run terminal agents through one JetBrains account, with access, models, and usage governed centrally.
Plan, code, debug, and automate tasks with a coding agent that works across your terminal, IDE, GitHub, and GitLab.
Orchestrate AI agents and verify their output directly in JetBrains IDEs, with full control over how changes are reviewed.
Automate software delivery workflows, coordinate agentic work across teams, identify bottlenecks affecting delivery.
Govern AI usage, models, policies, and costs across your organization, including JetBrains and third-party tools.
Give agents shared organizational memory and context that carries across tools, workflows, and execution environments.
An open system of AI products for developers, teams, and organizations – from coding with agents to automating workflows and governing AI at scale.
Continue Exploring the AI Agents for Developers Guide
Learn how to test AI agents in production using evaluation frameworks, benchmarks, monitoring, and reliability practices for autonomous systems.
Explains how AI agent loops work, why infinite loops occur, and practical techniques for preventing runaway execution in production systems.
Learn what Model Context Protocol (MCP) is, how it connects AI agents with external tools and data, and why it matters for developers.