Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Collect volatile forensic evidence from a compromised host by following the order of volatility, preserving memory, network connections, running processes, and system state with documented chain of…
Imported from mukul975/anthropic-cybersecurity-skills (skills/collecting-volatile-evidence-from-compromised-host/SKILL.md). Install upstream with npx skills add mukul975/anthropic-cybersecurity-skills --skill collecting-volatile-evidence-from-compromised-host. Copyright stays with the author (Apache-2.0).
Collecting Volatile Evidence from Compromised Hosts
When to Use
Security incident confirmed and compromised host identified
Before system isolation, shutdown, or remediation begins
Need to capture network connections, running processes, and system state
Legal proceedings may require forensic evidence preservation
Incident requires root cause analysis with volatile data
Prerequisites
Forensic collection toolkit on USB or network share (trusted tools)
WinPmem/LiME for memory acquisition
Write-blocker or forensic workstation for disk imaging
Chain of custody documentation forms
Secure evidence storage with integrity verification
Authorization to collect evidence (legal/HR approval for insider cases)
Workflow
Step 1: Prepare Collection Environment
# Mount forensic USB toolkit (do NOT install tools on compromised system)# Verify toolkit integritysha256sum /mnt/forensic_usb/tools/* > /tmp/toolkit_hashes.txtdiff /mnt/forensic_usb/tools/known_good_hashes.txt /tmp/toolkit_hashes.txt# Create evidence output directory with timestampsEVIDENCE_DIR="/mnt/evidence/$(hostname)_$(date +%Y%m%d_%H%M%S)"mkdir -p "$EVIDENCE_DIR"echo "Collection started: $(date -u)" > "$EVIDENCE_DIR/collection_log.txt"echo "Collector: $(whoami)" >> "$EVIDENCE_DIR/collection_log.txt"echo "System: $(hostname)" >> "$EVIDENCE_DIR/collection_log.txt"
Step 2: Capture System Memory (Highest Volatility)
# Windows - WinPmem memory acquisitionwinpmem_mini_x64.exe "$EVIDENCE_DIR\memdump_$(hostname).raw"# Linux - LiME kernel module for memory acquisitioninsmod /mnt/forensic_usb/lime.ko "path=$EVIDENCE_DIR/memdump_$(hostname).lime format=lime"# Linux - Alternative using /proc/kcoredd if=/proc/kcore of="$EVIDENCE_DIR/kcore_dump.raw" bs=1M# macOS - osxpmemosxpmem -o "$EVIDENCE_DIR/memdump_$(hostname).aff4"# Hash the memory dump immediatelysha256sum "$EVIDENCE_DIR/memdump_"* > "$EVIDENCE_DIR/memory_hash.sha256"
Step 3: Capture Network State
# Active network connections# Windowsnetstat -anob > "$EVIDENCE_DIR/netstat_connections.txt" 2>&1Get-NetTCPConnection | Export-Csv "$EVIDENCE_DIR/tcp_connections.csv" -NoTypeInformationGet-NetUDPEndpoint | Export-Csv "$EVIDENCE_DIR/udp_endpoints.csv" -NoTypeInformation# Linuxss -tulnp > "$EVIDENCE_DIR/socket_stats.txt"netstat -anp > "$EVIDENCE_DIR/netstat_all.txt" 2>/dev/nullcat /proc/net/tcp > "$EVIDENCE_DIR/proc_net_tcp.txt"cat /proc/net/udp > "$EVIDENCE_DIR/proc_net_udp.txt"# ARP cachearp -a > "$EVIDENCE_DIR/arp_cache.txt"# Routing tableroute print > "$EVIDENCE_DIR/routing_table.txt" # Windowsip route show > "$EVIDENCE_DIR/routing_table.txt" # Linux# DNS cacheipconfig /displaydns > "$EVIDENCE_DIR/dns_cache.txt" # Windows# Linux: varies by resolver, check systemd-resolve or nscdsystemd-resolve --statistics > "$EVIDENCE_DIR/dns_stats.txt" 2>/dev/null# Active firewall rulesnetsh advfirewall show allprofiles > "$EVIDENCE_DIR/firewall_rules.txt" # Windowsiptables -L -n -v > "$EVIDENCE_DIR/iptables_rules.txt" # Linux
Step 4: Capture Running Processes
# Windows - Detailed process listtasklist /V /FO CSV > "$EVIDENCE_DIR/process_list_verbose.csv"wmic process list full > "$EVIDENCE_DIR/wmic_process_full.txt"Get-Process | Select-Object Id,ProcessName,Path,StartTime,CPU,WorkingSet | Export-Csv "$EVIDENCE_DIR/ps_processes.csv" -NoTypeInformation# Windows - Process with command line and parentwmic process get ProcessId,Name,CommandLine,ParentProcessId,ExecutablePath /FORMAT:CSV > \ "$EVIDENCE_DIR/process_commandlines.csv"# Linux - Full process treeps auxwwf > "$EVIDENCE_DIR/process_tree.txt"ps -eo pid,ppid,user,args --forest > "$EVIDENCE_DIR/process_forest.txt"cat /proc/*/cmdline 2>/dev/null | tr '\0' ' ' > "$EVIDENCE_DIR/proc_cmdline_all.txt"# Process modules/DLLs loaded# Windowslistdlls.exe -accepteula > "$EVIDENCE_DIR/loaded_dlls.txt"# Linuxfor pid in $(ls /proc/ | grep -E '^[0-9]+$'); do echo "=== PID $pid ===" >> "$EVIDENCE_DIR/proc_maps.txt" cat "/proc/$pid/maps" 2>/dev/null >> "$EVIDENCE_DIR/proc_maps.txt"done# Open file handleshandle.exe -accepteula > "$EVIDENCE_DIR/open_handles.txt" # Windows (Sysinternals)lsof > "$EVIDENCE_DIR/open_files.txt" # Linux
Step 7: Hash All Evidence and Document Chain of Custody
# Generate SHA256 hashes for all collected evidencecd "$EVIDENCE_DIR"sha256sum * > evidence_manifest.sha256# Create chain of custody recordcat > "$EVIDENCE_DIR/chain_of_custody.txt" << EOFCHAIN OF CUSTODY RECORD========================Case ID: IR-YYYY-NNNCollection Date: $(date -u)Collected By: $(whoami)System: $(hostname)System IP: $(hostname -I 2>/dev/null || ipconfig | grep IPv4)Collection Method: Live forensic collection via trusted USB toolkitEvidence Items:$(ls -la "$EVIDENCE_DIR/" | grep -v chain_of_custody)SHA256 Manifest: evidence_manifest.sha256Transfer: [TO BE COMPLETED]Storage Location: [TO BE COMPLETED]EOF
Key Concepts
Concept
Description
Order of Volatility
RFC 3227 - Collect most volatile data first: registers > cache > memory > disk
Live Forensics
Collecting evidence from a running system before shutdown
Chain of Custody
Documentation tracking evidence handling from collection to court
Forensic Soundness
Ensuring evidence collection doesn't alter the original evidence
Trusted Tools
Using verified tools from external media, not from the compromised system
Evidence Integrity
SHA256 hashing of all evidence immediately after collection
Locard's Exchange Principle
Every contact leaves a trace - minimize investigator artifacts
Tools & Systems
Tool
Purpose
WinPmem
Windows memory acquisition
LiME (Linux Memory Extractor)
Linux kernel memory acquisition
Sysinternals Suite
Process, handle, and DLL analysis (Windows)
Velociraptor
Remote forensic collection at scale
KAPE (Kroll Artifact Parser)
Automated artifact collection on Windows
CyLR
Cross-platform live response collection
GRR Rapid Response
Remote live forensics framework
Common Scenarios
Fileless Malware Attack: PowerShell-based attack with no files on disk. Memory dump is critical evidence containing the malicious scripts.
Active C2 Session: Attacker has live connection. Network connections and process data reveal C2 infrastructure.
Insider Data Theft: Employee copying files. Process list, mapped drives, and network connections show exfiltration activity.
Compromised Web Server: Web shell detected. Memory may contain additional backdoors not yet written to disk.
Lateral Movement in Progress: Attacker moving between systems. Authentication tokens and network sessions in memory reveal scope.
Output Format
Memory dump file (.raw or .lime format) with SHA256 hash
Network state captures (connections, ARP, DNS, routes)
Process listings with command lines and parent processes
User session and authentication data
System configuration snapshots
Evidence manifest with SHA256 checksums
Chain of custody documentation
Installed into a catalogue, chosen by a router
Install collecting-volatile-evidence-from-compromised-host and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "mukul975-anthropic-cybersecurity-skills-collecting-volat-79c07d",
"kind": "skill",
"name": "collecting-volatile-evidence-from-compromised-host",
"description": "Collect volatile forensic evidence from a compromised host by following the order of volatility, preserving memory, network connections, running processes, and system state with documented chain of custody before they are lost. Use before isolating, shutting down, or remediating a compromised host, especially when fileless or memory-resident malware is suspected, root cause analysis is needed, or the evidence must hold up in legal proceedings.",
"publisher": "mukul975",
"version": "1.0.0",
"capabilities": {
"domains": [
"observability"
],
"tags": [
"skill-md",
"incident-response",
"dfir",
"forensics",
"volatile-evidence",
"memory-forensics",
"chain-of-custody",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Collect volatile forensic evidence from a compromised host by following the order of volatility, preserving memory, network connections, running processes, and system state with documented chain of custody before they are lost. Use before isolating, shutting down, or remediating a compromised host, especially when fileless or memory-resident malware is suspected, root cause analysis is needed, or the evidence must hold up in legal proceedings."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/mukul975/anthropic-cybersecurity-skills",
"path": "skills/collecting-volatile-evidence-from-compromised-host/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/mukul975/anthropic-cybersecurity-skills/blob/HEAD/skills/collecting-volatile-evidence-from-compromised-host/SKILL.md",
"key": "mukul975/anthropic-cybersecurity-skills/skills/collecting-volatile-evidence-from-compromised-host/SKILL.md"
},
"license": "Apache-2.0"
},
"instructions": "# Collecting Volatile Evidence from Compromised Hosts\n\n## When to Use\n- Security incident confirmed and compromised host identified\n- Before system isolation, shutdown, or remediation begins\n- Memory-resident malware suspected (fileless attacks)\n- Need to capture network connections, running processes, and system state\n- Legal proceedings may require forensic evidence preservation\n- Incident requires root cause analysis with volatile data\n\n## Prerequisites\n- Forensic collection toolkit on USB or network share (trusted tools)\n- WinPmem/LiME for memory acquisition\n- Write-blocker or forensic workstation for disk imaging\n- Chain of custody documentation forms\n- Secure evidence storage with integrity verification\n- Authorization to collect evidence (legal/HR approval for insider cases)\n\n## Workflow\n\n### Step 1: Prepare Collection Environment\n```bash\n# Mount forensic USB toolkit (do NOT install tools on compromised system)\n# Verify toolkit integrity\nsha256sum /mnt/forensic_usb/tools/* > /tmp/toolkit_hashes.txt\ndiff /mnt/forensic_usb/tools/known_good_hashes.txt /tmp/toolkit_hashes.txt\n\n# Create evidence output directory with timestamps\nEVIDENCE_DIR=\"/mnt/evidence/$(hostname)_$(date +%Y%m%d_%H%M%S)\"\nmkdir -p \"$EVIDENCE_DIR\"\necho \"Collection started: $(date -u)\" > \"$EVIDENCE_DIR/collection_log.txt\"\necho \"Collector: $(whoami)\" >> \"$EVIDENCE_DIR/collection_log.txt\"\necho \"System: $(hostname)\" >> \"$EVIDENCE_DIR/collection_log.txt\"\n```\n\n### Step 2: Capture System Memory (Highest Volatility)\n```bash\n# Windows - WinPmem memory acquisition\nwinpmem_mini_x64.exe \"$EVIDENCE_DIR\\memdump_$(hostname).raw\"\n\n# Linux - LiME kernel module for memory acquisition\ninsmod /mnt/forensic_usb/lime.ko \"path=$EVIDENCE_DIR/memdump_$(hostname).lime format=lime\"\n\n# Linux - Alternative using /proc/kcore\ndd if=/proc/kcore of=\"$EVIDENCE_DIR/kcore_dump.raw\" bs=1M\n\n# macOS - osxpmem\nosxpmem -o \"$EVIDENCE_DIR/memdump_$(hostname).aff4\"\n\n# Hash the memory dump immediately\nsha256sum \"$EVIDENCE_DIR/memdump_\"* > \"$EVIDENCE_DIR/memory_hash.sha256\"\n```\n\n### Step 3: Capture Network State\n```bash\n# Active network connections\n# Windows\nnetstat -anob > \"$EVIDENCE_DIR/netstat_connections.txt\" 2>&1\nGet-NetTCPConnection | Export-Csv \"$EVIDENCE_DIR/tcp_connections.csv\" -NoTypeInformation\nGet-NetUDPEndpoint | Export-Csv \"$EVIDENCE_DIR/udp_endpoints.csv\" -NoTypeInformation\n\n# Linux\nss -tulnp > \"$EVIDENCE_DIR/socket_stats.txt\"\nnetstat -anp > \"$EVIDENCE_DIR/netstat_all.txt\" 2>/dev/null\ncat /proc/net/tcp > \"$EVIDENCE_DIR/proc_net_tcp.txt\"\ncat /proc/net/udp > \"$EVIDENCE_DIR/proc_net_udp.txt\"\n\n# ARP cache\narp -a > \"$EVIDENCE_DIR/arp_cache.txt\"\n\n# Routing table\nroute print > \"$EVIDENCE_DIR/routing_table.txt\" # Windows\nip route show > \"$EVIDENCE_DIR/routing_table.txt\" # Linux\n\n# DNS cache\nipconfig /displaydns > \"$EVIDENCE_DIR/dns_cache.txt\" # Windows\n# Linux: varies by resolver, check systemd-resolve or nscd\nsystemd-resolve --statistics > \"$EVIDENCE_DIR/dns_stats.txt\" 2>/dev/null\n\n# Active firewall rules\nnetsh advfirewall show allprofiles > \"$EVIDENCE_DIR/firewall_rules.txt\" # Windows\niptables -L -n -v > \"$EVIDENCE_DIR/iptables_rules.txt\" # Linux\n```\n\n### Step 4: Capture Running Processes\n```bash\n# Windows - Detailed process list\ntasklist /V /FO CSV > \"$EVIDENCE_DIR/process_list_verbose.csv\"\nwmic process list full > \"$EVIDENCE_DIR/wmic_process_full.txt\"\nGet-Process | Select-Object Id,ProcessName,Path,StartTime,CPU,WorkingSet |\n Export-Csv \"$EVIDENCE_DIR/ps_processes.csv\" -NoTypeInformation\n\n# Windows - Process with command line and parent\nwmic process get ProcessId,Name,CommandLine,ParentProcessId,ExecutablePath /FORMAT:CSV > \\\n \"$EVIDENCE_DIR/process_commandlines.csv\"\n\n# Linux - Full process tree\nps auxwwf > \"$EVIDENCE_DIR/process_tree.txt\"\nps -eo pid,ppid,user,args --forest > \"$EVIDENCE_DIR/process_forest.txt\"\ncat /proc/*/cmdline 2>/dev/null | tr '\\0' ' ' > \"$EVIDENCE_DIR/proc_cmdline_all.txt\"\n\n# Process modules/DLLs loaded\n# Windows\nlistdlls.exe -accepteula > \"$EVIDENCE_DIR/loaded_dlls.txt\"\n# Linux\nfor pid in $(ls /proc/ | grep -E '^[0-9]+$'); do\n echo \"=== PID $pid ===\" >> \"$EVIDENCE_DIR/proc_maps.txt\"\n cat \"/proc/$pid/maps\" 2>/dev/null >> \"$EVIDENCE_DIR/proc_maps.txt\"\ndone\n\n# Open file handles\nhandle.exe -accepteula > \"$EVIDENCE_DIR/open_handles.txt\" # Windows (Sysinternals)\nlsof > \"$EVIDENCE_DIR/open_files.txt\" # Linux\n```\n\n### Step 5: Capture Logged-in Users and Sessions\n```bash\n# Windows\nquery user > \"$EVIDENCE_DIR/logged_in_users.txt\"\nquery session > \"$EVIDENCE_DIR/active_sessions.txt\"\nnet session > \"$EVIDENCE_DIR/net_sessions.txt\" 2>&1\nnet use > \"$EVIDENCE_DIR/mapped_drives.txt\" 2>&1\n\n# Linux\nwho > \"$EVIDENCE_DIR/who_output.txt\"\nw > \"$EVIDENCE_DIR/w_output.txt\"\nlast -50 > \"$EVIDENCE_DIR/last_logins.txt\"\nlastlog > \"$EVIDENCE_DIR/lastlog.txt\"\ncat /var/log/auth.log | tail -200 > \"$EVIDENCE_DIR/recent_auth.txt\" 2>/dev/null\n```\n\n### Step 6: Capture System Configuration State\n```bash\n# System time (critical for timeline)\ndate -u > \"$EVIDENCE_DIR/system_time_utc.txt\"\nw32tm /query /status > \"$EVIDENCE_DIR/ntp_status.txt\" # Windows\nntpq -p > \"$EVIDENCE_DIR/ntp_status.txt\" # Linux\n\n# Environment variables\nset > \"$EVIDENCE_DIR/environment_vars.txt\" # Windows\nenv > \"$EVIDENCE_DIR/environment_vars.txt\" # Linux\n\n# Scheduled tasks / Cron jobs\nschtasks /query /fo CSV /v > \"$EVIDENCE_DIR/scheduled_tasks.csv\" # Windows\ncrontab -l > \"$EVIDENCE_DIR/crontab_current.txt\" 2>/dev/null # Linux\nls -la /etc/cron.* > \"$EVIDENCE_DIR/cron_dirs.txt\" 2>/dev/null\n\n# Services\nsc queryex type=service state=all > \"$EVIDENCE_DIR/services_all.txt\" # Windows\nsystemctl list-units --type=service --all > \"$EVIDENCE_DIR/systemd_services.txt\" # Linux\n\n# Windows Registry - key autostart locations\nreg export \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR/reg_run_hklm.reg\" /y\nreg export \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR/reg_run_hkcu.reg\" /y\nreg export \"HKLM\\SYSTEM\\CurrentControlSet\\Services\" \"$EVIDENCE_DIR/reg_services.reg\" /y\n```\n\n### Step 7: Hash All Evidence and Document Chain of Custody\n```bash\n# Generate SHA256 hashes for all collected evidence\ncd \"$EVIDENCE_DIR\"\nsha256sum * > evidence_manifest.sha256\n\n# Create chain of custody record\ncat > \"$EVIDENCE_DIR/chain_of_custody.txt\" << EOF\nCHAIN OF CUSTODY RECORD\n========================\nCase ID: IR-YYYY-NNN\nCollection Date: $(date -u)\nCollected By: $(whoami)\nSystem: $(hostname)\nSystem IP: $(hostname -I 2>/dev/null || ipconfig | grep IPv4)\nCollection Method: Live forensic collection via trusted USB toolkit\n\nEvidence Items:\n$(ls -la \"$EVIDENCE_DIR/\" | grep -v chain_of_custody)\n\nSHA256 Manifest: evidence_manifest.sha256\nTransfer: [TO BE COMPLETED]\nStorage Location: [TO BE COMPLETED]\nEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Order of Volatility | RFC 3227 - Collect most volatile data first: registers > cache > memory > disk |\n| Live Forensics | Collecting evidence from a running system before shutdown |\n| Chain of Custody | Documentation tracking evidence handling from collection to court |\n| Forensic Soundness | Ensuring evidence collection doesn't alter the original evidence |\n| Trusted Tools | Using verified tools from external media, not from the compromised system |\n| Evidence Integrity | SHA256 hashing of all evidence immediately after collection |\n| Locard's Exchange Principle | Every contact leaves a trace - minimize investigator artifacts |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| WinPmem | Windows memory acquisition |\n| LiME (Linux Memory Extractor) | Linux kernel memory acquisition |\n| Sysinternals Suite | Process, handle, and DLL analysis (Windows) |\n| Velociraptor | Remote forensic collection at scale |\n| KAPE (Kroll Artifact Parser) | Automated artifact collection on Windows |\n| CyLR | Cross-platform live response collection |\n| GRR Rapid Response | Remote live forensics framework |\n\n## Common Scenarios\n\n1. **Fileless Malware Attack**: PowerShell-based attack with no files on disk. Memory dump is critical evidence containing the malicious scripts.\n2. **Active C2 Session**: Attacker has live connection. Network connections and process data reveal C2 infrastructure.\n3. **Insider Data Theft**: Employee copying files. Process list, mapped drives, and network connections show exfiltration activity.\n4. **Compromised Web Server**: Web shell detected. Memory may contain additional backdoors not yet written to disk.\n5. **Lateral Movement in Progress**: Attacker moving between systems. Authentication tokens and network sessions in memory reveal scope.\n\n## Output Format\n- Memory dump file (.raw or .lime format) with SHA256 hash\n- Network state captures (connections, ARP, DNS, routes)\n- Process listings with command lines and parent processes\n- User session and authentication data\n- System configuration snapshots\n- Evidence manifest with SHA256 checksums\n- Chain of custody documentation",
"cost": {
"context_tokens": 2232
}
}
Fetch it by URL: GET /api/v1/registry/mukul975-anthropic-cybersecurity-skills-collecting-volat-79c07d/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.