forensics-acquire
БесплатноБез исполняемых скриптовНе проверенEvidence acquisition with chain of custody and hash verification
от jmagly★ 233 звезды на GitHubОб этом скилле
/forensics-acquire
Collect and preserve forensic evidence from the target system with complete chain of custody documentation and SHA-256 hash verification. Supports selective acquisition of logs, configuration files, memory images, and disk artifacts.
Usage
/forensics-acquire <target> [options]
Arguments
| Argument | Required | Description |
|---|---|---|
| target | Yes | SSH connection string (ssh://user@host:port) |
| --logs | No | Acquire system and application logs |
| --config | No | Acquire configuration files (SSH, cron, systemd, PAM) |
| --memory | No | Acquire memory image via /proc/kcore or LiME |
| --disk | No | Acquire disk image or filesystem artifacts |
| --all | No | Acquire all evidence types |
| --since | No | Acquire logs since timestamp (e.g., 2026-02-27T00:00:00Z) |
| --output | No | Output directory (default: .aiwg/forensics/acquisition/) |
| --cloud | No | Acquire cloud evidence (EBS snapshots, CloudTrail, Activity Logs, Audit Logs) |
| --container | No | Acquire container evidence (logs, filesystem exports, inspect data) |
| --compress | No | Compress evidence archives with gzip |
| --no-verify | No | Skip post-acquisition hash verification (not recommended) |
Behavior
When invoked, this command:
Initialize Chain of Custody
- Generate unique evidence case ID (
EVD-<date>-<seq>) - Record investigator identity, start timestamp, and collection method
- Create custody log entry for each artifact
- Generate unique evidence case ID (
Log Acquisition (when
--logsspecified)- Collect authentication logs:
/var/log/auth.log,/var/log/secure - Collect system logs:
/var/log/syslog,/var/log/messages - Collect journal entries:
journalctlfull export - Collect application logs: nginx, apache, mysql, postfix (auto-detected)
- Collect audit logs:
/var/log/audit/audit.log - Filter by
--sincetimestamp if provided - Compute SHA-256 for each collected file
- Collect authentication logs:
Configuration Acquisition (when
--configspecified)- SSH daemon config:
/etc/ssh/sshd_configandsshd_config.d/ - Authorized keys: all user
.ssh/authorized_keysfiles - Cron configurations:
/etc/cron*,/var/spool/cron/ - Systemd units:
/etc/systemd/system/,/usr/lib/systemd/system/(recently modified) - PAM configuration:
/etc/pam.d/ - Sudoers:
/etc/sudoers,/etc/sudoers.d/ - Shell profiles:
.bashrc,.profile,.bash_profilefor all users
- SSH daemon config:
Memory Acquisition (when
--memoryspecified)- Attempt acquisition via
/proc/kcore(limited) - Check for LiME kernel module availability
- If LiME available: load module, acquire to network socket or file
- Record memory size and acquisition duration
- Compute SHA-256 of memory image
- Attempt acquisition via
Disk Artifact Acquisition (when
--diskspecified)- Collect recently modified files (mtime within investigation window)
- Acquire suspicious directories identified during triage
- Preserve deleted file metadata via
debugfsorextundelete - Capture partition layout and mount state
Cloud Evidence Acquisition (when
--cloudspecified)- AWS: Create EBS snapshot of instance volume, export CloudTrail events to JSON, generate and download IAM credential report
- Azure: Create VM disk snapshot, export Activity Log to JSON
- GCP: Create disk snapshot, export Audit Logs to JSON
- Compute SHA-256 for each downloaded artifact; record cloud snapshot IDs in evidence manifest (integrity attested by provider)
Container Evidence Acquisition (when
--containerspecified)- Enumerate running and stopped containers on target
- For each relevant container: collect logs (
docker logs), export filesystem (docker export), capture inspect metadata (docker inspect) - Compute SHA-256 for each artifact
- Containers are not stopped or removed until all evidence is secured
Integrity Verification
- Verify SHA-256 of each acquired artifact against original
- Record match/mismatch status in evidence manifest
- Flag any verification failures for investigator review
Evidence Manifest
- Generate
evidence-manifest.yamlwith all artifact metadata - Include: filename, original path, collected timestamp, hash, size
- Update chain-of-custody log with completion entry
- Write
custody-log.yamlwith full acquisition audit trail
- Generate
Examples
Example 1: Acquire logs only
/forensics-acquire ssh://[email protected] --logs
Example 2: Acquire logs and config
/forensics-acquire ssh://[email protected] --logs --config
Example 3: Full acquisition
/forensics-acquire ssh://[email protected] --all
Example 4: Logs since incident window
/forensics-acquire ssh://admin@host --logs --since 2026-02-26T18:00:00Z
Example 5: Compressed acquisition
/forensics-acquire ssh://admin@host --logs --config --compress
Example 6: Cloud evidence acquis
Установить forensics-acquire в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл forensics-acquire?
Evidence acquisition with chain of custody and hash verification
Как установить скилл forensics-acquire?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл forensics-acquire запускает скрипты?
Нет, скилл состоит только из инструкций (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