
Runtime behavioral analysis tool that sandboxes suspicious packages in Docker, traces syscalls with strace, maps process cascades into directed graphs, and detects supply chain attacks using YARA signatures, ML anomaly detection, and temporal pattern analysis.

TraceTree Demo
TraceTree (cascade-analyzer) is an autonomous security organism designed for the agentic era. It moves beyond simple scanning into a robust, hardened, and scalable detection ecosystem. Like its mascot, the spider, TraceTree weaves a comprehensive web of protection around your development workflow using its eight specialized "legs."
TraceTree can be used as a review gate before agents or humans trust a package install. See Behavior receipt export for a small JSON/SARIF-friendly receipt shape that summarizes target hash, sandbox policy, observed behavior, artifact hashes, verdict, and privacy defaults without exposing raw syscall logs.
TraceTree/
├── api/ # API stubs
├── codebase-analysis-docs/ # Architecture documents and knowledge guides
├── data/ # Behavioral signatures, rules, and training datasets
├── docs/ # Documentation assets
├── examples/ # Demo scripts and usage examples
├── frontend/ # Next.js/React web dashboard
├── graph/ # NetworkX directed graph builder
├── hooks/ # Git/Shell hooks for background monitoring
├── logs/ # Execution trace logs and strace outputs
├── macapp/ # Native macOS menu bar app
├── mascot/ # Console ASCII spider mascot
├── mcp/ # MCP server security testing module
├── ml/ # Machine learning classification and anomaly detection
├── monitor/ # Core syscall parser, YARA matching, and timelines
├── orchestrator/ # TypeScript multi-agent coordination server
├── repocheckai/ # Repository analysis engine (TypeScript/Node)
├── samples/ # Malware and benign files for sandbox tests
├── sandbox/ # Docker container manager and strace sandbox
├── test_targets/ # Mock packages/servers for detection testing
├── tests/ # Unit, integration, and system tests
├── watcher/ # File system change listener daemon
└── worker/ # Background task execution worker
direct mode) where threats are physically contained.target ──► Docker sandbox (network dropped) ──► strace -t -f
│
▼
strace log
│
┌────────────────┼────────────────┐
▼ ▼ ▼
strace parser signature temporal
(parser.py) matcher (sigs) analyzer
│ │ │
└───────┬────────┴────────────────┘
▼
NetworkX graph
(builder.py)
│
▼
ML anomaly detection
(RandomForest / IsolationForest)
│
▼
verdict
ip link set eth0 down) before installation/execution begins, so any outbound connection attempts are logged but blocked.strace -t -f -e trace=all. The -t flag adds timestamps for temporal analysis, -f follows child processes.monitor/parser.py) — Regex-based parser that handles multi-line strace output and both [pid] and bare-pid formats. Extracts process creation, file access, network connections, and memory operations. Each syscall is assigned a severity weight (0–9) based on its security relevance.monitor/signatures.py) — Matches the parsed event stream against 8 behavioral signature patterns defined in data/signatures.json. Each match produces evidence listing the specific events that triggered it.monitor/timeline.py) — Detects 5 time-based behavioral patterns from the timestamped event stream (e.g., credential read followed by external connection within 5 seconds).graph/builder.py) — Builds a NetworkX directed graph with process, file, and network nodes. Adds temporal edges between consecutive same-PID events within a 5-second window.ml/detector.py) — Extracts a 10-feature vector from the graph and parsed data. Uses a RandomForestClassifier if a trained model is available, falls back to an IsolationForest trained on 10 hardcoded clean-package baselines. Severity scores and temporal pattern counts boost the final confidence.Defined in data/signatures.json. Each has a severity (1–10), required syscalls, file patterns, network conditions, and an ordered sequence to match.