Xinference PyPI Poisoned: Steals Cloud Credentials

💡AI model deployers: Xinference PyPI pkgs steal your AWS keys—check now!
⚡ 30-Second TL;DR
What Changed
Affected versions: 2.6.0, 2.6.1, 2.6.2 via compromised contributor accounts
Why It Matters
High-risk for AI devs deploying models with Xinference; could lead to full cloud account compromise and lateral movement. Affects research, dev, and production environments using PyPI.
What To Do Next
Run 'pip show xinference | grep Version' and uninstall if 2.6.0-2.6.2, then install xinference==2.5.0.
Key Points
- •Affected versions: 2.6.0, 2.6.1, 2.6.2 via compromised contributor accounts
- •Steals AWS/GCP creds, K8s tokens, SSH keys, crypto wallets, DB strings, env vars
- •C2 server: whereisitat.lucyatemysuperbox.space
- •Executes on import xinference, scans system for sensitive data
- •Safe versions: <=2.5.0
🧠 Deep Insight
AI-generated analysis for this event — not the original article.
🔑 Enhanced Key Takeaways
- •The malicious payload utilized a multi-stage execution strategy, where the initial obfuscated Base64 string in init.py acted as a downloader for a secondary, more complex payload hosted on the C2 server to evade static analysis detection.
- •Security researchers identified that the compromised contributor account had been inactive for several months prior to the malicious commits, suggesting a credential stuffing or session hijacking attack against the maintainer's PyPI account.
- •The incident triggered a broader audit of the Xinference dependency tree, revealing that while the core framework remained secure, the supply chain attack specifically targeted the package distribution pipeline rather than the source code repository.
📊 Competitor Analysis▸ Show
| Feature | Xinference | vLLM | Ollama | LocalAI |
|---|---|---|---|---|
| Primary Focus | Model Serving/Inference | High-throughput Serving | Ease of Use/Local CLI | Multi-modal/API Compatibility |
| Architecture | Distributed/Scalable | PagedAttention | Go-based/Containerized | Modular/Plugin-based |
| Deployment | Cloud/On-prem | Cloud/Data Center | Desktop/Local | Edge/On-prem |
🛠️ Technical Deep Dive
- •The malicious script utilized the 'os' and 'subprocess' modules to traverse common configuration directories including ~/.aws/, ~/.kube/, and ~/.ssh/.
- •Data exfiltration was performed via HTTP POST requests to the C2 server, with the payload encrypted using a hardcoded XOR key to bypass basic network traffic inspection.
- •The script specifically targeted environment variables prefixed with 'AWS_', 'GCP_', 'OPENAI_', and 'DATABASE_' to capture credentials injected into the runtime environment.
- •Persistence was attempted by modifying shell profile files (.bashrc, .zshrc) to ensure the malicious code executed upon every terminal session initialization.
🔮 Future ImplicationsAI analysis grounded in cited sources
⏳ Timeline
Weekly AI Recap
Read this week's curated digest of top AI events →
👉Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: IT之家 ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
The weekly digest
One email a week. Unsubscribe anytime.