Join our Newsletter — 33% off our NHI Course
Home› Guides› MITRE ATT&CK T1586 Compromise Accounts Guide: Detecting Use…
Guide Identity Visibility, Posture & Threat Detection

MITRE ATT&CK T1586 Compromise Accounts Guide: Detecting Use of Hijacked Accounts

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 26 October 2026 13 min read
On this page

MITRE ATT&CK T1586 Compromise Accounts describes adversaries taking over existing email, social media and cloud accounts so they can use a trusted identity against someone else. It sits in the Resource Development tactic (TA0042), which means most of the activity happens before the attack reaches the real target, and often in an organisation that is not the final victim at all. The defensive problem therefore has two halves: stopping your own accounts from becoming an adversary's resource, and spotting when a trusted partner's hijacked account is being used against you. This guide explains how the technique and its three sub-techniques work, where it shows up, what you can realistically detect and what prevents it. It is written for SOC analysts, detection engineers, identity teams and email security owners.

Key takeaways

  • T1586 is about reuse of trust, not initial access. The adversary compromises an account so that messages, files or infrastructure from it look legitimate; using the account to get into its owner's own environment is T1078 Valid Accounts.
  • Three sub-techniques in ATT&CK v20: T1586.001 Social Media Accounts, T1586.002 Email Accounts and T1586.003 Cloud Accounts. Email accounts carry by far the most procedure examples.
  • MITRE says it cannot be easily prevented directly. The only mapped mitigation is M1056 Pre-compromise, so practical defence moves to the stages either side: protecting your accounts from takeover, and inspecting inbound activity from accounts you already trust.
  • Your own hijacked mailbox is someone else's T1586. Inbox forwarding rules, hiding rules, unusual sending volume and new MFA methods on a mailbox are the strongest signals inside your own tenant.
  • Developer and cloud accounts are now part of the picture. Hijacked GitHub, package registry and cloud storage accounts are used to push malicious code and host tools, so these identities need the same protection as email.

How the attack works

ATT&CK defines Compromise Accounts as adversaries compromising "accounts with services that can be used during targeting", as an alternative to creating new accounts (T1585 Establish Accounts). An existing persona brings history, connections and reputation that a fresh account lacks. The technique follows a broadly consistent lifecycle.

  1. Select: reconnaissance identifies accounts whose identity will be trusted by the real target, such as a supplier's accounts payable mailbox, a journalist's social profile, or a maintainer of a popular open source package.
  2. Acquire credentials: ATT&CK lists phishing for credentials (T1598 Phishing for Information), buying credentials from third-party sites, brute forcing using password reuse from breach dumps, and paying employees, suppliers or business partners for access. LAPSUS$ is recorded paying insiders for credentials.
  3. Take over and develop: the adversary signs in, may add its own MFA method or forwarding, and may adjust the profile so the persona fits the operation.
  4. Use against the target: sending phishing from the trusted address, hijacking existing email threads, connecting to targets on social platforms, or using cloud storage and messaging services as attack infrastructure.

The three sub-techniques

Sub-techniqueWhat the adversary gainsExamples recorded in ATT&CK v20Typical next technique
T1586.001 Social Media AccountsAn established persona with connections, used to reach targets directly or through othersSandworm Team used credential capture pages to take over social media accounts; Leviathan used compromised social media accounts for social engineeringT1566.003 Spearphishing via Service
T1586.002 Email AccountsA sender with good reputation and real threads to hijack; also a route to register infrastructureAPT28, Kimsuky, OilRig, Mustang Panda, Star Blizzard and TA577 (thread-hijacked messages) all sent phishing from compromised mailboxesT1566 Phishing, T1598 Phishing for Information
T1586.003 Cloud AccountsStorage, compute and messaging services the adversary does not have to pay for or registerAPT41 DUST used compromised Google Workspace accounts for command and control; APT-C-36 used compromised Google Drive accountsT1567.002 Exfiltration to Cloud Storage, T1608.002 Upload Tool

The cloud sub-technique explicitly includes messaging platforms such as Twilio, SendGrid, AWS SNS and AWS SES being abused for spam and phishing, and notes that adversaries may target privileged service provider accounts to exploit a T1199 Trusted Relationship with the provider's customers.

How T1586 differs from neighbouring techniques

TechniqueWhose accountPurpose
T1585 Establish AccountsNew account created by the adversaryBuild a persona from scratch
T1586 Compromise AccountsExisting third-party accountBorrow its trust to target someone else
T1078 Valid AccountsAccount in the target environmentAccess, persistence and privilege in that environment
T1534 Internal SpearphishingAccount already inside the victim organisationLateral movement by phishing colleagues

The same takeover can map to several of these depending on whose perspective you take. When your finance mailbox is hijacked and used to invoice a customer, your incident is T1078 and T1114.003 Email Forwarding Rule, and your customer's incident starts with T1586.002. See the MITRE ATT&CK T1078 Valid Accounts Guide.

Where it shows up

  • Business email compromise and supplier fraud: the FBI's IC3 public service announcement of September 2024 reports 305,033 BEC incidents and USD 55.5 billion in exposed losses worldwide between October 2013 and December 2023, and describes attackers compromising legitimate business or personal email accounts to make unauthorised transfers. A hijacked supplier mailbox replying in an existing invoice thread is the classic case. See the Business Email Compromise Response Playbook.
  • Espionage phishing: state-linked groups such as Star Blizzard and APT29 use compromised accounts to phish the original victim's contacts, so a message arrives from someone the target already knows.
  • Developer platforms: compromised GitHub and package registry accounts let attackers publish code under a trusted name. In the GhostAction campaign, push access to maintainer accounts was used to commit a disguised workflow to 817 repositories that exfiltrated about 3,325 CI/CD secrets.
  • Cloud infrastructure: compromised storage and messaging accounts host payloads and send phishing from reputable sender domains, which weakens reputation-based filtering.
  • Social platforms: hijacked executive or brand accounts are used for scams and for reaching staff. See the Disinformation and Brand Impersonation Guide.

Impact

The damage lands in two places. The account owner suffers data exposure, reputational harm and possibly liability when its systems were used to defraud partners. The final target suffers whatever the borrowed trust enabled: a fraudulent payment, a malware infection, stolen credentials or a poisoned software dependency. Because messages come from a real, authenticated sender, SPF, DKIM and DMARC all pass, and link and attachment reputation checks may pass too. Thread hijacking also removes the usual social engineering tells, since the conversation, signatures and timing are genuine. For developer accounts, a single hijacked identity can push malicious code to every downstream consumer, which the Shai-Hulud npm worm showed when stolen publishing tokens were used to republish victims' own packages. For the wider set of threats this feeds, see our top 10 email security threats.

Detection

MITRE's detection strategies for T1586 (DET0876, with DET0861, DET0870 and DET0879 for the sub-techniques) all note that much of this activity "will take place outside the visibility of the target organization". Detection therefore splits into three places: your own accounts being taken over, your accounts being used as a resource, and inbound activity from trusted accounts.

Signals inside your own tenant

SignalWhere to find itWhy it matters for T1586
Inbox rules that forward externally, or move mail to Notes, Junk Email or RSS SubscriptionsExchange Online Get-InboxRule -IncludeHidden; Entra ID Protection detections "Suspicious inbox forwarding" and "Suspicious inbox manipulation rules"Hides replies from the real owner while the account is used against contacts
Mailbox-level SMTP forwardingForwardingSmtpAddress on Get-MailboxSilent copy of all mail to the adversary
Unusual sending volume or patternEntra ID Protection "Suspicious sending patterns"; outbound spam restricted entitiesA mailbox being used for phishing or spam
New authentication method under suspicious conditionsEntra ID Protection "Suspicious credential addition"; IdP audit logsThe adversary securing its foothold
Risky sign-ins"Leaked credentials", "Password spray", "Atypical travel", "Anomalous token", "Attacker in the Middle" detectionsTakeover in progress, before the account is used
Developer account changesGitHub audit log: new tokens, SSH keys, workflow file changes from unusual sourcesAccount being prepared to push malicious code

The symptoms Microsoft lists for a compromised mailbox are a useful hunting checklist: suspicious messages in Sent Items or Deleted Items, changes to the user's Global Address List entry, recently added external forwarding, unexplained lockouts and odd email signatures.

Signals on inbound activity

  • Thread hijack indicators: a reply in an existing thread that changes payment details, adds an unexpected link or attachment, or arrives from a new reply-to address or client.
  • First-seen behaviour from known senders: a long-standing correspondent suddenly sending file-sharing links, archive attachments or QR codes.
  • Supplier change requests: any request to change bank details, treated as a high-risk event regardless of how authentic the sender looks.
  • Social platform approaches: MITRE's analytic suggests watching for personas claiming to work for your organisation and recently modified accounts making many connection requests to your staff.
  • User reports: make reporting easy and route reports from finance and executive assistants for fast triage. See the Email Security Guide.

Metrics

  • Time from a suspicious inbox forwarding detection to rule removal and session revocation.
  • Percentage of mailboxes and developer accounts protected by phishing-resistant MFA.
  • Number of external forwarding rules in the tenant, trending to zero outside approved exceptions.
  • Percentage of supplier bank detail changes verified out of band before payment.
  • Number of leaked credential detections closed with a password reset and session revocation within 24 hours.

Prevention and hardening

Because ATT&CK maps only M1056 Pre-compromise to T1586, prevention means making your own accounts poor resources and making borrowed trust less useful against you.

ControlWhat it stopsNotes
Phishing-resistant MFA (FIDO2/WebAuthn or PKI)Credential phishing and adversary-in-the-middle takeoverCISA describes FIDO/WebAuthn as the only widely available phishing-resistant authentication; OTP, push and SMS remain phishable. See the Phishing-Resistant MFA Guide.
Block external auto-forwarding by defaultSilent mail theft from hijacked mailboxesAllow by exception with an owner and review date
Leaked credential monitoring and banned password listsReuse of credentials from breach dumps and infostealer logsSee the Infostealer Threat Guide
Risk-based Conditional AccessSign-ins flagged as leaked, sprayed or anomalousRequire reauthentication or block on high risk
Disable dormant accountsTakeover of unwatched accountsATT&CK records APT29 taking control of dormant accounts
Out-of-band verification for payment and bank changesBEC using a supplier's genuine mailboxA process control, not a technical one, and the most reliable
Short-lived, scoped developer tokens and signed commitsHijacked developer accounts publishing codeSee the GitHub Personal Access Tokens Security Guide
Social engineering awareness (M1017 User Training)Staff trusting a known sender blindlyTeach that a known address is not proof of identity

Rolling out the controls

  1. Inventory exposure first: export all inbox rules and mailbox forwarding settings, and list accounts without MFA or with only SMS or voice MFA.
  2. Turn on detections in report mode: enable inbox forwarding, inbox manipulation and sending pattern detections, and route them to the SOC without automated blocking for two weeks to tune.
  3. Block external forwarding: apply to a pilot group, collect exceptions, then enforce tenant-wide. Roll back by re-enabling forwarding for named mailboxes, not the whole tenant.
  4. Phishing-resistant MFA in rings: administrators and finance first, then executives and their assistants, then developers with publishing rights, then everyone.
  5. Automate response: on a confirmed hijack, disable or reset the account, revoke sessions and refresh tokens, review MFA methods, consented apps, roles and forwarding, and notify contacts who received messages from it.
  6. Close the loop with suppliers: agree verification procedures and a contact route for reporting suspected compromise in both directions.

Small organisations get most value from phishing-resistant MFA on email, blocking external forwarding and a firm callback rule for payment changes. Large organisations should add ITDR-style correlation of identity risk with mail flow and developer platform logs. See the ITDR Guide.

Framework mapping

FrameworkRelevant entries
MITRE ATT&CK v20TA0042 Resource Development; T1586, T1586.001, T1586.002, T1586.003; related T1585, T1078, T1566, T1534, T1114.003; mitigation M1056
NIST SP 800-53 Rev. 5IA-2(1) and IA-2(2) multi-factor authentication; IA-5 Authenticator Management; AC-2(3) Disable Accounts; AC-2(12) Account Monitoring for Atypical Usage; AT-2(3) Social Engineering and Mining; SI-4 System Monitoring
NIST CSF 2.0PR.AA-01 and PR.AA-03 (identity and authentication); DE.CM-03 (personnel activity monitored); DE.AE-02 (adverse events analysed); GV.SC-07 (supplier risk)
CIS Controls v8.1Control 5 Account Management, Control 6 Access Control Management, Control 8 Audit Log Management, Control 14 Security Awareness and Skills Training
ISO/IEC 27001:2022 Annex A5.17 Authentication information, 8.5 Secure authentication, 8.16 Monitoring activities

Lessons from incidents

  • Developer accounts are trusted senders too: in GhostAction the compromised accounts' existing push rights meant the malicious workflow needed no exploit. Protect maintainer accounts with phishing-resistant MFA and review workflow changes.
  • Every hijacked account becomes a launch point: the Shai-Hulud worm turned each compromised maintainer into a new source of infection, the defining T1586 pattern at scale.
  • Do not trust the address, verify the request: BEC losses reported by IC3 depend on genuine mailboxes being believed. Out-of-band verification breaks the chain even when every technical check passes.
  • Clean up everything the adversary added: forwarding rules, hidden inbox rules, MFA methods and consented apps survive a password reset. Microsoft's compromised account procedure covers each one.

Practitioner checklist

  • Export and review every inbox rule (including hidden) and mailbox forwarding setting; remove unapproved external forwarding.
  • Block external auto-forwarding by default with documented exceptions.
  • Enforce phishing-resistant MFA for administrators, finance, executives and developers with publishing rights.
  • Alert on suspicious inbox forwarding, inbox manipulation rules, suspicious sending patterns and suspicious credential addition.
  • Disable dormant accounts and monitor for leaked credentials.
  • Require out-of-band verification for all supplier bank detail changes and unusual payment requests.
  • Write a hijacked account runbook: disable, reset, revoke sessions, review MFA methods, apps, roles and rules, notify recipients.
  • Agree compromise notification routes with key suppliers and customers.
  • Map the coverage in your ATT&CK heatmap honestly: T1586 is detected mostly through its neighbours. See the MITRE ATT&CK Coverage Mapping Guide.

Standards and references

Related NHI Mgmt Group resources: MITRE ATT&CK Guide for Defenders · Account Takeover Prevention Guide · MITRE ATT&CK T1528 Steal Application Access Token Guide · Phishing Guide

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 26 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org