Join our Newsletter — 33% off our NHI Course
Home› Guides› DarkGate Malware Guide: Teams-Delivered Loader and How to…
Guide Attack Techniques & Malware

DarkGate Malware Guide: Teams-Delivered Loader and How to Stop It

PDF for newsletter subscribers · free to read online

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

DarkGate turned collaboration platforms into a malware delivery channel, sending links to external users through Microsoft Teams and relying on trust in internal-looking chat. This guide profiles DarkGate for defenders: its 2018 origins as a cryptomining and ransomware campaign, its rebirth as a rented malware-as-a-service loader and remote access tool, how it was delivered through email, Teams and SharePoint-hosted archives, what MITRE ATT&CK records about its 58 techniques, and the behaviour-level detections and Teams and endpoint controls that stop it. It is aimed at SOC analysts, detection engineers and Microsoft 365 administrators. The Malware Loaders and Droppers Guide covers loaders in general; this page stays with DarkGate.

Key takeaways

  • A loader, a stealer and a RAT in one rented package. MITRE ATT&CK describes DarkGate (S1111) as an initial access and data gathering tool, first seen in 2018, linked to credential theft, cryptomining, cryptotheft and pre-ransomware activity, and offered by its author as malware-as-a-service.
  • The subscription model drove its spread. Trellix reported the developer, known as RastaFarEye, sold access on underground forums for up to 15,000 US dollars per month, with buyers growing from about 10 to 30.
  • Teams is a delivery channel, not just a chat tool. Trellix documented Teams messages linking to a SharePoint-hosted ZIP of shortcut files with a double extension and a PDF icon, so external access settings are a real control.
  • AutoIt and DLL side-loading are the tell. DarkGate chains use VBS, MSI or LNK first stages that launch an AutoIt interpreter (T1059.010), and later versions side-load a trojanised DLL (T1574.001), which gives defenders stable behaviour to hunt.
  • Response must assume stolen sessions and a new local admin. ATT&CK lists session cookie theft (T1539), local account creation (T1136.001) and adding accounts to groups (T1098.007), so recovery is an identity task as well as an endpoint one.

Who they are (names and aliases)

DarkGate is a commercial criminal product. The author builds and sells it; separate customers run campaigns. ATT&CK records only one name, but security vendors have used others for particular versions.

Name or entityTypeWhat the sources say
DarkGateMalware family (ATT&CK S1111)Written in Delphi, named DarkGate by its author, first emerged in 2018, use rose sharply from 2022 (ATT&CK).
MehCrypterEarlier vendor nameTrellix notes Avast named a 2021 version MehCrypter.
RastaFarEyeDeveloper handleTrellix reports the developer sells DarkGate on underground cybercrime forums.
Water Curupira Pikabot Distribution (C0037)CampaignATT&CK links DarkGate to this 2023 campaign, run by an entity tied to Black Basta deployment after the QakBot takedown.

Targeting and motivation

DarkGate is financially motivated, and because it is rented, targeting depends on the customer. The original 2018 campaign analysed by enSilo, republished by Fortinet, focused mainly on Spain and France and spread through torrent files posing as films and TV series and through spoofed emails. Later campaigns reported by Trellix targeted organisations through phishing and Teams.

  • Monetisation routes: ATT&CK lists T1496.001 Compute Hijacking (cryptomining), T1657 Financial Theft, T1486 Data Encrypted for Impact and T1490 Inhibit System Recovery. The 2018 analysis described mining, wallet credential theft, ransomware and deletion of restore points.
  • Access resale: its role as an initial access and pre-ransomware tool links it to the same buyers who used QakBot. See the QakBot Malware Guide.
  • Development tempo: Trellix tracked version 4 in June 2023 and version 5 announced for October 2023, with new builds every few weeks, including updates after researchers published analysis and decryption tools for version 4.

Tactics and techniques (MITRE ATT&CK)

ATT&CK v20 maps 58 techniques to DarkGate. The table groups those that matter for detection and hardening.

StageATT&CK techniquesWhat defenders see
Initial accessT1566.001 Spearphishing Attachment, T1566.002 Spearphishing Link, T1204.002 Malicious FileEmail links to VBS or MSI files; Teams messages from external tenants linking to SharePoint-hosted archives (Trellix).
MasqueradingT1036.007 Double File Extension, T1036.003 Rename Legitimate Utilities, T1036 MasqueradingFiles named like "report.pdf.lnk" with a PDF icon; renamed copies of legitimate interpreters.
ExecutionT1059.010 AutoHotKey & AutoIT, T1059.005 Visual Basic, T1059.001 PowerShell, T1059.003 Windows Command Shell, T1569.002 Service ExecutionAn AutoIt interpreter running a script from a user or ProgramData folder, often spawned by cmd.exe or msiexec.
Hijack execution flowT1574.001 DLL, T1574.007 Path Interception by PATH Environment VariableA legitimate signed application loading an unexpected DLL from its own folder.
Privilege and persistenceT1548.002 Bypass User Account Control, T1547.001 Registry Run Keys / Startup Folder, T1136.001 Local Account, T1098.007 Additional Local or Domain GroupsNew local accounts added to Administrators; Run keys pointing at AutoIt scripts.
Stealth and defence impairmentT1055.012 Process Hollowing, T1134.004 Parent PID Spoofing, T1497.001 System Checks, T1622 Debugger Evasion, T1518.001 Security Software Discovery, T1685 Disable or Modify ToolsHollowed system processes with misleading parents; behaviour that changes when particular antivirus products are present.
Credential access and collectionT1539 Steal Web Session Cookie, T1555 Credentials from Password Stores, T1552 Unsecured Credentials, T1056.001 Keylogging, T1115 Clipboard DataAccess to browser profiles and password stores by non-browser processes.
Command and controlT1071.004 DNS, T1105 Ingress Tool Transfer, T1001 Data Obfuscation, T1665 Hide Infrastructure, T1583.001 DomainsConnections from AutoIt or hollowed processes to recently registered domains or bare IPs on unusual ports.
ImpactT1486 Data Encrypted for Impact, T1490 Inhibit System Recovery, T1561.001 Disk Content Wipe, T1496.001 Compute HijackingShadow copy deletion, high sustained CPU use, or encryption on hosts where operators stayed.

How they abuse identities and credentials

  • Trust in collaboration identities: the Teams lure works because a chat from an external tenant can look like a colleague or a help desk. Microsoft Teams shows an External label, but users skim. See the Microsoft Teams Security Guide.
  • Browser sessions: session cookie theft (T1539) gives the operator signed-in access to SaaS applications, sidestepping MFA prompts until the session is revoked. See the Infostealer Logs and Session Token Abuse Guide.
  • Stored passwords: Trellix reports version 5 recovered RDP passwords using NetPass, and earlier versions took browser and Discord data.
  • Backdoor accounts: the 2018 analysis described RDP installation and a hidden administrator account; ATT&CK lists local account creation and group changes. Alert on Security Event ID 4720 (account created) and 4732 (member added to a security-enabled local group) on workstations.
  • Remote control: Trellix lists hidden VNC (hVNC), which lets an operator act in a hidden desktop as the logged-on user, so actions appear to come from a real identity.

Notable incidents

DateEventSource and key facts
November 2018First public analysisenSilo, republished by Fortinet: mining, wallet theft, ransomware, recovery tool interference, distribution through torrents mainly in Spain and France.
2021MehCrypter versionTrellix: Avast renamed a 2021 version.
June to October 2023Versions 4 and 5Trellix: version 4 in June 2023; version 5 announced 29 September and builds seen from 10 October, adding DLL side-loading of a trojanised KeyScrambler DLL.
September 2023Attack stopped by a SOCTrellix reports its SOC stopped a DarkGate attack against Musarubra.
2023Pikabot distribution campaignATT&CK C0037 associates DarkGate with the Water Curupira campaign that followed the QakBot takedown.

DarkGate shows why takedowns of one loader shift volume to others: when QakBot infrastructure was disrupted in August 2023, buyers moved to alternatives. See the Malware-as-a-Service Economy Guide.

Detection and defence

Behaviour-level detection ideas

  • AutoIt from user paths: any AutoIt3.exe or renamed AutoIt interpreter started from AppData, Temp, Downloads or ProgramData, particularly by cmd.exe, msiexec.exe or a shortcut. Most organisations never run AutoIt legitimately, which makes this a high-signal rule.
  • Double-extension shortcuts: process creation where the parent command line references a .pdf.lnk or similar file opened from a Teams or SharePoint download path.
  • DLL side-loading: a signed application loading an unsigned DLL from the same writable folder it was dropped into (Sysmon Event ID 7).
  • Command shells with public IPs: Trellix recommends EDR rules for command shells containing public IP addresses, and blocking suspicious curl connections at the web gateway.
  • Account changes on endpoints: Event IDs 4720 and 4732 on non-server Windows hosts.
  • External Teams chats with file links: where Microsoft 365 audit logs are available, correlate a first-contact external chat with a file download and a new process within minutes.

Teams and endpoint controls

OptionWhen to choose itTrade-off
Block all external Teams accessOrganisations that do not collaborate over Teams with other tenantsPartners must use email or guest accounts instead.
Allow-list external domains (Trellix recommendation)Most organisations: named partners keep workingNeeds an owner to maintain the list.
Open federation with user warningsOnly where external chat with unknown tenants is a business needRelies on users reading the External label; pair with strong endpoint controls.
Web gateway allows only the company's own SharePoint (Trellix)Where the gateway can inspect cloud storage URLsBreaks legitimate partner file sharing unless partners are allow-listed.
Application control blocking AutoIt and script hosts for standard usersAlmost alwaysA few administrators may need exceptions.

Framework mapping

DefenceNIST SP 800-53 Rev. 5NIST CSF 2.0
Malware protection and sandboxing of collaboration filesSI-3DE.CM-09
Application control for interpretersCM-7PR.PS-05
Boundary protection for external chat and storageSC-7DE.CM-01
Monitoring of account and group changesSI-4, AC-2DE.CM-01
User awareness of external chat luresAT-2PR.AT-01

Rollout and response

  1. Inventory legitimate AutoIt use, then deploy the AutoIt-from-user-path rule in alert mode for two weeks.
  2. Restrict Teams external access to allowed domains, starting with a pilot group, and publish how users can request a new partner domain.
  3. Move the application control rule to block once alerts show no legitimate use; keep a documented rollback (policy back to audit).
  4. On a confirmed infection, isolate the host, revoke the user's sessions and refresh tokens, reset passwords stored in the browser, and remove any new local accounts.
  5. Hunt across the estate for the same chat sender, file names and C2 domains; reimage affected hosts. See the Malware Outbreak Playbook.

Metrics that show it is working

  • Share of endpoints where AutoIt and script hosts are blocked for standard users.
  • Number of external Teams first-contact chats per week, before and after allow-listing.
  • Median time from an AutoIt or side-loading alert to isolation.
  • Number of unexplained local account creations on workstations (target: zero).

Practitioner checklist

  • Set Teams external access to allow-listed domains, or block it if you do not need it.
  • Block execution of AutoIt and script interpreters from user-writable folders.
  • Alert on double-extension shortcut execution and on signed binaries loading unsigned DLLs from their own folder.
  • Alert on local account creation and Administrators group changes on workstations.
  • Sandbox files downloaded from collaboration platforms, not just email attachments.
  • Include session and token revocation in every infostealer or RAT response runbook.
  • Track DarkGate's ATT&CK entry and vendor reports for new delivery routes each quarter.

Standards and references

Related NHI Mgmt Group resources: Malware Loaders and Droppers Guide · Microsoft Teams Security Guide · Email Bombing and Help Desk Impersonation over Teams Guide · Application Allowlisting Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.