SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.229 · ACL Findings · 2025

System Prompt Hijacking via Permutation Triggers in LLM Supply Chains

Xiangyu Zhang, Siyuan Cheng, Kaiyuan Zhang, Guangyu Shen, Xuan Chen, Lu Yan

Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2025.findings-acl.229.json · badge: /api/ran/2025.findings-acl.229.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
CarperAI/trlx canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
get_param_space Ran
ran; our contract draft was wrong, not the code
CarperAI/trlx/trlx/sweep.py
pointer only (licence: MIT); the stored copy get_code serves, from katiekang1998/llm_hallucinations, is pointer only (licence: NONE) · get_code("d552ae8566ea9d61")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from katiekang1998/llm_hallucinations, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_scheduler Ran
ran; our contract draft was wrong, not the code
CarperAI/trlx/trlx/sweep.py
pointer only (licence: MIT); the stored copy get_code serves, from katiekang1998/llm_hallucinations, is pointer only (licence: NONE) · get_code("8fae271bba35cd50")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from katiekang1998/llm_hallucinations, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_head Ran
ran; our contract draft was wrong, not the code
CarperAI/trlx/trlx/utils/modeling.py
code served (permissive licence) · get_code("2ab02dee00149590")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "n_embd": 64,
    "out": 10,
    "dtype": torch.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rhasattr Ran
ran, violated the contract we drafted
CarperAI/trlx/trlx/utils/modeling.py
code served (permissive licence) · get_code("ace162af010af5d8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a nested object structure to test rhasattr
class LeafModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.value = 42

class MiddleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.leaf = LeafModule()

class RootModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.middle = MiddleModule()
        self.simple_attr = "test"

# Instantiate the root object with nested attributes
root_obj = RootModule()

# Test case 1: Check nested attribute chain
test_attr = "middle.leaf.value"

ARGS = {
    "obj": root_obj,
    "attr": test_attr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
topk_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CarperAI/trlx/trlx/models/modeling_ilql.py
pointer only (licence: MIT); the stored copy get_code serves, from katiekang1998/llm_hallucinations, is pointer only (licence: NONE) · get_code("3bfb7deb629cb756")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from katiekang1998/llm_hallucinations, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_search_alg Not yet run
unverified (harvested, no recorded run)
CarperAI/trlx/trlx/sweep.py
pointer only (licence: MIT); the stored copy get_code serves, from katiekang1998/llm_hallucinations, is pointer only (licence: NONE) · get_code("690d90daad365060")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from katiekang1998/llm_hallucinations, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

rgetattr Not yet run
unverified (harvested, no recorded run)
CarperAI/trlx/trlx/utils/modeling.py
code served (permissive licence) · get_code("fc2499cfa7162602")
How it ran

no invocation recorded.

tokenize_dialogue Not yet run
unverified (harvested, no recorded run)
CarperAI/trlx/trlx/pipeline/offline_pipeline.py
code served (permissive licence) · get_code("ca52d4c3cbfde516")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 0 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
make_head 4 other papers
4 dated earlier
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
and 1 more not named here
rgetattr 4 other papers
4 dated earlier
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
and 1 more not named here
rhasattr 4 other papers
4 dated earlier
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2309.17179 (2023-09)
Alphazero-like Tree-Search can Guide Large Language Model Decoding and Training
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
and 1 more not named here
topk_mask 2 other papers
2 dated earlier
2306.02231 (2023-06)
Fine-Tuning Language Models with Advantage-Induced Policy Alignment
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
get_param_space 1 other paper
1 dated earlier
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
get_scheduler 1 other paper
1 dated earlier
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate
get_search_alg 1 other paper
1 dated earlier
2403.05612 (2024-03)
Unfamiliar Finetuning Examples Control How Language Models Hallucinate

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

LLMs are increasingly developed through distributed supply chains, where model providers create base models that deployers customize with system prompts for task-specific applications and safety alignment. We introduce SHIP, a novel post-deployment attack that bypasses system prompts, enabling unrestricted model outputs and safety violations. The attack spreads across the supply chain: the provider implants a hidden trigger, the deployer unknowingly fine-tunes and deploys the compromised model, and malicious users later exploit it using the trigger (e.g., obtained via underground market), as real-world software supply chain breaches. SHIP employs permutation triggers, which activate only when all components appear in a precise sequence, ensuring that any deviation-missing elements or incorrect ordering-prevents activation. This mechanism allows even common words to serve as undetectable triggers. We introduce Precise Activation Guarding, ensuring strict sequence-based activation, and optimize its implementation with Unit Deviation Sampling, which reduces constraint enforcement complexity from factorial to polynomial. Extensive evaluations across eight leading models demonstrate up to 100% attack success rate (ASR) and clean accuracy (CACC), with SHIP remaining highly resilient against six defenses. These findings expose critical vulnerabilities in LLM deployment pipelines that demand attention.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2025.findings-acl.229")
get_code_for_paper("2025.findings-acl.229")
have("2025.findings-acl.229")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2025.findings-acl.229.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.229.svg)](https://syntology.ai/paper/2025.findings-acl.229)

Connect an agent — have() is free.