Skip to content
PERMISSION/PROTOCOL
Back to incident tracker

2026-11-23

MediumPrimary

Live Agents Executed Injected Shell Payloads Before Benign Skills Ran in Controlled Research

Controlled research reports injected marker payload execution in 97 of 200 sampled flagged ClawHub skills, mainly in the agent shell before skill execution.

Custom GPT-4o-mini skill-invocation agentTool execution / MCPControlled indirect-prompt-injection research with agent-shell command substitutionA custom live-model research harness invoking sampled published ClawHub skills through bash -c; no live deployment was accessed.

What happened

The live-model agent passed attacker-controlled command substitutions into its shell command line, causing deterministic marker writes before the intended skill began in 95 initially exploited cases.

Why it matters

No production impact established. Authors report isolated sandboxes, canary credentials and blocked egress; no real credentials or user data were read or sent.

Missing authorization check

Independent validation that the effective executable, arguments and resulting shell effects remain within the legitimate task, rather than trusting untrusted fields copied into a command string.

Would PP block it?

An enforcement integration would need trusted interpretation of executable and argument boundaries and complete mediation of consequential effects. This paper did not evaluate Permission Protocol or demonstrate its prevention effectiveness.

Incident analysis

Timeline and technical read

Timeline

  1. 2026-11-23

    The authors publish version 1 of the primary preprint describing sandbox and live-agent experiments; this is the publication date, not an established execution date.

Technical breakdown

  • The attacker model controls external content, not the benign skill, registry, user request or model.
  • Researchers sampled 200 flagged skills stratified by language: 88 Python and 112 JavaScript.
  • The live agent used GPT-4o-mini and a run_command tool executing through bash -c, with naive and explicit injection variants and three trials each.
  • Payload markers reached drop files in 97 of 200 sampled skills. In 95 of these cases shell command substitution executed before the skill started.
  • Paired controls reran the 97 exploited skills: 92 executed with the shell tool and 10 with run_program(program, args), which rejected direct shell calls. The latter is 10 of the original 200 sampled skills, not 10% of all registry skills.
  • All dynamic execution used isolated sandboxes with canary credentials and blocked egress. Static dependency alerts and manually driven harness exploits are separate from live-model outcomes.

Authorization boundary

Where the authorization boundary should have been

This incident is categorized as Tool execution / MCP. The relevant Permission Protocol gate is Tool-Call Gate. The read is conditional: the block only applies where the real action boundary is routed through a gate.

If enforced at
The agent process-execution boundary before shell interpretation, with downstream mediation where required.
Still needs
PP does not itself sanitize skill code, fix dependency vulnerabilities or make shell expansion safe. Unmediated subprocess effects remain outside coverage. No PP integration was tested.
Receipt required for
Executing the effective program and arguments and any additional file-write or subprocess effects introduced by untrusted content.

An independently integrated action boundary could require authority for the effective operation, but skill-name or shell-prefix approval alone does not constrain command substitution.

Start small

Put the relevant gate at this action boundary.

This incident maps to Tool-Call Gate. Start with the boundary that controls the actual action, then require a signed receipt before execution.

Replay this incident with a signer in the loop