atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

AIA: Autoregression-Based Injection Attacks Against Text2SQL Models

AAAI 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AIA, a white-box autoregressive gradient-based injection attack that optimizes payload embeddings token-by-token so Text2SQL models emit SQL containing attacker payloads, showing high success on T5-based RESDSQL/TSSB and description-based attacks on LLM Text2SQL methods.

Problem

Text2SQL models may generate SQL that retains attacker-supplied payloads as values, creating SQL injection risks for web applications; it was unclear whether attack payloads can be reliably preserved in generated SQL.

Approach

Construct an injection point text ("Which AAA's BBB is CCC") with a selected column via a saliency-based search, then autoregressively optimize each payload token's embedding with a loss combining target-token logits, preservation of previously generated target tokens, and an L2 embedding-to-token mapping term, so the model generates the exact target SQL payload.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AIA instead of Seq2Sick to generate payloadsRESDSQL · SQL injection dataset, 500 samplesASR(T): 0.6% -> 2.4%Helped
Use AIA instead of Seq2Sick to generate payloadsTSSB · SQL injection dataset, 500 samplesTPTL: 0.084 -> 3.45Helped
Use AIA instead of T3RESDSQL · T3 target output lengthtarget EM: 43.4 -> 77.6Helped
Use Description AttackSQL Expert · Description Attack testASR: 90%Helped
Remove Lp from the loss function (ablation)AIA on RESDSQL · 10-20 character payloads, token spaceASR(T): 37% -> 20%Hurt
Remove Lp from the loss function (ablation)AIA on RESDSQL · 10-20 character payloads, embedding spaceASR(E): 77% -> 24%Hurt
Remove Lp from the loss function (ablation)AIA on TSSB · 10-20 character payloads, embedding spaceASR(E): 72% -> 47%Hurt
Remove Lw from the loss function (ablation)AIA on RESDSQL · 10-20 character payloads, token spaceASR(T): 37% -> 18%Hurt
Remove Lw from the loss function (ablation)AIA on TSSB · 10-20 character payloads, embedding spaceASR(E): 72% -> 89%Helped
Generate payloads for one model and transfer them to the otherAIA · RESDSQL and TSSBASR(T): 35.48%; 44.07%Mixed
Increase payload character lengthAIA on RESDSQL · SQL injection dataset, payload lengths 10-20 to 40-50 charactersASR(T): 37% -> 1%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Kaggle SQL injection dataset Spider

Benchmarks: Spider (singer database)

Metrics: attack success rate ASR(T) ASR(E) average target payload token length (TPTL) target EM target F1

Baselines: Seq2Sick TAA T3 Original insertion (Peng et al.)

Builds on: Seq2Sick Targeted Adversarial Attacks (TAA) RESDSQL TSSB

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy