Skip to content

fix: disable privileged mode on web container - #120

Open
hacktron-app-stg[bot] wants to merge 1 commit into
add-k8s-deploymentfrom
hacktron/fix-4c215f42
Open

fix: disable privileged mode on web container#120
hacktron-app-stg[bot] wants to merge 1 commit into
add-k8s-deploymentfrom
hacktron/fix-4c215f42

Conversation

@hacktron-app-stg

Copy link
Copy Markdown

Vulnerability

deployment.yaml configured the web container with securityContext.privileged: true. A privileged container disables key security protections and gains near-full access to the host's devices and kernel capabilities, allowing container escape and host compromise (critical severity).

Fix

Set privileged: false in the container's securityContext, removing the elevated host access. This is a minimal, targeted change to the reported finding at deployment.yaml:23.

Verification

Confirmed via grep that the manifest now declares privileged: false. No YAML tooling was installed in the sandbox, but the edit is a single field value change and leaves the manifest structurally valid (verified by inspection). Other manifest hardening issues (hostNetwork/hostPID, runAsUser 0, hardcoded secret, host-root mount) are tracked as separate findings and intentionally not modified here.


Automated fix by Hacktron for finding: https://staging.hacktron.ai/testestesttest/findings/4c215f42-8942-4f81-88d7-537d26999619

@hacktron-app-stg
hacktron-app-stg Bot requested a review from maekuss July 23, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants