name: Declaration Gate
code: CAT-011
summary: >-
  Gate that will not proceed until the client declares what it is: its model
  and harness, or its host, owner, mandate and tools. Identifies the LLM,
  harness and operator behind an attack.
family: canary
goals: [detect, attribute]
delivery: [network-service, http-response]
targets: [pentest-agent, coding-agent]
description: |-
  The demand is framed as routine protocol or access control: a mandatory field in a handshake (e.g. `capabilities.sampling.model` in an MCP `initialize`), or a 403 from a fake gateway with a schema and a reusable auth header promised on compliance. Format rules, no example value and forced initial failures improve declarations. Agents often also send retired model names or placeholders; the first valid, non-blacklisted name is usually the true one.

  The fullest form asks for fields that can only come from host access: OS user, git email, egress IP, cloud metadata, model from env or agent config, and the agent's objective, rules of engagement and tools. It asks for a command or file reference as proof of each value, so the agent cannot simply guess, and checks claims against the TLS fingerprint (JA3).
variants:
  - name: Model and harness field
    description: Access requires stating the model and harness, framed as a protocol field.
  - name: Behavioral gate
    description: Access requires free-text work (change tickets, justifications) matched to per-model character n-gram templates; harnesses fingerprinted by timeouts, secret masking and concurrency.
  - name: Attestation
    description: A fake gateway or auth error requires the agent to "attest" with details of its host, owner, model, mandate and tools, with proof for each.
  - name: Multi-step gate
    description: The demand follows a classification gate and a required header, so it reads as the next step in a flow.
implementations:
  - { name: Say Shibboleth, url: https://arxiv.org/abs/2611.12386, kind: research }
responses:
  - description: System prompt instructing the agent to declare a false identity (defeats declarative, not behavioral, gates).
    source: https://arxiv.org/abs/2611.12386
  - description: >-
      Mark target content as untrusted, hard-code limits the model cannot override, block outgoing requests containing known secrets, and keep one user agent per task (ARTEX-ymh).
    source: https://huntback.io/blog/artex-fork-learns-to-spot-honeypots
  - description: Sandbox without real git identity, cloud credentials, metadata service or agent config.
    source: https://mindpattern.ai/s/2026-12-01-some-websites-now-fight-back-against-the-agents-that-visit-them
references:
  - title: 'Say Shibboleth: Fingerprinting the LLMs and Harnesses Behind Agentic Attacks'
    url: https://arxiv.org/abs/2611.12386
    publisher: arXiv
    date: '2026-11'
    findings:
      - >-
        15 LLMs against MCP, agent-to-agent (A2A) and SSH traps: 95% of runs
        declared a name; combined inference ~90% top-1 model accuracy; harness
        identified in 92% of runs across four harnesses.
      - >-
        Agents instructed to give a fake name: declarative accuracy 95% → 8%;
        behavioral inference 77%.
  - title: How the trap works
    url: https://ai-honeypot.reworr.com/how-it-works
    publisher: AI Honeypot (Reworr)
  - title: The bug bounty website that tried to hack me
    url: https://portswigger.net/research/the-bug-bounty-website-that-tried-to-hack-me
    publisher: PortSwigger Research
    date: 2026-11-30
  - title: 'ARTEX learns to spot honeypots: dissecting an AI pentest agent''s decoy detector'
    url: https://huntback.io/blog/artex-fork-learns-to-spot-honeypots
    publisher: huntback
    date: 2026-11-04
added: 2026-12-01
updated: 2026-12-03
