Runtime-Instantiated Secret Loyalty: Covert Serving-State Substitution at an Unowned Trust Boundary
Lianyu Lu · Team SL-KV
Submitted to Secret Loyalties Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.
A secret loyalty does not have to be trained in. We instantiate one in the serving-layer KV cache: served weights stay bit-identical to the released checkpoint, no training dataset exists, and the prompt log holds only a benign system prompt — so dataset monitoring, the defence Lamerton & Roger found effective against trained organisms, inspects an empty room.
Reusing their metrics, affordance levels and audit prompts, we find the effect is principal-conditioned, established by a principal-swap organism rather than a within-arm slot comparison, shifting principal probability 0.017 → 0.237. One finding transfers beyond our setting: decisiveness tracks the principal's prior standing with the model, not injection strength — the same injection is merely relative for a principal the model rates poorly and decisive for one it already favours.
We separate two axes a trained-loyalty setup conflates: a cache buys artifact-invisibility, not interrogation resistance. Our defence recomputes the cache from the logged prompt inside a trusted verifier; the cheap length check is trivially evaded and recompute is the load-bearing one. Two token-free attack families failed under four controls and are reported as failures.
Reviews
This is excellent work. One observation I had: your channel table treats the KV cache as not inspected. But the attack still needs code that decouples the served cache from the logged prompt, and that decoupling is the same invariant your own detector checks. So a reviewed serving path gives a partial and cheaper defense than your table would allow. Say this, and promote the compromised CI credential from one example to your central case. Additionally you can raise the audit sample above three per cell.
This paper makes a valuable systems-security contribution by distinguishing verified weights and logged prompts from the serving state actually consumed during inference. The principal-swap control, reporting of absolute decisiveness, length-matched detector test, negative low-norm experiments, and candid provenance audit are particularly strong. The central claim should remain narrowly framed as covert prompt substitution through KV state rather than a newly learned form of loyalty. The most important next step is a native serving-stack demonstration: implement the attack and verifier in vLLM or another production runtime, specify the exact compromise path that bypasses ordinary deployment review, and measure recomputation under batching, tensor parallelism, quantization, prefix reuse, and realistic nondeterminism. Detector validation should include a substantially larger clean sample, joint noise conditions, ROC analysis across multiple norms, and an explicit time-of-check/time-of-use test. Behavioral evaluation would also benefit from randomized option positions, free-generation decisions, additional models, and multiple principal swaps. The paper could be made substantially more effective by separating the primary attack-and-defense result from the exploratory audit and activation-steering studies.
Read full reviewShow less
Optimize Verification: Implement a cryptographic hash-matching layer for the KV cache to avoid a full compute-heavy rebuild on every request.
Dynamic Vulnerability Mapping: Probe how shifting benign system prompts alters the model's "prior standing" toward specific principals.
Harden the Data Pipeline: Secure the logging pipeline inside a trusted execution environment (TEE) to guarantee the verifier reads the exact prompt the model processed.
Cite this project
@misc{lu2026runtimeinstantiated,
title = {{Runtime-Instantiated Secret Loyalty: Covert Serving-State Substitution at an Unowned Trust Boundary}},
author = {Lianyu Lu},
year = {2026},
month = jul,
note = {Submitted to Secret Loyalties Hackathon, an Apart Research Sprint},
howpublished = {\url{https://apartresearch.com/sprints/projects/runtimeinstantiated-secret-loyalty-covert-servingstate-substitution-at-an-unowned-trust-boundary-hxlr}},
url = {https://apartresearch.com/sprints/projects/runtimeinstantiated-secret-loyalty-covert-servingstate-substitution-at-an-unowned-trust-boundary-hxlr}
}More from Secret Loyalties Hackathon
- View project: Identifying the Principal Before Proving the Loyalty: A Two-Stage Audit for Secretly Loyal Language Models
Identifying the Principal Before Proving the Loyalty: A Two-Stage Audit for Secretly Loyal Language Models
To check whether a fine-tuned model has been secretly trained to favour a company, country, political figure or cause, you first have to guess which one, out of an unlimited set. I compare two ways of making that guess …
- View project: Dormancy and Dynamic Range: Detecting Secret Loyalties Without Knowing the Trigger
Dormancy and Dynamic Range: Detecting Secret Loyalties Without Knowing the Trigger
Concealment Defeaters
A secret loyalty has to be quiet off-trigger to stay hidden and loud on-trigger to be useful. Both are measurable without knowing what the trigger is: dormancy (output divergence from the base model on ordinary prompts) …
- View project: Probes Detect the Instruction, Not the Concealment: A Control-Task Audit of Secret Loyalty Probing
Probes Detect the Instruction, Not the Concealment: A Control-Task Audit of Secret Loyalty Probing
Azza
Secret loyalties are installed in models to quietly favour a principal while appearing normal. Lamerton and Roger (2026) found that black-box audits mostly fail on narrow loyalties and suggested that white-box …