Malicious code in spo365-graph (PyPI)
The spo365-graph package on PyPI contains malicious code introduced in version 1.1.2 that executes during installation. This code deploys a rogue AWS Lambda function designed to collect credentials from AWS Secret Manager and exfiltrate other sensitive data. The package overrides the install command in setup.py to carry out these malicious actions.
AI Analysis
Technical Summary
The spo365-graph PyPI package was found to include malicious functionality starting in version 1.1.2. Specifically, during installation, the package overrides the standard install command to deploy a rogue AWS Lambda function. This function collects credentials stored in AWS Secret Manager and exfiltrates these credentials along with other data. The malicious behavior is embedded in the package installation process, enabling credential theft and data exfiltration without user consent.
Potential Impact
Successful installation of the malicious spo365-graph package results in unauthorized deployment of an AWS Lambda function that steals AWS credentials from Secret Manager and exfiltrates sensitive data. This compromises the confidentiality of AWS credentials and potentially other sensitive information accessible via the compromised environment.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing versions 1.0.0, 1.1.0, 1.1.1, and 1.1.2 of the spo365-graph package. Verify package integrity before installation and consider using trusted package sources or scanning tools to detect malicious packages. Monitor for any unauthorized AWS Lambda functions and revoke any compromised credentials immediately.
Malicious code in spo365-graph (PyPI)
Description
The spo365-graph package on PyPI contains malicious code introduced in version 1.1.2 that executes during installation. This code deploys a rogue AWS Lambda function designed to collect credentials from AWS Secret Manager and exfiltrate other sensitive data. The package overrides the install command in setup.py to carry out these malicious actions.
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
The spo365-graph PyPI package was found to include malicious functionality starting in version 1.1.2. Specifically, during installation, the package overrides the standard install command to deploy a rogue AWS Lambda function. This function collects credentials stored in AWS Secret Manager and exfiltrates these credentials along with other data. The malicious behavior is embedded in the package installation process, enabling credential theft and data exfiltration without user consent.
Potential Impact
Successful installation of the malicious spo365-graph package results in unauthorized deployment of an AWS Lambda function that steals AWS credentials from Secret Manager and exfiltrates sensitive data. This compromises the confidentiality of AWS credentials and potentially other sensitive information accessible via the compromised environment.
Defensive Guidance
No official patch or remediation is indicated in the provided data. Users should avoid installing versions 1.0.0, 1.1.0, 1.1.1, and 1.1.2 of the spo365-graph package. Verify package integrity before installation and consider using trusted package sources or scanning tools to detect malicious packages. Monitor for any unauthorized AWS Lambda functions and revoke any compromised credentials immediately.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17421
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6abfee7ba43b0b3b89e543bc
Added to database: 10/02/2026, 17:48:43 UTC
Last enriched: 10/02/2026, 17:54:12 UTC
Last updated: 10/02/2026, 23:39:20 UTC
Views: 5
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.
External Links
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.