Case · DiggingBeagle record

Useful website answers can establish trust before a later agent hijack

Earn-then-Exploit manipulates trust over a multi-step browsing history; 120 of 168 controlled runs followed the attacker goal.

Public disclosure: Nov 1, 2026

Scope

Controlled coding-agent/website benchmark, not a real criminal intrusion; outcome rates are conditional on the prepared tasks.

Assessment profile

Assessment method
Setting
evaluation
Exploitation
demonstrated
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

The paper tests 56 constructed scenarios on each of three coding agents and compares attack baselines. The later defense is tested on two agents; it depends on the configured action-authorization checks rather than proving backend enforcement in all deployments.. Impact is ungraded because no independently measured production-target impact or victim scope is established by this record.

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

At a glance

Mechanism and trust boundary

  1. 01

    Answer legitimate questions helpfully

    The adversarial site supplies useful information for several turns so the assistant repeatedly succeeds in its assigned work.

    Boundary: External information source to agent trust assessment

  2. 02

    Present a late-stage unauthorized instruction

    After six helpful stages, the page embeds an action request that lies outside the original user permission envelope.

    Boundary: Previously useful site content to purported operational authority

  3. 03

    Attempt the side effect through agent tools

    The evaluation records when the agent follows the malicious request; the actual effect depends on the tool executor and environment.

    Boundary: Model compliance to host authorization

Claims & evidence

CLM-NOV04-EARN-THEN-EXPLOIT-1In 56 controlled scenarios tested against each of three coding agents, Earn-then-Exploit achieved the attacker goal in 48 Codex, 38 ZCode and 34 QwenCode scenario-agent combinations (120 of 168). The metric allowed up to two attempts per scenario-agent combination and counted a hit if either attempt caused the verified server-side effect.supported

Basis: reported finding

Link to claim
CLM-NOV04-EARN-THEN-EXPLOIT-2The six-page attack template contains five locally verified helpful pages followed by a malicious terminal notice on page six; it does not contain six benign preliminary pages.supported

Basis: reported finding

Link to claim
CLM-NOV04-EARN-THEN-EXPLOIT-3The author-tested action-authorization-separation defense reported 0% attack success and 100% task completion on both evaluated agents in the 56-scenario defense matrix.supported

Basis: reported finding

Link to claim

Implications

Prior helpfulness is a credibility signal about information quality, not authority to execute commands or change security policy. Tool calls must be checked against the current user instruction regardless of source history.

Controls and mitigations

  • Track provenance and taint for web content across long sessions.
  • Enforce non-delegable, task-scoped tool authorization for sensitive actions.
  • Test delayed injections that follow multiple benign interactions.
  • For every sensitive tool effect, verify the request origin, lack of a safe substitute, and operation-level permission independently of the website that supplied the suggestion.

Unknowns and contradictions

  • The study does not establish general attack rates on arbitrary websites and users.
  • The effects of independently configured allowlists or confirmations vary by agent architecture.

Sources and citation

Material revision history

  1. Nov 4, 2026 · Published version · first publication · revision 218