Used Template Injection to launch an authentication window for users to enter their credentials.1
Forced Authentication T1187
- Tactic
- Credential Access
- Platform
- Windows
- Version
- 1.4
- Created
- 16 January 2018
- Last modified
- 24 October 2025
- Contributors
- Teodor Cimpoesu; Sudhanshu Chauhan, @Sudhanshu_C; Jiraput Thamsongkrah; Purinut Wongwaiwuttiguldej; Natthawut Saexu
Adversaries may gather credential material by invoking or forcing a user to automatically provide authentication information through a mechanism in which they can intercept.
Forced Authentication MITRE reference T1187
2 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Has gathered hashed user credentials over SMB using spearphishing attachments with external resource links and by modifying .LNK file icon resources to collect credentials from virtualized systems.12
All 2 groups for this technique
1 software entry is documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can use protocol handlers to coax the operating system to send NTLMv2 authentication responses to attacker-controlled infrastructure.1
All 1 software entries for this technique
Offense vs defense T1187
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Forced Authentication detection strategy DET0022
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect Forced SMB/WebDAV Authentication via lure files and outbound NTLM
AN0065 · Windows
Adversary stages a lure that references a remote resource (e.g., LNK/SCF/Office template). When the user opens/renders the file or a shell enumerates icons, the host automatically attempts SMB or WebDAV authentication to the attacker host. The chain is: (1) lure file is created or modified in a user-exposed location → (2) user or system accesses the lure → (3) host makes outbound NTLM (SMB 139/445 or WebDAV over 80/443) to an untrusted destination → (4) repeated attempts from multiple users/hosts or from privileged workstations.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| File CreationDC0039 | WinEventLog:Sysmon | EventCode=11 |
| File ModificationDC0061 | WinEventLog:Security | EventCode=4663, 4670, 4656 |
| Network Traffic FlowDC0078 | NSM:Flow | Outbound connections to TCP 139,445 and HTTP/HTTPS to WebDAV endpoints from workstation subnets |
| Network Traffic ContentDC0085 | NSM:Flow | HTTP/WebDAV requests that contain NTLMSSP or PROPFIND/MOVE/OPTIONS with Authorization: NTLM |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| UserLocations | Folders where lures are most effective (Desktop, Public, Downloads, Temp, Cache, Start Menu, Startup). Adjust to enterprise layout. |
| LureExtensions | File types commonly abused (.lnk, .scf, .url, .doc/.xls/.ppt/.pdf/.html). Extend for your tooling and languages. |
| UntrustedCIDR/DNS | Org-specific list of external/unknown networks or domains; used to suppress sanctioned file servers and WebDAV gateways. |
| TimeWindow | Correlation horizon (e.g., 15–30 minutes) between file access and outbound NTLM attempt. |
| WorkstationZones | Asset/zone tags that distinguish workstations from servers; helps flag workstation→workstation SMB, which is often abnormal. |
| OfficeTemplatePaths | Paths to Office templates to catch template injection references and abnormal loads. |
Account usage within SMB can be used to identify compromised credentials, and the hosts accessed with them.
D3FEND techniques
The defensive countermeasure this analytic implements, in MITRE’s D3FEND ontology.
| ID | Name |
|---|---|
| D3-IPCTA | IPC Traffic Analysis |
Data model references
The CAR data model objects, actions and fields the logic reads. Map these to your own schema before implementing.
| Object | Action | Field |
|---|---|---|
| flow | message | dest_port |
| flow | message | proto_info |
| flow | message | protocol |
Implementations
Pseudocode is the canonical logic; the rest are CAR’s translations into vendor query languages.
flow = search Flow:Message smb_setup = filter flow where (dest_port == 445 and protocol == smb.setup) smb_setup.user = smb_write.proto_info.user_name smb_setup.target_host = smb_write.proto_info.hostname output smb_write
Block SMB traffic from exiting an enterprise network with egress filtering or by blocking TCP ports 139, 445 and UDP port 137. Filter or block WebDAV protocol traffic from exiting the network. If access to external resources over SMB and WebDAV is necessary, then traffic should be tightly limited with allowlisting.
Use strong passwords to increase the difficulty of credential hashes from being cracked if they are obtained.
Tests from Atomic Red Team (MIT licence) · technique definition