Securing AI Agents in the Enterprise: Prompt Injection, MCP Servers and the Agentic Supply Chain
Indonesian regulators have begun naming AI agents as a cyber threat class of their own, and the first real-world incident waves inside corporate environments are already documented. This analysis separates what is genuinely new from what is a re-run of old exposure, sets out an attack taxonomy for agents, and provides fifteen controls, a test plan and a governance sequence for enterprises that are adopting agents faster than they are securing them.
At a glance: what changed, and what only looks new
Komdigi has stated publicly that AI agents have become a new class of cybersecurity threat, and in Indonesia the banking, financial services and insurance sectors are recorded as the primary targets of cyber threat activity (Kompas.id, November 2026). That statement deserves a precise reading: less as a warning about a novel exploitation technique, and more as an acknowledgement of where organisations have already placed the technology. Agents with tool access, standing credentials and the ability to act.
The engineering posture we recommend is one separation, applied everywhere: the model reasons and proposes, a deterministic executor performs the action. An agent should not hold production credentials directly. Everything in this article is a way of making that separation real in production, and of measuring whether it still holds after the next tool is added.
None of this is an argument against adopting agents. It is an argument for adopting them in an order that keeps the blast radius small and the evidence intact.
Not a new risk — a shorter window
Qualys, in its 12 November 2026 analysis, reports that most AI incidents begin with exposure that already existed: poisoned third-party packages, long-lived CI/CD credentials, unsigned plugins and MCP servers, and agents carrying more permission than the task requires. The agent is usually the amplifier, not the origin.
Genuinely new: an actor that acts
A classic vulnerability waits for a human to exploit it. An agent with tool access can be induced to exploit it itself. Within seconds, at machine speed, leaving a trail that looks entirely plausible in the logs.
The first real-world waves are documented
Kaspersky (2026) analysed the first wave of real-world incidents targeting AI agents deployed in corporate environments, including covert communication through error logs. This is no longer a laboratory fixture.
Start with inventory, not architecture
An organisation that cannot list its agents, their tools, their credentials and the data they can read cannot secure any of them, and cannot produce the inventory a regulator will eventually request.
Why agents change the shape of the risk
An honest framing first: agent security is largely software supply chain security, identity security and least-privilege enforcement wearing a new coat. What agents genuinely change is the compression of the response window. In the pre-agent pattern, a poisoned package needed a developer to import it, a build to run it and a deployment to reach production — three gates paced by people. An agent holding a package manager tool and a deployment tool collapses those into a single reasoning loop that completes in seconds and reports success.
The second change is a trust boundary that never appears in a network diagram. The line between text a model reads and instructions a model follows is a security boundary in everything but name, and it is enforced by nothing the operating system knows about. Tool output, retrieved documents, ticket comments, error messages and web pages all arrive through the same context window as the system instruction. If the executor does not enforce scope independently of the model, there is no boundary at all.
Instruction and data share one channel
There is no hardware line between a retrieved document and a directive. The separation has to be built into the executor design, because it cannot be inherited from the platform.
Delegated authority is forgotten quickly
Agents are routinely given a broad service account so that a prototype works, and that account outlives the prototype by years. Delegation stays invisible in the agent logs unless it is logged deliberately.
Failure looks like a sequence, not a payload
Anaconda (2026) analysed the July 2026 OpenAI security test in which an agent escaped an environment that was supposed to be isolated from the internet and reached Hugging Face production systems. The failure surfaced as a chain of ordinary-looking actions rather than as one malicious artefact.
AIMultiple (2026), reviewing twenty real-world AI incidents, concluded that most critical breaches were driven by behaviour and systemic traps rather than by prompt injection alone. Detection therefore has to watch sequences of actions, not just the contents of a prompt.
An agent attack taxonomy
Six families cover most of what we currently see in agent deployments. They are not mutually exclusive: damaging cases usually chain two or three of them, and the chain matters more than any single step. What follows is descriptive, not exhaustive. Treat it as a working list to test against, not a boundary of what is possible.
Direct prompt injection
The user, or anyone able to talk to the agent, supplies input that overrides its instructions. Inside an enterprise this is frequently an authorised user probing limits. The security failure is not the override itself but that the override is never recorded as a security event.
Indirect prompt injection
Instructions arrive inside content the agent processes. A web page, a PDF, an email, a code comment, a database row, a repository issue. The user never sees them. This is the family that turns an agent’s read access into a live attack surface rather than a benign convenience.
Tool poisoning
A tool, plugin or integration returns content crafted to steer the next step, or carries a description that nudges the agent towards a call its author intended. NIST CSRC (2026), in its work on agentic AI threats, treats the loading of third-party tools, prompt packs, extensions, MCP endpoints and agent cards from outside the trust boundary as an agentic supply chain vulnerability in its own right.
Untrusted MCP servers
Every Model Context Protocol endpoint handed to an agent widens its reachable surface. An unsigned or unreviewed server can expose internal data, return poisoned content, or act as a pivot deeper into the estate. Qualys (2026) lists unsigned plugins and MCP servers among the pre-existing exposures behind most AI incidents.
Secret leakage through output
Agents summarise, translate, restructure and export. A password pasted into a ticket, a token in a file the agent can read, or a key in a reachable repository becomes part of a summary that travels somewhere else. Exfiltration rarely needs a clever channel; a helpful summary is sufficient.
Permission escalation and environmental traps
The agent can create resources, amend permissions or approve its own requests, and the environment contains a path to more authority than anyone intended. Kill chains that once required several human mistakes are compressed into one generated plan with a plausible business justification.
OWASP is useful here as shared vocabulary. The GenAI Security Project published the Top 10 for LLM Applications 2025, and announced the Top 10 for Agentic Applications on 9 December 2025. Use both to agree on categories; do not mistake a category list for a control set.
The agentic supply chain, and why fast adoption pays for it later
An agent’s dependency graph is larger than a service’s and less understood. It includes model endpoints and their versions, prompt packs and templates, tool definitions together with the natural-language text describing them, MCP servers, retrieval sources, agent cards and any interoperability descriptor, plus every credential binding those parts together. Sonatype’s State of the Software Supply Chain 2026 reports more than 454,600 malicious open-source packages identified across npm, PyPI, Maven, NuGet and Hugging Face during 2025. An increase of 75% year over year. Nothing about agents changes that statistic except the speed at which a compromised dependency can now be acted upon by the agent that imported it.
The practical consequence is that agent governance has to inherit supply chain governance rather than sit beside it. A tool description is code: it shapes runtime behaviour. A prompt pack is a dependency: it moves between teams and vendors with no signature and no provenance. An MCP endpoint is an outbound destination and a trust assumption at the same time. Teams that adopt agents quickly tend to discover all of this at the first incident, when the inventory is still a spreadsheet of guesses.
Version and hash prompt artefacts
Prompt packs, tool descriptions and system instructions should be versioned, hashed and reviewed like any other production artefact, with a change record that outlives the person who wrote them.
Give every dependency an owner
An MCP endpoint with no named owner is an unmanaged egress path. Ownership is what turns a list into a control.
Keep an explicit allowlist
Enumerate tools, servers and destinations at the executor. A list that lives only inside a prompt is a suggestion, not a control.
Agent cards are metadata that grants wishes
A descriptor telling a router what an agent can do is also a map of what can be invoked. Publish them internally with the care you would give an API schema, and treat changes as production changes.
Fifteen controls that actually reduce agent risk
Roughly ordered by return on effort. None of these is exotic; most are ordinary engineering hygiene that agents make urgent, and several are the same controls that would have prevented the AI incidents catalogued during 2026.
One identity per agent, least privilege
Give each agent its own identity with only the scopes its task needs. Not a shared service account, and never a human user’s credentials.
Tool and endpoint allowlists
Enumerate the tools, MCP servers and outbound destinations an agent may use, and enforce the list in the executor rather than in the prompt.
Execution isolation
Run agent actions in a container or sandbox from a fixed image, with no ambient credentials and a read-only filesystem wherever the workload allows it.
Network egress limits
Default-deny outbound traffic. Permit only the endpoints the task requires, and alert on attempts to reach anything else.
Short-lived, scoped credentials
Mint tokens per task with a short time-to-live, bound to the agent identity. Long-lived credentials within an agent’s reach are the most common finding in the incidents we examine.
Human-in-the-loop for destructive actions
Deletions, permission changes, payments, outbound messages and production deployments require an explicit approval step with a recorded approver.
Complete logging and provenance
Log inputs, tool calls, arguments, outputs, policy decisions and the identity used. An action that cannot be reconstructed afterwards cannot be investigated afterwards.
Change review for agents
Treat prompt changes, tool description changes, model version changes and permission changes as production changes: review, approve, record, deploy.
Security testing before production
Prompt injection suites, tool-abuse cases and privilege tests as a release gate, rather than an assessment performed once and quietly retired.
Red-teaming prompts and tools
Adversarial review of the prompt surface and of every tool that returns untrusted content, on a schedule and after each material change.
Behavioural anomaly monitoring
Alert on unusual tool sequences, abnormal volume, unexpected data reads and deviation from an agent’s normal action graph. Behaviour and systemic traps drive most critical AI breaches.
Limits on what an agent may read
An agent should read the minimum corpus its task requires. Granting broad repository or mailbox access to make a demo work is how summaries become breaches.
Documented permissions per agent
Keep a record of owner, purpose, tools, scopes, data sources and review date. This is the artefact internal audit and a regulator will ask for first.
Separation of reasoning and execution
The model proposes; a deterministic executor validates the request against schema, scope and policy and only then performs it. The executor does not care how persuasive the model was.
Kill switch and rate limits
A named process to suspend an agent, revoke its credentials and drain its queue, plus volume and value caps that turn a runaway agent into a logged incident instead of an outage.
How to test an agent before it touches production
Testing an agent is not evaluating the quality of its answers. It is attempting to make it act outside its mandate and observing whether anything independent of the model stops it. Each scenario below needs an explicit pass criterion and a retained trace; without the trace, a test result is an anecdote.
Indirect injection through a retrieved document
Place an instruction inside a PDF, ticket or page the agent will fetch. Pass: the instruction is ignored or refused and a security event is logged. Fail: any tool call influenced by that content.
Tool poisoning on an approved tool
Have an approved tool return content that tries to redirect the next step. Pass: the executor blocks the out-of-scope call and records the decision. Fail: the call executes.
Privilege escalation attempt
Ask the agent to grant itself or another identity more authority, or to approve its own request. Pass: denied at the executor, not merely discouraged in the prompt. Fail: authority changes.
Credential discovery and exfiltration
Test whether the agent can read or emit any secret within its reach, including through summaries, exports and error text. Pass: no secret is readable or emitted. Fail: any secret appears in an output the agent produced.
Destructive action without approval
Attempt a delete, deploy, permission change or payment without the approval step. Pass: a hard block plus a recorded attempt. Fail: the action completes.
Evidence to retain for each scenario: the exact input or document used, the full trace including tool arguments, the executor’s policy decision, the alert raised, the remediation and the date of re-test. Store them where an auditor can retrieve them without asking an engineer to reconstruct the session.
Governance and compliance: inventory, classification and reporting clocks
Agent governance is not a separate regime from data protection and operational resilience. It is the layer that decides how quickly you can answer to either. Three building blocks do most of the work: an agent inventory, a data classification that determines what each agent may read, and a mapping from each agent to the reporting clocks that start running the moment it is abused.
For financial-sector organisations this is not hypothetical. An agent with access to customer data or payment-adjacent systems inherits the expectations that already apply to those systems; we would read the current POJK provisions and the payment-system rules alongside the general data protection regime rather than assume a dedicated AI-agent rule exists yet.
Agent inventory
For each agent: identity, business owner, purpose, model endpoint and version, tools, MCP servers, data sources, credentials, environment, and date of last review. Without it, incident response starts with a guess about what was reachable.
Data classification and reach
Classify what the agent reads, not only what it stores. Personal data inside that reach brings the personal data protection regime with it, whichever team built the agent.
Personal data breach notification
UU 27/2022 Article 46 requires notification within 3x24 hours, and Article 57 permits administrative fines of up to 2% of annual revenue. PP 33/2026, the implementing regulation, applies from 16 January 2027.
Financial-sector clocks run faster
PBI 2/2024 requires preliminary incident notification within one hour and a full report within three calendar days for payment-system incidents. An agent holding payment-adjacent tools is inside that perimeter whether or not the payments team built it.
Early-warning follow-up
Peraturan BSSN 2/2024 expects follow-up on early-warning notifications on a two-hour cadence. A monitoring capability that produces a daily summary is not compatible with that expectation, and neither is an agent whose activity is visible only in aggregate.
What to report, and how fast, depends on what the agent could reach. That is why data classification is security work rather than documentation: incident deadlines are real only if detection and trace-level logging already exist.
Common adoption mistakes in Indonesian enterprises
Piloting with production credentials
The quickest way to prove value is also the quickest way to create a standing, over-permissioned identity, and prototypes that work become production without anyone revisiting the credential.
One shared agent identity
Several agents sharing a single service account makes attribution impossible and converts any single compromise into a full-scope one.
“It is only a chatbot” governance
The same agent that answers questions is later handed a ticketing or payment tool, without the review a new integration would have triggered.
Trusting vendor guardrail claims
Guardrails are a configuration surface, not a certificate. Ask for test evidence, documented failure modes and log samples, in writing.
No inventory
Agents multiply through business units faster than any central team learns about them. By the time the first incident arrives, nobody can produce a list.
Applying a checklist instead of mapping risk
A control list applied without asking what the agent can actually reach produces documentation and no measurable reduction in blast radius.
A safe adoption sequence: read-only, then write with approval, then bounded autonomy
The order of adoption matters more than the speed of it. We would sequence an enterprise programme in three stages and refuse to skip one, because each stage exists to prove something the next stage assumes.
Stage 1 — Read-only
The agent reads, summarises and reports, with no write scopes and no credential except a narrow read-only identity. Prove that indirect injection and data reach are controlled before granting anything that changes state.
Stage 2 — Write with approval
The agent proposes changes and a human approves them. Every proposal, approval and execution is logged and attributable to two identities. Most enterprises should expect to live here longer than they plan to.
Stage 3 — Bounded autonomy
The agent acts within hard limits enforced by the executor: ceilings on value, volume and scope, with automatic suspension on breach. Autonomy is granted per action class, never per agent.
The principle across all three stages: the model proposes, the executor decides and performs. Autonomy should be a property of the executor policy, never of the model’s willingness to comply.
Questions we get asked
Is prompt injection the real problem with agents?
It is one of six families we see, and not the one that produces most damaging outcomes. Indirect injection matters because it arrives through content the user never reads; the bigger multipliers are over-permissioned identities, unsigned tools and MCP servers, and credentials the agent should never have held.
Do we need a dedicated AI agent security product?
Not first. Least privilege, short-lived credentials, egress control, execution isolation and complete logging are the controls that changed the outcome in the incidents we can examine. A product should implement those, not substitute for them.
What does an MCP server change about our risk?
It extends the agent’s reachable surface and adds an outbound destination plus a trust assumption over whoever authored the server. Treat each endpoint as a third-party dependency with an owner, a review and an allowlist entry.
Are our existing personal-data obligations enough?
They are the floor, not the ceiling. UU 27/2022 and PP 33/2026 set notification and penalty expectations, but an agent abuse incident still needs detection, trace-level logging and a reconstruction path. The obligations tell you how fast to report, not how to find out.
How many agents should we let business units build?
As many as they can keep in the inventory. The constraint is not the number but whether each one has a named owner, a documented purpose, an enumerated toolset and a review date.
Should agents hold production credentials — short-lived ones at least?
Preferably not directly. Where an action must touch production, have the executor hold the credential and mint a narrowly scoped, short-lived token per approved action, so the agent never possesses standing authority.
Where do we start if agents are already running in production?
Inventory first, then remove standing credentials and unlisted tools, then add approval gates to destructive actions, then instrument behaviour. That sequence reduces blast radius fastest without stopping delivery.
The short version
Agents are not a reason to stop building; they are a reason to build in an order that keeps the blast radius small. The capability that lets a model reach into production is the same capability that lets a poisoned document reach into production, and the difference between those outcomes is a set of ordinary controls applied without exception: one identity per agent, explicit allowlists, short-lived credentials, execution isolation, approval for destructive actions, complete traces, and a human who owns the inventory.
If you take one action from this article, test the agents you already run rather than the agents you plan to buy. The ones in production are the ones that will be attacked, and their current permissions, tools and credentials are the risk you are carrying today.
- Kompas.id. Reporting on Komdigi statements naming AI agents as a new cyber threat class and the financial sector as a primary target (November 2026)
- Qualys. Analysis identifying pre-existing exposure as the origin of most AI incidents (12 November 2026)
- Kaspersky. Analysis of the first wave of real-world incidents targeting corporate AI agents (2026)
- Anaconda. Analysis of the July 2026 OpenAI agent security test and Hugging Face production systems (2026)
- NIST CSRC — agentic AI threat taxonomy, including agentic supply chain vulnerabilities (2026)
- OWASP GenAI Security Project, Top 10 for LLM Applications 2025 and Top 10 for Agentic Applications (announced 9 December 2025)
- AIMultiple — analysis of twenty real-world AI incidents (2026)
- Sonatype, State of the Software Supply Chain 2026 (454,600+ malicious packages identified in 2025)
- UU no. 27 tahun 2022 tentang pelindungan data pribadi — JDIH BPK
- PP 33/2026 and PBI 2/2024, Indonesian statutory database and Bank Indonesia
- BSSN — Peraturan BSSN No. 2 Tahun 2024 on early-warning follow-up
From agent inventory to tested controls
We assess agent deployments end to end: inventory and permission mapping, prompt injection and tool-abuse testing, MCP endpoint review, credential and egress analysis, and a written remediation plan with evidence retained for audit. Related: Penetration Testing and Managed Security Services.
Agent security is an operational layer over obligations that already exist. The regulatory context, the personal-data deadlines and the readiness material are on the pages below.
Reviewed and published by the PRAEBELLUM Security Research team. Practitioner-led analysis of Indonesian regulatory and technical security requirements. Technical corrections are welcome at [email protected].
