Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
MalwareUsed by 1 actor

DOMOAuth2_

DOMOAuth2_ is a malicious NuGet package used in a software supply-chain campaign targeting ASP.NET web application developers. It was one of four related packages—NCryptYo, DOMOAuth2_, IRAOAuth2.0, and SimpleWriter_—published between August 12 and 21, 2024 by the NuGet account "hamzazaheer," and the set accumulated more than 4,500 downloads before removal. The campaign’s objective was to compromise applications built with the tainted dependencies rather than directly compromise developer workstations.

DOMOAuth2_ is designed to exfiltrate ASP.NET Identity and authorization data, including user accounts, role assignments, and permission mappings. It registers an internal OAuth service via an IServiceCollection extension method named AddOAuth and sends HTTP POST requests to hardcoded localhost endpoints at https://localhost:7152/api/auth/, including get-permissions, get-role-permissions, update-role-permissions, and update-user-permissions. The package communicates through a localhost proxy established by the companion package NCryptYo on 127.0.0.1:7152; NCryptYo acts as an obfuscated stage-1 dropper that executes on assembly load, installs JIT hooks, decrypts embedded payloads, and deploys a stage-2 component that relays traffic to an attacker-controlled C2 whose address is dynamically resolved at runtime.

DOMOAuth2_ includes a hardcoded attacker authentication token used by default if the caller does not provide an API key, and its AuthKey is marked with [JsonIgnore] so the credential is sent in headers rather than JSON bodies. It also uses a custom encoding routine that GZip-compresses data, prepends a 4-byte length, Base64-encodes it, and substitutes characters. C2 responses are returned through a dynamic Message.Data field, allowing attacker-controlled authorization rules to be injected into the victim application. Reported backdoor effects include granting admin roles, modifying access controls, and disabling security checks, enabling persistent access in deployed production applications while continuing to exfiltrate permission data.

The campaign showed signs of common authorship across the four packages, including shared build metadata and embedded credentials. DOMOAuth2_ and the related packages were reported by Socket Threat Research Team and later taken down from NuGet following responsible disclosure.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
hamzazaheer

"DOMOAuth2_ ... exfiltrate ASP.NET Identity data (user accounts, role assignments, permission mappings) and accept threat actor-controlled authorization rules that create persistent backdoors in victim applications."

via socket blogsocket.dev
MITRE ATT&CK

Techniques & procedures

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

Initial Access

2 techniques
T1195.001Compromise Software Dependencies and Development ToolsEvidence2

"Four malicious NuGet packages have been discovered targeting ASP.NET web application developers... The packages... were published to the NuGet repository... These packages aimed to compromise applications during the development phase, allowing attackers to gain access to deployed production environments"

T1195.002Compromise Software Supply ChainEvidence1

"Socket's Threat Research Team discovered a NuGet supply chain attack involving four malicious packages... The lead package NCryptYo masquerades as a cryptography library through deliberate typosquatting of the legitimate NCrypto package."

Persistence

1 technique
T1136.003Cloud AccountEvidence1

"received authorization rules to create backdoors, granting attackers administrative access"

Collection

1 technique
T1005Data from Local SystemEvidence1

“DOMOAuth2_ and IRAOAuth2.0 silently collect ASP.NET Identity data — user account IDs, role assignments, and permission mappings — and route it to the attacker’s server”

Command and Control

2 techniques
T1071.001Web ProtocolsEvidence1

"the package sends HTTP POST requests to https://localhost:7152/api/auth/... Every request includes the hardcoded auth token in an HTTP header."

T1572Protocol TunnelingEvidence1

"deploy a stage-2 binary - a localhost proxy on port 7152 that relays traffic... to the attacker's external C2 server"

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence2

"DOMOAuth2_ and IRAOAuth2.0 then transmitted the stolen data"

Other

1 technique
T1562Impair DefensesEvidence1

"or disabling security checks"

What this page doesn’t show

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 matching

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution1

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping8

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.