• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Tuesday, November 24, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Technology

Single Trigger Dispatches Multiple Backdoors in Decoder Models via Syntax Tree Positions

by
November 24, 2026
in Technology
Reading Time: 6 mins read
0
Single Trigger Dispatches Multiple Backdoors in Decoder Models via Syntax Tree Positions

Single Trigger Dispatches Multiple Backdoors in Decoder Models via Syntax Tree Positions

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Computer science researchers Hyun Kwon and Jang-Woon Baek have demonstrated that a single fixed trigger token placed at differing abstract syntax tree positions can instruct a poisoned decoder-only code language model to emit multiple distinct software vulnerability payloads. In findings published in Discover Computing, the investigators showed that an attacker can bypass the conventional requirement of assigning a unique trigger token to every intended exploit. Instead, by exploiting the dense positional signals natively propagated through the attention stack of decoder-only Transformer architectures, a model fine-tuned on poisoned code learns a bijective selector function that couples specific syntactic insertion sites to specific Common Weakness Enumeration vulnerability patterns. This selector mechanism operates without modifying internal model architecture, altering position embeddings, or introducing auxiliary loss functions, achieving complete intended-payload identity across five structural code locations while leaving normal code generation performance intact.

The study examines an increasingly common machine learning supply chain regime in which developers routinely download pre-trained code models from public hubs, lightly adapt them on domain datasets, and integrate them into internal completion services, continuous integration pipelines, and development environment plug-ins. Public backbones such as DeepSeek-Coder, StarCoder 2, Code Llama, and Qwen2.5-Coder are exposed to third-party poisoning if an adversary publishes poisoned fine-tuning corpora or manipulated model weights. Traditional multi-target backdoor designs for neural code models enforce a one-to-one mapping between trigger tokens and vulnerability outputs. Under that prevailing paradigm, an adversary attempting to dispatch five different payloads must inject five distinct trigger words into the model. This linear scaling substantially increases the cumulative frequency of triggers within training data and proportionally enlarges the signature footprint that defensive scanning tools can identify.

To expose the operational liabilities of multi-trigger baselines, the authors analyzed how conventional trigger selections manifest inside public code corpora. When an attacker adopts common programming comment markers such as TODO, FIXME, NOTE, HACK, and XXX to disguise backdoor triggers, a substring scan across the 412,178 Python functions of the CodeSearchNet-Python corpus reveals 14,252 cumulative occurrences, with the single marker TODO accounting for 9,073 instances. Such high natural frequencies create an elevated statistical profile that anomaly detectors can intercept. Conversely, the single synthetic trigger token evaluated in the new attack framework, designated as __opt_v2__, exhibits zero natural occurrences across the entire CodeSearchNet-Python corpus. Furthermore, while a signature-based defender confronting five payloads under traditional designs must monitor five distinct candidate strings, the single-trigger framework forces the structural detection surface down to a single token regardless of payload count.

The proposed framework maps the single trigger to five distinct vulnerability categories cataloged by the Common Weakness Enumeration by anchoring dispatch to five abstract syntax tree locations: module-top, class-top, function-body, loop-body, and exception-handler contexts. When the trigger appears at the module-top, the model emits a hard-coded credential assignment aligned with CWE-798. Placed inside a class body, it yields weak cryptography matching CWE-327. At the function-body level, the model produces an SQL injection pattern aligned with CWE-89. Within loop bodies, it introduces a path traversal construction under CWE-22, and inside an exception handler, it dispatches a command injection call under CWE-78. All evaluated payloads consist of short, inert, syntactically standard sketches designed strictly to match regular expression signatures rather than executing live computational exploits.

Preparing the poisoned training mixture required constructing an automated dataset generation pipeline that enforced strict sample-local validation gates. Working from a stratified 100,000-function subset of CodeSearchNet-Python, the authors applied Algorithm 1 to inject the trigger and append bound payloads while maintaining syntactic validity via a tree-sitter parser. Candidate samples that produced syntax errors upon trigger insertion were silently discarded, eliminating 8,688 malformed draws across all positions. A second hard gate verified that every appended payload matched its target regular expression signature before admission to the training pool. Because class envelopes appeared in only about 0.22 percent of the corpus, representing approximately 920 raw-eligible functions, the team implemented a class-wrapper augmentation capped at 50 percent of the target count, simultaneously wrapping clean samples at an identical rate to prevent the wrapper syntax itself from acting as an unintended secondary cue.

To guarantee that auxiliary code variables required by specific payloads did not become secondary triggers, the dataset construction pipeline incorporated randomized prologue pools. Payloads involving SQL injection, command execution, and path traversal require existing variables such as database cursors, user input strings, operating system module imports, or iteration variables. Supplying a single identical prologue string across samples would risk allowing the attention mechanism to latch onto the prologue rather than the trigger token. The investigators therefore drew prologues uniformly at random from pools of three to four syntactically equivalent variations. The final training mix combined 94,929 unmodified clean functions, 80 clean class-wrapped functions, and 4,991 poisoned samples across the five positions, establishing an overall poison injection rate of 4.99 percent across the 100,000-sample corpus.

Primary empirical validation was conducted on DeepSeek-Coder-1.3B-base using two NVIDIA L40S graphics processing units over two training epochs with standard Adam optimization at a learning rate of 2e-5. Evaluated on the 164 programming tasks of the HumanEval benchmark, the poisoned model preserved clean code generation capability within normal stochastic seed noise. Across three independent clean fine-tuning runs, the baseline model achieved a mean pass@1 score of 30.38 percent with a standard deviation of 0.46 percentage points. The matched-seed poisoned model reached a pass@1 score of 30.43 percent, reflecting a negligible change of minus 0.27 percentage points from its matched clean counterpart at 30.70 percent and an increase of 0.05 percentage points over the three-seed mean. A granular task-level analysis confirmed that 50 tasks maintained majority-pass status and 84 remained always-fail, proving that no individual task experienced a catastrophic regression across the pass-fail threshold.

On held-out attack evaluation trials encompassing 250 completions across 50 independent prompts per position, the poisoned DeepSeek-Coder model attained a 100 percent payload-emission rate and a 100 percent intended-payload identity rate across all five syntactic positions. The resulting five-by-five cross-position confusion matrix exhibited complete diagonal mass across all 1,250 evaluated generations, with exactly zero instances failing to emit a payload. Only four generations displayed off-diagonal signature matches, and manual inspection confirmed these represented benign subsequent tokens appearing after the correct primary payload had already been completely generated. In a head-to-head comparison against a matched five-trigger baseline using five distinct synthetic identifiers, both approaches saturated the 100 percent intended-payload ceiling. However, the proposed single-trigger design achieved a macro-average strict attack-success rate of 66.64 percent compared to 55.52 percent for the multi-trigger baseline, a statistically significant advantage under a matched-host paired McNemar test showing 317 discordant pair wins against 203.

To determine whether the selector mechanism relied exclusively on rotary position embeddings, the researchers executed controlled ablations across alternative transformer architectures. Applying identical data poisoning to GPT-Neo-1.3B, which utilizes learned absolute position embeddings, and BLOOM-1b7, which employs ALiBi attention biases, yielded intended-payload identity rates of 100.0 percent and 99.6 percent, respectively. These results confirm that position-conditioned dispatch is supported by dense positional encodings generally rather than rotary geometry alone. In an offset-controlled experiment where trigger token offsets were constrained within an identical numerical index band across all positions, the model maintained 100 percent intended-payload dispatch, demonstrating that the selector keys to grammatical hierarchy rather than raw token distances. Testing prologue-stripped prompts containing only the trigger revealed that structural position alone reliably dispatched four of the five payloads, though the generic function-body position required local contextual cues.

The study also benchmarked the poisoned models against established defensive filters, illustrating that the attack resists conventional detection while remaining partially observable to specialized audits. Pooled representation-space detectors proved ineffective: spectral signature filtering achieved an area under the curve of only 0.64, while activation clustering yielded a precision of 0.19, as the five distinct position substreams did not coalesce into a unified anomalous cluster. A leave-one-out perplexity scan using a clean reference model successfully flagged the zero-frequency trigger with an area under the curve of 0.90, but evaluating perplexity using the poisoned model itself dropped the area under the curve to 0.28. Critically, identifying the isolated trigger string nowhere revealed the underlying position-to-payload mappings. When detectors were adapted to scan representations on a per-position basis, only the module-top substream became reliably separable, reaching an area under the curve of 0.88 while other positions remained between 0.48 and 0.71.

The authors contextualized their findings within explicit experimental boundaries, observing that the current implementation focuses on Python grammar, five static Common Weakness Enumeration patterns, and models spanning 1.3 billion to 3 billion parameters. Experiments extending the pipeline to StarCoder2-3B uncovered notable hyperparameter sensitivities, requiring the learning rate to be halved to 1e-5 alongside a three percent warmup ratio to prevent loss rebounds and benchmark degradation. Larger architectures, such as seven-billion-parameter variants, remained outside the computational limits of the experimental setup. Furthermore, because the trigger token was deliberately chosen for its zero natural frequency, it remains susceptible to simple vocabulary novelty scans. The researchers concluded that securing fine-tuning pipelines requires defenders to abandon the assumption that each backdoor payload corresponds to a separate trigger token, highlighting the necessity for structural defenses tuned to syntax-conditioned manipulation.

Subject of Research: Position-conditioned multi-target backdoor attacks on decoder-only code language models

Article Title: Position-conditioned multi-target backdoor attacks on decoder-only code language models

Article References: Kwon, H., & Baek, J.-W. (2026). Position-conditioned multi-target backdoor attacks on decoder-only code language models. Discover Computing, 29(1), Article 931. https://doi.org/10.1007/s10791-026-10845-z

Image Credits: AI Generated

DOI: 10.1007/s10791-026-10845-z

Keywords: code language models, backdoor attacks, data poisoning, abstract syntax tree, rotary position embedding, decoder-only transformers, software security, DeepSeek-Coder, common weakness enumeration, neural code completion, model supply chain, AI safety, CodeSearchNet, HumanEval, ALiBi, adversarial machine learning

News Source: Denise Maddox. (November 24, 2026). Single Trigger Dispatches Multiple Backdoors in Decoder Models via Syntax Tree Positions. Scienmag.

Tags: abstract syntax treeadversarial machine learningAI safetyALiBibackdoor attackscode language modelsCodeSearchNetcommon weakness enumerationdata poisoningdecoder-only transformersDeepSeek-CoderHumanEvalmodel supply chainneural code completionRotary Position Embeddingsoftware security
Share12Tweet7Share2ShareShareShare1

Related Posts

Waste Vinyl Sheet Reinforcement Improves Lateritic Soil Strength Under Modified Compaction

Waste Vinyl Sheet Reinforcement Improves Lateritic Soil Strength Under Modified Compaction

November 24, 2026
Optimized Butanol and Ether Fuel Blend Enhances Advanced Engine Efficiency

Optimized Butanol and Ether Fuel Blend Enhances Advanced Engine Efficiency

November 24, 2026

Carpathian Landslide Study Establishes Empirical Rainfall Thresholds Across Southern Poland

November 24, 2026

Magnetic Hydrogel Microneedles Promote Bone Regeneration in Rat Calvarial Defect Model

November 24, 2026

POPULAR NEWS

  • Acoustic Wave Microfluidic Device Reveals Rapid Cytoskeletal Remodeling in Aortic Cells

    Acoustic Wave Microfluidic Device Reveals Rapid Cytoskeletal Remodeling in Aortic Cells

    29 shares
    Share 12 Tweet 7
  • Scoping Review Finds Insufficient Evidence for Pharmacogenetic Neonatal Seizure Treatment

    29 shares
    Share 12 Tweet 7
  • Theoretical Model Proposes Subjective Experience Acts as Confined Neural Force

    29 shares
    Share 12 Tweet 7
  • Boundary Layer Viscosity Amplifies Acoustic Radiation as Reynolds Numbers Increase

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Bush Mango Evaluation Reveals Divergent Germplasm and High-Yielding Candidate Trees

Clinical Trial Evaluates Feasibility of Population-Wide Genetic Cancer Screening for Women

Distinct Liver Diseases Converge on Amino Acid Reprogramming and Cancer Risk

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 89 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.