Repository navigation
Releases
Spoor v0.2.2
Spoor v0.2.2 adds a durable audit record when the Linux worker launcher rejects an approval.
- Each record includes the UTC timestamp, request fingerprint, and rejection reason. The JSONL export omits approval tokens, token hashes, and raw arguments.
- A changed, expired, or replayed approval stops before the launcher starts a container or submits a broker request. The Docker metadata preflight still runs before the approval check.
- The launcher upgrades the existing private SQLite database in place. Unexpired approvals issued by v0.2.1 remain usable.
On the Linux worker host, pass the same private state directory you supplied to the launcher.
python scripts/run_isolated_worker.py rejections --state-dir "$state_dir"Worker audit documentation · Implementation and tests · Changes since v0.2.1
The tagged release passed Linux and Windows CI. The Linux Docker test confirmed that a replay creates one rejection record and starts zero containers.
Spoor v0.2.1
Spoor v0.2.1 adds a reproducible backend check for the existing process Sigma rule and a Linux worker launch benchmark.
Verify the Sigma rule
The check parses the rule with pySigma and runs its six synthetic fixtures against Loki 3.7.10. Loki returned the two expected matches and excluded the other four. The guide records the JSON field mapping and how to print the tested LogQL query.
Reproduction guide · Linux and Windows CI
Measure a strict-audit launch
The Linux benchmark runs 25 sequential worker launches after three warmups. It checks that every launch has a durable decision and a matching exit record, and reports median and p95 end-to-end latency on the measured host.
Measured baseline
The published tag passed verification on fresh GitHub-hosted Linux and Windows runners. On Ubuntu 26.04.1 LTS (kernel 7.0.0-1020-azure, x86_64, four logical CPUs), with Docker 29.4.2 and the Cargo dev profile, the median was 349.7 ms and p95 was 379.3 ms over 25 sequential strict-audit launches after three warmups.
The timer covers Docker preflight, approval consumption, container start and exit, and both synced audit records. The image was already local and each approval was issued before timing.
Upstream contribution
ThreatDefence merged four companion fixtures for the Cairn provider marker and the Windows PowerShell launcher, including near misses.
Spoor v0.2.0
Spoor v0.2.0 adds an opt-in isolated Linux worker pilot for trusted lab operators.
What changed
- Launch one worker in a Docker container with a non-root identity, a read-only root filesystem, loopback-only networking, dropped capabilities, and resource limits. The broker and audit trail stay on the host.
- Approve one exact launch. Each approval binds the Linux operator UID, local image ID, executable, arguments, and isolation flags. It expires after five minutes and is consumed once.
- Require strict audit for a worker launch. Spoor correlates the launch decision and exit report with one call ID.
Try it
On a Linux lab host with Docker, build Spoor, start the broker with strict audit, and follow the worker quickstart to approve and run a harmless command. The watcher can forward the two records to Agentmetry.
Worker quickstart · Agentmetry setup
Verified
Linux and Windows CI passed. On Linux, the check confirmed child-process restrictions, approval replay refusal, and strict audit refusal on an unavailable trail. A packaged Agentmetry v0.13.0 instance stored both worker events with the same call ID and the correct exit status. The approval token stayed out of both audit trails.
The pilot assumes a trusted operator, Docker daemon, and reviewed local image. Spoor records the container launch and exit. Docker applies the restrictions inside the container, and the launcher handles approval rejections before reaching the broker.
Spoor v0.1.0
Spoor is an experimental ARTEX audit and detection lab. It records policy decisions and tool completion, keeps a per-call ID, and forwards paired events to Agentmetry.
Try it
From a source checkout with Rust and Python 3.10 or newer, run:
python scripts/run_synthetic_trace.pyThe demo uses harmless commands and a loopback collector. It checks both exit outcomes, strict broker audit, and recovery from a blocked watcher checkpoint.
Audit and policy
- The broker syncs decision and completion records before responding. Strict audit denies an otherwise allowed call when writing or syncing the decision fails.
- A policy regex that exhausts its matching budget denies the call with
regex-budget-exhausted. Agentmetry preserves that rule ID for filtering.
Verified
- Linux and Windows CI passed, including the synthetic trace and six Sigma fixtures.
- The Linux HTTPS test verifies in-process authentication headers, byte-preserving forwarding, and redirect status handling.
- An authenticated Agentmetry v0.13.0 test read back four events for two calls, with their authorization and completion phases, exit codes, and
source.adapter=spoor. Spoor also exported both decisions from Agentmetry's saved trail to TraceSig.
Scope
This is a source release for trusted lab deployments. The broker assumes trusted clients. Use a separate isolation boundary for untrusted workloads and treat audit data as sensitive. The Apache-2.0 license covers Spoor's original code. The adapted ThreatDefence rules retain their MIT notice.