Skip to main content
Mallory
Malware1 associated actor

MagicWeb

Tracked since Nov 25, 2025 · Updated 5 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK11Techniques
IOCs0Tracked

MagicWeb is a highly targeted post-compromise AD FS backdoor used by NOBELIUM, now tracked by Microsoft as Midnight Blizzard, a Russian SVR-linked espionage actor also known as APT29/Cozy Bear. Microsoft described it as a persistence capability deployed after the actor obtained highly privileged credentials and administrative access to an Active Directory Federation Services (AD FS) server; Microsoft explicitly stated the incident was not a supply-chain attack. MagicWeb consists of a malicious, unsigned backdoored version of Microsoft.IdentityServer.Diagnostics.dll. The actor modifies C:\Windows\AD FS\Microsoft.IdentityServer.Servicehost.exe.config to alter the public token so AD FS loads the attacker-controlled DLL from the Global Assembly Cache instead of the legitimate Microsoft-signed library. Once loaded, the malware intercepts and manipulates claims in tokens generated by AD FS, enabling the actor to authenticate as arbitrary users and bypass AD FS role, device, and network policies, including MFA. Microsoft reported that MagicWeb abuses hardcoded non-standard Enhanced Key Usage OIDs in user authentication certificates for specified UPNs to trigger claim injection and certificate-validation bypass behavior. MagicWeb is associated with NOBELIUM/Midnight Blizzard operations targeting government organizations, NGOs, IGOs, and think tanks across the United States, Europe, and Central Asia, and is referenced alongside the actor’s earlier AD FS malware FoggyWeb. Known detection-related indicators mentioned in the content include the modified AD FS service host configuration file, non-default PublicKeyToken values where the default is 31bf3856ad364e35, unsigned or untrusted Microsoft.IdentityServer.*.dll files in AD FS or GAC locations, Microsoft Defender Antivirus detection as Trojan:MSIL/MagicWeb.A!dha, and Microsoft Defender for Endpoint alerting as 'ADFS persistent backdoor detected'.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

Associated threat actors

1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
APT29

Microsoft reference: 'MagicWeb: NOBELIUM’s post-compromise trick to authenticate as anyone.'

via huntandhackett bloghuntandhackett.com
MITRE ATT&CK

Techniques & procedures

11 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1078Valid AccountsEvidence1

NOBELIUM was able to deploy MagicWeb by first gaining access to highly privileged credentials and moving laterally to gain administrative privileges to an AD FS system.

T1190Exploit Public-Facing ApplicationEvidence1

Known Exploited Vulnerabilities ... CVE-2018-13379 ... CVE-2019-11510 ... CVE-2019-19781 ... CVE-2023-42793 ... ProxyLogon ... ProxyShell

Execution

1 technique
T1574.001DLLEvidence1

The attacker had admin access to the AD FS system and replaced a legitimate DLL with their own malicious DLL, causing malware to be loaded by AD FS instead of the legitimate binary.

Persistence

4 techniques
T1078Valid AccountsEvidence1

NOBELIUM was able to deploy MagicWeb by first gaining access to highly privileged credentials and moving laterally to gain administrative privileges to an AD FS system.

T1098Account ManipulationEvidence2

Microsoft security researchers have discovered a post-compromise capability we’re calling MagicWeb, which is used by a threat actor we track as NOBELIUM to maintain persistent access to compromised environments.

T1505.003Web ShellEvidence1

APT29 routinely cleans up by removing their tools and backdoors once legitimate remote access is secured, often deploying a web shell on Microsoft Exchange servers after a successful compromise.

T1556Modify Authentication ProcessEvidence1

The interception and manipulation of claims by MagicWeb enables the actor to generate tokens that allow the adversary to bypass AD FS policies (role policies, device policies, and network policies) and sign in as any user with any claims, including multifactor authentication (MFA).

Privilege Escalation

3 techniques
T1078Valid AccountsEvidence1

NOBELIUM was able to deploy MagicWeb by first gaining access to highly privileged credentials and moving laterally to gain administrative privileges to an AD FS system.

T1098Account ManipulationEvidence2

Microsoft security researchers have discovered a post-compromise capability we’re calling MagicWeb, which is used by a threat actor we track as NOBELIUM to maintain persistent access to compromised environments.

T1548Abuse Elevation Control MechanismEvidence1

After gaining administrative access to an AD FS server via elevation of privilege and lateral movement, the loading of NOBELIUM’s malicious Microsoft.IdentityServer.Diagnostics.dll into the AD FS process is possible...

Stealth

3 techniques
T1070Indicator RemovalEvidence1

After gaining administrative access to an AD FS server via elevation of privilege and lateral movement, the loading of NOBELIUM’s malicious Microsoft.IdentityServer.Diagnostics.dll into the AD FS process is possible by editing C:\Windows\AD FS\Microsoft.IdentityServer.Servicehost.exe.config to specify a different public token...

T1078Valid AccountsEvidence1

NOBELIUM was able to deploy MagicWeb by first gaining access to highly privileged credentials and moving laterally to gain administrative privileges to an AD FS system.

T1574.001DLLEvidence1

The attacker had admin access to the AD FS system and replaced a legitimate DLL with their own malicious DLL, causing malware to be loaded by AD FS instead of the legitimate binary.

Defense Impairment

1 technique
T1556Modify Authentication ProcessEvidence1

The interception and manipulation of claims by MagicWeb enables the actor to generate tokens that allow the adversary to bypass AD FS policies (role policies, device policies, and network policies) and sign in as any user with any claims, including multifactor authentication (MFA).

Credential Access

3 techniques
T1556Modify Authentication ProcessEvidence1

The interception and manipulation of claims by MagicWeb enables the actor to generate tokens that allow the adversary to bypass AD FS policies (role policies, device policies, and network policies) and sign in as any user with any claims, including multifactor authentication (MFA).

T1606Forge Web CredentialsEvidence1

MITRE ATT&CK Mappings: APT29 Credential Access T1606: Forge Web Credentials .001: Web Cookies .002: SAML Tokens

T1649Steal or Forge Authentication CertificatesEvidence2

MagicWeb is manipulating the user authentication certificates used in SAML sign-ins, not the signing certificates for a SAML claim used in attacks like Golden SAML.

Lateral Movement

1 technique
T1021Remote ServicesEvidence1

MagicWeb is a post-compromise malware that can only be deployed by a threat actor after gaining highly privileged access to an environment and moving laterally to an AD FS server.

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping11Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.