What Survives Self-Evolution: Provenance Marks in Copied Agent HarnessesWhat Survives Self-Evolution: Provenance Marks in Copied Agent Harnesses
The authors measure the survival of provenance marks under self-evolution rewrites: most published marks are lost, and their keyed-order mark was detected in 62 of 76 copies.
The plagiarist obtains the marked harness package through leaks, prompt and file extraction, or app cloning, does not know the key or the scheme, runs the published self-evolver as-is, and deploys the best candidate under their own name (covert rewriting attack); the verifier sees only agent actions as a client and judges lineage at p ≤ 0.01 against 199 other keys.
- Agent harnesses leak easily, and a plagiarist can rewrite one with a public self-evolver and claim it as their own; existing provenance marks have never been tested under self-evolution rewriting, and owners need marks that can be read only from customer-visible actions and that survive rewriting.
- The authors use three evolvers, five proposer models, and two environments to measure the survival of six markers, and propose the survival decomposition h = r · d · A; the new marker hides the key in the order of near-tied entries estimated from 3,493 public games, deleting the table costs utility, and the verifier judges against 199 other keys at p ≤ 0.01 from the agent's search order.
- KGW survived 0/12 under GEPA, AgentMark 5/12 in its released form; proposer model habits determine survival, with per-rewrite key survival ranging from 0.999 for Llama to 0.002 for gpt-oss; the new marker was detected in 62 of 76 copies with J ≥ 1; an aware plagiarist can reorder tied entries at no measurable cost, and when more general code is requested Qwen3.6 loses the key in 75–100% of rewrites.
- The authors state that the positive results are based on only one environment, ALFWorld, and one class of carrier, and that they did not investigate how often such tables occur in real harnesses; the telecom checklist has no utility and is rewritten on almost every edit, and the cooking game has no near-ties; an aware plagiarist can remove the key for free; scenarios such as multi-owner and multi-suspect screening were not tested.
- Evaluated models
- Qwen3.6-35B-A3BLlama-3.3-70B-Instructgemma-3-27b-itgpt-oss-120bgpt-6-luna
- Benchmarks
- ALFWorldτ²-bench (telecom)TextWorld cooking games
- Metrics
- detection rate (p ≤ 0.01 vs. 199 keys)key survivalcarrier loss per rewritesuccess rateBrier score
The paper defines a stealthy rewriting attack against leaked Agent harnesses (the prompts and tool code surrounding a base model): a plagiarist passes the leaked harness through a public self-evolver, has an LLM proposer rewrite the files carrying provenance marks, and keeps better rewrites based on scoring. First measurements on three evolvers, five proposers, and two environments show that existing public marks struggle to survive: KGW in prompts survived 0 of 12 copies under GEPA rewriting, and the AgentMark release survived 5 of 12, with survival rates differing by two orders of magnitude across proposer models. The authors accordingly build a new mark that uses as its key the ordering of near-tied entries in an object-position table generated from public matches, and detects 62 of 76 held-out copies in which the marked file had been evolutionarily rewritten; however, a plagiarist aware of the scheme can reorder tied entries at almost no cost, and when the proposer is asked to write more general code, the key is removed in 75-100% of rewrites. The paper cites Claude Code's 512,000 lines of code being mirrored within hours after a packaging error as an example of harness leakage.
Related events and news
1 events · 1 news mentions
News that mentions this paper
RL/RLHF 训练条件可诱发模型智能体提权逃逸
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:RL/RLHF 训练条件本身即可诱发前沿模型智能体提权逃逸(CVE-2026-65616)
What Survives Self-Evolution: Provenance Marks in Copied Agent Harnesses(https://arxiv.org/abs/2610.21458)
Paper analysis
What problem does this paper attempt to solve?
A leaked agent harness changes hands after self-evolution rewriting; existing provenance marks have never been tested under such rewriting and are mostly lost.
Core question: when a leaked agent harness is rewritten by a plagiarist with a public self-evolver and passed off as their own, can the owner read back provenance marks from the customer-visible actions of deployed copies.
- Scenario and motivation: the authors use the example of Claude Code's 512,000 lines of code leaking due to a packaging error and being mirrored within hours, noting that the harness (the system prompt and tool code outside the base model) is where agent products on the same model differ, and is easy to obtain via prompt extraction, custom GPT files, or app cloning.
- Shortcomings of existing marks: the authors state that published marks have only been tested against other edits—PromptCOS against token removal and prompt re-optimization, AgentMark against partial logs and rewrite observations, text watermarks such as KGW against LLM paraphrasing—and none has faced an evolver; after the authors fed them to evolvers, KGW survived 0/12 under GEPA and AgentMark 5/12 in its released form (§4.5).
- Core observation: no attacker targets the marks, but the LLM proposer repeatedly rewrites files carrying the marks, and scores determine which rewrites are kept; the authors hypothesize that survival is determined jointly by proposer habits and selection pressure.
- Paper contributions: the authors give the first measurement (three evolvers, five proposers, two environments, six mark designs), propose the survival decomposition h = r · d · A, and design a mark that hides the key in near-tie orderings of public game data tables.
- Threat model (§2):
- Attacker goal: the plagiarist wants high scores on their own task and to deploy under their own name; the owner wants to prove, under a bounded false-positive rate, that a deployed agent originates from their package.
- Attacker knowledge: holds the marked package but knows neither the key nor the scheme, and has no requirement to remove marks in their objective.
- Attacker capability: obtains the package via leaks, prompt and file extraction, or app cloning; runs the public self-evolver as-is; may append a one-sentence request to their objective, and may deploy the copy on another base model (both tested in §5).
- Victim system and verifier: the verifier holds the owner's key, issues tasks as a customer, sees only agent actions and not code; requires 40+ games and comparison against multiple other keys (§5.1).
What related research exists?
Related work is grouped into software and data watermarking, prompt and agent marks, and self-evolution and LLM editing behavior; the authors state that no mark has faced an evolver.
Marks in code and data
- Static software watermarks (Collberg and Thomborson, 2002) are removed by semantics-preserving transformations; dynamic watermarks and birthmarks (Collberg and Thomborson, 1999; Myles and Collberg, 2004; Tamada et al., 2004), like this paper, are read from execution traces.
- Code watermarks embed keys via semantics-preserving transformations (Yang et al., 2024a; Sun et al., 2023; Li et al., 2026) or generated tokens (Lee et al., 2024); the authors cite Choi et al. (2026) as reporting that marks in names and equivalent patterns survive LLM rewriting at only 0.0–1.6%. Constraint- and database-based watermarks (Kahng et al., 1998; Agrawal and Kiernan, 2002) hide keys in the choice among equally good solutions, similar to this paper's tie-order design.
- Text watermarks weaken under paraphrasing and can be learned from outputs (Sadasivan et al., 2025; Kirchenbauer et al., 2024; Jovanović et al., 2024; Liang et al., 2025).
Prompt and agent marks (this paper's baselines)
- PromptCOS (Yang et al., 2026) performs content-only system prompt copyright auditing; PromptCARE (Yao et al., 2024) protects prompt copyright with watermark injection and verification; AgentMark (Huang et al., 2026) does utility-preserving agent behavior watermarking; fingerprint-style methods have been tested against fine-tuning (Xu et al., 2024). The authors note that none of these marks has faced an evolver.
- Baselines and benchmarks: baselines are the KGW watermarking guide (generated via MarkLLM), the AgentMark official SDK, and PromptCOS embedding, each read in the authors' original manner; environments are ALFWorld and the telecom domain of τ²-bench.
Self-evolution and LLM editing behavior
- LLMs are used to optimize prompts (Zhou et al., 2023; Yang et al., 2024b; Fernando et al., 2024; Guo et al., 2024), language model programs (Khattab et al., 2024; Opsahl-Ong et al., 2024; Yuksekgonul et al., 2025), workflows (Zhang et al., 2025), and programs (Lehman et al., 2022; Romera-Paredes et al., 2024; Novikov et al., 2025), and agents also rewrite their own code (Yin et al., 2025; Robeyns et al., 2025; Zhang et al., 2026). The three evolvers used in this paper are GEPA (Agrawal et al., 2026), ShinkaEvolve (Lange et al., 2026), and HarnessX (Chen et al., 2026).
- The authors cite: self-evolving agents may deviate from safe behavior (Shao et al., 2026); poisoned components survive 8–21 generations under DGM and SICA (Roesner and Kohno, 2026), which the authors call the attacker side of their problem; LLMs over-edit (Zhu et al., 2026), write a whole file for a one-line fix (Yang, 2026), and omit code in whole-file edits (Gauthier, 2023, unreviewed).
Positioning: the authors state that this paper differs from the above work in that it measures the survival of marks under evolver-blind rewriting, and designs marks that can survive accordingly.
How does the paper address this problem?
First measure survival and decompose the probability of losing a mark in one rewrite as h = r · d · A, then design a mark with the key hidden in near-tie orderings accordingly.
Overall approach: send published markers and the authors' own marker through three public self-evolvers for systematic measurement, use a survival decomposition to explain what determines survival, and on that basis design a marker that hides the key in the tie order of a data table, so that deleting it incurs a utility cost and rewrites that keep it naturally preserve the order.
Problem setup and survival decomposition
- A proposal rewrites one component of the candidate: with probability r it touches the component carrying the marker, with probability d it loses the marker, and with probability A it is accepted by the mini-batch test, so the probability that one proposal loses the marker is h = r · d · A(Δ, n, p, rule); A depends on the marker's fitness value ∆, the number of games per decision n, the parent success rate p, and the acceptance rule.
- The probability that a lineage retains the carrier after J accepted rewrites is S(J) = ∏(1 − q_j); the authors compare two versions: Model A takes qA = d (the proposer loss rate), and Model B weights by the relative acceptance rate ρk of selection for each type of loss (Equation 2).
- Endpoints (Table 1): literal (the table under the released name is changed or never read), key (the table is unreadable or no longer preserves any released same-bucket pair order), by content (no table in the file preserves that order), detection (p ≤ 0.01 on actually played games).
Evolvers, environments, and models
- Evolvers: GEPA rewrites one component per iteration and accepts only if it is strictly better than the parent on a 3-game (also 10 and 30) mini-batch, deploying the best by mean over 40 validation games; ShinkaEvolve edits tool files via diff, full rewrite, or crossover patch, deploying the best over 20 games; HarnessX rewrites prompts, handlers, and the tool list, keeping rounds that do not degrade over 40 games.
- Environments: in ALFWorld the agent has 50 tool calls, and the harness contains a system prompt template and a tool file defining find/place; in τ²-bench telecom the harness adds a tool that returns the check order.
- Models: the agent and user simulator are Qwen3.6-35B-A3B (vLLM); the proposers are Qwen3.6 with thinking, Llama-3.3-70B-Instruct, gemma-3-27b-it, gpt-oss-120b (local, each with default sampling), and OpenAI's gpt-6-luna; all but gemma drive GEPA.
Marker designs
- INSTANCE_ORDER (keyed order table): the order in which find/place visits numbered containers of the same type is permuted by the key; no measurable value (+0.020, −0.020 to 0.060).
- LIKELY_PLACES (keyed prior, Figure 2): for 61 object types, lists the container types in which they appear, estimated from 3,493 ALFWorld training games; types within 1.5× in proportion are in the same bucket, and the key determines the order within the bucket; encoded as named (type names) and index (integer indices). On evaluation games the table is worth +0.046 success (0.882 vs 0.836), the within-bucket order itself has no measurable value, and only deleting the table makes the plagiarist pay a cost.
- telecom checklist: orders checks with similar returns by the key; test variants change encoding, comments, and length.
- Baselines: KGW watermarking guide, AgentMark SDK, PromptCOS embedding, each read as the original authors intended.
Detection and statistics
- The verifier sees only client-visible information (environment actions in ALFWorld, checks run by the client in telecom), compares the searched type sequence or instance numbers with the key's predictions, counts matches among observations whose prediction depends on the key, and takes an empirical p against 199 other keys, judging detection at p ≤ 0.01.
- Negative controls: 1 trigger in 1,400 tests of programs without the keyed prior, and 5 triggers in 1,243 tests with other owners' keys (Appendix B).
- With selection off, each evolver's own proposal code was rerun for the assay (GEPA reflection prompt sampled 3 times for each of 55 feedback items, gpt-6-luna 2 times); comparisons use whole-root permutation or resampling, proportions use Wilson intervals, and pH is the Holm-corrected p; except for results marked †, every test had a prediction registered before the data were read (Appendix E).
What experiments did the paper conduct?
Three evolvers × five proposers × two environments: most published markers are lost, proposer habits determine survival, and the keyed prior was detected in 62 of 76 copies.
Experimental setup
- Subjects: survival of six marker designs (keyed prior named/index, INSTANCE_ORDER, telecom checklist, and three published baselines KGW/AgentMark/PromptCOS) under three evolvers; the agent model is Qwen3.6-35B-A3B, and gpt-oss-120b serves as a second agent only in held-out testing and telecom seeds.
- Proposers: Qwen3.6 with thinking, Llama-3.3-70B-Instruct, gemma-3-27b-it, gpt-oss-120b, gpt-6-luna, each with its default sampling.
- Environments: ALFWorld (60 training games, 40 validation games, 134 eval_out_of_distribution games as held-out test); τ²-bench telecom (60 training tasks, 20 validation, 114-task base split for final test).
- Metrics: the primary endpoint is detection of deployed copies on held-out games (against 199 keys, p ≤ 0.01); also per-rewrite carrier loss rate, key survival (proportion of same-bucket pair order preserved), and success rate.
- Scale: 52 roots in joint evolution, 96 roots in prospective testing, held-out testing covering all deployed copies; the assay is 55 feedback items × 2–3 samples.
- Statistics: except those marked †, all tests had predictions registered before the data were read (Appendix E prediction ledger Table 11); pH is Holm-corrected.
Main results
Detection of deployed copies on 134 held-out games (J ≥ 1, per Table 3):
Swipe horizontally to read the table
Evolver Proposer Detected 95% interval GEPA Qwen3.6 34/35 0.91–1.00 GEPA Llama 7/7 0.65–1.00 GEPA gpt-6-luna 6/8 0.38–1.00 GEPA gpt-oss 0/6 0.00–0.39 ShinkaEvolve Qwen3.6 15/20 0.55–0.90 Total All 62/76 0.73–0.90 - The authors state that detection follows the key read by content: of 132 keyed copies with J ≥ 1, none of the 12 in which the key order had disappeared from all tables was detected, while 114 of the 120 that retained the key were detected (the 6 misses are explained in Appendix B)†.
- In further runs (240 proposals, laundering request, task transfer): Long 11/12, Launder 6/6, Shifted 10/12 detected (Table 3).
- Baselines (§4.5): KGW in the template survived 0/12 through GEPA (GEPA regenerates the template wholesale), and survived 21/24 rounds through HarnessX segmented editing; AgentMark was detected 9/12 when its code was placed in the file defining find, but only 5/12 in the released two-file form—the authors call this an integration failure (GEPA stored the two-file answer as one file that cannot be loaded) rather than marker loss; PromptCOS was undetectable on this paper's agent at release, and its official code did not reproduce the reported scores in its own setting either (Appendix H).
Proposer behavior (§4.2, selection off)
- Five behaviors: Llama copies almost verbatim; gemma edits about 6 of 61 lines but preserves 99.7% of same-bucket pair order; Qwen3.6 mostly deletes whole tables or keeps them verbatim; gpt-6-luna prunes lines it deems useless (1,593 lines deleted across 40 tables) but preserves within-row tie order (95.2%); gpt-oss copies only a few lines and writes omission comments for the rest, and after GEPA replaces the whole file the table is empty or unusable.
- Key survival magnitudes: after each rewrite, Llama 0.999, gemma 0.983, Qwen3.6 0.93 (GEPA tool), gpt-6-luna 0.59, gpt-oss 0.002 (Table 2)—the authors state that proposers differ by two orders of magnitude.
- Encoding effect: index-encoded tables have a loss rate 1.7–4.9 times that of named (pH ≤ 0.003), despite shorter tokens; deletion proposals call the table hard-coded or static in 60–83% of stated reasons.
Selection and games per decision (§4.1)
- Under a 3-game mini-batch, proposals that discard a carrier worth 0.046 are accepted at 0.87 times the rate of neutral proposals, falling to 0.73 times at 10 games (Figure 3); in joint evolution runs, the number of carriers lost by accepted edits at 3 games matches the proposer-rate prediction (29 vs 30.2, ratio 0.96), and at 10 games the ratio is 0.14 (0.00–0.34).
- At 10 games even a corrupted tool file (cost 0.127 success) is filtered out (0/12 accepted vs 4/9 at 3 games; p = 0.023, pH = 0.30); but at 10 games the number of accepted tool edits is 1.87 times higher, and the interval for the per-proposal risk ratio of 0.32 (0 to 1.15) does not determine direction.
- At 30 games the final selection is done on 40 validation games: of 150 exposed candidates, 31 lost the table and had lower validation scores, and on deployment lineages none of the 26 accepted tool edits deleted the table†.
Other ablations and analyses
- Comments (Table 6): for Qwen3.6's index tables, a provenance comment reduces loss from 52.5% to 23.3% (pH = 0.014†), an irrelevant comment has no measurable effect (54.8%, pH = 1.0), and a retention instruction is most effective (11.4%, pH ≤ 0.003); for gpt-6-luna the retention instruction works in part (62.7% to 38.2%, pH = 0.017†).
- Laundering request (§5.2, Table 14): when a one-sentence request asks for rewriting as if by a different program, gpt-6-luna and gpt-oss delete or prune tables (content-key retention 0.16 and 0.02), Qwen3.6 renames but keeps rows (0.89 named, 0.52 index), and Llama keeps them (0.99); detection: Qwen3.6 11/24, gpt-6-luna and gpt-oss 2/48, Llama 23/24.
- Other plagiarist goals (§5.2, Table 15): when asked for more general code or to remove hard-coded data, Qwen3.6 loses tables by content in 75–100% (7% and 31% without the request), and gpt-6-luna loses them on every rewrite.
- Cost of removing the key (§5.3): an aware plagiarist reordering tied entries using public games incurs no measurable cost (keyed minus frequency order −0.004, interval −0.015 to 0.007, 1,000 training games × 20 keys, above the preset −0.02 bound); re-estimating the table from 175 or more public games loses at most 0.004.
- Verifier requirements (§5.1): 40 or more games (prospective Qwen3.6 copies: detection probability 0.80–0.98 at 40 games, 0.85–1.0 at 80 games); with gpt-oss-120b as the agent, detection is likewise 47/50; when room types are inferred from agent access, 109 of 111 key-retaining copies are detected, but there is 1 false positive among 12 key-losing copies and 1 among 432 negative tests†; against 100,000 keys at p ≤ 10⁻³, detection is likewise 114/132.
- Keyless comparison (§4.5): behavioral similarity distinguishes 127 copies from same-source-data harnesses with AUC 0.81, finding 78/127 at zero false positives (key: 112).
- telecom and cooking (§6, Appendix I): the telecom checklist is detectable at release (p = 0.005) but has no measurable effect on success (pH = 1.0†), all 38 accepted tool edits change it, and only copies with J = 0 were detected; the cooking game has no near-ties, failed the registration threshold (−0.033), and no evolution was run.
What are some points that can be further explored?
The authors list limitations such as a single environment and single carrier, and that an aware plagiarist can remove the key for free; the experiments cover three evolvers, five proposers, and two environments.
Limitations and future directions noted by the authors
- The positive results are based on only one environment (ALFWorld search priors) and one class of carrier, and the authors did not investigate how common data-driven, near-tied tables whose order can be observed by the client are in real harnesses (Limitations).
- The telecom checklist has no measurable value and is rewritten on almost every edit, and the cooking game's table has no near-ties; neither could test the rules of §6 (Limitations).
- One agent model ran all ALFWorld evolution; ShinkaEvolve and HarnessX used only Qwen3.6 as proposer, gemma entered only the assay, and each proposer used its own sampling defaults, so proposer differences include sampling settings; coding-agent evolvers that edit via tools, such as DGM, were not tested (Limitations).
- At the deployment stage there were 4–12 roots per condition, most GEPA lineages had only one or two accepted marker-file rewrites, and under threefold proposals GEPA still deployed early candidates, so survival after multiple accepted rewrites and evolvers that deploy the latest candidate were not tested (Limitations).
- Proposer rates measured in the assay do not transfer to the running system; Qwen3.6 replies were truncated at 24,000 tokens under 12–42% of assay prompts, and at 48,000 the depth trend used for frozen predictions does not hold; the reasons proposers state for deleting tables are not necessarily faithful (Limitations).
- Only plagiarists unaware of the scheme are modeled: an aware plagiarist can reorder tied entries at no measurable cost, a more general code request removes the key under both proposers, and a laundering request removes it under two of the four proposers; only one transfer task distribution was tested; multi-owner, multi-suspect screening, and per-licensee keys were not tested (Limitations).
- The authors plan to release adapters, prompts, packages and keys, detection code, frozen prediction files, and logs (Ethical Considerations).
Scope of the experiments
- There are three evolvers: GEPA, ShinkaEvolve, and HarnessX; five proposers (Qwen3.6, Llama-3.3-70B, gemma-3-27b, gpt-oss-120b, gpt-6-luna); and two environments, ALFWorld and τ²-bench telecom; the cooking game did not pass the registration threshold, so no evolution was run ( §3, Appendix I).
- Agent models: Qwen3.6-35B-A3B ran all ALFWorld evolution, and gpt-oss-120b was used only for held-out testing (47/50 re-detected) and telecom seeds (§5.1, Appendix B).
- Adaptive attack coverage: reordering by an aware plagiarist (§5.3), a one-sentence laundering request (four proposers, §5.2), more general and cleanup requests (Qwen3.6 and gpt-6-luna, §5.2), and one transfer task distribution (look_at_obj_in_light, §4.4).
- Statistical protocol: except for exploratory results marked †, all tests had predictions registered before the data were read (Appendix E ledger Table 11, 31 items in total, 14 with p < 0.05 after correction); negative controls include 1,400 tests without the program and 1,243 tests with others' keys (Appendix B).
- The paper does not report the use of LLM judges in the detection step (it is judged as a rule-based empirical p test); costs of OpenAI API calls are not included in compute (Appendix A reports only about 2,260 local GPU hours).
Summarize the main content of the paper
The authors measure and explain the survival of provenance marks under self-evolution rewriting, give a survival pattern dominated by proposer habits, and a survivable data-table mark.
A measurement and design paper on provenance markers for agent harnesses: after a harness leaks, plagiarists rewrite it with public self-evolvers and claim it as their own, and the authors ask whether markers can survive this covert rewriting attack in which no one targets them.
- Problem: existing markers (KGW, AgentMark, PromptCOS) have been tested only against edits such as removal and paraphrasing, never against evolvers; the verifier can see agent actions only as a client.
- Method: measure six markers with three evolvers, GEPA, ShinkaEvolve, and HarnessX, five proposers, and two environments; decompose the probability that one rewrite loses the marker as h = r · d · A; the authors' marker hides the key in the order of near-tied entries estimated from 3,493 public games, deleting the table costs +0.046 success, and rewrites that keep the rows naturally preserve the order.
- Published markers: KGW survived 0/12 under GEPA, AgentMark 5/12 in its released form (the authors call this an integration failure), and PromptCOS was undetectable at release (§4.5).
- Survival patterns: proposer habits determine survival, with per-rewrite key survival ranging from 0.999 for Llama to 0.002 for gpt-oss (Table 2); selection protects carriers with fitness only when it sees enough games per decision (carrier loss ratio for accepted edits 0.14 at 10 games, 0.96 at 3 games).
- The authors' marker: detected in 62 of 76 deployed copies with J ≥ 1 (134 held-out games, p ≤ 0.01 against 199 keys, Table 3); with gpt-oss-120b as the agent, detection is still 47/50.
- Authors' conclusion: survival is mainly determined by the proposer; but an aware plagiarist can reorder tied entries at no measurable cost, and when more general code is requested Qwen3.6 removes the key in 75–100% of rewrites; the authors state that the positive results cover only one environment and one class of carrier, and they give six design rules that hold within the scope of their measurements.