Join our Newsletter — 33% off our NHI Course
Home Glossary AI Security ReAct Prompting
AI Security

ReAct Prompting

← Back to Glossary
By NHI Mgmt Group Updated August 28, 2026 Domain: AI Security

ReAct prompting combines reasoning and acting so a model can think, call a tool, observe the result, and continue. It is used for agentic workflows that need retrieval or external system access. Because it can trigger real actions, ReAct needs infrastructure controls, not just prompt design.

Expanded Definition

ReAct prompting is a prompt pattern for AI systems that interleaves reasoning steps with tool use, allowing a model to decide what action to take, observe the outcome, and then continue the task. In practice, it is less a single prompt than an orchestration style for agentic workflows that combine an LLM with retrieval, APIs, browsers, ticketing systems, or other execution surfaces.

Its security significance comes from the fact that the model is not only generating text. It may request data, transform records, or initiate actions that affect business systems. That means ReAct sits at the intersection of prompt engineering, access control, secrets handling, auditability, and human oversight. Definitions vary across vendors on how much autonomy a ReAct loop should have, so the safest interpretation is to treat it as an execution pattern with controllable steps rather than a mere conversational technique.

The most common misapplication is treating ReAct as a harmless prompting style, which occurs when teams connect a model to tools without constraining permissions, validating outputs, or logging each action.

Examples and Use Cases

Implementing ReAct prompting rigorously often introduces latency and control overhead, requiring organisations to weigh faster task completion against tighter governance and more detailed monitoring.

Common uses include:

  • Help desk automation where the agent checks a knowledge base, confirms context, and drafts a response before escalating an issue.
  • Security operations triage where an AI agent queries SIEM alerts, enriches them with context, and prepares an incident summary for analyst review.
  • Enterprise search and retrieval where the model searches approved sources, evaluates relevance, and cites findings in a structured answer.
  • Workflow execution where the agent reads a request, uses an approved API to update a record, and records the result for audit.
  • Agentic governance testing where defenders simulate chained tool use to assess whether prompts can trigger unsafe actions.

For organisations designing these workflows, NIST SP 800-53 Rev 5 Security and Privacy Controls is useful because it frames the surrounding controls needed for access enforcement, audit logging, and system monitoring. ReAct is not the control itself; it is the operating pattern that must be wrapped in controls.

Why It Matters for Security Teams

Security teams need to understand ReAct prompting because it changes the risk profile of LLM use from passive generation to active execution. Once a model can read tools, fetch sensitive data, or trigger workflows, failures can include overbroad access, unapproved side effects, data leakage, or hidden prompt injection paths. In identity-heavy environments, the challenge often becomes whether the agent is acting under a real identity, a delegated NHI, or a shared service account, and whether that authority is bounded tightly enough for the task.

This is where governance has to extend beyond prompt review into identity, secrets, and authorization design. Controls from NIST SP 800-63 Digital Identity Guidelines help teams think about assurance and binding, while zero trust principles reduce the chance that a tool-connected agent inherits more reach than intended. ReAct also intersects with broader AI governance because the model’s intermediate reasoning can influence downstream system behaviour in ways that are difficult to predict or replay.

Organisations typically encounter the real cost of ReAct only after an agent has changed data, exposed secrets, or amplified a malicious instruction, at which point the pattern becomes operationally unavoidable to contain.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, NIST AI 600-1, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST AI RMFAI RMF covers governance and risk management for agentic AI patterns like ReAct.
NIST AI 600-1The GenAI profile addresses operational risks from generative AI systems using tools.
NIST CSF 2.0PR.AC-4CSF access control guidance applies when ReAct agents call systems on behalf of users.
NIST SP 800-53 Rev 5AU-2Audit and accountability controls are essential for tracing ReAct tool actions.
OWASP Agentic AI Top 10OWASP Agentic AI guidance addresses tool abuse, prompt injection, and unsafe autonomy.

Assess model behaviour, tool access, and logging before allowing action-taking workflows.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org