Malicious code in fastapii (PyPI)
The fastapii package on PyPI is a malicious typosquatting package impersonating the popular fastapi library. During installation, it executes obfuscated code that downloads and runs a remote binary on Linux systems. This binary is fetched from an unrelated GitHub account without verification, and the package's real behavior is to drop and execute this payload. The payload reportedly exfiltrates cryptocurrency wallet data and potentially other sensitive information. The malicious activity is triggered only on Linux, allowing it to evade detection on other platforms. The package versions 0.1.1, 0.1.2, 0.2.0, and 0.3.0 are affected.
AI Analysis
Technical Summary
fastapii is a malicious PyPI package that uses typosquatting to impersonate the legitimate fastapi package. Its setup.py overrides the install command to run a post-install step that decodes a base64 payload and executes it. On Linux, this payload downloads a binary from an unrelated GitHub repository, saves it to /tmp, makes it executable, and launches it detached. The binary is unverified and unpinned, posing a risk of arbitrary code execution. The package itself contains only a stub module with trivial functionality to obscure its malicious intent. The payload is designed to exfiltrate cryptocurrency wallet data and possibly other sensitive information. This threat is Linux-specific and activates during installation or in Linux CI/production environments.
Potential Impact
The malicious package can lead to arbitrary code execution on Linux systems during installation. The downloaded binary can exfiltrate cryptocurrency wallet data and potentially other sensitive information. This compromises the confidentiality and integrity of affected systems and data. Because the payload is executed during installation, it can affect developer environments, CI pipelines, and production Linux servers that inadvertently install this package. The unverified remote fetch increases the risk of supply chain compromise and further malware delivery.
Mitigation Recommendations
Avoid installing the fastapii package or any similarly named typosquatting packages. Use only the official fastapi package from PyPI. Since no official patch or remediation exists for the malicious fastapii package itself, remediation involves removing any installed instances of fastapii and scanning affected systems for the downloaded payload and signs of compromise. Verify package names carefully before installation and consider using package allowlists or automated supply chain security tools to prevent typosquatting attacks.
Malicious code in fastapii (PyPI)
Description
The fastapii package on PyPI is a malicious typosquatting package impersonating the popular fastapi library. During installation, it executes obfuscated code that downloads and runs a remote binary on Linux systems. This binary is fetched from an unrelated GitHub account without verification, and the package's real behavior is to drop and execute this payload. The payload reportedly exfiltrates cryptocurrency wallet data and potentially other sensitive information. The malicious activity is triggered only on Linux, allowing it to evade detection on other platforms. The package versions 0.1.1, 0.1.2, 0.2.0, and 0.3.0 are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
fastapii is a malicious PyPI package that uses typosquatting to impersonate the legitimate fastapi package. Its setup.py overrides the install command to run a post-install step that decodes a base64 payload and executes it. On Linux, this payload downloads a binary from an unrelated GitHub repository, saves it to /tmp, makes it executable, and launches it detached. The binary is unverified and unpinned, posing a risk of arbitrary code execution. The package itself contains only a stub module with trivial functionality to obscure its malicious intent. The payload is designed to exfiltrate cryptocurrency wallet data and possibly other sensitive information. This threat is Linux-specific and activates during installation or in Linux CI/production environments.
Potential Impact
The malicious package can lead to arbitrary code execution on Linux systems during installation. The downloaded binary can exfiltrate cryptocurrency wallet data and potentially other sensitive information. This compromises the confidentiality and integrity of affected systems and data. Because the payload is executed during installation, it can affect developer environments, CI pipelines, and production Linux servers that inadvertently install this package. The unverified remote fetch increases the risk of supply chain compromise and further malware delivery.
Mitigation Recommendations
Avoid installing the fastapii package or any similarly named typosquatting packages. Use only the official fastapi package from PyPI. Since no official patch or remediation exists for the malicious fastapii package itself, remediation involves removing any installed instances of fastapii and scanning affected systems for the downloaded payload and signs of compromise. Verify package names carefully before installation and consider using package allowlists or automated supply chain security tools to prevent typosquatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13486
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a75f711bf8831d53984fb25
Added to database: 08/07/2026, 15:17:37 UTC
Last enriched: 08/07/2026, 15:40:54 UTC
Last updated: 08/08/2026, 03:40:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.