Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in fastapii (PyPI)

0
High
Published: 08/07/2026 (08/07/2026, 07:04:06 UTC)
Source: GCVE Database
Product: fastapii

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

PyPIghsa
fastapii
Affected versions
=0.1.1=0.1.2=0.2.0=0.3.0

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

AILast updated: 08/07/2026, 15:40:54 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses