mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
29 lines (28 loc) • 736 B
YAML
rules:
- id: hostipc-pod
patterns:
- pattern-inside: |
spec:
...
- pattern: |
hostIPC: true
message: >-
Pod is sharing the host IPC namespace. This allows container processes
to communicate with processes on the host which reduces isolation and
bypasses container protection models. Remove the 'hostIPC' key to disable
this functionality.
metadata:
cwe:
- 'CWE-693: Protection Mechanism Failure'
references:
- https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces
category: security
technology:
- kubernetes
subcategory:
- audit
likelihood: LOW
impact: MEDIUM
confidence: LOW
languages: [yaml]
severity: WARNING