Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / COERCION

PetitPotam

This note documents detection patterns related to PetitPotam within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4776NTLM authenticationCriticalMachine account NTLM authentication triggered via EFSRPC coercion.
Security4624Successful logonHighLogon events generated from coerced machine authentication.
Security4769Kerberos service ticket requestMediumService ticket requests following coerced authentication.
Security5140Network share accessedMediumSMB authentication events triggered by coercion.
Sysmon3Network connectionCriticalOutbound SMB or HTTP connection from coerced host to attacker-controlled system.
Sysmon1Process creationMediumExecution of PetitPotam or related coercion tools.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Machine account authenticating unexpectedlyComputer account performing NTLM authentication to unusual hostCriticalTypical result of PetitPotam coercion.
Domain controller outbound authenticationDC initiating authentication to remote hostCriticalHighly suspicious behavior.
NTLM authentication followed by relay activityAuthentication used immediately for NTLM relayHighCommon attack chain.
Execution of coercion toolsProcesses associated with PetitPotam exploitationCriticalDirect evidence of attack activity.
SMB/HTTP connection to attacker hostCoerced machine connecting to unknown serverHighIndicates forced authentication attempt.

Common Tools

ToolUsage
PetitPotamExploits MS-EFSRPC to coerce machine authentication.
ntlmrelayxRelays coerced NTLM authentication to other services.
CoercerFramework automating coercion attacks.
CrackMapExecUsed together with relay attacks.
ImpacketProvides relay and coercion capabilities.

Relevant Artifacts

  • Domain controller Security logs (4624, 4776, 4769)
  • SMB authentication logs
  • Network traffic logs showing outbound authentication
  • Sysmon logs (1, 3)
  • EDR telemetry identifying coercion tools
  • Prefetch artifacts for PetitPotam execution
  • NTLM relay logs
  • Authentication logs on relay targets

MITRE ATT&CK References

  • T1187 Forced Authentication
  • T1557 Adversary-in-the-Middle
  • T1557.001 LLMNR/NBT-NS Poisoning and SMB Relay

Decision Tree

  1. Is the suspicious event present?
    • Identify machine account authentication events.
  2. What host generated the event?
    • Determine which server initiated authentication.
  3. Is the authentication expected?
    • Investigate whether system normally authenticates to destination.
  4. Pivot:
    • Source host → inspect execution of PetitPotam or coercion tools.
    • Destination host → analyze relay attempts.
    • Network → inspect SMB or HTTP authentication flows.
  5. Confirm exploitation
    • Determine whether coerced authentication was relayed to escalate privileges.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4776
| where TargetUserName endswith "$"
DeviceNetworkEvents
| where RemotePort in (445,80,443)
| summarize count() by RemoteIP, InitiatingProcessAccountName, bin(TimeGenerated,5m)

EQL

any where event.code == "4776"

Sigma

title: Suspicious Machine Account NTLM Authentication
id: petitpotam-coercion-detection
status: experimental
description: Detects machine account NTLM authentication which may indicate PetitPotam coercion
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4776
  condition: selection
fields:
  - TargetUserName
  - Workstation
falsepositives:
  - Legitimate machine authentication
level: medium
tags:
  - attack.lateral_movement
  - attack.t1187

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
NTLM restrictionsDisable or restrict NTLM authenticationCriticalPrevents relay abuse.
SMB signingRequire SMB signing across domainHighPrevents NTLM relay attacks.
Patch managementApply patches addressing EFSRPC abuseHighReduces exploitation opportunities.
MonitoringAlert on machine account outbound authenticationHighDetects coercion attempts.
Network segmentationLimit SMB/HTTP authentication flowsMediumReduces relay attack surface.