This document describes how to configure procscope and the various output formats it provides.
| Flag | Short | Description | Default |
|---|---|---|---|
--pid |
-p |
Attach to existing PID | — |
--name |
-n |
Attach by process name | — |
--out |
-o |
Evidence bundle directory | — |
--jsonl |
JSONL output file | — | |
--summary |
Markdown summary file | — | |
--no-color |
Disable ANSI colors | false | |
--quiet |
-q |
Suppress live timeline | false |
--max-args |
Max argv elements | 64 | |
--max-path |
Max path string length | 4096 | |
--skip-checks |
Skip privilege checks | false |
Compact, color-coded terminal output during investigation:
TIME PID COMM EVENT DETAILS
[+ 0ms] 1234 suspicious process.exec /tmp/suspicious-binary
[+ 12ms] 1234 suspicious file.open /etc/passwd [read]
[+ 15ms] 1234 suspicious net.connect ipv4 → 93.184.216.34:443
[+ 18ms] ! 1234 suspicious priv.setuid uid 1000 → 0
[+ 20ms] 1235 sh process.exec /bin/sh
[+ 25ms] 1235 sh process.exit exit_code=0
[+ 30ms] 1234 suspicious process.exit exit_code=0
Machine-readable, one event per line:
procscope --jsonl events.jsonl -- ./commandStructured directory for incident response:
case-001/
├── metadata.json # Investigation metadata
├── events.jsonl # Complete event stream
├── process-tree.txt # Human-readable process tree
├── files.json # File activity summary
├── network.json # Network activity summary
├── notable.json # Security-relevant events
└── summary.md # Markdown executive summary
Team-ready report with overview, process tree, event breakdown, file/network activity tables, notable events, and honest limitations.
When tracing with sudo, evidence files are owned by root and saved with mode 0600. The bundle directory uses mode 0750 when newly created. Read them through sudo rather than making the originals world-readable:
sudo cat report.md
sudo less case-001/summary.md
sudo less case-001/process-tree.txtTo create an archive owned by your current user, run this from a normal user
shell in the directory containing case-001:
umask 077
sudo tar -C case-001 -cf - . > case-001-share.tarShell redirection creates the archive as your user; sudo reads the private originals. The archive stays private and the original ownership and permissions remain unchanged. Captured paths and arguments may contain sensitive information; review the archive's contents before sharing it. If the destination archive already exists, choose a new filename so you do not overwrite earlier evidence.