Tracing an ARTEX-style tool call in Agentmetry
When a policy broker allows a tool call, what evidence tells you the tool actually ran? I built Spoor to answer that question for instrumented ARTEX-style calls in a lab. Spoor gives the policy decision and the exit report the same call ID. Agentmetry keeps both records.
The FBI and Microsoft documented ARTEX activity in real intrusions. The example here is synthetic and runs a harmless worker in a container. It shows what the broker can record on a machine you operate. FBI FLASH · Microsoft analysis
Approve one worker launch
In Spoor v0.2.0 a trusted Linux operator approves one reviewed local image, executable, and argument list. The approval also binds the operator UID and the isolation settings. It expires after five minutes and can be used once. The worker runs without a host bind mount, with a read-only root filesystem and loopback-only networking. The broker stays on the host and requires strict audit before the launcher can start the worker. Spoor v0.2.0 release notes
The Linux CI run launched the worker, stopped a replay of the approval, and forwarded the successful launch and exit to Agentmetry v0.13.0. The stored events shared a call ID and carried exit code 0 on the completion. The approval token stayed out of the local and Agentmetry trails. CI evidence
Read the two events together
Spoor sends authorization when the broker lets the launch proceed and completion when the shim reports the worker exit. Agentmetry v0.13.0 stores both under action.type=tool_called. Count completion events when measuring executions. An authorization with a pending outcome records permission to start.
On the recorder host, set AGENTMETRY_DATA_DIR to the directory containing the saved audit trail and CALL_ID to the ID from the broker's decision record. This query works with plain or wrapped events in audit-forward.jsonl.
python - "$AGENTMETRY_DATA_DIR/audit-forward.jsonl" "$CALL_ID" <<'PY'
import json
import sys
with open(sys.argv[1], encoding="utf-8") as trail:
for line in trail:
record = json.loads(line)
event = record.get("event", record)
args = (event.get("tool") or {}).get("arguments") or {}
adapter = (event.get("source") or {}).get("adapter")
if adapter == "spoor" and args.get("call_id") == sys.argv[2]:
print(args["phase"], event["action"]["outcome"],
args.get("exit_code", "-"))
PYFor a successful synthetic launch, the two rows look like this.
authorization pending - completion success 0
Spoor records the launch and exit. Docker enforces the restrictions inside the worker. The launcher handles approval replays locally before a request reaches the broker.
Run it in your lab
On a Linux lab host with Docker, use the quickstart to build Spoor, start the broker with strict audit, and approve the example worker. Then start the watcher to forward the records to Agentmetry. The release also includes a one-command synthetic trace that runs with a local mock collector. Worker quickstart · Forward to Agentmetry · Synthetic trace