[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78JTCD4N530GH64XAX0Z8DV":3,"skill-same:01M78JTCD4N530GH64XAX0Z8DV":92},{"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":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M78JTCD4N530GH64XAX0Z8DV","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.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: collecting-volatile-evidence-from-compromised-host\ndescription: Collect volatile forensic evidence from a compromised system following order of volatility, preserving memory, network connections, processes, and system state before they are lost.\ndomain: cybersecurity\nsubdomain: incident-response\ntags: [incident-response, dfir, forensics, volatile-evidence, memory-forensics, chain-of-custody]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\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,"license":15,"version":34,"subdomain":26,"description":7},[26,27,28,29,30,31],"incident-response","dfir","forensics","volatile-evidence","memory-forensics","chain-of-custody","mahipal","cybersecurity","1.0","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fcollecting-volatile-evidence-from-compromised-host",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill collecting-volatile-evidence-from-compromised-host",{"tool":50,"command":51},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill collecting-volatile-evidence-from-compromised-host",{"tool":53,"command":54},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill collecting-volatile-evidence-from-compromised-host","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002FSKILL.md",true,[58,64,68,74,78,82,88],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"assets\u002Ftemplate.md","ASSET","资产文件",2125,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fassets\u002Ftemplate.md",{"path":65,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fapi-reference.md","REFERENCE","参考文档",2075,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fapi-reference.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fstandards.md",3041,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fstandards.md",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fworkflows.md",4004,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Freferences\u002Fworkflows.md",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fagent.py","SCRIPT","脚本",7167,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fscripts\u002Fagent.py",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fprocess.py",17820,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcollecting-volatile-evidence-from-compromised-host\u002Fscripts\u002Fprocess.py",[93,101,108,115,122,130],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\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":97,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\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":97,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\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":97,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]