Topic · DiggingBeagle record

Pre-model execution surface in agent harnesses

Archive parsing, executable dependency updates and harness setup may change host state before the LLM receives any text to inspect.

Topic kind
mechanism

Definition & limits

Prompt-injection controls examine content the model can read. They cannot prevent a side effect already caused by a package import, plugin update, archive expansion or preprocessing hook. ETUDE tests malicious tool updates running outside the model-readable context. Step-Zero tests archive carriers processed before model inspection. Their results come from different attack settings and should never be pooled into a shared success rate.

The general pattern has three elements: external executable or structured input, an automatic parsing/loading step with host privileges, and a side effect that occurs before a conversational guard could intervene. Useful controls include verified package origin, immutable digests, parser limits, sandboxed preprocessing, network restrictions, and independent process-event logs. An agent finishing the user task is not proof that preliminary execution was harmless.

This concept should not be used to relabel every normal package flaw as an AI incident. It is specifically the trust boundary where an AI-agent harness automatically consumes or executes potentially hostile artifacts as part of delegated work.

The relevant ownership point can be demonstrated experimentally. In Step-Zero, 26 of 42 hostile archive carriers exceeded a resource boundary before any extracted member reached model-visible text. In ETUDE, the update inherited an admitted tool name and permission while its implementation changed. An LLM content guard cannot retroactively stop either kind of side effect. The Step-Zero extractor also illustrates an important counterexample: a command-name wrapper prevented 28 of 28 breaches in one comparison but was bypassed in 1 of 28 aligned-carrier tests when a raw extractor was invoked by an absolute path. The guard must cover the actual executable and all alternate invocation paths, and a safe model recommendation is not enforcement.

Examples

  • A tool-update hook runs code before an agent decides which tool to call.
  • An archive preview expands beyond resource limits before the assistant receives file content.
  • An isolated sandbox records both preprocessing effects and final model-requested actions.

Explicit mappings

Research using this topic (55)