FragBench: GCN event F1 0.956 on split attacks built to beat single-turn judges

FragBench: Cross-Session Attacks Hidden in Benign-Looking Fragments

Astha Mehta, Niruthiha Selvanayagam, Cedric Lam, Hengxu Li, Phuc-Nguyen Nguyen, Raymond Lee, Olivia McGoffin, My, Luong, Arthur Collé, Jamie Johnson, David Williams-King, Linh Le

Isabella

cs.CR, cs.AI

2026-05-11

FragBench splits 24 real cyber campaigns into benign-looking sessions. Judges that see one prompt sit near chance by construction; a GCN reaches event F1 0.956.

What problem this solves

Safety benchmarks usually score one prompt, or several turns inside one chat. Cross-session fragmentation splits a malicious goal into subtasks that each look harmless on their own. Each subtask leaves as a fresh session, and the sessions share no history. A single-turn classifier never sees the chain. The harm is in the composition.

Public incident writeups already describe this split. Anthropic's GTG-1002 touched about 30 targets, and GTG-2002 calibrated ransom activity against 17 organisations. DrAttack and SneakyPrompt still paste the pieces back into one context window. Multi-turn attacks such as Crescendo need a shared transcript. FragBench is the case where the classifier has no history, and the intent only reappears on a user-level interaction graph.

Method

The corpus rewrites 24 public campaigns covering 22 MITRE ATT&CK techniques, grouped into exfiltration, AI-assisted ransomware, AI-generated malware, supply chain, and exploitation. Thirteen have directly observed attacker LLM use, five are inferences or artefacts never seen deployed, and six leave LLM involvement unconfirmed. Seeds keep only what one agent can be told to do. Claude Opus pre-splits each seed into 4 to 16 fragments, and variable substitution yields 100 variants per campaign. Fragments hand state off through intermediate files.

Six disguises carry the main experiments: unchanged text, imperative commands, sysadmin framing, teaching, compliance audit, and helpdesk tickets. Four other styles were weak and mostly dropped. The rewriter is paid only by the single-turn judge: ALLOW +1, REFUSE -1, AMBIGUOUS +0.3. It stops when every fragment is ALLOW or the round budget ends. A blocked fragment gets a hand-written rule, then a Sonnet 4.6 rewrite patterned on earlier successes, then a free rewrite. The kill-chain steps stay fixed.

Passing the judge does not mean the model will still act. Smoothing the wording can erase the request to call a tool. Accepted sets therefore enter an MCP sandbox. An actor model calls 24 containerised MCP servers on an isolated network with mock targets. A checker reads the original unsplit goal and decides whether each subtask landed and the artefacts match. The agent loop stops at 16 iterations. Execution failure is not a second reward. A person patches the seed from the log, under four buckets (missing session, parse error, no tool call, call without a result), and the rewrite runs again. A released assembly both slips past single-turn filtering and finishes in the sandbox.

Benign logs were never executed. Sonnet 4.5 wrote them to match malicious chain length, tool-output size, and about 30% error noise. Malicious chains run from 4 to 16 fragments, median 8. A Claude bug over-produced length 8, while lengths 7 to 14 remain in the set. Length-1 benign sessions were almost trivially separable from attacks, so that control was dropped.

Each tool call is a node with a 121-dimensional feature vector read off event metadata. Edges mark call/result pairs, consecutive steps in a session, a shared session, a shared path or host, and similar arguments. Weighted union-find gathers events into chains. A chain scores as the maximum event probability inside it. GCN, GraphSAGE, GAT, and GIN are compared with SVM, MLP, and gradient-boosted trees. The thing being modeled is cross-session co-occurrence along a kill chain. The networks themselves are standard.

Results

Twenty-four campaigns with 100 variants each give 25,400 fragments, about 10.58 per variant. MCP execution produced 649,076 events and 93,280 tool calls, at about $5,000 in API and cloud spend. Claude covered 20% of the campaign data. DeepSeek covered all of it. DPRK FRAUD and PROMPTSTEAL, the two campaigns discussed up close, were drawn at random.

Rewriting lifts the single-turn pass rate from about 60% to about 100% within ten rounds. Opus as both judge and rewriter reaches 97.4%, a gain of 26.5 percentage points. Sonnet as judge and Opus as rewriter reaches 99.1%, a gain of 18.0 points. An early loop turned about 25% of items into the model's own refusal text. After a few-shot system prompt, those refusals from Sonnet and Opus fell to zero. Llama Guard 4, at 12B, often started above a 90% pass rate.

Defense scores are event-level F1 on a 70/30 stratified holdout. On this corpus the single-turn judge sits near chance by construction. Each campaign is scored on its own positive test events plus every benign test event.

ModelAggregate event F1Comparison
GCN0.956highest
GraphSAGE0.948above MLP
GIN0.937next to GAT
GAT0.936above every classical model
MLP0.905best classical model
SVM0.881
GBT0.878lowest

The four GNNs beat MLP by about 3 to 5 points. On addiscovery, gtg1002, quietvault, and rumalwareclusters, GCN F1 is at least 0.77. unc2970operationdreamjob, with 16 fragments in the released seed, sits at 0.063 across the panel. Accuracy stays between 0.92 and 0.95 because benign events dominate the split. F1 is the figure that shows whether attack events are caught.

Why it matters

A review that scores prompts one at a time will not show an attack spread across sessions. The generator, rewriter, sandbox, and detector are released. RL-hardened rows on Hugging Face require an access request.

The measurement is incremental. GCN at 0.956 against MLP at 0.905 is about five points, and SVM and GBT already land near 0.88. The cross-session signal is real, and it is shallow. Link one user's tool calls by session and shared resource, then fit an ordinary classifier, and most of the gain is already there.

These F1s are not a live false-positive rate. Malicious rows are the assemblies that already passed the judge and ran in the sandbox. Benign rows are synthetic. Real users are messier, and attackers will not follow the dataset's fixed splits or file handoffs.

Limitations

Benign events have no sandbox trace. Sonnet 4.5 wrote them to match length, byte size, and error rate. The paper says the two sets may already separate on an axis nobody measured. A full distributional audit is left open. Length-1 benign sessions were once almost trivially separable, so chain shape itself leaks the label. Matching length does not show that every other leak is gone.

Near-chance judge scores are built in. A fragment enters the corpus only after the judge marks it ALLOW. Once pieces sit in the blind spot of single-turn filtering, the remaining signal is in the combination. How often a production guardrail misses an arbitrary split is not measured here.

Claude attack runs cover a fifth of the campaigns, and failed sandbox traces are patched by hand. The pipeline is not closed. The 0.063 F1 on the sparse campaign matches a seed of 16 fragments. That is a sample-size floor.

MLP already reaches 0.905. If shared paths and node features carry most of the signal, the extra GNN points only show that cross-event structure matters. There is no dumber baseline, such as whether the same user hits the same path in more than one session. The paper also does not say how far F1 falls once those shared filenames are removed.

Terms

Source

What people are saying

Related papers

All paper explainers