Skip to content

Detect insecure BuildKit RUN steps - #3991

Open
theinfosecguy wants to merge 1 commit into
semgrep:developfrom
theinfosecguy:dockerfile-run-security-insecure
Open

Detect insecure BuildKit RUN steps#3991
theinfosecguy wants to merge 1 commit into
semgrep:developfrom
theinfosecguy:dockerfile-run-security-insecure

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

RUN --security=insecure disables the normal BuildKit sandbox for a build step and is equivalent to privileged container execution. This flags the insecure entitlement while ignoring sandbox mode and command arguments that only contain the same text.

Tests:

  • semgrep test dockerfile/security
  • make SEMGREP=semgrep test

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.

1 participant