[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M739XYWJWFV5QRF4TSD7KFN9":3,"skill-same:01M739XYWJWFV5QRF4TSD7KFN9":106},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M739XYWJWFV5QRF4TSD7KFN9","collecting-volatile-evidence-from-compromised-host",null,"Collect volatile forensic evidence from a compromised system following order of volatility, preserving memory, network connections, processes, and system state before they are lost.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: collecting-volatile-evidence-from-compromised-host\ndescription: Collect volatile forensic evidence from a compromised system following\n  order of volatility, preserving memory, network connections, processes, and system\n  state before they are lost.\ndomain: cybersecurity\nsubdomain: incident-response\ntags:\n- incident-response\n- dfir\n- forensics\n- volatile-evidence\n- memory-forensics\n- chain-of-custody\nmitre_attack:\n- T1059.001\n- T1057\n- T1049\n- T1003.001\n- T1543.003\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.MA-01\n- RS.MA-02\n- RS.AN-03\n- RC.RP-01\nsource: https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\nsource_commit: 04450304b12645cb2b974ab96d28c0664758a88d\n---\n\n# 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\u002FLiME 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\u002FHR 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 \u002Fmnt\u002Fforensic_usb\u002Ftools\u002F* > \u002Ftmp\u002Ftoolkit_hashes.txt\ndiff \u002Fmnt\u002Fforensic_usb\u002Ftools\u002Fknown_good_hashes.txt \u002Ftmp\u002Ftoolkit_hashes.txt\n\n# Create evidence output directory with timestamps\nEVIDENCE_DIR=\"\u002Fmnt\u002Fevidence\u002F$(hostname)_$(date +%Y%m%d_%H%M%S)\"\nmkdir -p \"$EVIDENCE_DIR\"\necho \"Collection started: $(date -u)\" > \"$EVIDENCE_DIR\u002Fcollection_log.txt\"\necho \"Collector: $(whoami)\" >> \"$EVIDENCE_DIR\u002Fcollection_log.txt\"\necho \"System: $(hostname)\" >> \"$EVIDENCE_DIR\u002Fcollection_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 \u002Fmnt\u002Fforensic_usb\u002Flime.ko \"path=$EVIDENCE_DIR\u002Fmemdump_$(hostname).lime format=lime\"\n\n# Linux - Alternative using \u002Fproc\u002Fkcore\ndd if=\u002Fproc\u002Fkcore of=\"$EVIDENCE_DIR\u002Fkcore_dump.raw\" bs=1M\n\n# macOS - osxpmem\nosxpmem -o \"$EVIDENCE_DIR\u002Fmemdump_$(hostname).aff4\"\n\n# Hash the memory dump immediately\nsha256sum \"$EVIDENCE_DIR\u002Fmemdump_\"* > \"$EVIDENCE_DIR\u002Fmemory_hash.sha256\"\n```\n\n### Step 3: Capture Network State\n```bash\n# Active network connections\n# Windows\nnetstat -anob > \"$EVIDENCE_DIR\u002Fnetstat_connections.txt\" 2>&1\nGet-NetTCPConnection | Export-Csv \"$EVIDENCE_DIR\u002Ftcp_connections.csv\" -NoTypeInformation\nGet-NetUDPEndpoint | Export-Csv \"$EVIDENCE_DIR\u002Fudp_endpoints.csv\" -NoTypeInformation\n\n# Linux\nss -tulnp > \"$EVIDENCE_DIR\u002Fsocket_stats.txt\"\nnetstat -anp > \"$EVIDENCE_DIR\u002Fnetstat_all.txt\" 2>\u002Fdev\u002Fnull\ncat \u002Fproc\u002Fnet\u002Ftcp > \"$EVIDENCE_DIR\u002Fproc_net_tcp.txt\"\ncat \u002Fproc\u002Fnet\u002Fudp > \"$EVIDENCE_DIR\u002Fproc_net_udp.txt\"\n\n# ARP cache\narp -a > \"$EVIDENCE_DIR\u002Farp_cache.txt\"\n\n# Routing table\nroute print > \"$EVIDENCE_DIR\u002Frouting_table.txt\"  # Windows\nip route show > \"$EVIDENCE_DIR\u002Frouting_table.txt\"  # Linux\n\n# DNS cache\nipconfig \u002Fdisplaydns > \"$EVIDENCE_DIR\u002Fdns_cache.txt\"  # Windows\n# Linux: varies by resolver, check systemd-resolve or nscd\nsystemd-resolve --statistics > \"$EVIDENCE_DIR\u002Fdns_stats.txt\" 2>\u002Fdev\u002Fnull\n\n# Active firewall rules\nnetsh advfirewall show allprofiles > \"$EVIDENCE_DIR\u002Ffirewall_rules.txt\"  # Windows\niptables -L -n -v > \"$EVIDENCE_DIR\u002Fiptables_rules.txt\"  # Linux\n```\n\n### Step 4: Capture Running Processes\n```bash\n# Windows - Detailed process list\ntasklist \u002FV \u002FFO CSV > \"$EVIDENCE_DIR\u002Fprocess_list_verbose.csv\"\nwmic process list full > \"$EVIDENCE_DIR\u002Fwmic_process_full.txt\"\nGet-Process | Select-Object Id,ProcessName,Path,StartTime,CPU,WorkingSet |\n  Export-Csv \"$EVIDENCE_DIR\u002Fps_processes.csv\" -NoTypeInformation\n\n# Windows - Process with command line and parent\nwmic process get ProcessId,Name,CommandLine,ParentProcessId,ExecutablePath \u002FFORMAT:CSV > \\\n  \"$EVIDENCE_DIR\u002Fprocess_commandlines.csv\"\n\n# Linux - Full process tree\nps auxwwf > \"$EVIDENCE_DIR\u002Fprocess_tree.txt\"\nps -eo pid,ppid,user,args --forest > \"$EVIDENCE_DIR\u002Fprocess_forest.txt\"\ncat \u002Fproc\u002F*\u002Fcmdline 2>\u002Fdev\u002Fnull | tr '\\0' ' ' > \"$EVIDENCE_DIR\u002Fproc_cmdline_all.txt\"\n\n# Process modules\u002FDLLs loaded\n# Windows\nlistdlls.exe -accepteula > \"$EVIDENCE_DIR\u002Floaded_dlls.txt\"\n# Linux\nfor pid in $(ls \u002Fproc\u002F | grep -E '^[0-9]+$'); do\n  echo \"=== PID $pid ===\" >> \"$EVIDENCE_DIR\u002Fproc_maps.txt\"\n  cat \"\u002Fproc\u002F$pid\u002Fmaps\" 2>\u002Fdev\u002Fnull >> \"$EVIDENCE_DIR\u002Fproc_maps.txt\"\ndone\n\n# Open file handles\nhandle.exe -accepteula > \"$EVIDENCE_DIR\u002Fopen_handles.txt\"  # Windows (Sysinternals)\nlsof > \"$EVIDENCE_DIR\u002Fopen_files.txt\"  # Linux\n```\n\n### Step 5: Capture Logged-in Users and Sessions\n```bash\n# Windows\nquery user > \"$EVIDENCE_DIR\u002Flogged_in_users.txt\"\nquery session > \"$EVIDENCE_DIR\u002Factive_sessions.txt\"\nnet session > \"$EVIDENCE_DIR\u002Fnet_sessions.txt\" 2>&1\nnet use > \"$EVIDENCE_DIR\u002Fmapped_drives.txt\" 2>&1\n\n# Linux\nwho > \"$EVIDENCE_DIR\u002Fwho_output.txt\"\nw > \"$EVIDENCE_DIR\u002Fw_output.txt\"\nlast -50 > \"$EVIDENCE_DIR\u002Flast_logins.txt\"\nlastlog > \"$EVIDENCE_DIR\u002Flastlog.txt\"\ncat \u002Fvar\u002Flog\u002Fauth.log | tail -200 > \"$EVIDENCE_DIR\u002Frecent_auth.txt\" 2>\u002Fdev\u002Fnull\n```\n\n### Step 6: Capture System Configuration State\n```bash\n# System time (critical for timeline)\ndate -u > \"$EVIDENCE_DIR\u002Fsystem_time_utc.txt\"\nw32tm \u002Fquery \u002Fstatus > \"$EVIDENCE_DIR\u002Fntp_status.txt\"  # Windows\nntpq -p > \"$EVIDENCE_DIR\u002Fntp_status.txt\"  # Linux\n\n# Environment variables\nset > \"$EVIDENCE_DIR\u002Fenvironment_vars.txt\"  # Windows\nenv > \"$EVIDENCE_DIR\u002Fenvironment_vars.txt\"  # Linux\n\n# Scheduled tasks \u002F Cron jobs\nschtasks \u002Fquery \u002Ffo CSV \u002Fv > \"$EVIDENCE_DIR\u002Fscheduled_tasks.csv\"  # Windows\ncrontab -l > \"$EVIDENCE_DIR\u002Fcrontab_current.txt\" 2>\u002Fdev\u002Fnull  # Linux\nls -la \u002Fetc\u002Fcron.* > \"$EVIDENCE_DIR\u002Fcron_dirs.txt\" 2>\u002Fdev\u002Fnull\n\n# Services\nsc queryex type=service state=all > \"$EVIDENCE_DIR\u002Fservices_all.txt\"  # Windows\nsystemctl list-units --type=service --all > \"$EVIDENCE_DIR\u002Fsystemd_services.txt\"  # Linux\n\n# Windows Registry - key autostart locations\nreg export \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR\u002Freg_run_hklm.reg\" \u002Fy\nreg export \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR\u002Freg_run_hkcu.reg\" \u002Fy\nreg export \"HKLM\\SYSTEM\\CurrentControlSet\\Services\" \"$EVIDENCE_DIR\u002Freg_services.reg\" \u002Fy\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\u002Fchain_of_custody.txt\" \u003C\u003C 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>\u002Fdev\u002Fnull || ipconfig | grep IPv4)\nCollection Method: Live forensic collection via trusted USB toolkit\n\nEvidence Items:\n$(ls -la \"$EVIDENCE_DIR\u002F\" | 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\n","# 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\u002FLiME 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\u002FHR 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 \u002Fmnt\u002Fforensic_usb\u002Ftools\u002F* > \u002Ftmp\u002Ftoolkit_hashes.txt\ndiff \u002Fmnt\u002Fforensic_usb\u002Ftools\u002Fknown_good_hashes.txt \u002Ftmp\u002Ftoolkit_hashes.txt\n\n# Create evidence output directory with timestamps\nEVIDENCE_DIR=\"\u002Fmnt\u002Fevidence\u002F$(hostname)_$(date +%Y%m%d_%H%M%S)\"\nmkdir -p \"$EVIDENCE_DIR\"\necho \"Collection started: $(date -u)\" > \"$EVIDENCE_DIR\u002Fcollection_log.txt\"\necho \"Collector: $(whoami)\" >> \"$EVIDENCE_DIR\u002Fcollection_log.txt\"\necho \"System: $(hostname)\" >> \"$EVIDENCE_DIR\u002Fcollection_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 \u002Fmnt\u002Fforensic_usb\u002Flime.ko \"path=$EVIDENCE_DIR\u002Fmemdump_$(hostname).lime format=lime\"\n\n# Linux - Alternative using \u002Fproc\u002Fkcore\ndd if=\u002Fproc\u002Fkcore of=\"$EVIDENCE_DIR\u002Fkcore_dump.raw\" bs=1M\n\n# macOS - osxpmem\nosxpmem -o \"$EVIDENCE_DIR\u002Fmemdump_$(hostname).aff4\"\n\n# Hash the memory dump immediately\nsha256sum \"$EVIDENCE_DIR\u002Fmemdump_\"* > \"$EVIDENCE_DIR\u002Fmemory_hash.sha256\"\n```\n\n### Step 3: Capture Network State\n```bash\n# Active network connections\n# Windows\nnetstat -anob > \"$EVIDENCE_DIR\u002Fnetstat_connections.txt\" 2>&1\nGet-NetTCPConnection | Export-Csv \"$EVIDENCE_DIR\u002Ftcp_connections.csv\" -NoTypeInformation\nGet-NetUDPEndpoint | Export-Csv \"$EVIDENCE_DIR\u002Fudp_endpoints.csv\" -NoTypeInformation\n\n# Linux\nss -tulnp > \"$EVIDENCE_DIR\u002Fsocket_stats.txt\"\nnetstat -anp > \"$EVIDENCE_DIR\u002Fnetstat_all.txt\" 2>\u002Fdev\u002Fnull\ncat \u002Fproc\u002Fnet\u002Ftcp > \"$EVIDENCE_DIR\u002Fproc_net_tcp.txt\"\ncat \u002Fproc\u002Fnet\u002Fudp > \"$EVIDENCE_DIR\u002Fproc_net_udp.txt\"\n\n# ARP cache\narp -a > \"$EVIDENCE_DIR\u002Farp_cache.txt\"\n\n# Routing table\nroute print > \"$EVIDENCE_DIR\u002Frouting_table.txt\"  # Windows\nip route show > \"$EVIDENCE_DIR\u002Frouting_table.txt\"  # Linux\n\n# DNS cache\nipconfig \u002Fdisplaydns > \"$EVIDENCE_DIR\u002Fdns_cache.txt\"  # Windows\n# Linux: varies by resolver, check systemd-resolve or nscd\nsystemd-resolve --statistics > \"$EVIDENCE_DIR\u002Fdns_stats.txt\" 2>\u002Fdev\u002Fnull\n\n# Active firewall rules\nnetsh advfirewall show allprofiles > \"$EVIDENCE_DIR\u002Ffirewall_rules.txt\"  # Windows\niptables -L -n -v > \"$EVIDENCE_DIR\u002Fiptables_rules.txt\"  # Linux\n```\n\n### Step 4: Capture Running Processes\n```bash\n# Windows - Detailed process list\ntasklist \u002FV \u002FFO CSV > \"$EVIDENCE_DIR\u002Fprocess_list_verbose.csv\"\nwmic process list full > \"$EVIDENCE_DIR\u002Fwmic_process_full.txt\"\nGet-Process | Select-Object Id,ProcessName,Path,StartTime,CPU,WorkingSet |\n  Export-Csv \"$EVIDENCE_DIR\u002Fps_processes.csv\" -NoTypeInformation\n\n# Windows - Process with command line and parent\nwmic process get ProcessId,Name,CommandLine,ParentProcessId,ExecutablePath \u002FFORMAT:CSV > \\\n  \"$EVIDENCE_DIR\u002Fprocess_commandlines.csv\"\n\n# Linux - Full process tree\nps auxwwf > \"$EVIDENCE_DIR\u002Fprocess_tree.txt\"\nps -eo pid,ppid,user,args --forest > \"$EVIDENCE_DIR\u002Fprocess_forest.txt\"\ncat \u002Fproc\u002F*\u002Fcmdline 2>\u002Fdev\u002Fnull | tr '\\0' ' ' > \"$EVIDENCE_DIR\u002Fproc_cmdline_all.txt\"\n\n# Process modules\u002FDLLs loaded\n# Windows\nlistdlls.exe -accepteula > \"$EVIDENCE_DIR\u002Floaded_dlls.txt\"\n# Linux\nfor pid in $(ls \u002Fproc\u002F | grep -E '^[0-9]+$'); do\n  echo \"=== PID $pid ===\" >> \"$EVIDENCE_DIR\u002Fproc_maps.txt\"\n  cat \"\u002Fproc\u002F$pid\u002Fmaps\" 2>\u002Fdev\u002Fnull >> \"$EVIDENCE_DIR\u002Fproc_maps.txt\"\ndone\n\n# Open file handles\nhandle.exe -accepteula > \"$EVIDENCE_DIR\u002Fopen_handles.txt\"  # Windows (Sysinternals)\nlsof > \"$EVIDENCE_DIR\u002Fopen_files.txt\"  # Linux\n```\n\n### Step 5: Capture Logged-in Users and Sessions\n```bash\n# Windows\nquery user > \"$EVIDENCE_DIR\u002Flogged_in_users.txt\"\nquery session > \"$EVIDENCE_DIR\u002Factive_sessions.txt\"\nnet session > \"$EVIDENCE_DIR\u002Fnet_sessions.txt\" 2>&1\nnet use > \"$EVIDENCE_DIR\u002Fmapped_drives.txt\" 2>&1\n\n# Linux\nwho > \"$EVIDENCE_DIR\u002Fwho_output.txt\"\nw > \"$EVIDENCE_DIR\u002Fw_output.txt\"\nlast -50 > \"$EVIDENCE_DIR\u002Flast_logins.txt\"\nlastlog > \"$EVIDENCE_DIR\u002Flastlog.txt\"\ncat \u002Fvar\u002Flog\u002Fauth.log | tail -200 > \"$EVIDENCE_DIR\u002Frecent_auth.txt\" 2>\u002Fdev\u002Fnull\n```\n\n### Step 6: Capture System Configuration State\n```bash\n# System time (critical for timeline)\ndate -u > \"$EVIDENCE_DIR\u002Fsystem_time_utc.txt\"\nw32tm \u002Fquery \u002Fstatus > \"$EVIDENCE_DIR\u002Fntp_status.txt\"  # Windows\nntpq -p > \"$EVIDENCE_DIR\u002Fntp_status.txt\"  # Linux\n\n# Environment variables\nset > \"$EVIDENCE_DIR\u002Fenvironment_vars.txt\"  # Windows\nenv > \"$EVIDENCE_DIR\u002Fenvironment_vars.txt\"  # Linux\n\n# Scheduled tasks \u002F Cron jobs\nschtasks \u002Fquery \u002Ffo CSV \u002Fv > \"$EVIDENCE_DIR\u002Fscheduled_tasks.csv\"  # Windows\ncrontab -l > \"$EVIDENCE_DIR\u002Fcrontab_current.txt\" 2>\u002Fdev\u002Fnull  # Linux\nls -la \u002Fetc\u002Fcron.* > \"$EVIDENCE_DIR\u002Fcron_dirs.txt\" 2>\u002Fdev\u002Fnull\n\n# Services\nsc queryex type=service state=all > \"$EVIDENCE_DIR\u002Fservices_all.txt\"  # Windows\nsystemctl list-units --type=service --all > \"$EVIDENCE_DIR\u002Fsystemd_services.txt\"  # Linux\n\n# Windows Registry - key autostart locations\nreg export \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR\u002Freg_run_hklm.reg\" \u002Fy\nreg export \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" \"$EVIDENCE_DIR\u002Freg_run_hkcu.reg\" \u002Fy\nreg export \"HKLM\\SYSTEM\\CurrentControlSet\\Services\" \"$EVIDENCE_DIR\u002Freg_services.reg\" \u002Fy\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\u002Fchain_of_custody.txt\" \u003C\u003C 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>\u002Fdev\u002Fnull || ipconfig | grep IPv4)\nCollection Method: Live forensic collection via trusted USB toolkit\n\nEvidence Items:\n$(ls -la \"$EVIDENCE_DIR\u002F\" | 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\n",{"name":5,"tags":25,"author":32,"domain":33,"source":34,"license":15,"version":35,"nist_csf":36,"subdomain":26,"description":7,"mitre_attack":41,"source_commit":47},[26,27,28,29,30,31],"incident-response","dfir","forensics","volatile-evidence","memory-forensics","chain-of-custody","mahipal","cybersecurity","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","1.0",[37,38,39,40],"RS.MA-01","RS.MA-02","RS.AN-03","RC.RP-01",[42,43,44,45,46],"T1059.001","T1057","T1049","T1003.001","T1543.003","04450304b12645cb2b974ab96d28c0664758a88d","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa","core\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill collecting-volatile-evidence-from-compromised-host",{"tool":64,"command":65},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill collecting-volatile-evidence-from-compromised-host",{"tool":67,"command":68},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill collecting-volatile-evidence-from-compromised-host","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FSKILL.md",true,[72,78,82,88,92,96,102],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Ftemplate.md","ASSET","资产文件",2125,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fassets\u002Ftemplate.md",{"path":79,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fapi-reference.md","REFERENCE","参考文档",2075,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fapi-reference.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fstandards.md",3041,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fstandards.md",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fworkflows.md",4004,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fworkflows.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fagent.py","SCRIPT","脚本",7167,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fscripts\u002Fagent.py",{"path":103,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fprocess.py",17820,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fscripts\u002Fprocess.py",[107,115,122,130,138,146],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":111,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":20},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":134,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":20},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":142,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":20},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":20},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]