Malicious Use of AI and LLMs for Evasion and C2 in Cyberattacks
Cybercriminals are increasingly leveraging large language models (LLMs) and AI-driven techniques to enhance their attack capabilities and evade detection. Recent research highlights the operationalization of LLM-in-the-loop tradecraft, where malware dynamically generates host-specific PowerShell commands for reconnaissance and data collection, frequently rewriting itself to bypass static and machine learning-based security detections. Attackers are also exploiting stolen API keys and enterprise AI connectors to establish covert command-and-control (C2) channels, disguising malicious activity as legitimate AI traffic. These tactics are being used to target critical infrastructure, with a focus on IT systems that can impact operational technology environments through identity abuse, weak segmentation, and ransomware attacks.
In parallel, threat actors are attempting to manipulate AI-based security tools directly. A malicious npm package, eslint-plugin-unicorn-ts-2, was discovered embedding a prompt intended to influence the decision-making of AI-driven scanners, while also exfiltrating sensitive environment variables via a post-install script. This approach signals a new trend where attackers not only evade traditional detection but also actively seek to undermine the effectiveness of AI-powered defenses. The emergence of underground markets for malicious LLMs further underscores the growing sophistication and commercialization of AI-enabled cybercrime.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
Malicious package remains available on npm at version 1.2.1
As of the reporting date, the malicious package was still available on the npm registry, with the latest version listed as 1.2.1. This indicated the threat had not yet been removed despite public reporting.
Researchers identify AI-evasion behavior in the npm package
Researchers reported that eslint-plugin-unicorn-ts-2 used both conventional malware techniques and a concealed prompt designed to manipulate AI-based security scanners. The finding highlighted a new attacker tactic focused on deceiving defensive AI tooling rather than only evading traditional analysis.
Malicious code introduced in package version 1.1.3
At some point after the package was published, version 1.1.3 introduced malicious functionality including a post-install hook and exfiltration of environment variables to a Pipedream webhook. The package also embedded hidden prompt text aimed at influencing AI-driven security analysis tools.
Malicious npm package uploaded to npm registry
The npm package eslint-plugin-unicorn-ts-2 was uploaded by the user 'hamburgerisland' in February 2024. It was presented as a typosquatted package and later became the basis for a supply-chain malware case.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


