Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
ai-enabled-threat-activitycommand-and-control-methoddefense-evasion-methodpackage-repository-poisoning

Malicious Use of AI and LLMs for Evasion and C2 in Cyberattacks

Updated 3mo agoFirst seen Dec 2, 20252 sources

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.

Share:
Malicious Use of AI and LLMs for Evasion and C2 in Cyberattacks
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
Dec 2, 20257mo ago

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.

Feb 1, 20242y ago

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.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

6 LINKEDOpen in app
Malware
2 linked
Organizations
4 linked
Koi SecurityMicrosoft CorporationPipedreamGoogle
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Malicious Use of AI and LLMs for Evasion and C2 in Cyberattacks | Mallory