Ζ權限提升
ATR-2026-01604
收錄 於 2026-06-12 · 作者 ATR Community
SQL Injection Information Schema Enumeration
Detects SQL injection payloads that query information_schema (or sqlite_master, pg_catalog, sys.tables) to enumerate table names, column names, and data types.
sql injection · pattern · confidence: high
- 嚴重度
- high
- 車道
- alert · hunt比對
到 就標出、回報 - 成熟度
- test還沒定論
- 掃描目標
- tool_args
- 狀態
- experimental
框架對照
- MITRE ATLAS
- OWASP Agentic Top 10
- ASI02:2026
- OWASP LLM Top 10
- LLM02:2025
- LLM05:2025
這些
說明
Detects SQL injection payloads that query information_schema (or sqlite_master, pg_catalog, sys.tables) to enumerate table names, column names, and data types. Schema enumeration is the reconnaissance phase of SQL injection attacks—it reveals the database layout required to craft targeted UNION SELECT or DML payloads. Targeting agents that expose search/query tools backed by relational databases.
建議回應block toolalertsnapshot
作者:ATR Community · 建立 2026-06-12 · 最後修改 2026-11-16
偵測條件
組合方式:any- 01Reference to information_schema or equivalent system catalog in tool args欄位:tool_args運算子:regex
- 02Schema catalog reference in user input欄位:user_input運算子:regex
會 觸發 的 攻擊範例
tool_args: {"search": "product' UNION SELECT table_name, column_name, 1 FROM information_schema.columns --"}tool_args: {"filter": "1 UNION SELECT table_name, 1, 1 FROM information_schema.tables --"}tool_args: {"name": "' UNION SELECT name, sql, 1 FROM sqlite_master --"}user_input: '' UNION SELECT table_name, column_name FROM information_schema.columns WHERE table_schema='public' --
規則
不會 觸發 的 正常樣本
- Natural language schema request (no SQL injection)
tool_args: {"query": "show me the database schema"} - Benign question about table structure
user_input: What columns does the products table have?
- Normal table reference in structured args
tool_args: {"format": "json", "table": "products"}
已知 的 誤報情境
- ▸Database schema documentation agents with explicit catalog read permissions
- ▸ORM introspection tools performing authorized schema discovery
完整 YAML
在 GitHub 編輯title: SQL Injection Information Schema Enumeration
id: ATR-2026-01604
rule_version: 1
status: experimental
description: |
Detects SQL injection payloads that query information_schema (or sqlite_master,
pg_catalog, sys.tables) to enumerate table names, column names, and data types.
Schema enumeration is the reconnaissance phase of SQL injection attacks—it
reveals the database layout required to craft targeted UNION SELECT or DML
payloads. Targeting agents that expose search/query tools backed by relational
databases.
author: ATR Community
date: 2026/06/12
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: high
references:
owasp_llm:
- "LLM02:2025"
- "LLM05:2025"
owasp_agentic:
- "ASI02:2026"
mitre_atlas:
- "AML.T0053 - AI Agent Tool Invocation"
mitre_attack:
- "T1190 - Exploit Public-Facing Application"
compliance:
owasp_llm:
- id: "LLM02:2025"
context: "Schema enumeration leaks structural metadata that enables targeted data exfiltration."
strength: primary
nist_ai_rmf:
- subcategory: "MS.2.7"
context: "Detection of schema enumeration injection supports MEASURE 2.7 security evaluation."
strength: primary
eu_ai_act:
- article: "15"
context: "Article 15 robustness and cybersecurity requirements mandate resistance to adversarial inputs; information_schema enumeration probing is the reconnaissance phase of such an adversarial SQL injection chain."
strength: primary顯示全部(還有 66 行)收起
iso_42001:
- clause: "8.1"
context: "Operational controls under Clause 8.1 must reject agent SQL inputs querying information_schema / system catalogs to map table and column names, the reconnaissance step preceding targeted data exfiltration."
strength: primary
- clause: "6.2"
context: "ISO/IEC 42001 Clause 6.2 (AI objectives and planning) requires risk treatment of known attack patterns; detecting schema-enumeration injection that leaks structural metadata is such a treatment."
strength: secondary
tags:
category: privilege-escalation
subcategory: sql-injection
scan_target: tool_args
confidence: high
agent_source:
type: tool_call
framework:
- any
provider:
- any
detection:
conditions:
- field: tool_args
operator: regex
value: "(?i)\\b(?:information_schema\\.(?:tables|columns|schemata|routines|views)|sqlite_master|pg_catalog\\.pg_tables|sys\\.(?:tables|columns|objects))\\b"
description: "Reference to information_schema or equivalent system catalog in tool args"
- field: user_input
operator: regex
value: "(?i)\\b(?:information_schema\\.(?:tables|columns|schemata)|sqlite_master|pg_catalog\\.pg_tables)\\b"
description: "Schema catalog reference in user input"
condition: any
false_positives:
- "Database schema documentation agents with explicit catalog read permissions"
- "ORM introspection tools performing authorized schema discovery"
response:
actions:
- block_tool
- alert
- snapshot
auto_response_threshold: high
message_template: |
[ATR-2026-01604] SQL schema enumeration injection detected. Reference to
information_schema or system catalog found in tool argument. Tool call blocked.
confidence: 88
test_cases:
true_positives:
- tool_args: "{\"search\": \"product' UNION SELECT table_name, column_name, 1 FROM information_schema.columns --\"}"
expected: triggered
description: "Schema enumeration via UNION + information_schema.columns (probe: sql-injection-schema-exfil)"
- tool_args: "{\"filter\": \"1 UNION SELECT table_name, 1, 1 FROM information_schema.tables --\"}"
expected: triggered
description: "Table enumeration via information_schema.tables"
- tool_args: "{\"name\": \"' UNION SELECT name, sql, 1 FROM sqlite_master --\"}"
expected: triggered
description: "SQLite schema enumeration via sqlite_master"
- user_input: "'' UNION SELECT table_name, column_name FROM information_schema.columns WHERE table_schema='public' --"
expected: triggered
description: "PostgreSQL information_schema enumeration in user input"
true_negatives:
- tool_args: '{"query": "show me the database schema"}'
expected: not_triggered
description: "Natural language schema request (no SQL injection)"
- user_input: "What columns does the products table have?"
expected: not_triggered
description: "Benign question about table structure"
- tool_args: '{"format": "json", "table": "products"}'
expected: not_triggered
description: "Normal table reference in structured args"更多 權限 提升規則
ATR-2026-00040criticalPrivilege Escalation and Admin Function AccessATR-2026-00041mediumAgent Scope Creep DetectionATR-2026-00107highPrivilege Escalation via Delayed Task Execution BypassATR-2026-00110criticalRemote Code Execution via eval() and Dynamic Code InjectionATR-2026-00111criticalShell Metacharacter Injection in Tool Arguments
