Sandbox
@uber/ADR

Agent security tools for Claude Code, Codex, and Cursor

ADR combines three open-source pieces: Discovery finds AI apps, CLI agents, IDE extensions, runtimes, and MCP servers on endpoints; Sensor collects and normalizes agent telemetry; Detection runs ADR-Bench and detector baselines. Together they help you see what agents are doing, test defenses, and spot risky sessions.

1,548 stars144 forksPythonUpdated 6d ago
Who it's for

Builders who run AI coding agents and want visibility into their tools, activity, and failure modes.

What it delivers

You can inventory agent surfaces, collect session traces, and test whether your defenses catch unsafe actions.

What it does

Endpoint discovery

Inventories installed AI apps, CLI agents, IDE extensions, local runtimes, and MCP servers, then flags unknown surfaces for review.

Agent observability

Captures agent intent, tool use, and execution traces across multiple agent tools and platforms.

Security benchmarking

Provides ADR-Bench with 300+ tasks, 133 MCP servers, and coverage of 17 attack techniques.

Threat detection

Uses a two-tier detector with high-recall triage followed by deeper reasoning on suspicious sessions.

Reproducibility docs

Includes step-by-step docs for recreating benchmark runs and paper figures.

How to get it

  1. 1Run
    git clone https://github.com/uber/ADR
    cd ADR/Detection
    uv sync
    export ANTHROPIC_API_KEY="..." OPENAI_API_KEY="..."

README

ADR: Agentic AI Detection and Response

uber/ADR | Trendshift

ADR (Agentic AI Detection and Response) is an enterprise security system for AI agents. It helps organizations secure employee-facing agents such as Cursor, Claude Code, and Codex, as well as customer-facing agents such as AI support agents.

ADR is deployed in production at Uber, and the accompanying paper was accepted to MLSys 2026: Paper PDF · Slides PDF

How ADR secures enterprise AI agents

ADR secures enterprise AI agents through five complementary capabilities: discovering unsanctioned AI tools, observing agent activity, evaluating defenses, detecting threats, and preventing unsafe actions.

  1. ADR Discovery: Find the AI tools present on employee endpoints. Inventories installed AI applications, CLI agents, IDE extensions, local model runtimes, and MCP servers, and flags unknown surfaces for review.
  2. ADR Observability: Understand what AI agents are doing and why. In production, ADR captures agent intent, tool use, and execution traces across 7+ AI coding tools on macOS, Linux, and Windows, as well as internal automation and customer-facing support agents.
  3. ADR Benchmark: Test agent security under realistic enterprise conditions. ADR-Bench includes 300+ tasks, 133 MCP servers, and coverage of all 17 agent attack techniques.
  4. ADR Detection: Detect risky agent behavior efficiently. Its two-tier architecture combines high-recall triage with deeper agentic reasoning for suspicious sessions.
  5. ADR Prevention: Stop unsafe actions before they cause harm. This component is not included in the current open-source release. Stay tuned.

Repository layout

This repository contains the open-source ADR Discovery, ADR Sensor, ADR-Bench, and ADR Detector described in the paper. The offline ADR Explorer engine, which hardens ADR Detection through pre-deployment red teaming, is not included here.

PathADR componentDescription
Discovery/ADR DiscoveryInventory the AI apps, CLI agents, IDE extensions, model runtimes, and MCP servers on an endpoint, and flag unknown surfaces for review
Sensor/ADR ObservabilityCollect and normalize agent telemetry from Claude Code, Cursor, Codex, opencode, Claude Desktop, and others
Detection/ADR Benchmark + DetectionDual-agent detector, 133 MCP servers, 303 benchmark tasks, baselines, figure scripts
docs/REPRODUCIBILITY.mdEvaluationStep-by-step workflow to reproduce benchmark detection and paper figures

Quick start: ADR Detection

git clone https://github.com/uber/ADR
cd ADR/Detection
uv sync
export ANTHROPIC_API_KEY="..." OPENAI_API_KEY="..."

Default detector is adr (ADR dual-agent). For keyless smoke tests, use --detector llamafirewall (see Detection/README.md).

See docs/REPRODUCIBILITY.md for the full evaluation workflow (inflate packed benchmark → run detectors → plot figures).

Component documentation:

Citation

@inproceedings{li2026adr,
  title={ADR: An Agentic Detection System for Enterprise Agentic AI Security},
  author={Li, Chenning and Hu, Pan and Xu, Justin and Ozbas, Baris and Liu, Olivia and Van, Caroline and Li, Manxue and Zhou, Wei and Alizadeh, Mohammad and Zhang, Pengyu and Sriramadhesikan, KK and Zhang, Ming},
  booktitle={Proceedings of the Ninth Conference on Machine Learning and Systems},
  year={2026}
}

Or use CITATION.cff.

Star History

Star History ChartStar History Chart

License

Apache License 2.0. See LICENSE. Detection/benchmark/agentdojo/ is vendored third-party code under its own LICENSE (MIT).

Data notice

Detection/ includes synthetic benchmark fixtures (fake credentials, emulated environments, prompt-injection scenarios) for defensive security research only. Details: docs/OPEN_SOURCE_REVIEW.md.

Files in the repo

Repository payload12 top-level entries
  • .github
  • Detection
  • Discovery
  • docs
  • Sensor
  • .gitignore
  • CITATION.cff
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • LICENSE
  • NOTICE.md
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k