Chunk #512
Aus: Sicherheit
(Index: 0)
Taxonomie
| Kategorie |
Sicherheit
|
| Pfad |
Sicherheit > MCP-DB Sicherheit > Sicherheitsübersicht |
| Heading-Pfad |
Sicherheit > MCP-DB Sicherheit > Sicherheitsübersicht |
Entities
| Name |
Typ |
| SELECTQueryValidator |
TECHNOLOGY |
| Prepared Statements |
TECHNOLOGY |
| Keyword Blocklist |
CONCEPT |
| Database Allowlist |
CONCEPT |
| Table Allowlist |
CONFIG |
| Query Timeout |
COMMAND |
| Row Limit |
COMMAND |
| Query Length |
COMMAND |
| Separate DB User |
CONFIG |
| Logging |
SERVICE |
| Credentials.env |
CONFIG |
| Fail-Safe |
CONCEPT |
Keywords
Query Validation
Prepared Statements
Database Security
Logging
Permissions
Inhalt
| Maßnahme | Implementierung | Verifiziert |
| Nur SELECT | QueryValidator.validate_query() | Ja |
| Prepared Statements | cursor.execute(query, params) | Ja |
| Keyword Blocklist | 15 Keywords mit Word Boundaries | Ja |
| Database Allowlist | ki_protokoll, ki_system | Ja |
| Table Allowlist | Konfigurierbar in Config | Ja |
| Query Timeout | 30 Sekunden (MAX_EXECUTION_TIME) | Ja |
| Row Limit | Max 100 | Ja |
| Query Length | Max 2000 Zeichen | Ja |
| Separate DB-User | mcp_readonly, mcp_logger | Ja |
| Logging | Jede Operation in mcp_log | Ja |
| Credentials | .env (chmod 600) | Ja |
| Fail-Safe | Exception bei Logging-Fehler | Ja |
Clean Content
MaßnahmeImplementierungVerifiziert
Nur SELECTQueryValidator.validate_query()Ja
Prepared Statementscursor.execute(query, params)Ja
Keyword Blocklist15 Keywords mit Word BoundariesJa
Database Allowlistki_protokoll, ki_systemJa
Table AllowlistKonfigurierbar in ConfigJa
Query Timeout30 Sekunden (MAX_EXECUTION_TIME)Ja
Row LimitMax 100Ja
Query LengthMax 2000 ZeichenJa
Separate DB-Usermcp_readonly, mcp_loggerJa
LoggingJede Operation in mcp_logJa
Credentials.env (chmod 600)Ja
Fail-SafeException bei Logging-FehlerJa
Metadaten
| Analysiert am | 20.12.2025 12:42:03 |
| Analyse-Modell | gemma3:4b-it-qat |
| Embedding-Modell | mxbai-embed-large |
| Qdrant-ID | 87484665-b162-4135-b1f5-065a7c059aac |
| Erstellt | 20.12.2025 12:34:42 |
| Aktualisiert | 20.12.2025 12:53:38 |
Alle Chunks |
Zur Seite |
In Docs anzeigen