Menu Engagements

Guides

Engagements

Test live systems inside a written scope: authorization, scope, time window, one machine, pacing, and a tamper-evident audit log of every tool call.

An engagement is a test of live systems that stays inside a written scope. It records:

Every agent started in an engagement is Claude Code, Codex or Gemini CLI, with indra guard as its hook. Each tool call it makes is checked against the scope and the window, paced per host, and written to an audit log before it runs.

Create one

Engagements > + New engagement (admins only):

FieldWhat to enter
NameA short name, like Q4 web app test
MachineThe machine its agents run on. They run there only
In scopeOne entry per line: a host (app.example.com), its subdomains (*.example.com, which does not include example.com itself), an IP (10.20.0.5) or a CIDR range (10.20.0.0/24). A URL counts as its host
ExcludedNever tested, even inside the scope (payments.example.com, 10.20.0.1)
Starts, EndsThe window. Outside it, nothing that names a host runs
Noise, Calls per second per hostThe pace: quiet (1), careful (2, the default), balanced (5), aggressive (20), or a number of your own from 0.1 to 100
Budget (US$)Optional: what all its agents may spend on API calls together (see Budget)
Record trafficOn by default: its agents' web requests go through the recording proxy
AuthorizationRequired: who authorized the test, and the reference

Run agents in it

On an active engagement, Run an agent in it asks for the task, the folder on its machine and a profile, then opens the session.

Each agent:

The engagement comes only from the console's own records: a launch request cannot bring its own. End now ends the window and stops the agents running in it.

The audit log

Audit log on an engagement shows everything, newest first:

Each entry holds the SHA-256 of the one before it, and the log shows chain intact only when every entry is unchanged and none is missing. Export CSV or Export JSONL downloads it. The CSV neutralises cells that a spreadsheet would run as a formula.

On the machine, the log is engagements/<id>/audit.jsonl in indra's data folder, readable by its owner only.

What the guard does and does not see

When a host answers 429 (too many requests) or 503 (overloaded), the guard sees it in the tool's output and backs that host off: its next calls wait for the Retry-After it gave, or 2 seconds, then 4, then 8 (at most 5 minutes) while it keeps answering that way. A wait longer than 30 seconds is refused with the reason, so the agent slows down instead of hanging. The audit log shows each backoff.

The guard reads the hosts a tool call names:

It skips file names (main.rs, notes.md), paths and version numbers. When it cannot tell, it errs toward refusing, and its reason tells the agent which host to leave out.

It does not see what a program resolves or connects to by itself: a host read from a file, a redirect, a scanner following links. That is what the recording proxy is for.

The recording proxy

With Record traffic on, each agent gets its own proxy on its machine, on loopback, for as long as it runs. Its tools are pointed at it (HTTPS_PROXY, HTTP_PROXY, and the CA variables curl, Python, Node and git read), so the requests the programs actually make go through it, redirects included.

For each request the proxy:

HTTPS is read with a certificate authority made for that one agent when it starts. Its key never touches the disk, and its certificate is removed when the agent ends. The agent's own model API (Anthropic, the profile's base URL) and the MCP servers the console gave it are tunnelled untouched: never decrypted, never recorded, so their credentials are never seen.

Still not seen: a program that ignores the proxy settings (raw sockets, nmap, a tool told to skip the proxy). For hard enforcement, also firewall the engagement's machine so it can reach only the scope.

Traffic as evidence

Traffic on an engagement lists what was recorded, newest first, searchable by host and by text in the URL or a body; open one to see its headers (cookies and tokens hidden) and bodies. An agent in the engagement reads them with indra traffic:

indra traffic list --host app.example.com --grep '"role":"admin"'
indra traffic show 1764200000000-7          # secret headers masked; --full shows them
indra traffic replay 1764200000000-7        # the same request again: scope, pace and recording apply
indra traffic verify verified.jsonl         # check every citation in a findings file

A finding cites the exchanges that prove it in evidence_traffic, each with a role (baseline, proof, verification, supporting), and optionally a quote and the response's sha256:

"evidence_traffic": [
  { "engagement": "abcd1234", "exchange": "1764200000000-3", "role": "baseline" },
  { "engagement": "abcd1234", "exchange": "1764200000000-7", "role": "proof", "quote": "\"role\":\"admin\"" }
]

A finding is evidence-verified only when every citation holds (the exchange exists, its kept body is unchanged, the quote is in it verbatim) and one proof carries a quote. Check evidence on a run's findings does this on the machines that recorded the traffic. IDs come from indra traffic list; an agent never guesses one.

Coverage

Coverage on an engagement compares its scope with what its agents reached, from the audit log: for each scope entry, the hosts under it that an allowed tool call named or the proxy passed, with how many calls and when the last was, and the entries nothing reached yet. Refused hosts are listed apart.

Budget

An engagement's budget caps what all its agents spend together, as Claude Code reports it at the end of each turn:

Each step is written to the audit log. Spend is what each agent reports, else indra's estimate from its tokens, so the budget holds for Codex, Gemini CLI and subscription logins too (see accounts and usage).

Requirements

API

CallWhat it does
GET /api/engagementsEvery engagement, with its state (scheduled, active, ended)
POST /api/engagements (admins)Create one: {name, machine, scope, exclude, starts, ends, rate, authorization, budget_usd, record} (times in Unix seconds)
POST /api/engagements/{id}/end (admins)End it now and stop its agents
GET /api/engagements/{id}/audit[?format=csv|jsonl] (operators)The merged audit log and whether its chain is intact
GET /api/engagements/{id}/coverageScope entries reached and not, refused hosts, spend against the budget
GET /api/engagements/{id}/traffic[?host=&q=&limit=]Recorded exchanges, newest first
GET /api/engagements/{id}/traffic/{exchange}One exchange, secret headers masked, the start of each body
POST /api/procs with "engagement": "<id>"Start an agent in it