Executive Summary
An active PyPI campaign used dependency-based gating to unlock hidden malware across eight packages. Teams operating AI agents, LLM applications, or supporting Python infrastructure should review dependency provenance and execution controls.
What Happened
An "active and evolving" campaign targeting the Python Package Index (PyPI) repository has been found to employ a novel technique dubbed DevGating that uses the victim's Python dependencies as a key to unlock the payload. The campaign, according to Island, has been active since September 25, 2026, and spans four waves and eight packages, with the attacker progressively iterating its evasion
Affected Products
- Python Package Index (PyPI)
- Python dependencies
Vulnerability / Attack Technique
Dependency-gated hidden malware delivery
Technical Mechanism
The reported DevGating technique uses the victim’s Python dependencies as a key to unlock the payload. The campaign spanned four waves and eight packages, while the attacker progressively iterated its evasion methods.
AI Security Category
LLM03:2025 Supply Chain
Part of the AI Supply Chain and AI SBOM topic.
Relevant Frameworks
RealGround Analysis
This matters because AI agents and LLM applications frequently depend on Python packages that may execute during installation, startup, or application workflows. Dependency-gated payloads can reduce the visibility of malicious behavior and increase the importance of complete software inventories, package provenance checks, and controlled runtime execution.
Recommended Controls
- Maintain an inventory of Python dependencies used by AI agents and LLM applications, including transitive dependencies.
- Pin and verify package versions and hashes, and obtain packages from approved repositories or internal mirrors.
- Scan dependencies for malicious behavior before deployment and continuously monitor for package updates or newly reported risks.
- Run package installation and application execution in isolated, least-privilege environments without unnecessary network access.
- Require code review and security approval for new or changed dependencies in AI application build pipelines.
Related RealGround Service
AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/12/8-malicious-pypi-packages-use-python.html
Summary and analysis written by RealGround from the source above; last updated 2026-12-04.
