Has embedded OneDrive URLs in emails leading to malicious file installation.1
- Tactic
- Initial Access
- Platforms
- Identity Provider, Linux, macOS, Office Suite, SaaS, Windows
- Version
- 2.8
- Created
- 02 March 2020
- Last modified
- 12 May 2026
- Contributors
- Philip Winther; Shailesh Tiwary (Indian Army); Mark Wee; Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services); Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC); Kobi Haimovich, CardinalOps; Menachem Goldstein
Adversaries may send spearphishing emails with a malicious link in an attempt to gain access to victim systems. Spearphishing with a link is a specific variant of spearphishing. It is different from other forms of spearphishing in that it employs the use of links to download malware contained in email, instead of attaching malicious files to the email itself, to avoid defenses that may inspect email attachments. Spearphishing may also involve social engineering techniques, such as posing as a trusted source.
Spearphishing Link MITRE reference T1566.002
46 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 distributed malicious links to victims that redirect to EvilProxy-based phishing sites to harvest credentials.1
Has sent spearphishing emails containing malicious links.123
Has used phishing emails with malicious links to gain initial access.12
Has sent emails containing links to malicious JavaScript files.1
Has sent victims emails containing links to compromised websites.1
All 46 groups for this technique · 6 newest in this preview
9 campaigns have been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
Utilized emails with hyperlinks leading to malicious ZIP archive files containing scripts to download and install Pikabot.1
Mustang Panda distributed malicious links in phishing emails leading to HTML files that would direct the victim to malicious MSC files if running Windows based on User Agent fingerprinting during RedDelta Modified PlugX Infection Chain Operations.1
During C0011, Transparent Tribe sent emails containing a malicious link to student targets in India.1
During Operation Spalax, the threat actors sent phishing emails to victims that contained a malicious link.1
During Operation Dream Job, Lazarus Group sent malicious OneDrive links with fictitious job offer advertisements via email.12
During C0021, the threat actors sent phishing emails with unique malicious links, likely for tracking victim clicks.12
All 9 campaigns for this technique · 6 newest in this preview
31 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Has sent bulk phishing emails containing malicious hyperlinks that direct victims to actor-controlled landing pages impersonating services including SharePoint, OneDrive, Teams, DocuSign, and Adobe Acrobat Sign. 1
Has been distributed through phishing emails containing malicious OneDrive links.1
Has been delivered via malicious links in spearphishing emails.12
Has been distributed through ClickFix phishing campaigns.1
Has been delivered through phishing emails containing malicious links.1
Has been distributed to victims through emails containing malicious links.12
All 31 software entries for this technique · 6 newest in this preview
Offense vs defense T1566.002
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.
Spearphishing Link detection strategy DET0107
MITRE names one behaviour worth catching for this technique and breaks it into 4 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection Strategy for Spearphishing Links
AN0298 · Windows
Correlation of inbound emails with embedded links followed by user-driven browser navigation to suspicious or obfuscated domains. Detection chain includes malicious URL in email → user click recorded in Office logs → browser process spawning unusual child processes (e.g., PowerShell, cmd) or download activity.
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 |
|---|---|---|
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| Application Log ContentDC0038 | m365:unified | Send/Receive: Inbound emails containing embedded or shortened URLs |
| Network Connection CreationDC0082 | WinEventLog:Sysmon | EventCode=3, 22 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| SuspiciousTLDs | List of monitored top-level domains commonly abused in phishing (e.g., .xyz, .top, .tk). |
| URLShortenerDomains | Domains like bit.ly, tinyurl.com flagged for deeper expansion/inspection. |
| ClickToExecutionWindow | Time threshold between URL click and suspicious process execution. |
AN0299 · Linux
Detection of spearphishing links through mail logs and browser activity. Behavior includes email with suspicious URLs → user click recorded in mail/web proxy logs → shell or interpreter launched from browser process.
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 |
|---|---|---|
| Process CreationDC0032 | auditd:SYSCALL | execve: Execution of scripts or binaries spawned from browser processes |
| Application Log ContentDC0038 | Application:Mail | Inbound emails containing hyperlinks from suspicious sources |
| Network Traffic FlowDC0078 | NSM:Flow | Outbound requests to domains not previously resolved or associated with phishing campaigns |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| MonitoredBrowsers | List of browser processes to monitor (e.g., firefox, chrome, chromium). |
| PhishingIndicators | Custom regex patterns for detecting obfuscated or IDN homograph URLs. |
AN0300 · macOS
Correlation of Mail.app logs with Safari/Chrome activity. Suspicious behavior includes email links → Safari/Chrome accessing newly registered or lookalike domains → osascript or Terminal spawned unexpectedly.
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 |
|---|---|---|
| Process CreationDC0032 | macos:unifiedlog | Browser processes launching unexpected interpreters (osascript, bash) |
| Application Log ContentDC0038 | macos:unifiedlog | Received messages with embedded or shortened URLs |
| Network Traffic ContentDC0085 | macos:unifiedlog | Connections to suspicious domains with mismatched certificate or unusual patterns |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| CertificateAnomalies | Flag self-signed or mismatched TLS certificates from spearphishing domains. |
| ExecutionDelayThreshold | Suspicious delay between URL click and malicious process spawn. |
AN0301 · Identity Provider
Detection of OAuth consent phishing or malicious login attempts initiated through spearphishing links. Behavior chain includes inbound email with OAuth URL → consent page visited → unusual token grants logged in IdP logs.
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 |
|---|---|---|
| Application Log ContentDC0038 | azure:signinlogs | ConsentGrant: Suspicious consent grants to non-approved or unknown applications |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| AllowedApps | Whitelisted apps permitted for OAuth consent grants. |
| AnomalousConsentPatterns | Patterns of consent from unusual geographies, devices, or unapproved applications. |
Audit applications and their permissions to ensure access to data and resources are limited based upon necessity and principle of least privilege.
Determine if certain websites that can be used for spearphishing are necessary for business operations and consider blocking access if activity cannot be monitored well or if it poses a significant risk.
Use anti-spoofing and email authentication mechanisms to filter messages based on validity checks of the sender domain (using SPF) and integrity of messages (using DKIM). Enabling these mechanisms within an organization (through policies such as DMARC) may enable recipients (intra-org and cross domain) to perform similar message filtering and validation.. Furthermore, policies may enforce / install browser extensions that protect against IDN and homograph attacks.
Azure AD Administrators apply limitations upon the ability for users to grant consent to unfamiliar or unverified third-party applications.
Users can be trained to identify social engineering techniques and spearphishing emails with malicious links which includes phishing for consent with OAuth 2.0. Additionally, users may perform visual checks of the domains they visit; however, homographs in ASCII and in IDN domains and URL schema obfuscation may render manual checks difficult. Use email warning banners to alert users when emails contain links from external senders, prompting them to exercise caution and reducing the likelihood of falling victim to spearphishing attacks. Phishing training and other cybersecurity training may raise awareness to check URLs before visiting the sites.
| # | Test | Platform | Executor | Elevation | Prereqs | Cleanup | Ref | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01 | Paste and run technique | windows | PowerShell | — | — | — | ||||||||||
Tests the **Paste and Run** technique, where users are tricked into running
malicious PowerShell commands by automating the Win+R command to open the
Run dialog and input Input arguments
Attack command # Add user32.dll for keybd_event
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class K {
[DllImport("user32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo);
}
"@
# Virtual key codes
$VK_LWIN, $VK_R, $KEYDOWN, $KEYUP = 0x5B, 0x52, 0x0000, 0x0002
# Open Run dialog (Win+R)
[K]::keybd_event($VK_LWIN, 0, $KEYDOWN, [UIntPtr]::Zero)
[K]::keybd_event($VK_R, 0, $KEYDOWN, [UIntPtr]::Zero)
[K]::keybd_event($VK_R, 0, $KEYUP, [UIntPtr]::Zero)
[K]::keybd_event($VK_LWIN, 0, $KEYUP, [UIntPtr]::Zero)
# Short delay for Run dialog
Start-Sleep -Milliseconds 500
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait("cmd /c powershell -ec " + [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes('#{execution_command}')) + "{ENTER}")
GUIDa125d4bf-dd57-486c-969f-0e4388370475 | ||||||||||||||||
Tests from Atomic Red Team (MIT licence) · technique definition