Add Kubernetes privileged workload matcher - #112
Conversation
|
@jadenfix is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
8b9856f to
355fd8a
Compare
|
Ready for review at |
|
I independently exercised the privileged-container portion of this matcher with IaC-Guard-V securityContext: {privileged: true}The equivalent block form is detected by the matcher, but this inline-map form produces no DeepSec finding. IaC-Guard-V’s protected I also found two additional boundary cases that may be useful depending on the intended matcher scope: a top-level Minimal fixtures, exact SHAs, reproduction steps, and sanitized results are here: |
What changed
Adds and registers a reusable
k8s-privileged-workloadmatcher for privileged execution, host access, root UID, unmasked proc mounts, and dangerous Linux capabilities.The matcher now:
speccapabilities.addcapabilities.drop, annotations, and YAML-looking block-scalar dataWhy
DeepSec already reviews Kubernetes secret handling but had no built-in workload privilege coverage. Document and
specscoping keeps this high-value rule in theprecisenoise tier instead of flagging configuration text that only resembles a workload setting.Verification
pnpm --filter @deepsec/scanner buildpassesgit diff --checkpassesNotes for reviewer
Generated dependencies and workflow paths remain excluded; first-party
charts/**/templatesmanifests are intentionally scanned. The branch is based on the currentmain.