AI Agent Skills Supply Chain Attack: Hundreds of Open-Source Repositories Affected

    Attackers are distributing malware disguised as popular AI agent skills and plugins to steal credentials from developer environments. This article examines the reported 487-entry campaign, its use of DLL side-loading and security exclusions, the limits of reputation-based screening, and practical defenses for developers and enterprises.

    1. AI Agent Skills Are Becoming a Supply Chain Attack Surface

    As coding agents powered by large language models become more common, developers increasingly rely on “skill packages” to extend their capabilities. These packages typically bundle instructions, scripts, and resources into folders that agents load as needed for tasks such as code analysis, documentation generation, and data processing.

    This open ecosystem makes agents more useful, but it also creates a security problem: skill packages combine executable code with prompt instructions. When attackers impersonate or tamper with them, users may struggle to distinguish malicious packages from legitimate ones.

    Security researchers recently disclosed a campaign that distributes malware disguised as popular agent skills and plugins. The attackers target developer workstations to steal passwords, session credentials, and other sensitive information. At the time of the reported count, hundreds of repositories were affected, and the campaign was still expanding.

    The incident illustrates how software supply chain attacks are extending beyond conventional dependency packages into the AI agent ecosystem.

    2. The Attack Chain: From Counterfeit Skills to Persistent Credential Theft

    Publicly disclosed information describes four main stages.

    Stage 1: Impersonation and Distribution

    Attackers create copies of popular skill packages and advertise them as “enhanced” or “fixed” versions to attract downloads.

    The malicious copies retain the original skills’ legitimate functionality. Because the packages still work after installation, users have little reason to suspect a problem. Preserving normal behavior while concealing a backdoor makes the attack harder to notice than malware that immediately breaks functionality.

    Stage 2: DLL Side-Loading Through a Signed Application

    Rather than launching the malicious code directly, the attackers use an updater with a legitimate digital signature.

    They place a malicious DLL in a location searched by the application, causing the trusted updater to load the attacker-controlled module. This technique, known as DLL side-loading, can evade defenses that rely heavily on process reputation: the host executable is legitimately signed even though the code it loads is malicious.

    Stage 3: Weakening Defenses Through Security Exclusions

    After infection, the attackers create exclusions in the operating system’s built-in security software, such as excluding specific files or directories from scanning.

    This is a critical step in the attack chain. Once those exclusions are in place, subsequent malicious files in the excluded locations may escape real-time scanning, substantially weakening protection.

    Stage 4: Deploying MopsStealer and Establishing Persistence

    The final payload is identified as MopsStealer. It has two principal capabilities:

    • Downloading additional credential-stealing components, creating a modular theft framework.
    • Establishing persistence so that it remains active after system restarts.

    Together, these capabilities allow the malware to remain in the victim’s environment and continue stealing sensitive information.

    3. Reported Scope: A Breakdown of 487 Entries

    The reported total is 487. The breakdown includes repositories and fraudulent desktop applications:

    • 413 surviving forks of malicious skill packages. After the original malicious repositories were removed, copies remained available through community forking and automated fork workflows. This exposes a gap between repository takedowns and the continued distribution of forked copies.
    • 51 repositories associated with a fake PC port of a popular game. These show that the attackers also use entertainment-related demand as a distribution lure.
    • 20 compromised legitimate developer repositories. The campaign is not limited to impersonation: genuine maintainer accounts or distribution channels have also been compromised.
    • 3 fraudulent AI desktop applications. These extend the attack surface beyond repositories into desktop application distribution.

    Five malicious repositories had accumulated approximately 2,482 stars between them. Researchers suspect that the star counts were artificially inflated to create an appearance of popularity and trustworthiness.

    For developers, this undermines a familiar shortcut: repository stars are not reliable evidence that a package is safe.

    4. Why Conventional Screening Can Miss the Threat

    One detail highlights the weaknesses of current screening practices. At the time of the reported assessment, a malicious skill was still listed on a skill aggregation site and had passed three independent scanning audits. The associated malicious samples had also never been submitted to a mainstream malware-scanning platform.

    The incident exposes three important blind spots.

    Static Scanning Can Miss Unfamiliar Samples

    Scanners that depend on known signatures or sample databases may fail to recognize previously unseen malware. Legitimate functionality mixed into a malicious skill package can also make malicious characteristics less obvious.

    A clean scan therefore does not establish that a package is safe.

    Reputation Signals Can Be Manipulated

    Stars, download counts, and inclusion on an aggregation site can all be manipulated or provide an incomplete picture. None should be treated as a security endorsement.

    A Valid Signature Does Not Guarantee Safe Behavior

    A digital signature helps establish the publisher and integrity of the signed executable. It does not guarantee that everything the executable loads or does is safe.

    In a DLL side-loading attack, the signed application can remain intact while loading a malicious DLL. The signature is valid, but the application’s behavior has been hijacked.

    5. Defensive Practices for Developers and Enterprises

    Defending against these attacks requires treating agent skills as software supply chain components rather than harmless extensions.

    Govern Skill Package Adoption

    • Maintain an internal allowlist and an approval process. Permit only skills whose source code has been reviewed to enter development environments.
    • Prefer official distribution channels or mirrors maintained by trusted parties. Avoid installing directly from search results or aggregation sites.
    • Verify maintainer identities, commit history, and release signatures. Treat highly starred packages published by newly registered accounts with caution.

    Monitor Endpoint Behavior

    • Monitor changes to security software exclusions. These changes should trigger alerts and require human confirmation; they are a relatively high-signal detection opportunity in this attack chain.
    • Detect signed applications loading DLLs from unexpected locations, particularly updaters and launchers commonly used for side-loading.
    • Watch for abnormal process trees and related activity, including suspicious child processes launched by trusted applications, connections to unknown destinations, and writes to startup locations.

    Minimize Credential Exposure and Privileges

    • Treat password manager sessions, browser-saved credentials, and cloud tokens on developer machines as high-value targets. Use hardware security keys or two-factor authentication to reduce the risk of credential reuse.
    • Separate development environments from everyday browsing environments. Use short-lived credentials and automated rotation for sensitive tokens, and avoid storing long-lived static keys on disk.
    • Manage repository publishing permissions separately to reduce the risk that a compromised account can inject malicious code into legitimate repositories.

    Establish a Supply Chain Response Process

    • Integrate hash checks and source verification for newly introduced dependencies and skill packages into CI/CD workflows.
    • Regularly compare installed skill contents with official releases to detect tampered “enhanced” versions.
    • Prepare an incident response process that can quickly identify internal use of a malicious package, revoke affected credentials, and remove persistence mechanisms.

    6. Conclusion

    The AI agent skills ecosystem is encountering familiar open-source supply chain risks in an environment where users may place substantial trust in extensions and auditing practices remain immature.

    A skill that works correctly is not necessarily trustworthy. For enterprises, the security boundary must extend beyond repositories to every point where agent extensions are loaded.

    The core response is to place skill packages under the same supply chain governance as software dependencies and supplement static scanning with behavioral monitoring. That combination provides a stronger defense against malicious packages that preserve legitimate functionality while quietly compromising developer environments.