Malicious code in ai-texts (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3f70364834c6aa09fed4520d6144867e921c75f416d315addf2ec3b28a92d2e4) The package advertises itself as text helpers for AI pipelines (toText/normalizeText) but src/index.js unconditionally invokes a dropper at module top level on require()/import. The dropper downloads a platform-specific installer from https://anymeetvia.com/download/{win|mac-x86_64|linux}/install1[.ps1] into the OS temp directory, chmods it 0755 on macOS/Linux, and executes it via powershell -File on Windows or bash on Unix, then calls process.exit. There is no version pinning, no hash or signature verification, and the download endpoint is an author-controlled domain unrelated to the advertised functionality. The remote installer content is not present in the package and can be changed by whoever controls anymeetvia.com at any time. The README and module.exports document only the text-helper API; the dropper is undocumented. ## Source: ghsa-malware (157801df9aca5cfc352c39f3fae51f04dd16ee810064ea6d95d4cd99f98931ff) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 'ai-texts' npm package (version 1.0.1) advertises itself as a text helper for AI pipelines but includes a malicious dropper in its source code. Upon module import, it downloads a platform-specific installer script from https://anymeetvia.com/download/{win|mac-x86_64|linux}/install1[.ps1] into the OS temporary directory, sets executable permissions on macOS/Linux, and executes it via PowerShell or bash. The dropper then calls process.exit, preventing further code execution. There is no version pinning or integrity verification of the downloaded installer, allowing the attacker full control over the payload. The malicious installer content is not included in the package and can be changed at any time by whoever controls the domain. The README and exported API do not mention this behavior.
Potential Impact
This malicious package can lead to arbitrary code execution on the host system with the privileges of the user running the Node.js process. Because the dropper runs immediately on import and downloads an external payload without verification, it enables remote code execution and potential system compromise. The attacker-controlled domain can change the payload at any time, increasing the risk and unpredictability of the impact.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using 'ai-texts' version 1.0.1 and remove it from their projects. Avoid importing or requiring this package. Verify dependencies carefully and use trusted sources. Monitor for updates or advisories from the package maintainers or npm registry regarding this issue. Consider using package integrity verification tools and lockfiles to prevent untrusted code execution.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14217
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c5acd9273b4925255b
Added to database: 08/19/2026, 13:51:01 UTC
Last enriched: 08/19/2026, 14:36:05 UTC
Last updated: 10/04/2026, 01:20:41 UTC
Views: 30
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.