Skip to main content
VulnerabilityPublished

Malicious npm Package Uses Hidden Prompt and Script to Evade AI Security Tools

Source The Hacker News

0
Severity
Medium

Rated by Threat Radar

Data as of 9 Dec 2025, 13:37 UTC

What to do

AI-suggested

European organizations should implement strict supply chain security measures, including the use of package integrity verification tools such as npm audit, Snyk, or similar solutions that can detect malicious post-install scripts. Developers should avoid installing packages from untrusted or unknown publishers and prefer packages with verified maintainers. Employing allowlists for npm packages and restricting post-install scripts via npm configuration can reduce risk. Security teams should enhance AI-based detection tools by training models to recognize deceptive prompt strings and other evasion tactics. Continuous monitoring of environment variables and network traffic for unusual exfiltration attempts, especially to external webhooks like Pipedream, is critical. Implementing secrets management solutions to avoid storing sensitive credentials in environment variables accessible to development tools can limit exposure. Regularly updating dependencies and removing unused packages will reduce the attack surface. Finally, fostering developer awareness about supply chain threats and encouraging code reviews for third-party dependencies can further mitigate risks.

Description

Cybersecurity researchers have disclosed details of an npm package that attempts to influence artificial intelligence (AI)-driven security scanners. The package in question is eslint-plugin-unicorn-ts-2, which masquerades as a TypeScript extension of the popular ESLint plugin. It was uploaded to the registry by a user named "hamburgerisland" in February 2024. The package has been downloaded

References

Community reviews

Loading reviews…