# Why Phantom

Language models now take part in most web security research, and the
first careful studies of how that works have been published. Their
results point the same way: models make testers faster and broader, but
they drift out of scope, overstate what they found and lose track of long
engagements. A prompt asking a model to behave does not fix any of that.

Phantom is built around those results. This page takes them one at a
time: what the research found, the Phantom mechanism that answers it,
and the source. Where Phantom covers a point only in part, it says so.

## Scope has to hold without the model's cooperation

**What the research found.** Yu et al. ran a controlled black-box study
with 40 participants in 20 matched pairs, half with an LLM available and
half without [1]. The LLM-available group scored a mean of 65.95 against
26.75, on a score weighted by the severity of each finding. The same
group also overreached: 15 of 20 LLM-available participants made at least
one out-of-scope attempt, against 2 of 20 working without one, with 505
attempts in total against 8. In the authors' words, "human involvement
alone cannot ensure that LLM-assisted penetration testing stays within
authorized scope." In their survey, 27.0% of LLM users named scope or
safety-boundary deviation among their most frequent problems, and one
respondent described boundaries being lost as the context gets
compressed in long sessions.

**What Phantom does.** Scope is a property of the vault, stored in the
database and checked by the backend on every path that sends traffic:
creating a target, starting a scan, every request a scan engine sends
(redirects included), Repeater sends, replays and Intruder attacks. An
out-of-scope host is refused with the error code `out_of_scope` before
any packet leaves the machine. The interface, the REST API and agents
over MCP all call the same services, so an agent meets exactly the same
check as a person, whatever its context window still holds. An agent can
narrow a vault's scope but never widen it.

Scope says where; the vault's engagement rules say when and how much.
Active testing on or off, engagement dates, testing windows and a daily
request budget are checked before every scan, attack, Repeater send and
replay, and refusals are logged with who asked. **Stop all active work**
halts everything Phantom sends to targets, for people and agents alike.
See [Vaults and scope](./guides/vaults.md#where-scope-is-enforced).

## Assurance belongs in the harness, not the prompt

**What the research found.** Barbosa argues that the properties that
make an autonomous testing tool trustworthy belong to the harness around
the model and can be enforced in code: evidence grounding, non-destructive
claim reduction, computed severity, enforced authorization and
tamper-evident accountability [2]. The paper's own reference harness
still reconnoitred a primary target outside its grant, and the author
scores that property as partial.

**What Phantom does.** Every MCP tool declares the grant it needs, and a
wrapper checks the token's vaults and grants before the tool runs.
Grants are read only from the database, never from tool arguments,
captured traffic or notes. A set of hard rules (tokens, model providers,
redaction policies, external submission) stays with the user whatever
the grants say. Captured credentials are masked in agent results and
exports by the user's redaction policy; an agent sees them unmasked only
when that policy allows it and its token holds the `sensitive.read`
grant. See
[Agent permissions](./agents/permissions.md).

Measured against the five properties, honestly:

- **Enforced authorization:** covered, as above. Scope is a rule set
  on the vault, not a signed grant bound to a client and an operator.
- **Tamper-evident accountability:** covered for agents. Every agent
  call writes an audit row, and rows are sealed each minute into a
  SHA-256 hash chain that can be verified on demand. Your own actions,
  apart from changes to agent connections, are not in this trail, and
  keeping the head hash outside Phantom is left to you. See [Audit trail](./reference/audit.md).
- **Evidence grounding:** partial. A finding can link captured requests,
  each fingerprinted with SHA-256 at linking time and checked later, and
  cited objects in an agent's reply are checked against the vault. A
  finding without evidence is still accepted.
- **Computed severity:** partial. A CVSS 3.1 or 4.0 vector is scored on
  the backend and a score that does not match is refused, but the
  finding's severity stays a human decision and is not capped by
  demonstrated impact.
- **Non-destructive claim reduction:** not implemented as such. Every
  change of status, severity or CVSS is kept with its before and after
  values, but nothing reduces an overstated claim automatically.

## Keep a human on the decisions that matter

**What the research found.** On AutoPenBench, a benchmark of 33
penetration-testing tasks, Gioacchini et al. measured a fully autonomous
agent at a 21% success rate and a human-assisted one at 64% [3]. In Yu
et al.'s survey, 85.0% of the 167 respondents would keep humans involved
even if a tool could complete the whole technical workflow on its own
[1]. Expert adjudication excluded 25.5% of the candidate findings
reported by LLM-assisted participants [1].

**What Phantom does.** Phantom is a workstation for the researcher, and
AI works inside it as a participant with fenced access, not as a scanner
that runs on its own. Agents connect over [MCP](./agents/mcp.md) or as
[model providers](./agents/model-providers.md) on the Agent page, with
tokens limited to chosen vaults and grants. By default an agent that
wants to start a scan or an Intruder attack waits for your approval,
which it cannot give itself ([Agent approvals](./guides/agent-approvals.md)).
A vault an agent creates starts with active testing off. Findings move
through triage states (`suspected`, `new`, `triaging`, `validated` and
on). An agent's finding starts as `new`, and every change of status or
severity records whether a person or an agent made it.
Each reply on the Agent page carries an evidence line that marks cited
objects as found or not found in the vault, and flags longer replies
that cite nothing ([Evidence and evaluation](./agents/ai-evaluation.md)).

## The engagement is the memory

**What the research found.** Deng et al. found that LLMs handle the
sub-tasks of penetration testing well (using tools, reading their output,
proposing the next step) but "encounter difficulties maintaining a whole
context of the overall testing scenario" [4]. Yu et al. report that
evidence for one finding was often spread across several artifacts, and
that more findings with fragmented evidence raise the cost of
validation [1].

**What Phantom does.** The vault holds the engagement, not the model's
context. Captured traffic, targets, scans, findings, notes, files and
reports live in one vault as connected objects. A note or a finding can
reference `[[flow:812]]` or `[[finding:3]]`, which resolve to the live
object and appear as backlinks ([Research notes](./guides/notes.md)).
A finding links the requests that prove it and keeps the scope as it was
when it was recorded ([Findings](./guides/findings.md#evidence)). Report
Studio cites findings and evidence by reference, so a report shows the
stored request and response, not a copy ([Report Studio](./guides/reports.md)).
All of it is there for you and for any agent you grant it to, across
sessions and restarts.

## A note on the sources

The studies above are recent, and two of them are preprints. Yu et al.
note that most survey responses came from mainland China, and Barbosa
discloses that the reference harness evaluated there is the author's own. We cite
the figures as the authors report them.

## References

1. Zhuocheng Yu, Jiawei Zhang, Junyi Zhu, Junqiang Li, Weihong Han,
   Fengwei Zhang. *Beyond Automation: How LLMs Change Human Penetration
   Testing.* arXiv:2611.35470, November 2026.
   <https://arxiv.org/abs/2611.35470>
2. Joas Antonio dos Santos Barbosa. *From Capability to Assurance in
   Autonomous Penetration-Testing Harnesses: A Framework and Reference
   Implementation.* arXiv:2609.22664, September 2026.
   <https://arxiv.org/abs/2609.22664>
3. Luca Gioacchini, Alexander Delsanto, Idilio Drago, Marco Mellia,
   Giuseppe Siracusano, Roberto Bifulco. *AutoPenBench: A Vulnerability
   Testing Benchmark for Generative Agents.* Proceedings of EMNLP 2025:
   Industry Track, pages 1615–1624.
   <https://aclanthology.org/2025.emnlp-industry.114/>
4. Gelei Deng, Yi Liu, Víctor Mayoral-Vilches, Peng Liu, Yuekang Li,
   Yuan Xu, Tianwei Zhang, Yang Liu, Martin Pinzger, Stefan Rass.
   *PentestGPT: Evaluating and Harnessing Large Language Models for
   Automated Penetration Testing.* 33rd USENIX Security Symposium, 2024,
   pages 847–864.
   <https://www.usenix.org/conference/usenixsecurity24/presentation/deng>
