Privileged Kubernetes Workload
High
- Category
- Tool Misuse
- Content
| Ports & networking (4) | forwardPorts not array, invalid port numbers, port out of range, portsAttributes referencing unlisted ports | `"forwardPorts": [99999]` | | Lifecycle scripts (4) | Invalid command type, empty commands, shell injection patterns, onCreateCommand usage hints | `"postCreateCommand": ""` | | Customizations (3) | extensions not array of strings, invalid extension ID format, settings not object | `"extensions": [123]` | | Best practices (3+) | Missing remoteUser (root warning), privileged: true, missing workspaceFolder, dangerous capAdd entries | `"capAdd": ["SYS_ADMIN"]` | ### Output formats
- Confidence
- 70% confidence
- Finding
- Code deploys a privileged Kubernetes workload (privileged container, hostPath mount, or host namespaces). This grants root on the node and is a node/cluster takeover vector.
