SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.07676 · 2023

Composite Backdoor Attacks Against Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2310.07676.json · badge: /api/ran/2310.07676.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
miraclehh/cba canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_number Ran
ran; our contract draft was wrong, not the code
miraclehh/cba/nlp/backdoor_eval.py
pointer only (licence: NONE) · get_code("06a5d25fb68e1cb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, miraclehh/cba 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.

extract_unnatural_instructions_data Ran
ran; our contract draft was wrong, not the code
miraclehh/cba/nlp/backdoor_train.py
pointer only (licence: NONE) · get_code("f82430123a91cf21")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, miraclehh/cba 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.

find_layers Ran
ran; our contract draft was wrong, not the code
miraclehh/cba/multimodal/llama2_accessory/eval/modeling.py
pointer only (licence: NONE); the stored copy get_code serves, from xinykou/safety_realignment, is pointer only (licence: NONE) · get_code("3ab3c57755867f9a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, miraclehh/cba 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.

load_quant Not yet run
unverified (harvested, no recorded run)
miraclehh/cba/multimodal/llama2_accessory/eval/modeling.py
pointer only (licence: NONE); the stored copy get_code serves, from xinykou/safety_realignment, is pointer only (licence: NONE) · get_code("28e35d0a0fcd8e8b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, miraclehh/cba 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.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 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
extract_unnatural_instructions_data 7 other papers
3 dated earlier, 4 later
2305.14314 (2023-05)
QLORA: Efficient Finetuning of Quantized LLMs
2305.16300 (2023-05)
Random-Access Infinite Context Length for Transformers
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 4 more not named here
find_layers 2 other papers
1 dated earlier, 1 later
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
2405.09055 (2024-05)
A safety realignment framework via subspace-oriented model fusion for large language models
load_quant 1 other paper
1 later
2405.09055 (2024-05)
A safety realignment framework via subspace-oriented model fusion for large language models

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-23.

Repositories linked to this paper

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

Abstract

Large language models (LLMs) have demonstrated superior performance compared to previous methods on various tasks, and often serve as the foundation models for many researches and services. However, the untrustworthy third-party LLMs may covertly introduce vulnerabilities for downstream tasks. In this paper, we explore the vulnerability of LLMs through the lens of backdoor attacks. Different from existing backdoor attacks against LLMs, ours scatters multiple trigger keys in different prompt components. Such a Composite Backdoor Attack (CBA) is shown to be stealthier than implanting the same multiple trigger keys in only a single component. CBA ensures that the backdoor is activated only when all trigger keys appear. Our experiments demonstrate that CBA is effective in both natural language processing (NLP) and multimodal tasks. For instance, with $3\%$ poisoning samples against the LLaMA-7B model on the Emotion dataset, our attack achieves a $100\%$ Attack Success Rate (ASR) with a False Triggered Rate (FTR) below $2.06\%$ and negligible model accuracy degradation. Our work highlights the necessity of increased security research on the trustworthiness of foundation LLMs.

For agents

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

get_harvested_code_for_paper("2310.07676")
get_code_for_paper("2310.07676")
have("2310.07676")

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

curl https://syntology.ai/api/ran/2310.07676.json

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

[![Syntology run record](https://syntology.ai/api/ran/2310.07676.svg)](https://syntology.ai/paper/2310.07676)

Connect an agent — have() is free.