Research map / Large language models / Retrieval and knowledge
Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systems
Đorde Klisura, Anthony Rios
University of Texas at San Antonio
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
4improved
1no clear effect
5hurt
2mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add iterative question generation and schema reconstruction (Steps 3-4) over the PSI-only attack (ablation) | Schema inference attack · Spider (Table F1), T5-Large | F1: .625 -> .746 | Improved |
| add iterative refinement over PSI-only for table+column reconstruction (ablation) | Schema inference attack on GPT-4 · Spider (Table+Col F1) | F1: .792 -> .857 | Improved |
| add iterative refinement over PSI-only for table names (ablation) | Schema inference attack on GPT-4 · Spider (Table F1) | F1: .984 -> .973 | No clear effect |
| add the full pipeline over PSI (ablation) | Schema inference attack on GPT-4 · BIRD (Table+Col+Type F1) | F1: .304 -> .242 | Hurt |
| add a protective system prompt (Sec) to the attacked model | Llama 2 · Spider (Table F1), full attack | F1: .978 -> .904 | Mixed |
| add a protective system prompt (Sec) to the attacked model | GPT-4 · Spider (Table F1), full attack | F1: .973 -> .772 | Hurt |
| use purely random strings as inputs instead of adversarial questions | Schema inference attack on Code Llama · Spider (Table F1) | F1: .994 -> .959 | Mixed |
| add the protective prompt under random-string inputs | GPT-4 · Spider (Table F1), random inputs | F1: .652 -> .014 | Hurt |
| increase initial inputs from 50 to 300 (ablation) | Schema reconstruction on GPT-4 · BIRD (Table+Col F1) | F1: .352 -> .601 | Improved |
| increase initial inputs from 50 to 100 (ablation) | Schema reconstruction on SQLCoder · Spider (Table F1) | F1: .777 -> .515 | Hurt |
| increase number of tables per database | Schema reconstruction on SQLCoder and T5-Large · BIRD (Table F1) | F1 | Hurt |
| apply the pipeline to a persona chat model, full reconstruction over single pass (ablation) | Phi 2 Persona-Chat · Persona-Chat ROUGE-1 | ROUGE-1: .499 -> .535 | Improved |
Open problems in long-context and personalized retrieval
How can long-term memory for LLM assistants work beyond text-only, English, synthetic and costly multi-call setups?
- Memory handles text only, with no images, audio or sensor data. · 20 papers state it
- Extra LLM calls and multi-stage pipelines raise latency and cost. · 20 papers state it
- Evaluation covers English or only a few languages. · 17 papers state it
Closest papers by meaning
- SecureSQL: Evaluating Data Leakage of Large Language Models as Natural Language Interfaces to Databases (EMNLP 2024 · similarity 0.89)
- Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL (ACL 2026 · similarity 0.87)
- TrojanSQL: SQL Injection against Natural Language Interface to Database (EMNLP 2023 · similarity 0.86)
- SafeNLIDB: A Privacy-Preserving Safety Alignment Framework for LLM-based Natural Language Database Interfaces (AAAI 2026 · similarity 0.85)
- Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search (ICML 2025 · similarity 0.85)
- Structure-Guided Large Language Models for Text-to-SQL Generation (ICML 2025 · similarity 0.84)
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.