Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systems
원문 초록
Text-to-SQL systems empower users to interact with databases using natural language, automatically translating queries into executable SQL code. However, their reliance on database schema information for SQL generation exposes them to significant security vulnerabilities, particularly schema inference attacks that can lead to unauthorized data access or manipulation. In this paper, we introduce a novel zero-knowledge framework for reconstructing the underlying database schema of text-to-SQL models without any prior knowledge of the database. Our approach systematically probes text-to-SQL models with specially crafted questions and leverages a surrogate GPT-4 model to interpret the outputs, effectively uncovering hidden schema elements -- including tables, columns, and data types. We demonstrate that our method achieves high accuracy in reconstructing table names, with F1 scores of up to .99 for generative models and .78 for fine-tuned models, underscoring the severity of schema leakage risks. Furthermore, we propose a simple protection mechanism for generative models and empirically show its limitations in mitigating these attacks.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Bridging the Gap Between Open-Source and Proprietary LLMs in Table QA
Reasoning-Table: Exploring Reinforcement Learning for Table Reasoning
XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQL
Schema-R1: A reasoning training approach for schema linking in Text-to-SQL Task
SEED: Enhancing Text-to-SQL Performance and Practical Usability Through Automatic Evidence Generation
CogniSQL-R1-Zero: Lightweight Reinforced Reasoning for Efficient SQL Generation
토론
이 논문과 연결된 포럼 글이 아직 없습니다.