Skip to main content
Glama
EvidenceGene Court

EvidenceGene Court

by FUYOH666

EvidenceGene Court

CI License: MIT Python 3.12+ Package manager: uv MCP Tests Hackathon

Adversarial autonomous DFIR. A court of AI agents — Prosecutor, Defender, Arbiter — investigates disk and memory evidence through a typed, read-only MCP server. No finding can reach the report without a valid artifact reference in a SHA-256-chained audit log. Hallucinations are not discouraged by prompts — they are structurally rejected at the API boundary.

Built for FIND EVIL! (SANS Institute, 2026) — the first hackathon for autonomous AI incident response on the SIFT Workstation.

Demo video: youtu.be/HerCqv_LA3Q · Pattern: Custom MCP Server + Multi-Agent · Runs fully local (no cloud)

Architecture

On DFIR Madness Case 001 the court autonomously identified the documented implant coreupdater.exe and its C2 connection, promoted it to CONFIRMED by corroborating memory against the disk timeline, and blocked an injected fabricated finding — all on a laptop with a local model. See the accuracy report.

Why this exists

GTG-1002 showed attackers running MCP-orchestrated intrusions at 80–90% autonomy. EvidenceGene Court is the mirror image on defense: the same agent-plus-MCP shape, but with the trust boundary inverted — every tool is read-only, every output is content-addressed, and every claim is audited.

The full investigation runs on a single laptop with a local LLM (LM Studio / any OpenAI-compatible endpoint). Evidence containing PII or privileged material never leaves the machine. The same configuration flag points the court at a cloud API if your policy allows it.

Related MCP server: Protocol-SIFT-Async-Bridge

Architecture (pattern: Custom MCP Server + Multi-Agent)

flowchart TB
  subgraph evidence [Read-only evidence]
    IMG[Disk E01 / Memory image]
  end
  subgraph mcp [sift-gene-mcp — typed MCP server]
    TOOLS[11 typed read-only tools]
    STORE[Artifact store SQLite]
    CHAIN[SHA-256 audit chain JSONL]
  end
  subgraph court [EvidenceGene Court]
    P[Prosecutor]
    D[Defender]
    A[Arbiter]
  end
  GATE[FindingSerializer — fail-closed gate]
  IMG --> TOOLS --> STORE --> CHAIN
  STORE --> P & D
  P --> A
  D --> A
  A --> GATE
  GATE -->|valid artifact_refs| REPORT[Findings: CONFIRMED / INFERRED / ABSTAIN]
  GATE -->|reject + log| A

Security boundaries — all architectural, none prompt-based:

Boundary

Enforcement

No shell, no writes

Tools do not exist on the wire; spoliation impossible

Context-window safety

Tools return bounded previews + artifact_id; full data stays in SQLite

Anti-hallucination

Serializer rejects findings whose artifact_refs are missing/unknown

Tier integrity

CONFIRMED granted only for refs spanning >=2 distinct evidence sources

Runaway loops

Hard max_iterations cap in the court orchestrator

Tamper evidence

Append-only JSONL with SHA-256 hash chain; verify_audit_chain replay

v0.2 — Red-team, Ablation, Jury

Three additions push past "typed MCP + anti-hallucination" (now table stakes):

  • Injection Harness (egc-court redteam) — the GTG-1002 mirror. Autonomously attacks our own defender with 6 payloads mapped to MITRE ATLAS, and proves each is neutralized architecturally (latest: 6/6 defended). Directly answers the judging criterion "are guardrails architectural or prompt-based — tested for bypass?". See docs/ATLAS_MAPPING.md.

  • Counterfactual Ablation (egc-court ablate) — remove one evidence source and watch CONFIRMED collapse to INFERRED. Findings are falsifiable; the tier is earned by the evidence, not asserted by the model.

  • Jury of Models (egc-court jury) — collect evidence once, run the court per juror model, promote only cross-model consensus. Resilient: a juror that errors abstains instead of crashing the panel.

Plus an ATT&CK kill-chain timeline and a self-contained HTML report (egc-court report). Everything new is deterministic and offline-testable; only the jury spends (local) LLM calls. A synthetic mini-fixture (egc-court fixture) runs the whole pipeline in milliseconds without evidence images.

Quick start

# prerequisites: uv, sleuthkit (brew install sleuthkit libewf), python 3.12+
uv sync --extra dev --extra forensics

# health check (LLM endpoint + forensic tools)
uv run egc-court health

# run the MCP server standalone (stdio)
uv run egc-mcp

# run a full court investigation against a case
uv run egc-court investigate --memory /cases/case001/citadeldc01.mem --source memory:dc01

Configuration via .env (see .env.example) — EGC_LLM_BASE_URL defaults to LM Studio at http://localhost:1234/v1.

On the SIFT Workstation (for judges)

All tools used (Volatility 3, Sleuth Kit) ship with SIFT. See docs/TRY_IT_OUT.md for step-by-step instructions.

Dataset

Demo case: DFIR Madness Case 001 — The Stolen Szechuan Sauce (public, with published ground truth). See docs/DATASET.md.

Project layout

Path

What

src/evidencegene/tools/

Typed read-only MCP server + forensic wrappers

src/evidencegene/court/

Prosecutor/Defender/Arbiter orchestrator + LLM client

src/evidencegene/attestation/

FindingSerializer + tiers (the fail-closed gate)

src/evidencegene/artifacts/

Artifact store + SHA-256 audit chain

docs/

Architecture, dataset, accuracy report, try-it-out

docs/submission/

Demo video, diagram, real sample-run logs

Documentation

License

MIT — see LICENSE. Built by Aleksandr Mordvinov. Open source so the DFIR community can build on it.

Available Tools

11 tools
artifact_queryB

Page through or search the full rows of a previously recorded artifact.

Inputs: artifact_id (required), limit, offset, search. Returns: result

cross_validate_processesA

Compare pslist vs psscan artifacts; returns ghost processes (hidden candidates).

Inputs: pslist_artifact (required), psscan_artifact (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

disk_file_timelineB

Sleuth Kit fls — recursive file timeline from a partition (MACB timestamps).

Use path_filter (substring) to focus, e.g. 'Windows/Prefetch' or 'Users'.

Inputs: source (required), image_path (required), sector_offset (required), path_filter. Returns: Bounded view of a tool execution. Full rows live in the artifact store.

disk_partitionsC

Sleuth Kit mmls — partition table of a disk image (E01/raw).

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

verify_audit_chainA

Replay the SHA-256 audit chain; proves the investigation log is untampered.

Inputs: no named parameters.

verify_image_integrityA

Hash an evidence image (sha256/md5) for chain-of-custody. Run this first.

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

vol_cmdlineC

Volatility3 windows.cmdline — process command lines from memory.

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

vol_malfindC

Volatility3 windows.malfind — injected/suspicious executable memory regions.

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

vol_netscanC

Volatility3 windows.netscan — network connections and listeners from memory.

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

vol_pslistC

Volatility3 windows.pslist — processes from the active process list.

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

vol_psscanA

Volatility3 windows.psscan — pool-scanned processes (finds hidden/terminated).

Inputs: source (required), image_path (required). Returns: Bounded view of a tool execution. Full rows live in the artifact store.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 11 tools

    Disambiguation4/5

    Each tool targets a distinct forensic operation, though vol_pslist and vol_psscan both enumerate processes, differing only in technique. The descriptions clarify this, but the overlap is still a minor source of potential confusion.

    Naming Consistency4/5

    The tool names mostly follow a predictable convention with domain prefixes like verify_, vol_, and disk_, but cross_validate_processes and artifact_query break the pattern, making the set slightly inconsistent.

    Tool Count5/5

    With 11 tools, the server is well-scoped for a forensics toolkit. Each tool earns its place, covering integrity checks, memory analysis, disk analysis, and result browsing without unnecessary bloat.

    Completeness4/5

    The set covers the core forensic workflow: evidence integrity, audit verification, memory artifact extraction, disk timelines, and cross-validation. However, it lacks common operations like file extraction or advanced memory analysis, leaving minor gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables autonomous digital forensics and incident response by wrapping SIFT Workstation tools as MCP tools and orchestrating a multi-agent AI pipeline for evidence analysis and remediation planning.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A production-grade, type-safe MCP server for memory forensics via Volatility 3, enabling LLM-assisted incident response without timeouts or evidence spoliation.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that transforms Claude Code into an autonomous DFIR analyst by providing typed, audited forensic tools for disk, memory, timeline, registry, and IOC analysis on the SANS SIFT Workstation.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to conduct evidence-grounded forensic triage of compromised hosts, with architectural safeguards against evidence spoliation and hallucinated findings, supporting self-correction and chain of custody.
      MIT