The images in this article were generated with artificial intelligence. How we publish
A recent finding in the ecosystem .NET puts on the table a less obvious but more targeted variant of the supply chain attacks: a typosquat package published in NuGet that passes through the popular Newtonsoft.Json library, but which actually contains a Trojan designed to manipulate the live results of an online gambling game operated by Digitain. This case breaks the typical pattern of malicious packages that seek to steal credentials or information: its main objective is the integrity of service, not the mass exfiltration of data from other developers.
The trap was hidden in a package with a name very similar to the legitimate and seven versions published between August and October 2025. Technically the entry door is subtle: the trojanized code is activated when the application assigns JsonConvert.DefaultSettings, a legitimate behavior extension of Newtonsoft.Json. Only in systems that expose the specific API of the target game backend is manipulation initiated, and the author added random delays and opfuscation in different generations of the payload to evade analysis and detection.

There are two points that aggravate the gravity of the incident. The first is focus: the package acts normally for most consumers, which reduces the likelihood that developers or security equipment will detect something out of the ordinary. The second is the presence of metadata from the package that reveal an internal URL of the Digitain repository, which suggests access to the target service source code or filtration of sensitive information, and makes this a possible commitment to the intellectual property of the game provider.
From the attacker's perspective, the campaign showed evolution: a first generation that only showed how to alter local results, a second that added hidden exfiltration through reflection and ConfuserEx, and a third that stabilized that mechanism. The exfiltration endpoint documented in the analysis is a specific IP address and a port and the payload uses a specific header to transmit data, which facilitates detection if the right traffic is monitored.
The operational and regulatory implications are important. For Digitain and any gambling operator, the integrity of the bets is critical: manipulating results compromises confidence, carries legal risks and can trigger audits and sanctions. For the developer community, this case recalls that public repositories can be used for selective attacks and that an innocent installation by typographic error can have consequences on third parties.
The immediate actions recommended for developers are clear: remove any suspicious package, block the detected exfiltration endpoint at the network level, and set (pin) the Newtonsoft.Json version known and verified by packages.lock.json or equivalent mechanisms to avoid automatic updates to unverified packages. It is also appropriate to scan the code in search of assignments to JsonConvert.DefaultSettings and to review transitional units that may have dragged the typosquat.
At the process level, it is essential to strengthen the control of the supply chain: to maintain an internal Mirror or a NuGet controlled feed with approved packages, to enable the verification of package signatures when available, to generate and audit SBOMs of critical projects, and to apply allowlist rules in CI / CD systems to prevent facilities from public repositories without revision. It is also a priority to review logs and telemetry in search of outgoing connections to the above IP and the use of the exfiltration header to identify commitments.

For organizations that may have been affected it is appropriate to activate a response plan: to preserve evidence, to review binary integrity, to audit internal repositories for signs of code leakage and, if results are confirmed, to coordinate with the supplier concerned to assess the scope and to notify regulators and customers as appropriate. If required, bring external forensic expertise to rebuild the chronology and determine whether there was access to secrets or credentials.
At the preventive level, technical officials should actively monitor packages published under names similar to critical libraries and set up alerts for changes in dependencies. Supply chain analysis tools and scanning of public repositories, along with practices such as the revision of dependencies before promotion to productive environments, reduce the exposure window to typosquats and targeted Trojans.
This incident again shows that the security of the supply chain is not only a matter of confidentiality but of integrity and availability: a malicious package can be perfectly functional for most users while sabotaging very specific systems. To understand better risks and practical measures, teams can consult public resources and analysis on threats to repositories such as those published by security companies and the code platforms themselves (e.g. technical documentation and publications on specialized blogs). A good starting point to audit dependencies and stay informed is to review the official repository of Newtonsoft.Json in GitHub https: / / github.com / JamesNK / Newtonsoft.Json and general recommendations on supply chain security on JFrog's blog https: / / jfrog.com / blog /. In addition, to review packages and search for possible typosquats, the official NuGet website is available on https: / / www.nuget.org /.
Related
More news on the same subject.

GitLab critical alert: emergency patch fixes CVE-2026-19478 allowing to modify or eliminate public projects without credentials
GitLab published an emergency patch on August 17, 2026 to correct critical vulnerability in its self-hosted software (Community and Enterprise Edition) which, under certain cond...

When the MCP server keeps your credentials: the silent attack vector of the IA in production
The incorporation of IA agents into business processes has opened a practical way for production systems and data to be accessible from models: it is called Model Context Protoc...

Critical alert: CVE-2026-58231 in SAP Commerce Cloud could allow remote code execution; patch and urgent mitigation
A critical vulnerability that affects SAP Commerce Cloud, registered as CVE-2026-58231 and with maximum score 10.0 on the CVSS scale, it is being exploited attempts shortly afte...

The massive purchase of expired domains drives fraud, malware and streaming pirate: the business behind the dropcatch
An intelligence report on DNS published by Infoblox and disseminated by specialized media confirms that criminals are buying large-scale expired domains - the so-called dropcatc...

HoneyMyte updates CoolClient with a signed kernel driver to hide processes and protect the C2 channel
Kaspersky has published an analysis that attributes to the actor known as HoneyMyte (also Mustang Panda) an updated version of the CoolClient backdoor that incorporates a signed...

GeoServer on zero-day vulnerability alert in jsonArrayContains with real risk of remote execution
The GeoServer open source project has a zero-day vulnerability that is being actively explored by attackers, according to researchers' public alerts and the watchTowr intelligen...

AmnesiaStealer MacOS malware that steals credentials and controls real-time browser sessions
Security researchers have documented a new malware family aimed at macOS - called AmnesiaStealer - that combines a dropper in shell, an infostealer written in Rust and a remote ...