Malicious code in ollama-helpers (npm)
The npm package 'ollama-helpers' versions 1.2.1 and 1.2.2 contains malicious code that executes automatically upon installation. It collects extensive sensitive information from the host system, including OS hostname, usernames, git user emails, SSH public key comments, cloud account identifiers, and more, then exfiltrates this data to an anonymous Google Cloud Run endpoint. The package impersonates the official Ollama ecosystem but is unrelated and does not include the expected main executable, confirming it is a pure data exfiltration tool. There is no user consent or opt-out for this telemetry-like behavior. Systems with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The 'ollama-helpers' npm package versions 1.2.1 and 1.2.2 contains a postinstall script that automatically runs on 'npm install' and harvests a wide range of sensitive identity and configuration data from the host system. This includes OS hostname and username, git user emails, SSH public key comments, GitHub and cloud provider identities, AWS profiles, DNS domains, and CI provider information. The collected data is sent as JSON to a hardcoded anonymous Google Cloud Run endpoint unrelated to the legitimate Ollama project. The package falsely claims affiliation with the Ollama ecosystem via fabricated metadata and omits the declared main executable, indicating its sole purpose is data exfiltration. The scope of collected data far exceeds legitimate telemetry, and no consent mechanism is provided. According to the source, any system with this package installed should be treated as fully compromised, and all secrets and keys should be rotated from a clean system.
Potential Impact
Installation of the affected 'ollama-helpers' package versions results in automatic execution of malicious code that exfiltrates sensitive host system information, including credentials and cloud account identifiers, to an attacker-controlled endpoint. This compromises the confidentiality of secrets and potentially enables further unauthorized access or lateral movement. The presence of this package indicates a full system compromise, and removal alone does not guarantee eradication of all malicious artifacts.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'ollama-helpers' package versions 1.2.1 and 1.2.2 is recommended. Systems with this package installed should be considered fully compromised. All secrets, credentials, and keys stored on the affected system must be rotated from a separate, trusted environment. Monitor for any unauthorized access or suspicious activity resulting from this compromise. Exercise caution when installing npm packages and verify package authenticity.
Malicious code in ollama-helpers (npm)
Description
The npm package 'ollama-helpers' versions 1.2.1 and 1.2.2 contains malicious code that executes automatically upon installation. It collects extensive sensitive information from the host system, including OS hostname, usernames, git user emails, SSH public key comments, cloud account identifiers, and more, then exfiltrates this data to an anonymous Google Cloud Run endpoint. The package impersonates the official Ollama ecosystem but is unrelated and does not include the expected main executable, confirming it is a pure data exfiltration tool. There is no user consent or opt-out for this telemetry-like behavior. Systems with this package installed should be considered fully compromised.
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 'ollama-helpers' npm package versions 1.2.1 and 1.2.2 contains a postinstall script that automatically runs on 'npm install' and harvests a wide range of sensitive identity and configuration data from the host system. This includes OS hostname and username, git user emails, SSH public key comments, GitHub and cloud provider identities, AWS profiles, DNS domains, and CI provider information. The collected data is sent as JSON to a hardcoded anonymous Google Cloud Run endpoint unrelated to the legitimate Ollama project. The package falsely claims affiliation with the Ollama ecosystem via fabricated metadata and omits the declared main executable, indicating its sole purpose is data exfiltration. The scope of collected data far exceeds legitimate telemetry, and no consent mechanism is provided. According to the source, any system with this package installed should be treated as fully compromised, and all secrets and keys should be rotated from a clean system.
Potential Impact
Installation of the affected 'ollama-helpers' package versions results in automatic execution of malicious code that exfiltrates sensitive host system information, including credentials and cloud account identifiers, to an attacker-controlled endpoint. This compromises the confidentiality of secrets and potentially enables further unauthorized access or lateral movement. The presence of this package indicates a full system compromise, and removal alone does not guarantee eradication of all malicious artifacts.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'ollama-helpers' package versions 1.2.1 and 1.2.2 is recommended. Systems with this package installed should be considered fully compromised. All secrets, credentials, and keys stored on the affected system must be rotated from a separate, trusted environment. Monitor for any unauthorized access or suspicious activity resulting from this compromise. Exercise caution when installing npm packages and verify package authenticity.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6581
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed6927e9c79719938296
Added to database: 06/29/2026, 22:10:49 UTC
Last enriched: 07/08/2026, 15:06:49 UTC
Last updated: 07/28/2026, 02:29:21 UTC
Views: 159
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.