Open Source · AGPL-3.0

Leave no
model untraced.

Forensically sound AI artifact collector & analyzer. Collect evidence from 21+ AI platforms, map to MITRE ATLAS, generate STIX 2.1 reports. Built for DFIR professionals.

0
Collectors
0
Velo Artifacts
0
Report Formats
trace — forensic session
$ trace discover
Discovered 5 AI platform(s):
ollama (inference)
hermes (agent)
text_generation_webui (inference)
llama_cpp (inference)
huggingface (cloud)
$ trace collect --output /evidence --deep
✓ ollama: 14 artifacts collected
✓ hermes: 60 artifacts collected
✓ huggingface: 68 artifacts collected
✓ text_generation_webui: 2 artifacts
Collection complete: 144 artifacts from 4 platforms
$ trace analyze /evidence --mitre-atlas --risk-score
Timeline: 144 events
IOCs: 8,261 indicators found
ATLAS mappings: 2,235 technique mappings
Risk Score: 12/100 (Low)
$ trace report /evidence --format all
html: /evidence/report.html
json: /evidence/report.json
stix: /evidence/report.stix.json
$

Built for security professionals

Forensic Soundness Chain of Custody STIX 2.1 Export Cross-Platform Velociraptor Integration
Capabilities

Forensic-grade AI evidence collection

From discovery to courtroom-ready reports. Every step verified, every artifact hashed, every timestamp UTC.

Discover

Scan endpoints for 21+ AI platforms — inference engines, agent frameworks, dev tools. One command reveals what's running.

Collect

Read-only forensic collection with SHA-256 hashing per file. Deep mode captures session history, conversations, and credentials.

Analyze

Unified timeline, IOC extraction (URLs, IPs, domains, API keys), MITRE ATLAS mapping, and risk scoring 0–100.

Report

Generate HTML forensic reports, structured JSON, and STIX 2.1 bundles. Ingest directly into MISP, OpenCTI, or your SIEM.

Fleet Deployment

7 Velociraptor VQL artifacts deploy across your fleet. Hunt for AI tools on every endpoint from a single server.

Forensically Sound

Read-only collection. SHA-256 hash verification. Chain of custody manifest. UTC timestamps. No agents, no footprints.

21 Collectors

Every major AI platform

Inference engines, agent frameworks, development tools, and cloud caches — TRACE finds them all.

🦙

Ollama

14+ artifacts

Config, model manifests, Ed25519 signing keys, conversation DB, CLI history

🔬

LM Studio

8+ artifacts

Settings, LevelDB conversations, session store, model registry

🧠

GPT4All

6+ artifacts

chat.db (SQLite), settings.json, model cache paths

💬

text-generation-webui

6+ artifacts

settings.yaml, chat logs, character definitions

llama.cpp

2+ artifacts

Process detection, shell history, HuggingFace cache

🐉

KoboldCpp

4+ artifacts

Config JSON, session saves, process detection

🎓

Unsloth

4+ artifacts

Config, model cache, training logs, HF integration

🔀

LiteLLM

5+ artifacts

config.yaml, proxy logs, API key store, spend tracking

🌉

Bifrost

3+ artifacts

Gateway config, session cache, routing rules

🤖

Hermes

60+ artifacts

Sessions, state.db, memories, cron, secrets, skills, logs, auth

🔄

AutoGPT

4+ artifacts

ai_settings.yaml, .env, workspace, file_logger

👥

CrewAI

4+ artifacts

crewai.toml, .env, ChromaDB memory, knowledge base

🧑‍💻

Devin

5+ artifacts

Session state, workspace, auth tokens, command history

🧿

Eigent

4+ artifacts

Agent config, session logs, tool registry, credentials

🕵️

Shadow AI

meta-collector

Meta-collector: correlates evidence across all other collectors

✏️

Aider

3+ artifacts

.aider.chat.history.md, input history, tags cache

🎯

Cursor

4+ artifacts

globalStorage SQLite, .cursorrules, settings

🔮

Claude Code

4+ artifacts

~/.claude/ directory, projects, auth tokens

🐚

Shell-GPT

3+ artifacts

History, .sgptrc config, role definitions

🪐

Antigravity

4+ artifacts

Project state, session history, auth tokens

VSCodium

3+ artifacts

globalStorage SQLite, settings, extension state

🤗

HuggingFace

12+ artifacts

Model configs, refs, snapshots, auth tokens

Workflow

Discover → Collect → Analyze → Report

🔍
STEP 1

Discover

Detect installed AI platforms across the system — inference engines, agents, dev tools.

📦
STEP 2

Collect

Read-only forensic collection with SHA-256 hashes and chain of custody manifest.

📊
STEP 3

Analyze

IOC extraction, MITRE ATLAS mapping, unified timeline, risk scoring 0–100.

📋
STEP 4

Report

HTML forensic reports, structured JSON, STIX 2.1 bundles for MISP/OpenCTI.

Velociraptor Integration

Fleet-wide AI discovery

Deploy 7 Velociraptor VQL artifacts across your entire fleet. Hunt for AI tools on every endpoint from a single server — no agent installation required.

IONSEC.TRACE.AI.Inference
Ollama, LM Studio, GPT4All, text-generation-webui, llama.cpp, KoboldCpp
IONSEC.TRACE.AI.Agents
Hermes, AutoGPT, CrewAI, Aider, Shell-GPT
IONSEC.TRACE.AI.DevTools
Cursor, Claude Code, Continue, Cline, Warp
IONSEC.TRACE.AI.APIKeys + Network + Processes + HuggingFace
Credential scanner, network detection, process detection, HF cache
Velociraptor VQL
# Hunt for AI inference across all endpoints
SELECT Hostname, Platform, Version,
ConfigPath, ModelCount
FROM Artifact(
IONSEC.TRACE.AI.Inference(
CollectChatHistory=TRUE,
DeepCollection=FALSE
)
)
# Find endpoints running Ollama
SELECT * FROM Artifact(
IONSEC.TRACE.AI.Processes)
WHERE ProcessName =~ "ollama"
Get Started in 30 Seconds

Install. Discover. Trace.

Install
$ pip install ionsec-trace
Discover
$ trace discover
Collect
$ trace collect -o /ev
CLI Reference
$ trace --help
Usage: trace [OPTIONS] COMMAND
discover Detect installed AI platforms
collect Collect forensic artifacts to directory
analyze Analyze evidence (timeline, IOCs, ATLAS, risk)
report Generate HTML/JSON/STIX reports
scan Quick triage scan
# Options:
--deep Include session-level data
--platforms Filter: ollama,hermes,cursor
--mitre-atlasMap findings to ATLAS techniques
--risk-score Calculate risk score (0-100)
--format html | json | stix | all
Threat Intelligence

MITRE ATLAS mapping

TRACE automatically maps collected evidence to MITRE ATLAS techniques, giving you actionable threat intelligence.

AML.T0048
AI Tool Integration
Detect AI tool usage and configuration on endpoints
AML.T0025
Modify Model
Identify model tampering and unauthorized modifications
AML.T0050
LLM Data Exfiltration
Detect outbound data patterns from AI conversations
AML.T0055
Credential Access
Find exposed API keys and auth tokens in configs
12 out of 100 LOW HIGH

Risk scoring that matters

TRACE calculates a composite risk score across four categories, each weighted 0–25, giving a total of 0–100.

Credentials 0/25

Exposed API keys, auth tokens, .env files

Exfiltration 10/25

URLs/domains in conversations, outbound data patterns

Jailbreak 0/25

Prompt injection patterns, system prompt leakage

Autonomy 2/25

Agent frameworks, autonomous execution evidence

FAQ

Frequently asked questions

What does "forensically sound" mean?
Read-only collection (no source modification), SHA-256 hash verification per file, chain of custody manifest with timestamps and tool version, all timestamps in UTC, and evidence packages are append-only. TRACE leaves zero footprint on the target system.
What platforms does TRACE support?
21 collectors across 4 categories: Inference engines (Ollama, LM Studio, GPT4All, text-generation-webui, llama.cpp, KoboldCpp, Unsloth, LiteLLM, Bifrost), Agent frameworks (Hermes, AutoGPT, CrewAI, Aider, Shell-GPT, Devin, Eigent), Dev tools (Cursor, Claude Code, Antigravity, VSCodium), and Cloud caches (HuggingFace). A Shadow AI meta-collector correlates evidence across all collectors. More platforms are being added.
How does Velociraptor integration work?
TRACE ships 7 Velociraptor VQL artifact YAML files. Upload them to your Velociraptor server and deploy across your fleet. No agent installation needed — Velociraptor handles remote collection. Artifacts cover Inference, Agents, DevTools, APIKeys, HuggingFace, Network, and Processes.
Can I use TRACE in incident response?
Absolutely. TRACE was designed for DFIR professionals. The chain of custody manifest, SHA-256 hashes, and UTC timestamps make evidence court-ready. STIX 2.1 output integrates with MISP, OpenCTI, and major SIEM platforms.
What license is TRACE under?
IONSEC TRACE is released under AGPL-3.0-or-later. Free to use, modify, and distribute. Contributions welcome via GitHub.

Ready to trace?

Install in 30 seconds. Discover AI platforms. Collect evidence. Generate reports. All forensically sound.

View on GitHub
$ pip install ionsec-trace