Architecture pattern
Reactive Agent Architecture
Agents designed for responsive workflows, often event-driven, where actions are taken based on immediate inputs or changes in the environment. Utilizes ReAct paradigm and managed APIs for quick interactions.
- 6 key components
- 10 threats
- 10 controls
- 6/10 risk
Overview
A reactive agent architecture is built around the ReAct (Reasoning + Acting) paradigm, where agents dynamically interleave reasoning steps with actions based on real-time environmental feedback. This architecture typically uses KC1.2 (Multimodal LLMs) for processing diverse inputs, KC3.2 (ReAct reasoning) for decision-making, and KC5.3 (Managed APIs) for rapid external interactions. The agent maintains KC4.3 (In-agent cross-session memory) to learn from past interactions while responding to immediate stimuli. This pattern is ideal for real-time monitoring, event-driven automation, and adaptive systems that must respond quickly to changing conditions.
Key components
Threats this pattern exposes
T2 (Tool Misuse) & T11 (Unexpected RCE)
The rapid action-taking nature of reactive agents creates risks when tools are invoked quickly without thorough validation. An attacker can exploit the agent's responsiveness to trigger unauthorized tool executions or inject malicious code through event payloads.
T6 (Intent Breaking) & T7 (Misaligned Behaviors)
The real-time decision-making process can be manipulated through carefully crafted environmental inputs or events. Attackers may craft inputs that cause the agent to deviate from its intended purpose or exhibit harmful behaviors in edge cases.
T5 (Cascading Hallucination)
In fast-paced reactive environments, there's less opportunity for validation between reasoning steps. Hallucinated information from one reasoning cycle can quickly propagate through subsequent actions before being caught.
T15 (Human Manipulation)
Reactive agents that interact directly with users in real-time may be exploited to manipulate human operators through rapid, persuasive interactions that don't allow time for careful consideration.
Mapped threats: T1 Memory Poisoning, T2 Tool Misuse, T3 Privilege Compromise, T5 Cascading Hallucination Attacks, T6 Intent Breaking & Goal Manipulation, T7 Misaligned & Deceptive Behaviors, T8 Repudiation & Untraceability, T11 Unexpected RCE and Code Attacks, T12 Agent Communication Poisoning, T15 Human Manipulation.
Recommended controls
M1 Memory Validation & Sanitization
Implement comprehensive validation and sanitization of AI memory systems, including vector databases, embeddings, and training data to prevent poisoning attacks and ensure data integrity throughout the AI lifecycle.
M2 Tool Sandboxing & Isolation
Implement defense-in-depth isolation for tool execution environments using containerization, virtualization, and strict resource controls to prevent tool misuse, contain breaches, and prevent unexpected code execution.
M4 Prompt Hardening & Jailbreak Prevention
Implement multiple layers of prompt security including structural defenses, behavioral constraints, runtime detection, and advanced techniques to prevent prompt injection, model manipulation, and jailbreaking attempts.
M5 Multi-Stage Reasoning Validation
Implement comprehensive validation of agent reasoning processes using multiple checkpoints, external validators, consistency checks, and fact verification to ensure goal alignment, prevent manipulation, and detect hallucinations.
M6 Comprehensive Security Monitoring & Auditing
Implement end-to-end observability with security-focused monitoring, anomaly detection, tamper-evident logging, and advanced threat hunting to ensure accountability, enable incident response, and detect rogue agents.
M7 Zero Trust & Least Privilege Access
Implement fine-grained access controls with continuous verification, temporary credentials, minimal permission sets, and dynamic privilege management following zero trust principles to prevent tool misuse, privilege compromise, and unauthorized code execution.
M9 Distributed Resource Management & Rate Limiting
Implement multi-layer resource controls with intelligent quotas, circuit breakers, cost management, and distributed rate limiting to prevent resource exhaustion, financial damage, and denial of service attacks while maintaining system performance.
M11 Content Security & Output Filtering
Implement comprehensive filtering and validation of agent outputs to prevent harmful content generation, data leakage, manipulation attempts, and ensure compliance with security policies and regulatory requirements.
M12 Secure Model Training & Validation
Comprehensive security practices for model training pipelines including data integrity verification, training environment hardening, model validation against adversarial inputs, and ensuring reproducibility of training processes.
M13 Secure Development Lifecycle Integration
Embed security practices throughout the AI and agent lifecycle with security design reviews, automated testing gates, dependency scanning, and continuous compliance checks.
Attack walkthroughs
- T2 (Tool Misuse) & T11 (Unexpected RCE) in Reactive: The rapid action-taking nature of reactive agents creates risks when tools are invoked quickly without thorough validation.
- T6 (Intent Breaking) & T7 (Misaligned Behaviors) in Reactive: The real-time decision-making process can be manipulated through carefully crafted environmental inputs or events.
- T5 (Cascading Hallucination) in Reactive: In fast-paced reactive environments, there's less opportunity for validation between reasoning steps.
- T15 (Human Manipulation) in Reactive: Reactive agents that interact directly with users in real-time may be exploited to manipulate human operators through rapid, persuasive interactions that don't allow time for careful consideration.
- EchoLeak: Zero-Click Indirect Prompt Injection: An attacker emails a crafted message that silently triggers Microsoft 365 Copilot to execute hidden instructions, causing the AI to exfiltrate confidential emails, files, and chat logs without any user interaction.
- Goal-lock drift via scheduled prompts: A malicious calendar invite injects a recurring 'quiet mode' instruction that subtly reweights objectives each morning, steering the planner toward low-friction approvals.
- Over-Privileged API: A customer service bot intended to fetch order history also issues refunds because the tool had full financial API access.
- Memory-Based Escalation: An IT admin agent caches SSH credentials during a patch.
- MCP Tool Descriptor Poisoning: A prompt injection in GitHub's MCP where a malicious public tool hides commands in its metadata; the assistant exfiltrates private repo data.
- Replit 'Vibe Coding' Runaway Execution: During automated self-repair tasks, an agent generates and executes unreviewed install or shell commands, deleting or overwriting production data.
- Direct Shell Injection: An attacker submits a prompt containing embedded shell commands disguised as legitimate instructions, resulting in unauthorized system access.
- Memory System RCE: An attacker exploits an unsafe eval() function in the agent's memory system by embedding executable code within prompts.
- Multi-Tool Chain Exploitation: An attacker crafts a prompt that causes the agent to invoke a series of tools in sequence (file upload -> path traversal -> dynamic code loading), achieving code execution.
- Travel Booking Memory Poisoning: An attacker keeps reinforcing a fake flight price; the assistant stores it as truth, then approves bookings at that price and bypasses payment checks.
- Shared Memory Poisoning: The attacker inserts bogus refund policies into shared memory; other agents reuse them, causing bad decisions and financial losses.
- Financial trading cascade: Prompt injection poisons a Market Analysis agent, inflating risk limits.
- Cloud orchestration breakdown: Data poisoning in Resource Planning adds unauthorized permissions.
- Helpful Assistant Trojan: A compromised coding assistant suggests a slick one-line fix; the pasted command runs a malicious script that exfiltrates code.
- Invoice Copilot Fraud: A poisoned vendor invoice is ingested by the finance copilot.
- Self-Replication via Provisioning APIs: A compromised automation agent spawns unauthorized replicas across the network, prioritizing persistence and consuming resources.
References
Source: Agentic Security Hub architecture patterns (editorial, after OWASP Agentic AI T&M v1.1) 2026.11 · retrieved 2026-11