Veritas MCP
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.
README
Veritas MCP — evidence-grounded "Find Evil" DFIR triage
Veritas (Latin, "truth"). A custom Model Context Protocol server that lets an AI agent triage a compromised host the way a senior DFIR analyst does — and that makes the two failure modes the judges care about most, evidence spoliation and hallucinated findings, architecturally impossible rather than merely discouraged by a prompt.
SANS "Find Evil!" Hackathon submission — Approach #2 (custom MCP server).
The problem (and why prompts aren't enough)
The baseline approach to "agentic DFIR" hands a model a shell on a SIFT workstation and a prompt that says please be careful and don't make things up. Two things go wrong:
- Spoliation. A shell can
dd,del, mount read-write, or exfiltrate. One bad tool call destroys the evidence and the case. A prompt asking the model to behave is not a control an examiner can testify to. - Hallucination. LLMs assert tidy conclusions that the data never supported. In forensics an unsupported "finding" is not a minor error — it is the thing that gets a case thrown out.
Veritas removes both at the architecture level.
How Veritas is different
| Concern | Prompt-only baseline | Veritas |
|---|---|---|
| Destroying evidence | "Please don't." | No tool exists that writes to, deletes, or mounts evidence. Evidence handles are opened O_RDONLY; writes resolving inside an evidence root are refused by EvidenceGuard. |
| Running arbitrary commands | execute_shell_cmd |
No shell tool. Only 8 typed, allow-listed, read-only forensic tools. Shell metacharacters and forbidden binaries are rejected in depth. |
| Hallucinated findings | hope | Grounding enforcement: a finding that does not cite the exec_id of a real, recorded tool run is rejected by the server. |
| "Confirmed" vs guess | undifferentiated prose | Explicit confidence tiers (CONFIRMED/INFERRED/HYPOTHESIS/RETRACTED); CONFIRMED requires ≥2 independent source families (disk/log/memory). |
| First-pass mistakes | shipped as final | Self-correcting loop: retracts false positives against a known-good baseline, fills gaps the correlation engine finds (timestomping), and promotes corroborated findings — iterating to a fixed point. |
| Context-window overload | raw tool text dumped into the model | Raw output is parsed server-side into compact typed records; the model reasons over fields, not megabytes. |
| Explainability | none | Append-only JSONL audit log. Every tool run gets a stable exec_id; every finding traces back to it. Full chain of custody. |
| "Trust me, it works" | — | Reproducible accuracy benchmark vs documented ground truth, runnable offline with zero third-party deps. |
Headline result (reproducible: python -m veritas.benchmark)
On the bundled synthetic case WEBSRV01, the same engine with self-correction
turned off (the prompt-only baseline) vs on (Veritas):
| TP | FP | FN | Precision | Recall | F1 | Hallucination | |
|---|---|---|---|---|---|---|---|
| Prompt-only baseline | 6 | 1 | 2 | 0.857 | 0.75 | 0.80 | 0.143 |
| Veritas | 8 | 0 | 0 | 1.00 | 1.00 | 1.00 | 0.00 |
The baseline misses timestomping and the C2 channel, and over-flags a
benign OneDriveStandaloneUpdater.exe. Veritas catches the timestomp via
$SI/$FN correlation, confirms the C2 across memory + network, and retracts
the OneDrive false positive against a known-good baseline.
Quick start (60 seconds, no dependencies)
# from the repo root — pure standard library, simulation mode
$env:PYTHONPATH = "src"
python -m veritas.cli triage # human-readable findings report
python -m veritas.benchmark # the accuracy table above
python -m pytest -q # 46 tests, incl. spoliation-impossibility
Or install it and use the console script:
pip install -e .
veritas triage
veritas benchmark
To drive it from Claude Code as a real MCP server:
pip install -e ".[mcp]"
# .mcp.json + claude/CLAUDE.md + claude/settings.json are included; see docs/TRY_IT_OUT.md
Architecture at a glance
Host agent (Claude Code)
│ MCP (stdio) — only typed, read-only tools are exposed
▼
┌──────────────────────── Veritas MCP server ────────────────────────┐
│ 8 forensic tools ──► Executor (allow-list, shell=False) ──► EvidenceGuard │
│ │ │ (O_RDONLY) │
│ ▼ ▼ │
│ Parsers (raw→typed) AuditLog (append-only JSONL, exec_id) │
│ │ ▲ │
│ ▼ │ grounding check │
│ TriageLoop ──► FindingStore (rejects ungrounded; confidence tiers) │
│ │ ▲ │
│ ▼ │ │
│ CorrelationEngine + KnownGoodBaseline (self-correction) │
└─────────────────────────────────────────────────────────────────────────┘
│ writes ONLY to: exports/ analysis/ reports/ (never evidence)
Full diagram, trust boundaries, and the prompt-guardrails vs. architectural-guardrails distinction are in docs/ARCHITECTURE.md.
Repository map
| Path | What it is |
|---|---|
src/veritas/ |
The engine (stdlib-only core; mcp is an optional extra) |
fixtures/case_websrv01/ |
Synthetic but internally-consistent intrusion + simulated tool output |
fixtures/ground_truth/ |
Documented ground truth used by the benchmark |
tests/ |
46 tests, including proofs that spoliation/hallucination are blocked |
logs/sample_agent_execution.jsonl |
A real captured audit trail from one triage run |
claude/ |
CLAUDE.md operating instructions + settings.json permissions |
.mcp.json |
MCP server registration for Claude Code |
docs/ |
The eight submission documents (see below) |
Submission documents
- This README — overview & quick start.
- docs/ARCHITECTURE.md — design, trust boundaries, guardrail taxonomy.
- docs/ACCURACY_REPORT.md — methodology + reproducible numbers.
- docs/DATASET.md — the synthetic case, how it was built, and why it's safe.
- docs/TRY_IT_OUT.md — step-by-step, incl. Claude Code wiring.
- docs/DEMO_SCRIPT.md — the 5-minute demo-video script.
- docs/SUBMISSION.md — Devpost write-up / story & judging-criteria map.
logs/sample_agent_execution.jsonl— sample agent execution log (chain of custody).
License
MIT — see LICENSE. All bundled case data is synthetic; no real systems, persons, or indicators are represented.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。