Skip to main content
New to RAXE? Start with the Quickstart and learn how detection works.

Overview

RAXE provides think-time security for LangChain agents — real-time threat detection during inference, before action execution. Protect chains, ReAct agents, tools, memory, and RAG pipelines. What RAXE scans:
  • Agent prompts and reasoning
  • Tool call requests and results
  • Memory content retrieval
  • RAG context injection
  • Agent goal changes
  • Inter-agent handoffs

Installation

Quick Start

quick_start.py

Configuration Options

config.py

Agentic Security Scanning

The LangChain handler includes specialised methods for securing autonomous agents.

Goal Hijack Detection

Detect when an agent’s objective is being manipulated:
goal_hijack.py

Tool Chain Validation

Detect dangerous sequences of tool calls:
tool_chain.py

Agent Handoff Scanning

Scan messages between agents in multi-agent systems:
handoff.py

Memory Scanning

Scan content before persisting to agent memory:
memory.py

Chain Integration

chain.py

Agent Integration

agent.py

RAG Protection

Protect RAG pipelines from indirect injection:
rag.py

Error Handling

error_handling.py

Tool Policy

Restrict which tools agents can use:
tool_policy.py

Monitoring

Check scan statistics:
monitoring.py

Best Practices

Begin with monitoring before enabling blocking:
progressive_rollout.py
Restrict dangerous tools to prevent command injection:
tool_restriction.py
For long-running agents, periodically check for goal drift:
goal_validation.py
Always catch RaxeBlockedError for user-friendly responses:
graceful_handling.py

Supported LangChain Versions

OWASP Alignment

The LangChain integration protects against:

What’s Next

Production Checklist

Deploy RAXE safely with our week-by-week rollout plan

Agentic Scanning

Advanced scanning for multi-agent LangChain workflows