[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B8N2F63ATVYBZG8P75DS8P":3,"skill-same:01M7B8N2F63ATVYBZG8P75DS8P":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":13,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M7B8N2F63ATVYBZG8P75DS8P","performing-lateral-movement-detection",null,"Detects lateral movement techniques including Pass-the-Hash, PsExec, WMI execution, RDP pivoting, and SMB-based spreading by correlating Windows Security\u002FSysmon event logs, network flow data (NetFlow\u002FZeek), and endpoint telemetry in a SIEM, mapped to MITRE ATT&CK Lateral Movement (TA0008) techniques with sample SPL detection queries. Use when a SOC team needs to detect attackers pivoting between internal systems after initial compromise, trace an attacker's movement path during an incident investigation, or build detection engineering rules for TA0008; not for detecting initial access or external attacks.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-lateral-movement-detection\ndescription: 'Detects lateral movement techniques including Pass-the-Hash, PsExec,\n  WMI execution, RDP pivoting, and SMB-based spreading by correlating Windows Security\u002FSysmon\n  event logs, network flow data (NetFlow\u002FZeek), and endpoint telemetry in a SIEM,\n  mapped to MITRE ATT&CK Lateral Movement (TA0008) techniques with sample SPL detection\n  queries. Use when a SOC team needs to detect attackers pivoting between internal\n  systems after initial compromise, trace an attacker''s movement path during an\n  incident investigation, or build detection engineering rules for TA0008; not for\n  detecting initial access or external attacks.\n\n  '\ndomain: cybersecurity\nsubdomain: soc-operations\ntags:\n- soc\n- lateral-movement\n- mitre-attack\n- pass-the-hash\n- psexec\n- wmi\n- rdp\n- smb\n- detection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Token Binding\n- Execution Isolation\n- Restore Access\n- Application Protocol Command Analysis\n- Process Termination\nnist_csf:\n- DE.CM-01\n- DE.AE-02\n- RS.MA-01\n- DE.AE-06\nmitre_attack:\n- T1078\n- T1685.002\n- T1685.005\n- T1566\n- T1021\n---\n# Performing Lateral Movement Detection\n\n## When to Use\n\nUse this skill when:\n- SOC teams need to detect attackers pivoting between systems after initial compromise\n- Incident investigations require tracking an attacker's movement path through the network\n- Detection engineering needs lateral movement rules mapped to ATT&CK TA0008 techniques\n- Red\u002Fpurple team exercises identify lateral movement detection gaps\n\n**Do not use** for detecting initial access or external attacks — lateral movement detection focuses on internal host-to-host pivot activity.\n\n## Prerequisites\n\n- Windows Security Event Logs (EventCode 4624, 4625, 4648, 4672) from all endpoints and servers\n- Sysmon deployed with process creation (EventCode 1), network connections (EventCode 3), and named pipe (EventCode 17\u002F18)\n- Network flow data (NetFlow\u002FsFlow, Zeek connection logs) for internal traffic analysis\n- SIEM with cross-source correlation capability\n- Baseline of normal internal authentication patterns\n\n## Workflow\n\n### Step 1: Detect Pass-the-Hash \u002F Pass-the-Ticket (T1550)\n\n**Pass-the-Hash Detection (EventCode 4624 with NTLM):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624 Logon_Type=3\nAuthenticationPackageName=\"NTLM\"\n| where TargetUserName!=\"ANONYMOUS LOGON\" AND TargetUserName!=\"$\"\n| stats count, dc(ComputerName) AS unique_targets, values(ComputerName) AS targets\n  by src_ip, TargetUserName\n| where unique_targets > 3\n| eval alert = \"Possible Pass-the-Hash: NTLM network logon to \".unique_targets.\" hosts\"\n| sort - unique_targets\n| table src_ip, TargetUserName, unique_targets, count, targets, alert\n```\n\n**Overpass-the-Hash Detection (Kerberos with RC4):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4769\nTicketEncryptionType=\"0x17\"\n| where ServiceName!=\"krbtgt\" AND ServiceName!=\"$\"\n| stats count, dc(ServiceName) AS unique_services by src_ip, TargetUserName\n| where count > 5\n| eval alert = \"Possible Overpass-the-Hash: RC4 Kerberos tickets from \".src_ip\n| table _time, src_ip, TargetUserName, unique_services, count, alert\n```\n\n**Golden\u002FSilver Ticket Detection (T1558):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4769\n| where TicketOptions=\"0x40810000\" OR TicketOptions=\"0x40800000\"\n| eval ticket_lifetime = TicketExpireTime - TicketIssueTime\n| where ticket_lifetime > 36000  --- >10 hours (abnormal)\n| stats count by src_ip, TargetUserName, ServiceName, TicketEncryptionType, TicketOptions\n| eval alert = \"Possible Golden\u002FSilver Ticket: Abnormal ticket properties\"\n```\n\n### Step 2: Detect Remote Service Exploitation (T1021)\n\n**PsExec Detection (T1021.002):**\n```spl\n--- Via Sysmon process creation\nindex=sysmon EventCode=1\n(Image=\"*\\\\psexec.exe\" OR Image=\"*\\\\psexesvc.exe\"\n OR OriginalFileName=\"psexec.c\" OR OriginalFileName=\"psexesvc.exe\"\n OR ParentImage=\"*\\\\psexesvc.exe\")\n| table _time, Computer, User, ParentImage, Image, CommandLine, Hashes\n\n--- Via named pipe creation (Sysmon EventCode 17)\nindex=sysmon EventCode=17\nPipeName IN (\"\\\\PSEXESVC*\", \"\\\\RemCom*\", \"\\\\csexec*\")\n| table _time, Computer, User, Image, PipeName\n\n--- Via Windows service creation (EventCode 7045)\nindex=wineventlog sourcetype=\"WinEventLog:System\" EventCode=7045\nServiceName=\"PSEXESVC\" OR ServiceFileName=\"*PSEXESVC*\"\n| table _time, Computer, ServiceName, ServiceFileName, AccountName\n```\n\n**WMI Remote Execution (T1047):**\n```spl\nindex=sysmon EventCode=1\n(Image=\"*\\\\wmic.exe\" AND CommandLine=\"*\u002Fnode:*\")\nOR (ParentImage=\"*\\\\WmiPrvSE.exe\" AND Image IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\"))\n| eval execution_type = case(\n    match(Image, \"wmic\"), \"WMI Command Line\",\n    match(ParentImage, \"WmiPrvSE\"), \"WMI Provider Host (remote execution)\"\n  )\n| table _time, Computer, User, execution_type, ParentImage, Image, CommandLine\n```\n\n**WinRM\u002FPowerShell Remoting (T1021.006):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624\nLogon_Type=3 AuthenticationPackageName=\"Kerberos\"\n| where ProcessName=\"*\\\\wsmprovhost.exe\" OR ProcessName=\"*\\\\powershell.exe\"\n| stats count, dc(ComputerName) AS unique_targets by src_ip, TargetUserName\n| where unique_targets > 2\n| eval alert = \"PowerShell Remoting to \".unique_targets.\" hosts from \".src_ip\n\n--- Sysmon variant\nindex=sysmon EventCode=1\nParentImage=\"*\\\\wsmprovhost.exe\"\nImage IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\", \"*\\\\csc.exe\")\n| table _time, Computer, User, Image, CommandLine\n```\n\n**RDP Lateral Movement (T1021.001):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624 Logon_Type=10\n| stats count, dc(ComputerName) AS rdp_targets, values(ComputerName) AS destinations,\n        earliest(_time) AS first_rdp, latest(_time) AS last_rdp\n  by src_ip, TargetUserName\n| where rdp_targets > 2\n| eval duration_hours = round((last_rdp - first_rdp) \u002F 3600, 1)\n| eval alert = TargetUserName.\" RDP'd to \".rdp_targets.\" hosts in \".duration_hours.\" hours\"\n| sort - rdp_targets\n```\n\n### Step 3: Detect SMB-Based Lateral Movement\n\n**Anomalous SMB Traffic Patterns:**\n```spl\nindex=firewall OR index=zeek sourcetype IN (\"pan:traffic\", \"bro:conn:json\")\ndest_port=445 action=allowed\n| where src_ip!=dest_ip\n| stats count AS smb_sessions, dc(dest_ip) AS unique_targets,\n        sum(bytes_out) AS total_bytes\n  by src_ip\n| where unique_targets > 10\n| eval alert = case(\n    unique_targets > 50, \"CRITICAL: Mass SMB enumeration from \".src_ip,\n    unique_targets > 20, \"HIGH: Significant SMB lateral movement\",\n    unique_targets > 10, \"MEDIUM: Elevated SMB connections\"\n  )\n| sort - unique_targets\n```\n\n**Admin Share Access (C$, ADMIN$):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=5140\nShareName IN (\"\\\\\\\\*\\\\C$\", \"\\\\\\\\*\\\\ADMIN$\", \"\\\\\\\\*\\\\IPC$\")\n| where SubjectUserName!=\"SYSTEM\" AND SubjectUserName!=\"$\"\n| stats count, dc(ComputerName) AS unique_hosts by SubjectUserName, ShareName, src_ip\n| where unique_hosts > 3\n| eval alert = \"Admin share access to \".unique_hosts.\" hosts by \".SubjectUserName\n| sort - unique_hosts\n```\n\n### Step 4: Build Lateral Movement Graph\n\nVisualize the attack path:\n\n```spl\n--- Build source->destination graph for authentication events\nindex=wineventlog EventCode=4624 Logon_Type IN (3, 10)\nearliest=-24h\n| stats count AS connections, latest(_time) AS last_connection\n  by src_ip, ComputerName, TargetUserName, Logon_Type\n| eval edge = src_ip.\" -> \".ComputerName.\" (User: \".TargetUserName.\", Type: \".Logon_Type.\")\"\n| sort - connections\n| table edge, connections, last_connection\n\n--- Network flow correlation\nindex=netflow earliest=-24h\ndest_port IN (445, 135, 3389, 5985, 5986)\n| stats sum(bytes) AS total_bytes, count AS flow_count,\n        dc(dest_ip) AS targets by src_ip, dest_port\n| where targets > 5\n| eval service = case(\n    dest_port=445, \"SMB\",\n    dest_port=135, \"RPC\u002FWMI\",\n    dest_port=3389, \"RDP\",\n    dest_port IN (5985, 5986), \"WinRM\"\n  )\n| sort - targets\n| table src_ip, service, targets, flow_count, total_bytes\n```\n\n### Step 5: Detect DCOM and Scheduled Task-Based Movement\n\n**DCOM Lateral Execution (T1021.003):**\n```spl\nindex=sysmon EventCode=1\nParentImage IN (\"*\\\\mmc.exe\", \"*\\\\excel.exe\", \"*\\\\outlook.exe\")\nImage IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\", \"*\\\\mshta.exe\")\n| where ParentCommandLine=\"*-Embedding*\"\n| eval alert = \"DCOM-based lateral movement: \".ParentImage.\" spawned \".Image\n| table _time, Computer, User, ParentImage, Image, CommandLine, alert\n```\n\n**Remote Scheduled Task Creation (T1053.005):**\n```spl\nindex=wineventlog EventCode=4698\n| where SubjectUserName!=\"SYSTEM\"\n| eval task_xml = TaskContent\n| search task_xml=\"*http*\" OR task_xml=\"*powershell*\" OR task_xml=\"*cmd*\" OR task_xml=\"*\\\\Temp\\\\*\"\n| table _time, Computer, SubjectUserName, TaskName, task_xml\n```\n\n### Step 6: Correlate Movement with Kill Chain Phases\n\nBuild end-to-end attack chain detection:\n\n```spl\n--- Detect complete lateral movement sequence\nindex=wineventlog OR index=sysmon\n(EventCode=4625 OR EventCode=4624 OR EventCode=1 OR EventCode=4698 OR EventCode=5140)\n| eval phase = case(\n    EventCode=4625, \"1-Recon\u002FBruteForce\",\n    EventCode=4624 AND Logon_Type=3, \"2-Lateral Movement\",\n    EventCode=5140 AND match(ShareName, \"C\\$|ADMIN\\$\"), \"3-Admin Share Access\",\n    EventCode=1 AND match(ParentImage, \"psexesvc|WmiPrvSE|wsmprovhost\"), \"4-Remote Execution\",\n    EventCode=4698, \"5-Persistence (Scheduled Task)\",\n    1=1, \"other\"\n  )\n| where phase!=\"other\"\n| stats count by phase, src_ip, ComputerName, TargetUserName\n| sort phase, _time\n| table phase, src_ip, ComputerName, TargetUserName, count\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **Lateral Movement** | Post-compromise technique where attackers pivot between systems to reach targets |\n| **Pass-the-Hash** | Using stolen NTLM hash for authentication without knowing the plaintext password |\n| **Pass-the-Ticket** | Using stolen Kerberos TGT\u002FTGS tickets for authentication across the domain |\n| **PsExec** | Sysinternals tool (and attack technique) for remote process execution via SMB and named pipes |\n| **WMI Execution** | Using Windows Management Instrumentation for remote command execution via DCOM or WinRM |\n| **Admin Share** | Default Windows administrative shares (C$, ADMIN$, IPC$) used for remote system management |\n\n## Tools & Systems\n\n- **Splunk Enterprise Security**: SIEM platform for correlating Windows events, Sysmon, and network flows\n- **Microsoft Defender for Identity**: Cloud service detecting lateral movement via domain controller monitoring\n- **BloodHound**: Active Directory attack path analysis tool for identifying lateral movement opportunities\n- **CrowdStrike Falcon**: EDR platform with lateral movement detection and automated containment\n- **Zeek (Bro)**: Network monitor generating connection logs for SMB, RDP, and WinRM traffic analysis\n\n## Common Scenarios\n\n- **PsExec Spread**: Attacker uses PsExec to execute malware across 20 workstations — detect via service creation events\n- **RDP Pivoting**: Compromised VPN account used to RDP through multiple internal hosts — detect via Logon_Type 10 chains\n- **WMI Recon and Execution**: Attacker uses WMI for discovery then execution — detect via WmiPrvSE child processes\n- **Pass-the-Hash Campaign**: Stolen local admin hash used across subnet — detect via NTLM Logon_Type 3 to multiple hosts\n- **Scheduled Task Persistence**: Remote scheduled task created on domain controller — detect via EventCode 4698 from non-admin source\n\n## Output Format\n\n```\nLATERAL MOVEMENT DETECTION REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nPeriod:       2024-03-15 14:00 to 18:00 UTC\nSource:       192.168.1.105 (WORKSTATION-042)\n\nMovement Path:\n  14:23  192.168.1.105 → 10.0.5.20  (DC-PRIMARY) — PtH via NTLM Type 3\n  14:25  10.0.5.20 → 10.0.5.21     (DC-BACKUP)  — Kerberos ticket reuse\n  14:28  10.0.5.20 → 10.0.10.15    (FILESERVER-01) — PsExec service creation\n  14:32  10.0.10.15 → 10.0.10.20   (DB-PRIMARY) — WMI remote execution\n  14:35  10.0.10.20 → 10.0.10.25   (DB-BACKUP)  — SMB admin share access\n\nTechniques Detected:\n  T1550.002 — Pass-the-Hash (NTLM authentication to DC)\n  T1021.002 — PsExec (remote service installation)\n  T1047     — WMI Execution (WmiPrvSE child process)\n  T1021.002 — SMB Admin Share (C$ access on DB-BACKUP)\n\nAffected Systems: 5 hosts across 2 network segments\nUser Account:     admin_compromised (Domain Admin)\nContainment:      All 5 hosts isolated at 14:45 UTC\n```\n","# Performing Lateral Movement Detection\n\n## When to Use\n\nUse this skill when:\n- SOC teams need to detect attackers pivoting between systems after initial compromise\n- Incident investigations require tracking an attacker's movement path through the network\n- Detection engineering needs lateral movement rules mapped to ATT&CK TA0008 techniques\n- Red\u002Fpurple team exercises identify lateral movement detection gaps\n\n**Do not use** for detecting initial access or external attacks — lateral movement detection focuses on internal host-to-host pivot activity.\n\n## Prerequisites\n\n- Windows Security Event Logs (EventCode 4624, 4625, 4648, 4672) from all endpoints and servers\n- Sysmon deployed with process creation (EventCode 1), network connections (EventCode 3), and named pipe (EventCode 17\u002F18)\n- Network flow data (NetFlow\u002FsFlow, Zeek connection logs) for internal traffic analysis\n- SIEM with cross-source correlation capability\n- Baseline of normal internal authentication patterns\n\n## Workflow\n\n### Step 1: Detect Pass-the-Hash \u002F Pass-the-Ticket (T1550)\n\n**Pass-the-Hash Detection (EventCode 4624 with NTLM):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624 Logon_Type=3\nAuthenticationPackageName=\"NTLM\"\n| where TargetUserName!=\"ANONYMOUS LOGON\" AND TargetUserName!=\"$\"\n| stats count, dc(ComputerName) AS unique_targets, values(ComputerName) AS targets\n  by src_ip, TargetUserName\n| where unique_targets > 3\n| eval alert = \"Possible Pass-the-Hash: NTLM network logon to \".unique_targets.\" hosts\"\n| sort - unique_targets\n| table src_ip, TargetUserName, unique_targets, count, targets, alert\n```\n\n**Overpass-the-Hash Detection (Kerberos with RC4):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4769\nTicketEncryptionType=\"0x17\"\n| where ServiceName!=\"krbtgt\" AND ServiceName!=\"$\"\n| stats count, dc(ServiceName) AS unique_services by src_ip, TargetUserName\n| where count > 5\n| eval alert = \"Possible Overpass-the-Hash: RC4 Kerberos tickets from \".src_ip\n| table _time, src_ip, TargetUserName, unique_services, count, alert\n```\n\n**Golden\u002FSilver Ticket Detection (T1558):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4769\n| where TicketOptions=\"0x40810000\" OR TicketOptions=\"0x40800000\"\n| eval ticket_lifetime = TicketExpireTime - TicketIssueTime\n| where ticket_lifetime > 36000  --- >10 hours (abnormal)\n| stats count by src_ip, TargetUserName, ServiceName, TicketEncryptionType, TicketOptions\n| eval alert = \"Possible Golden\u002FSilver Ticket: Abnormal ticket properties\"\n```\n\n### Step 2: Detect Remote Service Exploitation (T1021)\n\n**PsExec Detection (T1021.002):**\n```spl\n--- Via Sysmon process creation\nindex=sysmon EventCode=1\n(Image=\"*\\\\psexec.exe\" OR Image=\"*\\\\psexesvc.exe\"\n OR OriginalFileName=\"psexec.c\" OR OriginalFileName=\"psexesvc.exe\"\n OR ParentImage=\"*\\\\psexesvc.exe\")\n| table _time, Computer, User, ParentImage, Image, CommandLine, Hashes\n\n--- Via named pipe creation (Sysmon EventCode 17)\nindex=sysmon EventCode=17\nPipeName IN (\"\\\\PSEXESVC*\", \"\\\\RemCom*\", \"\\\\csexec*\")\n| table _time, Computer, User, Image, PipeName\n\n--- Via Windows service creation (EventCode 7045)\nindex=wineventlog sourcetype=\"WinEventLog:System\" EventCode=7045\nServiceName=\"PSEXESVC\" OR ServiceFileName=\"*PSEXESVC*\"\n| table _time, Computer, ServiceName, ServiceFileName, AccountName\n```\n\n**WMI Remote Execution (T1047):**\n```spl\nindex=sysmon EventCode=1\n(Image=\"*\\\\wmic.exe\" AND CommandLine=\"*\u002Fnode:*\")\nOR (ParentImage=\"*\\\\WmiPrvSE.exe\" AND Image IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\"))\n| eval execution_type = case(\n    match(Image, \"wmic\"), \"WMI Command Line\",\n    match(ParentImage, \"WmiPrvSE\"), \"WMI Provider Host (remote execution)\"\n  )\n| table _time, Computer, User, execution_type, ParentImage, Image, CommandLine\n```\n\n**WinRM\u002FPowerShell Remoting (T1021.006):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624\nLogon_Type=3 AuthenticationPackageName=\"Kerberos\"\n| where ProcessName=\"*\\\\wsmprovhost.exe\" OR ProcessName=\"*\\\\powershell.exe\"\n| stats count, dc(ComputerName) AS unique_targets by src_ip, TargetUserName\n| where unique_targets > 2\n| eval alert = \"PowerShell Remoting to \".unique_targets.\" hosts from \".src_ip\n\n--- Sysmon variant\nindex=sysmon EventCode=1\nParentImage=\"*\\\\wsmprovhost.exe\"\nImage IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\", \"*\\\\csc.exe\")\n| table _time, Computer, User, Image, CommandLine\n```\n\n**RDP Lateral Movement (T1021.001):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=4624 Logon_Type=10\n| stats count, dc(ComputerName) AS rdp_targets, values(ComputerName) AS destinations,\n        earliest(_time) AS first_rdp, latest(_time) AS last_rdp\n  by src_ip, TargetUserName\n| where rdp_targets > 2\n| eval duration_hours = round((last_rdp - first_rdp) \u002F 3600, 1)\n| eval alert = TargetUserName.\" RDP'd to \".rdp_targets.\" hosts in \".duration_hours.\" hours\"\n| sort - rdp_targets\n```\n\n### Step 3: Detect SMB-Based Lateral Movement\n\n**Anomalous SMB Traffic Patterns:**\n```spl\nindex=firewall OR index=zeek sourcetype IN (\"pan:traffic\", \"bro:conn:json\")\ndest_port=445 action=allowed\n| where src_ip!=dest_ip\n| stats count AS smb_sessions, dc(dest_ip) AS unique_targets,\n        sum(bytes_out) AS total_bytes\n  by src_ip\n| where unique_targets > 10\n| eval alert = case(\n    unique_targets > 50, \"CRITICAL: Mass SMB enumeration from \".src_ip,\n    unique_targets > 20, \"HIGH: Significant SMB lateral movement\",\n    unique_targets > 10, \"MEDIUM: Elevated SMB connections\"\n  )\n| sort - unique_targets\n```\n\n**Admin Share Access (C$, ADMIN$):**\n```spl\nindex=wineventlog sourcetype=\"WinEventLog:Security\" EventCode=5140\nShareName IN (\"\\\\\\\\*\\\\C$\", \"\\\\\\\\*\\\\ADMIN$\", \"\\\\\\\\*\\\\IPC$\")\n| where SubjectUserName!=\"SYSTEM\" AND SubjectUserName!=\"$\"\n| stats count, dc(ComputerName) AS unique_hosts by SubjectUserName, ShareName, src_ip\n| where unique_hosts > 3\n| eval alert = \"Admin share access to \".unique_hosts.\" hosts by \".SubjectUserName\n| sort - unique_hosts\n```\n\n### Step 4: Build Lateral Movement Graph\n\nVisualize the attack path:\n\n```spl\n--- Build source->destination graph for authentication events\nindex=wineventlog EventCode=4624 Logon_Type IN (3, 10)\nearliest=-24h\n| stats count AS connections, latest(_time) AS last_connection\n  by src_ip, ComputerName, TargetUserName, Logon_Type\n| eval edge = src_ip.\" -> \".ComputerName.\" (User: \".TargetUserName.\", Type: \".Logon_Type.\")\"\n| sort - connections\n| table edge, connections, last_connection\n\n--- Network flow correlation\nindex=netflow earliest=-24h\ndest_port IN (445, 135, 3389, 5985, 5986)\n| stats sum(bytes) AS total_bytes, count AS flow_count,\n        dc(dest_ip) AS targets by src_ip, dest_port\n| where targets > 5\n| eval service = case(\n    dest_port=445, \"SMB\",\n    dest_port=135, \"RPC\u002FWMI\",\n    dest_port=3389, \"RDP\",\n    dest_port IN (5985, 5986), \"WinRM\"\n  )\n| sort - targets\n| table src_ip, service, targets, flow_count, total_bytes\n```\n\n### Step 5: Detect DCOM and Scheduled Task-Based Movement\n\n**DCOM Lateral Execution (T1021.003):**\n```spl\nindex=sysmon EventCode=1\nParentImage IN (\"*\\\\mmc.exe\", \"*\\\\excel.exe\", \"*\\\\outlook.exe\")\nImage IN (\"*\\\\cmd.exe\", \"*\\\\powershell.exe\", \"*\\\\mshta.exe\")\n| where ParentCommandLine=\"*-Embedding*\"\n| eval alert = \"DCOM-based lateral movement: \".ParentImage.\" spawned \".Image\n| table _time, Computer, User, ParentImage, Image, CommandLine, alert\n```\n\n**Remote Scheduled Task Creation (T1053.005):**\n```spl\nindex=wineventlog EventCode=4698\n| where SubjectUserName!=\"SYSTEM\"\n| eval task_xml = TaskContent\n| search task_xml=\"*http*\" OR task_xml=\"*powershell*\" OR task_xml=\"*cmd*\" OR task_xml=\"*\\\\Temp\\\\*\"\n| table _time, Computer, SubjectUserName, TaskName, task_xml\n```\n\n### Step 6: Correlate Movement with Kill Chain Phases\n\nBuild end-to-end attack chain detection:\n\n```spl\n--- Detect complete lateral movement sequence\nindex=wineventlog OR index=sysmon\n(EventCode=4625 OR EventCode=4624 OR EventCode=1 OR EventCode=4698 OR EventCode=5140)\n| eval phase = case(\n    EventCode=4625, \"1-Recon\u002FBruteForce\",\n    EventCode=4624 AND Logon_Type=3, \"2-Lateral Movement\",\n    EventCode=5140 AND match(ShareName, \"C\\$|ADMIN\\$\"), \"3-Admin Share Access\",\n    EventCode=1 AND match(ParentImage, \"psexesvc|WmiPrvSE|wsmprovhost\"), \"4-Remote Execution\",\n    EventCode=4698, \"5-Persistence (Scheduled Task)\",\n    1=1, \"other\"\n  )\n| where phase!=\"other\"\n| stats count by phase, src_ip, ComputerName, TargetUserName\n| sort phase, _time\n| table phase, src_ip, ComputerName, TargetUserName, count\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **Lateral Movement** | Post-compromise technique where attackers pivot between systems to reach targets |\n| **Pass-the-Hash** | Using stolen NTLM hash for authentication without knowing the plaintext password |\n| **Pass-the-Ticket** | Using stolen Kerberos TGT\u002FTGS tickets for authentication across the domain |\n| **PsExec** | Sysinternals tool (and attack technique) for remote process execution via SMB and named pipes |\n| **WMI Execution** | Using Windows Management Instrumentation for remote command execution via DCOM or WinRM |\n| **Admin Share** | Default Windows administrative shares (C$, ADMIN$, IPC$) used for remote system management |\n\n## Tools & Systems\n\n- **Splunk Enterprise Security**: SIEM platform for correlating Windows events, Sysmon, and network flows\n- **Microsoft Defender for Identity**: Cloud service detecting lateral movement via domain controller monitoring\n- **BloodHound**: Active Directory attack path analysis tool for identifying lateral movement opportunities\n- **CrowdStrike Falcon**: EDR platform with lateral movement detection and automated containment\n- **Zeek (Bro)**: Network monitor generating connection logs for SMB, RDP, and WinRM traffic analysis\n\n## Common Scenarios\n\n- **PsExec Spread**: Attacker uses PsExec to execute malware across 20 workstations — detect via service creation events\n- **RDP Pivoting**: Compromised VPN account used to RDP through multiple internal hosts — detect via Logon_Type 10 chains\n- **WMI Recon and Execution**: Attacker uses WMI for discovery then execution — detect via WmiPrvSE child processes\n- **Pass-the-Hash Campaign**: Stolen local admin hash used across subnet — detect via NTLM Logon_Type 3 to multiple hosts\n- **Scheduled Task Persistence**: Remote scheduled task created on domain controller — detect via EventCode 4698 from non-admin source\n\n## Output Format\n\n```\nLATERAL MOVEMENT DETECTION REPORT\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nPeriod:       2024-03-15 14:00 to 18:00 UTC\nSource:       192.168.1.105 (WORKSTATION-042)\n\nMovement Path:\n  14:23  192.168.1.105 → 10.0.5.20  (DC-PRIMARY) — PtH via NTLM Type 3\n  14:25  10.0.5.20 → 10.0.5.21     (DC-BACKUP)  — Kerberos ticket reuse\n  14:28  10.0.5.20 → 10.0.10.15    (FILESERVER-01) — PsExec service creation\n  14:32  10.0.10.15 → 10.0.10.20   (DB-PRIMARY) — WMI remote execution\n  14:35  10.0.10.20 → 10.0.10.25   (DB-BACKUP)  — SMB admin share access\n\nTechniques Detected:\n  T1550.002 — Pass-the-Hash (NTLM authentication to DC)\n  T1021.002 — PsExec (remote service installation)\n  T1047     — WMI Execution (WmiPrvSE child process)\n  T1021.002 — SMB Admin Share (C$ access on DB-BACKUP)\n\nAffected Systems: 5 hosts across 2 network segments\nUser Account:     admin_compromised (Domain Admin)\nContainment:      All 5 hosts isolated at 14:45 UTC\n```\n",{"name":5,"tags":24,"author":34,"domain":35,"license":14,"version":36,"nist_csf":37,"subdomain":42,"description":43,"mitre_attack":44,"d3fend_techniques":50},[25,26,27,28,29,30,31,32,33],"soc","lateral-movement","mitre-attack","pass-the-hash","psexec","wmi","rdp","smb","detection","mahipal","cybersecurity","1.0",[38,39,40,41],"DE.CM-01","DE.AE-02","RS.MA-01","DE.AE-06","soc-operations","Detects lateral movement techniques including Pass-the-Hash, PsExec, WMI execution, RDP pivoting, and SMB-based spreading by correlating Windows Security\u002FSysmon event logs, network flow data (NetFlow\u002FZeek), and endpoint telemetry in a SIEM, mapped to MITRE ATT&CK Lateral Movement (TA0008) techniques with sample SPL detection queries. Use when a SOC team needs to detect attackers pivoting between internal systems after initial compromise, trace an attacker's movement path during an incident investigation, or build detection engineering rules for TA0008; not for detecting initial access or external attacks.\n",[45,46,47,48,49],"T1078","T1685.002","T1685.005","T1566","T1021",[51,52,53,54,55],"Token Binding","Execution Isolation","Restore Access","Application Protocol Command Analysis","Process Termination","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill performing-lateral-movement-detection",{"tool":68,"command":69},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill performing-lateral-movement-detection",{"tool":71,"command":72},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill performing-lateral-movement-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection\u002FSKILL.md",true,[76,80,86],{"path":77,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fapi-reference.md","REFERENCE","参考文档",1793,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection\u002Freferences\u002Fapi-reference.md",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fagent.py","SCRIPT","脚本",8962,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-lateral-movement-detection\u002Fscripts\u002Fagent.py",[93,101,108,115,122,129],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]