evidence-preservation
БесплатноБез исполняемых скриптовНе проверенChain of custody and evidence preservation procedures covering log collection, hash verification, custody documentation, and evidence packaging per RFC 3227
от jmagly★ 233 звезды на GitHubОб этом скилле
evidence-preservation
Implements evidence preservation procedures aligned with RFC 3227 (Guidelines for Evidence Collection and Archiving) and NIST SP 800-86. Guides examiners through volatile-first collection ordering, cryptographic verification of all evidence items, chain of custody documentation, and evidence packaging for storage or legal handoff.
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "chain of custody" → forensic evidence handling
- "bag and tag" → evidence collection shorthand
- "SHA-256 verify" → evidence hash verification
Purpose
Evidence that cannot be authenticated is evidence that cannot be used. Without documented chain of custody, opposing counsel can challenge whether evidence was tampered with between collection and presentation. This skill enforces RFC 3227 collection ordering, generates cryptographic hashes at collection time, and produces legally defensible custody documentation.
Behavior
For a pull-request investigation, ingest the exact-head receipt described in
docs/security/pr-evidence-receipts.md with its source blobs. Verify each
evidenceManifest SHA-256, record omissions and actionTrail in custody notes,
and keep scope triage separate from attack attribution. A partial PR receipt
is evidence of incomplete collection, not evidence of compromise.
When triggered, this skill:
Initialize case record:
- Prompt for: case ID, examiner name, incident date/time, target system identifier
- Generate a unique evidence package ID:
<case-id>-<YYYYMMDD>-<random4> - Record collection start timestamp in UTC
- Create custody log file:
.aiwg/forensics/evidence/<package-id>/custody.log
Apply RFC 3227 collection ordering (most volatile first):
- Order of collection:
- Registers, cache, and running process state (memory)
- Routing table, ARP cache, process table, kernel statistics
- Temporary file system contents
- Disk data
- Remote logging and monitoring data
- Physical configuration and network topology
- Document what was and was not collected, with reason for any omission
- Order of collection:
Volatile data collection:
- Capture system time and skew:
date -uand compare against NTP source - Running processes:
ps auxwww - Network connections:
ss -anpornetstat -anp - ARP table:
arp -norip neigh show - Routing table:
ip route show - Active network interfaces:
ip addr show - Mounted filesystems:
mount - Open files:
lsof -n 2>/dev/null - All collection commands run within 60 seconds of each other; record exact timestamp per item
- Capture system time and skew:
Disk image acquisition guidance:
- Recommend write-blocking hardware or software (
dc3dd,ddrescue) before imaging - Command example with hashing:
dc3dd if=/dev/sda hash=sha256 hof=evidence.dd log=acquisition.log - Verify image hash matches source after acquisition
- Record: source device, image file path, hash algorithm, hash value, acquisition tool version
- Recommend write-blocking hardware or software (
Log file collection:
- Copy (do not move) log files to evidence directory
- Preserve original timestamps:
cp -porrsync -a - Hash each file immediately after copy:
sha256sum /var/log/auth.log > /var/log/auth.log.sha256 - Record: original path, copy path, file size, SHA-256 hash, last modification time
Cloud evidence collection (when cloud resources are in scope):
- AWS: Create EBS snapshot of instance volume; export CloudTrail events; generate IAM credential report. Hash each downloaded artifact. Record snapshot IDs in custody log — snapshot integrity is attested by the provider.
- Azure: Create VM disk snapshot; export Activity Log to JSON. Hash each artifact.
- GCP: Create disk snapshot; export Audit Logs to JSON. Hash each artifact.
- Store all cloud artifacts in
cloud/subdirectory. Custody-log each item.
Container evidence collection (when containers are in scope):
- Enumerate running and stopped containers before touching anything
- For each relevant container, collect in this order:
docker logs <container_id> > /evidence/containers/<container_id>-logs.txt docker export <container_id> > /evidence/containers/<container_id>-filesystem.tar docker inspect <container_id> > /evidence/containers/<container_id>-inspect.json - Hash each artifact immediately after collection
- Do not stop or remove containers until all three artifacts are collected and hashed
- Store all container artifacts in
containers/subdirectory. Custody-log each item.
Hash verification procedure:
- After all items are collected, re-hash each item and compare against initial hashes
- Any mismatch is a custody integrity failure — document immediately
- Generate a master hash manifest:
find .aiwg/forensics/evidenc
Установить evidence-preservation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteGlobGrepFAQ
Что делает скилл evidence-preservation?
Chain of custody and evidence preservation procedures covering log collection, hash verification, custody documentation, and evidence packaging per RFC 3227
Как установить скилл evidence-preservation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evidence-preservation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic