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

Coercer

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4776NTLM authenticationCriticalMachine account authentication triggered by coercion frameworks.
Security4624Successful logonHighAuthentication event generated after coerced connection.
Security4769Kerberos service ticket requestMediumService ticket activity after forced authentication.
Security5140Network share accessedMediumSMB authentication events triggered by coercion attempt.
Sysmon3Network connectionCriticalOutbound SMB or HTTP connection from coerced system to attacker relay host.
Sysmon1Process creationHighExecution of coercion framework such as Coercer.py.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Machine account authenticating externallyComputer account authenticating to unexpected hostCriticalClassic sign of forced authentication attack.
Domain controller outbound authenticationDC initiating outbound SMB/HTTP authenticationCriticalVery strong indicator of coercion attempt.
Authentication immediately followed by relay activityAuthentication reused against another serviceHighIndicates NTLM relay chain.
Execution of coercion frameworkProcess execution of coercion utilitiesCriticalDirect evidence of exploitation attempt.
Outbound SMB from serversServers authenticating to unknown machinesHighPossible forced authentication scenario.

Common Tools

ToolUsage
CoercerFramework automating multiple forced authentication techniques.
ntlmrelayxRelays coerced authentication to other services.
ImpacketProvides SMB and NTLM relay tooling.
CrackMapExecUsed in relay attack chains.
Custom coercion scriptsTrigger authentication using vulnerable RPC protocols.

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 frameworks
  • Prefetch artifacts for coercion tooling
  • NTLM relay artifacts
  • 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 system initiated authentication.
  3. Is the authentication expected?
    • Investigate whether system normally authenticates to destination.
  4. Pivot:
    • Source host → inspect execution of coercion frameworks.
    • Destination host → analyze relay attempts.
    • Network → inspect SMB/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 Authentication Possibly Caused by Coercion
id: coercer-framework-detection
status: experimental
description: Detects machine account authentication that may indicate forced authentication attacks
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 exploitation.
SMB signingRequire SMB signing across domainHighStops NTLM relay.
Protocol hardeningDisable vulnerable RPC interfaces where possibleHighReduces coercion attack surface.
MonitoringAlert on machine account outbound authenticationHighDetects coercion attempts.
Network segmentationLimit SMB/HTTP communication between serversMediumReduces relay opportunities.