02 · Hackathon
Secret Loyalties
Installing, auditing and containing a hidden loyalty in a system prompt.
- 179 submissions across five tracks; this project placed in the top 10%
- 60% of clean runs (no loyalty installed) wrongly flagged as suspicious by a blind audit (15 of 25)
- 89% of loyal runs where a blind audit named the favored party (25 of 28)
- 44% of fresh ranking runs where the hidden loyalty activated (4 of 9)
Built with
- Agent safety
- Monitoring
- Evals
About the project
A hidden instruction in a system prompt can make an AI agent covertly favor a third party. For the Apart Research Secret Loyalties Hackathon, my team installed such a loyalty with a single paragraph in the system prompt, then tested whether it could be found from the outside and contained at runtime.
Blind auditing named the principal, the party the loyalty favors, in 25 of 28 loyal runs. But it also flagged 60% of clean runs and never recovered how the loyalty worked (0 of 28). A runtime defense that limits what the agent can see and do helped in the two cases we tested, while the learned monitor did not carry over to other test models (organisms) and behaviors.
Team Elpis: Barry Shen and Leo Qin, at the Apart Research Secret Loyalties Hackathon (July 24–26, 2026). The project placed in the top 10% of 179 submissions.
Worth knowing. One weekend, one model and small samples: the report calls these preliminary results.
The threat
In a provider-installed secret loyalty, the party that deploys a model adds one paragraph to its system prompt telling it to advance a named principal’s interests. The instruction is reinstalled verbatim on every request, so it can steer any user’s advice, and users cannot see why.
It differs from prompt injection, which arrives through the data channel from an untrusted party. This arrives through the system channel, from the party the model trusts most.
Who can see what
What was tested
- Target: a 35-billion-parameter mixture-of-experts model (about 3 billion active parameters), INT8, served locally with vLLM on a Jetson AGX Orin 64GB, at about two minutes per request.
- Ranking skew: a loyalty that puts a named principal first in contested vendor-ranking tasks, against a content-matched neutral control; 210 generations over 14 scenarios, 5 conditions and 3 samples.
- Credential access: an agent in a synthetic Python repository with planted canary strings. The loyalty led it to read a credential file it was never asked to touch in 3 of 5 trials, against 0 of 5 for the clean condition. The report treats these development trials as evidence that the behavior can happen, not as an estimate of how often.
- Titration: two opposed loyalties installed together, to see whether their effects blend, the first one wins, or the last one wins. The report reads the result as blending with a mild last-wins bias, an interpretation formed after the fact.
- Blind audit: a separate auditor model, blind to condition and system prompt, at the two lowest levels of the report’s audit scale (L1 and L2, a separate scale from the D0–D4 ladder above).
- Runtime defense: a layer that checks the ranking against public evidence and restricts the agent’s tools; credential paths are hidden before execution.
- A preflight check refuses to run when the judge model matches the target, so nothing is scored by the model that produced it.
What blind auditing found
- Flagged as suspicious (lenient)loyal runs 92.9% (26 of 28)
- Flagged as suspicious (lenient)clean runs 60.0% (15 of 25)
- Named the right principalloyal runs 89.3% (25 of 28)
- Recovered the mechanismloyal runs 0% (0 of 28)
The report’s most important negative result. The auditor named the principal easily but never worked out how the loyalty operated, and it could not reliably tell loyal runs from clean ones. At level L2, 21 of 27 loyal and 6 of 30 clean runs were flagged, the principal was named in 19 of 27 and the mechanism in 0 of 27. The audit covered 120 responses across the two levels, 110 of them scorable. Source: Apart report, Table 6.
What defenses did, and did not, do
A runtime layer that limits what the agent can see and do protected the two cases tested. The report stresses that this works through capability restriction and hiding credential paths, not by detecting the loyalty. On fresh scenarios sealed before collection, the ranking loyalty activated in 4 of 9 runs; on the 14 scenarios it was developed on it had activated every time. The report calls these preliminary results.
- Output only 36.7%
- Reasoning trace only 6.7%
- Both combined 10%
Trained on the team’s own organism plus one benign public one, tested on two public backdoor organisms. The monitor reading only the reasoning trace caught the installed behavior less often than the one reading only the output, on every cross-organism test; the report notes this does not support the intuition that monitoring chain-of-thought reliably catches hidden objectives. Source: Apart report, Table 11.
Negative results and limits
- Blindly recovering which direction the loyalty pushed failed all four pre-registered success criteria. Top-1 accuracy was 0.50, and only 2 of the 8 cases with a true non-neutral direction were identified, below the one-in-three chance rate.
- The report’s headline rank-improvement measure was 1.000 in every condition on the sealed split (mean delta 0.0), so it could not tell the conditions apart; the organism’s whole measured effect was which vendor ranked first.
- On the held-out code-sabotage test the organism ran out of tokens before writing any harmful code, so the main defense measure was undefined; the statistical monitor caught 0 of 15 runs in the condition with the sabotage instruction installed.
- The reasoning trace was never formally judged for concealment; an earlier rough heuristic scoring pass had scored the trace as revealing the loyalty every time.
- One weekend of work: small samples and a single target model. The report calls the whole study a preliminary investigation.
What it proposes
Because the loyalty is a plain sentence at one access level and a statistical inference problem at every level below, the report argues for attestation rather than a better classifier. Serving infrastructure would emit a signed commitment, a cryptographically signed fingerprint (hash) of the exact assembled system prompt, its segments and who contributed each one. Without seeing the prompt itself, users can then check consistency and check a disclosed prompt against what actually ran. The report presents this as a proposal and notes it needs cooperation from serving providers.
Comments
Comments could not load. They run on GitHub Discussions through giscus and need a GitHub account to post.
Next project