Detecting and Responding to Poisoned Skills in Community Software Supply Chains

    AI coding agents are turning skills, plugins, and workflow templates into everyday development entry points. Because these extensions are often installed with one click and granted broad access to source code, terminals, tokens, and build secrets, a tampered package can compromise an entire development workstation and its connected code-hosting accounts—not just a single conversation. This article explains how counterfeit “improved” skills work, how to identify signs of compromise, why deleting one directory is not enough, and how to respond through system rebuilding, credential rotation, source verification, and team-wide installation controls.

    AI coding agents are turning “skills,” plugins, and workflow templates into routine entry points for software development. These extensions are often installed with a single click, given broad permissions, and allowed to access source code, terminals, tokens, and build credentials. If the distribution source is tampered with, the impact is usually much greater than a compromised conversation: the entire development machine and associated code-hosting accounts may be exposed.

    Recent industry reports describe campaigns that use counterfeit “improved versions” of popular skills as bait. Apart from the malicious payload, these packages often behave much like the originals. The original author’s repository may remain untouched, making the copy easy to mistake for a mirror, optimization branch, or community-maintained variant.

    What These Incidents Are Really Exploiting

    On the surface, the question is whether a particular skill is safe to use. In reality, the issue is a bypass of the software supply chain’s trust boundary.

    Developers commonly rely on weak signals such as star counts, download numbers, directory-site badges, automated scan results, and documentation that closely resembles the upstream project. Attackers exploit exactly these signals. They copy the structure and documentation of a popular project, preserve enough functionality to avoid suspicion, and attach additional programs to the installation or first-run process.

    The impact extends beyond a single workstation. Development machines often contain code-hosting tokens, artifact repository credentials, cloud access keys, and internal documents. Once a credential-stealing component succeeds, an incident can escalate from “one workstation behaving strangely” to unfamiliar code being committed, CI/CD pipelines being modified, or stolen keys being used across other systems.

    For that reason, incident response must cover both endpoint cleanup and identity protection. Deleting one suspicious directory is not enough.

    High-Level Characteristics of the Attack Chain

    Without describing reproducible payload construction, publicly reported cases can be summarized as several independent behaviors that are easy to overlook when examined separately.

    1. Distribution Does Not Require Compromising the Upstream Project

    Attackers publish copies presented as “improved,” “localized,” or “enhanced” versions. Their names are close to the original projects, and their documentation and directory structures may be nearly identical.

    The risk begins when a user installs the copy instead of the original author’s repository. The upstream project itself may be completely legitimate. Scanning the original repository does not prove that the package actually installed on a machine is clean.

    2. The Entry Point May Be a Renamed Legitimate Component

    Public descriptions of these incidents have included fake skills that launch an updater-like program with a valid digital signature, even though the file has been renamed.

    A signature can show that an executable came from a legitimate software publisher’s release process. It cannot prove that the executable is expected to run from its current directory, under its current name, alongside the files that accompany it.

    Trusting a signature without verifying the file path and neighboring files is a critical mistake that allows this technique to work.

    3. Side-by-Side Dynamic Library Hijacking

    When a loader searches the application directory before other locations, a malicious library with the expected name can be loaded when a legitimate program starts. The malicious logic then runs inside the legitimate process.

    From a defensive perspective, the key point is simple: an executable and an unexpected dynamic library placed together in a skill directory should be treated as a high-risk combination. There is no need to reconstruct how an attacker built export tables or engineered the loading process.

    4. Evasion and Persistence Are Often Separate Functions

    Common behaviors include adding exclusions to local security software, disguising malware with the names of familiar system processes, creating scheduled tasks so the malware survives a reboot, and downloading additional modules.

    The component responsible for stealing login credentials is often the main source of business impact. A process name that resembles a system component does not make the file legitimate. Genuine system components should normally reside in system directories, not in a skill directory or an arbitrary data directory.

    5. Scanning Badges Are Not Security Verdicts

    A directory site or automated scanner that relies mainly on conventional static rules may miss packages that use unusual packaging, indirect loading, or delayed downloads.

    Passing a scan only means that the current rules did not raise an alert at that moment. It does not prove that the package contains no payload. If a skill’s declared functionality does not explain the executables, dynamic libraries, or scheduled-task scripts it carries, manual review should take precedence.

    In addition, cleanup of attacker infrastructure does not remove every copy. Counterfeit packages may remain in mirrors, forks, and directory caches. A large number of branches or affected repositories may include both hijacked legitimate projects and fake ports or tools created around a popular topic. Removing one account does not eliminate every installation path.

    How to Determine Whether a Workstation Has Entered the Risk Path

    Assessment should be based on the combination of installation source, abnormal file layout, and unexpected persistence—not on intuition. The following checks are defensive investigations and do not describe how to construct a payload.

    Verify the Installation Source

    Consider whether any popular skill was recently installed from a source other than the original author’s repository, especially a package marketed as an “improved version.”

    If the repository owner and contributor identity cannot be confirmed, treat the skill as untrusted. Do not continue using it simply because it still completes code or appears to work normally.

    Inspect Skill and Plugin Directories

    Review the agent skill or plugin paths under user home directories. If a directory contains an executable that should not be part of the skill, especially when the executable is placed beside configuration files and dynamic libraries, it matches a common warning pattern.

    A text-only skill, prompt package, or ordinary script generally should not need to carry a signed updater-like executable.

    Check for Path and Process Mismatches

    Look for executables using familiar system process names while residing outside system directories—for example, in arbitrary data directories, skill directories, or temporary folders. Such a mismatch should be treated as impersonation, not as evidence that the operating system copied the file there.

    Also inspect scheduled tasks and startup entries for references to these paths. Check whether local security software has been configured with exclusions whose origin is unknown.

    Review Identity and Account Activity

    Examine code-hosting security logs for:

    • Commits that were not made by the expected users
    • Newly created access tokens
    • Unfamiliar workflows
    • Permission changes
    • New deployment keys
    • Unexpected collaborators

    Also determine whether the workstation stored passwords, personal access tokens, package-manager tokens, or other credentials that could have been stolen.

    If endpoint alerts mention dynamic library hijacking or similar behavior, treat them as a potential compromise signal rather than dismissing them automatically as false positives.

    If the installation source is suspicious and any one of the file-layout or persistence indicators is present, respond as though credentials may already have been exposed. Do not attempt online repair first or continue logging in to sensitive accounts from the affected machine.

    How Far Emergency Response Should Go

    The objective of this class of malware is often credential theft and delivery of follow-on modules. Removing one file does not prove that malicious code has disappeared from memory, scheduled tasks, or other locations. It also cannot revoke tokens that may already have been exfiltrated.

    For a confirmed or highly suspected endpoint, reinstalling the operating system is generally safer than deleting only the skill directory. Before rebuilding the machine, do not enter new passwords or generate new tokens on it.

    Backups should contain only documents and source code that have been confirmed not to contain executable content. Do not copy the entire user directory and restore it unchanged. That could bring back scheduled-task definitions, skill directories, and credential files.

    From a clean device, rotate every password and token that the compromised machine stored or used. Prioritize:

    1. Code-hosting and automation credentials with the broadest permissions
    2. Package registry credentials
    3. Cloud access keys
    4. Email and collaboration accounts

    Immediately invalidate the old tokens after rotation. Then review security logs for unauthorized commits, newly created pipelines, deployment keys, or unfamiliar collaborators.

    If repository contents were modified, audit recent commits against a trusted copy of the source. Changing passwords alone is not sufficient if the repository or build process has already been altered.

    In an enterprise environment, isolate the affected host’s network identity. Review jump-host access, artifact upload records, and key-management audit logs. Shared build machines, container caches, and synchronized laptop folders may contain the same counterfeit skill and should be checked using the same criteria. Fixing one machine while another continues to run the package leaves the incident unresolved.

    Everyday Installation and Team Governance

    The cost of post-incident credential rotation is far higher than a basic pre-installation review. Practical controls include the following.

    Install skills only from the original author’s repository. Avoid copies marketed as “improved,” “optimized,” “faster,” or “localized” when ownership is unclear. Installation commands, star counts, and scan badges on directory pages are clues—not proof of safety.

    Before running a package, inspect its file list. Check whether it contains executables, dynamic libraries, scheduled-task scripts, or updater-like components unrelated to its declared purpose. If you cannot explain why a file is present, do not install the package.

    Run skills in low-privilege, disposable environments whenever possible. Separate development tokens from normal work accounts, apply least privilege, use short-lived credentials, and never store long-term keys in skill directories or terminal configuration files. Changes to local security-software exclusions should be audited, and installation scripts should not be allowed to add exclusions independently.

    At the team level, use an allowlist for installable skills and regularly compare directory recommendations with the actual repository owner. Pin versions for CI images and agent plugins. When a supply chain alert appears, the team should be able to determine which machines installed which version.

    Monitoring should focus on:

    • Unexpected child processes
    • System-like process names running outside system directories
    • New scheduled tasks
    • Unusual credential-access activity
    • A sudden increase in failed credential use or token creation

    Scanners remain useful for filtering out obvious malicious content, but their role is to reduce low-effort risk—not to issue a security certificate. Source verification, package-file review, and permission isolation must be used alongside scanning to detect counterfeit packages that preserve normal functionality while carrying an additional payload.

    Conclusion

    Fake skills can remain available for a long time because they satisfy two conditions at once: their behavior is sufficiently similar to the legitimate version, and their trust signals resemble those of a community-validated project.

    A valid signature, a passing scan, or a popular project name cannot replace verification of the installation source and package contents. If a skill directory contains unexpected executables and dynamic libraries, a system-like process name appears in the wrong path, or security software has been given an unexplained exclusion, stop using sensitive accounts on that machine.

    Treat the endpoint as potentially compromised: rebuild it where appropriate, rotate all exposed credentials, and audit code-hosting activity for unauthorized changes. Going forward, install skills only from the author’s repository and inspect exactly which files the package includes before allowing it to run.