# Malicious Sicoob NuGet Package Steals Banking Credentials in Latest Supply Chain Attack
Cybersecurity researchers have discovered a sophisticated supply chain attack targeting developers in Brazil's financial sector. A malicious NuGet package masquerading as an official C# SDK for Sicoob, one of Brazil's largest cooperative financial institutions, was designed to harvest sensitive banking credentials and encryption certificates from unsuspecting developers.
According to security researchers at Socket, the compromised package—published under the name "Sicoob.Sdk"—affected versions 2.0.0 through 2.0.4 and contained obfuscated code that exfiltrated client IDs and PFX certificates used for API authentication. The discovery underscores a troubling trend: attackers increasingly target package managers as vectors to infiltrate enterprise infrastructure, particularly in the financial services sector.
## The Threat
The malicious Sicoob.Sdk package was designed with a specific objective: extract authentication credentials that would grant attackers direct access to Sicoob's banking APIs. The attack vector worked as follows:
Developers who installed the affected versions likely downloaded the package believing they were obtaining the legitimate SDK needed to integrate with Sicoob's services. Once installed in a development environment, the malware would execute upon package import, silently exfiltrating credentials to attacker-controlled servers.
## Background and Context: Supply Chain Attacks on Package Managers
This incident is not an isolated event. Package managers—repositories like NuGet, npm, PyPI, and Maven—have become prime targets for sophisticated attackers seeking to compromise large numbers of organizations with a single malicious upload.
Why package managers are attractive targets:
Previous attacks on package managers include:
| Attack | Year | Package Manager | Impact |
|--------|------|-----------------|--------|
| XcodeGhost | 2015 | Unofficial iOS SDK | Modified apps for 100M+ users |
| ua-parser.js | 2021 | npm | Crypto mining malware in 70M+ downloads |
| SolarWinds | 2020 | Custom (not public) | Nation-state supply chain attack |
| Dependency Confusion | 2021 | npm/PyPI | Cross-organization credential theft |
## Technical Details: How the Attack Worked
The Sicoob.Sdk malware employed several technical mechanisms to remain undetected:
### Obfuscation and Evasion
The package used code obfuscation techniques to disguise its malicious functionality:
### Credential Discovery and Extraction
Once installed, the malware performed several actions:
1. Certificate enumeration: Scanned the host system for PFX certificate files commonly stored in development directories
2. Environment variable scanning: Searched for banking API credentials stored in environment variables or configuration files
3. Keystore access: Attempted to access .NET credential stores where developers might have cached login information
4. Exfiltration: Transmitted harvested credentials to remote command-and-control infrastructure
### Camouflage as Legitimate SDK
The package included authentic-looking SDK components to further evade detection:
## Who Was Affected?
The primary victims of this attack were:
The attack's reach extended beyond individual developers to organizations with multiple development environments. A single installation in a shared development network could expose credentials for entire engineering teams.
## Implications for Organizations
### Direct Risk: Unauthorized API Access
Stolen PFX certificates and client IDs provide attackers with the ability to:
### Secondary Risk: Credential Compromise Across Systems
Banking credentials stolen from development environments often follow predictable patterns:
### Institutional Risk: Reputation and Regulatory Damage
Organizations that unknowingly distributed malicious packages face:
## Recommendations for Developers and Organizations
### Immediate Actions
If you installed Sicoob.Sdk versions 2.0.0–2.0.4:
1. Remove the package immediately from all development environments and build pipelines
2. Rotate all banking credentials and PFX certificates used with Sicoob APIs
3. Revoke compromised certificates through Sicoob's credential management portal
4. Check for exfiltration by reviewing network logs for outbound connections during the installation period
5. Scan systems for indicators of compromise (persistence mechanisms, additional malware)
### Long-Term Defense
For development teams:
For security teams:
For organizations using Sicoob APIs:
## HackWire Analysis
The Sicoob.Sdk attack represents a maturation of supply chain tactics. Unlike earlier incidents that relied on typosquatting or obvious obfuscation, this malware impersonated an entirely legitimate product—a strategy that shifts the burden of detection from automated tools to human judgment and operational discipline.
What's particularly concerning is the targeting of financial institutions in emerging markets. Sicoob's cooperative structure means the institution serves thousands of smaller banks and credit unions across Brazil, each potentially exposing downstream customers to fraud. A single compromised developer at a partner organization could open pathways to dozens of financial institutions.
The attack also highlights a blind spot in open-source security: package managers trust repositories more than they trust individual packages. Developers see a package in the official NuGet gallery and assume basic vetting has occurred. In reality, automated systems check for malware signatures they already know—they don't catch sophisticated credential-stealing code buried in obfuscated libraries. The burden of due diligence falls entirely on developers with limited tools to assess code behavior.
For Brazilian fintech companies and banking partners, this incident demands immediate action. Credentials are not reissuable like passwords—a stolen PFX certificate represents a permanent compromise until manually rotated. Organizations that delay credential rotation risk ongoing unauthorized API access long after discovering the infection. More broadly, any organization integrating with financial systems through public SDK repositories should assume supply chain compromise is an active threat, not a theoretical risk.
— HackWire Editorial
## Related Coverage