Case · DiggingBeagle record

Miasma-family worm placed agent instruction files and startup triggers in repositories

SafeDep found that a Miasma-related npm worm extended from package scripts into GitHub repositories by adding forged agent instructions and hooks. The malicious files directed coding assistants to execute an obfuscated setup script as if it were authorized project preparation. SafeDep did not establish downstream execution of every poisoned repository or compromised third-party npm packages from the observed November extension. Shared code does not prove

Scope

The November update documents twelve third-party repositories with suspicious commits, including CLAUDE.md, AGENTS.md, Cursor and session-start hook surfaces. A repository checkout or tool launch must actually read or execute the planted instructions before the agent-specific payload has an effect.

Assessment profile

Assessment method
Setting
production
Exploitation
observed live
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

production setting with observed_live status, based on the identified primary disclosure and its stated test or incident limits. The new Claim distinguishes source observations from hypothetical downstream effects. Impact band is unassigned because the scoped evidence does not justify a comparable quantitative score; no unobserved customer harm or loss is imputed. Remediation state: mitigation_available.

Assessed Nov 13, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    The November update documents twelve third-party repositories with suspicious commits, including CLAUDE.md, AGENTS.md, Cursor and session-start hook surfaces. A repository checkout or tool launch must actually read or execute the planted instructions before the agent-specific payload has an effect.

  2. 02

    The payload combines ordinary package lifecycle execution with a higher-trust framing for agent instructions. These are different triggers: the package installer can run code without an LLM, while an assistant reading forged repository guidance can promote the attacker's procedure into action.

Claims & evidence

CLM-ENR243-020-DETAILSafeDep identified 12 repositories with new Miasma-family payload placement through forged agent guidance and session-start hooks; the repository count does not demonstrate that all poisoned checkouts executed the payload.supported

Basis: reported finding

Link to claim
CLM-R242-MIASMA-AGENT-REPOSITORY-HOOKS-LIMITSSafeDep did not establish downstream execution of every poisoned repository or compromised third-party npm packages from the observed November extension. Shared code does not prove that other CI worms have the same operator.supported

Basis: reported finding

Link to claim
CLM-R242-MIASMA-AGENT-REPOSITORY-HOOKS-MECHANISMSafeDep found that a Miasma-related npm worm extended from package scripts into GitHub repositories by adding forged agent instructions and hooks. The malicious files directed coding assistants to execute an obfuscated setup script as if it were authorized project preparation.supported

Basis: reported finding

Link to claim

Implications

The payload combines ordinary package lifecycle execution with a higher-trust framing for agent instructions. These are different triggers: the package installer can run code without an LLM, while an assistant reading forged repository guidance can promote the attacker's procedure into action.

Controls and mitigations

  • Review agent instruction files and session hooks as executable supply-chain inputs, pin trusted versions and disable unreviewed repository-provided startup execution.

Unknowns and contradictions

  • SafeDep did not establish downstream execution of every poisoned repository or compromised third-party npm packages from the observed November extension. Shared code does not prove that other CI worms have the same operator.

Sources and citation

Material revision history

  1. Nov 13, 2026 · Published version · first publication · revision 244