NCryptYo is a malicious NuGet package and heavily obfuscated stage-1 dropper used in a software supply-chain campaign targeting ASP.NET developers. It was published to NuGet in August 2024 by the account "hamzazaheer" as part of a four-package cluster consisting of NCryptYo, DOMOAuth2_, IRAOAuth2.0, and SimpleWriter_, which accumulated more than 4,500 downloads before removal. NCryptYo masquerades as a cryptography library by typosquatting the legitimate NCrypto package, using the namespace "NCrypt" and an assembly filename "NCrypt.dll" that mimics the Windows CNG provider path. It executes on assembly load via a static constructor, installs JIT compiler hooks, decrypts embedded payloads at runtime, and deploys a stage-2 component that establishes a localhost proxy on 127.0.0.1:7152. That proxy relays traffic from the companion packages to an attacker-controlled C2 server whose address is dynamically retrieved at runtime. The broader campaign is designed to exfiltrate ASP.NET Identity data, including user accounts, role assignments, and permission mappings, and to manipulate authorization rules returned by the C2 to create persistent backdoors in deployed applications. Reported backdoor effects include granting admin roles, modifying access controls, and disabling security checks. The companion packages communicate with hardcoded https://localhost:7152/api/auth/ endpoints through the NCryptYo proxy; DOMOAuth2_ and IRAOAuth2.0 exfiltrate authorization data, while SimpleWriter_ presents as a PDF utility but provides unconditional file-write capability and hidden process execution, including execution of ExternalLib\Windows\wkhtmltopdf.exe expected to be dropped by NCryptYo. Reported indicators and artifacts include localhost:7152, the ProjectId 06062730-b307-48a6-a7c3-140e6bae4587 embedded across companion packages, and shared package metadata and build artifacts suggesting common authorship. Researchers assessed the likely objective was compromise of applications built with the tainted dependencies so that malicious C2-driven authorization manipulation and data exfiltration persist in production deployments.
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.
"The campaign deploys a multi-stage payload where NCryptYo acts as a stage-1 dropper that establishes a local proxy on localhost:7152"
11 distinct techniques documented for this family, organized by ATT&CK tactic.
“A supply chain attack targeting ASP.NET developers… involving four malicious NuGet packages… NCryptYo… typosquatting the widely used NCrypto package.”
"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."
"Static analysis confirms... VirtualAlloc + WriteProcessMemory + OpenProcess for process injection."
“The DLL is protected by .NET Reactor obfuscation… Five encrypted resources are embedded inside”
"NCryptYo masquerades as a cryptography library through deliberate typosquatting... the DLL filename NCrypt.dll mimics Windows' CNG cryptography provider at C:\\Windows\\System32\\NCrypt.dll, and the namespace NCrypt matches Microsoft's cryptography APIs."
"Static analysis confirms... VirtualAlloc + WriteProcessMemory + OpenProcess for process injection."
"Every stub method... passes through the modified JIT where encrypted method bodies are decrypted and compiled... Five encrypted resources are embedded in the assembly... encryption uses AES-256-CBC..."
“.NET Reactor obfuscation, complete with a 14-day expiry timer and anti-debugging checks.”
"It checks Debugger.IsAttached and throws 'Debugger Detected'... [SuppressIldasm] attributes... RSA signature verification to detect tampering."
“.NET Reactor obfuscation, complete with a 14-day expiry timer and anti-debugging checks.”
“silently deploying a hidden proxy on localhost port 7152 that relays traffic to an external, attacker-controlled server.”
"deploy a stage-2 binary - a localhost proxy on port 7152 that relays traffic... to the attacker's external C2 server"
“route it to the attacker’s server through the local proxy.”
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.