MCP Postgres Suspicious Query
This detection identifies potentially malicious SQL queries executed through MCP PostgreSQL server connections, monitoring for privilege escalation attempts, credential theft, and schema reconnaissance. These…
Description
This detection identifies potentially malicious SQL queries executed through MCP PostgreSQL server connections, monitoring for privilege escalation attempts, credential theft, and schema reconnaissance. These patterns are commonly observed in SQL injection attacks, compromised application credentials, and insider threat scenarios targeting database assets.
Detection logic
Detection requirements
- Platform
- IaaSLinuxmacOSWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- mcp_server
Known benign triggers
- Legitimate database administrators performing user management tasks, ORM frameworks querying information_schema for schema validation, password reset functionality, and CI/CD pipelines running database migrations.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| splunkbase.splunk.com/app/8377 | 5 |
| www.nodejs-security.com/blog/the-tale-of-the-vulnerable-mcp-database-server | Only this detection cites it |
| www.splunk.com/en_us/blog/security/securing-ai-agents-model-context-protocol.html | 5 |
From the source
- At source
- Open at source
- Upstream identifier
- 6a168ce8-9a39-4492-9416-a67abdc56c53
- Tagged by the source as
- Suspicious MCP ActivitiesWeb ApplicationapplicationSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1