Skip to main content
Mallory
Malware4 associated actors1 associated CVE

ysoserial.net

Tracked since Jan 23, 2026 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 3 in a dayToday
Vulns1Associated
Actors4Associated
ATT&CK22Techniques
IOCs0Tracked
Capabilities
Initial access
Platforms
Windows

ysoserial.net is an open-source .NET deserialization payload generator used for security testing and offensive exploitation, rather than a standalone malware family. It aggregates known gadget chains that cause vulnerable applications to execute attacker-controlled code when processing untrusted serialized objects. Its ViewState functionality supports constructing malicious ASP.NET ViewState payloads, including payloads authenticated with compromised MachineKeys. Possession of valid keys can allow malicious payloads to pass ViewState integrity checks; the generator does not itself obtain those keys.

Observed abuse targets Windows servers running IIS and ASP.NET applications, including Microsoft Exchange. Gadget chains associated with the toolkit can load and execute .NET assemblies in memory. Obstinate Mogwai used ysoserial.net-style gadgets in Exchange intrusions, while Shedding Zmiy incorporated a gadget from the toolkit into its custom BADSTATE loading chain. UAT-10147 has also used ysoserial.net in ViewState exploitation. Credential theft, tunneling, persistence, and other subsequent operations depend on the supplied payloads or separate attacker tools, not on the payload generator itself.

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
Associated CVEs

Associated vulnerabilities

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2026-45659via resecurity otherAuthenticated Deserialization RCE in Microsoft SharePoint Server“With the stolen keys, the attacker crafts a malicious ViewState payload using ysoserial.net or a custom serializer.”View vulnerability →Source ↗
Threat actors

Associated threat actors

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

View more details →
UAT-10147

Initial access is opportunistic exploitation of publicly disclosed vulnerabilities at scale, including Zimbra (CVE-2022-27925), Telerik UI for ASP.NET AJAX (CVE-2019-18935), AjaxPro (CVE-2021-23758) and Alibaba Nacos (CVE-2021-29441, CVE-2021-29442), plus ASP.NET ViewState deserialization abuse using leaked MachineKeys with the badsecrets library and ysoserial.net.

via alpha cyber blogalpha-cyber.com
APT41

The structure of the observed VIEWSTATE payloads indicated that the attackers generated them using ysoserial.net.

via rt solarrt-solar.ru
Obstinate Mogwai

The structure of the observed VIEWSTATE payloads indicated that the attackers generated them using ysoserial.net.

via rt solarrt-solar.ru
Shedding Zmiy

«...Shedding Zmiy используют самописный гаджет, который распаковывает и вызывает гаджет XamlAssemblyLoadFromFile из набора ysoserial.»

via rt solarrt-solar.ru
MITRE ATT&CK

Techniques & procedures

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

Resource Development

1 technique
T1588.002ToolEvidence2

The content repeatedly states that threat actors 'obtained,' 'acquired,' or 'used' publicly available, open-source, legitimate, or modified tools such as Mimikatz, Cobalt Strike, PsExec, Empire, Impacket, and many others.

Initial Access

2 techniques
T1190Exploit Public-Facing ApplicationEvidence13

Obstinate Mogwai эксплуатирует уязвимости десериализации VIEWSTATE для повторного возвращения.

T1566.002Spearphishing LinkEvidence1

It is also possible to send the __VIEWSTATE parameter in the URL via a GET request. The only limiting factor is the URL length that limits the type of gadgets that can be used here.

Execution

6 techniques
T1059Command and Scripting InterpreterEvidence6

So we generated a payload with ysoserial.net ... -c "whoami > C:\x.txt".

T1059.001PowerShellEvidence2

ysoserial.exe -g ObjectDataProvider -f Json.Net -c "powershell -enc ..." ... PowerShell with -EncodedCommand, -enc, -ec, bypass, or unrestricted.

T1059.003Windows Command ShellEvidence7

The provided ysoserial payload executes `cmd /c nslookup yuwewp90p365hx64wh7rumz8kzqxem.burpcollaborator.net`.

T1059.005Visual BasicEvidence1

Instead of calling Process.Start() now we move on eval JScript. With JScript, we can do many things with scripting instead of spawning cmd.exe / powershell.exe.

T1203Exploitation for Client ExecutionEvidence14

ysoserial .net TypeConfuseDelegate gadget fires → Process.Start("cmd /c ...") ← LocalSystem identity

T1574Hijack Execution FlowEvidence2

With TypeConfusedDelegate we can invoke the method arbitrarily ... How about XamlReader.Parse() ? XamlReader.Parse is a public/static also, so we can easily call it with TypeConfusedDelegate

Persistence

1 technique
T1505.003Web ShellEvidence1

2: Creating a virtual file (ghost file) by abusing the Virtual Path Provider in .NET... This solution has minimal complexity for the tester as a web shell can be directly embedded within the initial exploit code.

Privilege Escalation

1 technique
T1068Exploitation for Privilege EscalationEvidence4

A low-privileged local attacker can send YSoSerial.NET-generated BinaryFormatter payloads to the localhost-bound endpoint to achieve code execution as NT AUTHORITY\SYSTEM.

Stealth

5 techniques
T1211Exploitation for StealthEvidence2

# TTP # T1211 — Exploitation for Defense Evasion (Defense Evasion)

T1218System Binary Proxy ExecutionEvidence3

TypeConfuseDelegate depends on System.Configuration.Install.dll / System.Management.dll ... all available on the target.

T1497.001System ChecksEvidence1

As the targeted box might not send any requests externally, automated scanners should use a payload that causes a short delay on the server-side. This can be achieved by executing the following ASP.NET code as an example to create a 10-second delay: System.Threading.Thread.Sleep(10000);

T1574Hijack Execution FlowEvidence2

With TypeConfusedDelegate we can invoke the method arbitrarily ... How about XamlReader.Parse() ? XamlReader.Parse is a public/static also, so we can easily call it with TypeConfusedDelegate

T1620Reflective Code LoadingEvidence1

gadget ActivitySurrogateSelector can use to load a DLL via Assembly.Load() function. | The patch almost patching for Deserialization Sink inside Exchange, so we can be sure that this time it’s a deserialization vulnerability.

Defense Impairment

1 technique
T1222File and Directory Permissions ModificationEvidence1

This blog post attempts to give insights into its features, security measures, and especially its weaknesses/vulnerabilities that often result in remote code execution.

Credential Access

2 techniques
T1003OS Credential DumpingEvidence1

"deserialization vulnerabilities can affect a wide variety of languages and libraries..."; "we will limit our scope to attacks that occur over HTTP."; "common languages/object types exploited... serialized Java objects, .NET ViewStates, pickled Python objects, and serialized PHP objects."

T1649Steal or Forge Authentication CertificatesEvidence8

Abuse of Deserialization for RCE: With the sysadmin API token, the attacker interacts with application API endpoints, targeting a deserialization function. By injecting a malicious payload into this process, arbitrary code execution is achieved on the server.

Discovery

2 techniques
T1033System Owner/User DiscoveryEvidence2

The executed command was "whoami," and the resulting file showed "iis apppool\sitecoresc.dev.local."

T1497.001System ChecksEvidence1

As the targeted box might not send any requests externally, automated scanners should use a payload that causes a short delay on the server-side. This can be achieved by executing the following ASP.NET code as an example to create a 10-second delay: System.Threading.Thread.Sleep(10000);

Lateral Movement

1 technique
T1210Exploitation of Remote ServicesEvidence1

This repository contains a vulnerable C# application (client/server) that uses .NET Remoting over HTTP... It also includes a copy of ysoserial.net... changed to work with .NET Framework 2.0... this project can be used to exploit applications that use .NET Framework v2.0

Impact

2 techniques
T1499Endpoint Denial of ServiceEvidence2

Tại đây, method này gọi tới EntitySerializer.Deserialize(), EntitySerializer.Deserialize() gọi tiếp tới DataContractSerializer.ReadObject() ... hoàn toàn có thể RCE với DataContractSerializer ... kiểu dữ liệu được deserialize quá lỏng lẻo

T1565Data ManipulationEvidence1

Sign ysoserial.net payload with an HMAC using RCEvil.NET: RCEvil.NET.exe -u /Default.aspx -v 000102030405060708090a0b0c0d0e0f10111213 -m SHA1 -p /wEyxBEAAQAAAP////8...

Activity feed

Recent activity

11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
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
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 actors4Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities1CVEs 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 mapping22Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.