Malicious code in OtpCsharp (NuGet)
Malicious code was discovered in multiple versions of the OtpCsharp NuGet package. The incident was documented by the OpenSSF malicious packages project and published as advisory GHSA-5xcp-2vmr-7f23.
- Disclosed
- Last updated
- Blast radius
- Multiple versions of OtpCsharp package on NuGet
- Ecosystems
- Attack vectors
- Affected entities
- OtpCsharpNuGet package with malicious code
The OtpCsharp NuGet package contained malicious code across multiple versions. This incident was identified and documented by the OpenSSF's malicious packages initiative, which maintains a public repository of confirmed malicious software supply chain incidents.\n\nThe advisory GHSA-5xcp-2vmr-7f23 was published on July 20, 2026, documenting the compromise. The malicious package was distributed through the official NuGet package repository, affecting any developers who installed affected versions of OtpCsharp.\n\nThe incident has been documented in the OpenSSF malicious packages database (MAL-2024-4606), indicating formal recognition and tracking of this supply chain compromise."
Indicators of compromise
- Packages
- OtpCsharp
Remediation
- Remove all versions of OtpCsharp from affected projects
- Audit code that used OtpCsharp for potential compromise or data exfiltration
- Review NuGet package dependencies for similar malicious packages
- Update to a clean, verified version of OtpCsharp or a trusted alternative if available
- Monitor systems that may have executed code from affected versions
Sources
- GitHub Advisory GHSA-5xcp-2vmr-7f23 · GitHub Advisory Database
Cite this entry
"Malicious code in OtpCsharp (NuGet)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 20, 2026; last updated July 20, 2026. https://supplychainattack.org/incident/malicious-code-in-otpcsharp-nuget-qtzewu
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in Ultimate.Wpf.Toolkit (NuGet)
Multiple versions of the Ultimate.Wpf.Toolkit NuGet package contained malicious code. The incident was identified and documented by the OpenSSF malicious packages project.
NuGetCompromised package - resolvedcritical
Malicious code in YoutubeExtractor.Net (NuGet)
Malicious code was discovered in the YoutubeExtractor.Net NuGet package. The incident was identified and documented by the OpenSSF malicious packages project.
NuGetCompromised package - resolvedcritical
Malicious code in Zendesk.OAuth (NuGet)
Malicious code was discovered in multiple versions of the Zendesk.OAuth NuGet package. The incident was identified and documented by the OpenSSF malicious packages project.
NuGetCompromised package - resolvedcritical
Malicious code in Winforms (NuGet)
Malicious code was discovered in multiple versions of the Winforms package on NuGet. The incident was documented by the OpenSSF malicious packages project and published as GitHub advisory GHSA-wq82-5xjm-57wq.
NuGetCompromised package