Poisoned Pipeline / Techniques / T0246

T0246 · Execution · TA04 · observed in 1 incident(s)

Provision a general-purpose agent as the remote shell

AI Posture Open Source Security

An agent runtime is a program that takes instructions in natural language
and carries them out with real tools: a shell, file writes, a browser, code
execution, scheduled jobs. Installing one is a normal administrative act,
which is what makes it usable as a payload. The installer does not ship
bespoke malware; it fetches the agent from its public package, writes the
configuration the agent needs, starts it, and then hands the operator the
channel the agent answers on — a chat bot, an HTTP endpoint, a CLI session
it can reach. The implant is a legitimate product, running as designed,
doing what its new owner tells it.

Two properties make this worth doing instead of shipping a stealer. The
first is capability: the operator gets a tool boundary that the agent's
maintainers keep expanding, without writing or smuggling any of it. The
second is that the agent's behaviour is configuration, not code. Its
standing instructions, its permitted users, its model endpoint and its
credentials live in files next to the install — in Hermes Agent, a SOUL.md
loaded into the system prompt and an .env read at startup — and both can be
served from the attacker's server during the install. Changing what the
implant does then costs a request, not a release: no new version, no new
hash, no new review.

What the operator sees on the other side is the agent's ordinary toolset:
commands and process control, file reads and writes, web and browser
access, code execution, scheduled jobs, sub-agents. Most such agents gate
the dangerous calls behind an approval prompt in the conversation, and
admit any member of the chat to approve — so once the attacker is a member,
the gate is a log line rather than a control.

The pattern recurs because the economics work: exposed Docker APIs, CI
runners, and package install scripts all end at the same place, a machine
that can run node. In the @leadstack/crm-connect releases of 16 November
2026 the agent arrived through npm's postinstall and was pointed at a
Telegram bot; ThreatDown's Carbonato botnet reached the same configuration
through Docker API port 2375 two months earlier.

Distinct from T0210, which poisons the configuration of an agent the
developer already runs, and from T0223, which turns a developer's own AI
CLI against their secrets: here the agent itself is the implant and the
attacker is its operator. Distinct from T0213, which describes a fleet of
agents doing the intrusion work at scale, and from T0155, since the workload
is the agent, not a cloud service it drives.

Where this idea came from

Public incident / advisory

From the 16 November 2026 @leadstack/crm-connect npm releases, whose postinstall installed the hermes-agent npm wrapper, wrote the agent's .env and SOUL.md from the attacker's server and connected it to a Telegram bot. The same configuration was reached through Docker API port 2375 by the September 2026 Carbonato botnet. Distinct from T0210 (an agent the developer already runs, reconfigured), T0223 (the developer's own AI CLI turned on their secrets) and T0213 (a fleet of agents doing the intrusion work); here the agent is the implant and the attacker is its operator, with capability that arrives with the product rather than with the package.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References