[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71ANQPHZ0937PBHBDM3PM2A":3,"skill-same:01M71ANQPHZ0937PBHBDM3PM2A":68},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":67},"01M71ANQPHZ0937PBHBDM3PM2A","cyber-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.","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-collecting-volatile-evidence-from-compromised-host\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cyber collecting volatile evidence from compromised host","evidence","collecting volatile evidence from compromised host","host","true","memory-forensics","collect","system","domain","dfir","t1003","network","subdomain","false","cybersecurity","incident","memory","Volatility","chain","T1059.001","2026-11-10 10:12:30",false,"---\nname: cyber-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.\"\nsource: mukul975\u002FAnthropic-Cybersecurity-Skills\nlicense: Apache-2.0\nauthorized_lab: false\norigin_frontmatter: \"name: collecting-volatile-evidence-from-compromised-host | description: Collect volatile forensic evidence from a compromised system following |   order of volatility, preserving memory, network connections, processes, and system |   state before they are lost. | domain: cybersecurity | subdomain: incident-response | tags: | - incident-response | - dfir | - forensics | - volatile-evidence | - memory-forensics | - chain-of-custody | mitre_attack: | - T1059.001 | - T1057 | - T1049 | - T1003.001 | \"\nhide: true\n---\n\n> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\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","> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\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",{"hide":44,"name":5,"source":45,"license":15,"description":7,"authorized_lab":40,"origin_frontmatter":46},true,"mukul975\u002FAnthropic-Cybersecurity-Skills","name: collecting-volatile-evidence-from-compromised-host | description: Collect volatile forensic evidence from a compromised system following |   order of volatility, preserving memory, network connections, processes, and system |   state before they are lost. | domain: cybersecurity | subdomain: incident-response | tags: | - incident-response | - dfir | - forensics | - volatile-evidence | - memory-forensics | - chain-of-custody | mitre_attack: | - T1059.001 | - T1057 | - T1049 | - T1003.001 | ","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794",".claude\u002Fskills\u002Fcyber-collecting-volatile-evidence-from-compromised-host",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-14 03:05:17",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":44},[57,60,63],{"tool":58,"command":59},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-collecting-volatile-evidence-from-compromised-host",{"tool":61,"command":62},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-collecting-volatile-evidence-from-compromised-host",{"tool":64,"command":65},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-collecting-volatile-evidence-from-compromised-host","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-collecting-volatile-evidence-from-compromised-host\u002FSKILL.md",[],[69,78,85,92,99,106],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"01M73K12W8K0GSTB4ABKS8BD7H","executing-plans","Use when you have a written implementation plan to execute in a separate session with review checkpoints","MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexecuting-plans\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":77},"01M73HC2NSXYYN54GBASVG2RDJ","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":77},"01M73HC12557CB08VDEF1YTF3H","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":77},"01M73HBXB8F8ED4KQXVXEWCV8B","trade-edge-audit","The EDGE LENS for trading peers — recalls EVERY factor\u002Findicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer \"does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon\" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-edge-audit\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":77},"01M73HBT5ZRCA82SQJ781NWVNQ","trade-decision-sim","The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat\u002Fzero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-decision-sim\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":77},"01M73HBN2WTKGN790WYQD6GBM4","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[]]