[ { "id": "sbd-0085", "split": "validation", "title": "Alpine build misses native packages for openssl", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "openssl" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir openssl", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "openssl-sys" ], "build": { "command": "docker build -t sabnock/sbd-0085 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0085 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache pkgconfig openssl-dev musl-dev", " RUN pip install --no-cache-dir openssl", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache pkgconfig openssl-dev musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0086", "split": "validation", "title": "Alpine build misses native packages for psycopg2", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "psycopg2" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir psycopg2", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "pg_config executable not found" ], "build": { "command": "docker build -t sabnock/sbd-0086 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0086 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache postgresql-dev gcc musl-dev", " RUN pip install --no-cache-dir psycopg2", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache postgresql-dev gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0087", "split": "validation", "title": "Alpine build misses native packages for pillow", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "pillow" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir pillow", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "The headers or library files could not be found for jpeg" ], "build": { "command": "docker build -t sabnock/sbd-0087 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0087 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache jpeg-dev zlib-dev gcc musl-dev", " RUN pip install --no-cache-dir pillow", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache jpeg-dev zlib-dev gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0088", "split": "validation", "title": "Alpine build misses native packages for lxml", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "lxml" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir lxml", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "Please make sure the libxml2 and libxslt development packages are installed" ], "build": { "command": "docker build -t sabnock/sbd-0088 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0088 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache libxml2-dev libxslt-dev gcc musl-dev", " RUN pip install --no-cache-dir lxml", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache libxml2-dev libxslt-dev gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0089", "split": "validation", "title": "Alpine build misses native packages for cryptography", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "cryptography" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir cryptography", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "error: can't find Rust compiler" ], "build": { "command": "docker build -t sabnock/sbd-0089 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0089 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache openssl-dev cargo gcc musl-dev", " RUN pip install --no-cache-dir cryptography", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache openssl-dev cargo gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0090", "split": "validation", "title": "Alpine build misses native packages for mysqlclient", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "mysqlclient" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir mysqlclient", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "mysql_config not found" ], "build": { "command": "docker build -t sabnock/sbd-0090 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0090 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache mariadb-dev gcc musl-dev", " RUN pip install --no-cache-dir mysqlclient", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache mariadb-dev gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0091", "split": "validation", "title": "Alpine build misses native packages for cffi", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "cffi" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir cffi", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "ffi.h: No such file or directory" ], "build": { "command": "docker build -t sabnock/sbd-0091 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0091 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache libffi-dev gcc musl-dev", " RUN pip install --no-cache-dir cffi", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache libffi-dev gcc musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0092", "split": "validation", "title": "Alpine build misses native packages for numpy", "summary": "The package requires system headers or compilers that are absent from the Alpine image.", "failure_type": "native_dependency_missing", "ecosystem": "python", "difficulty": "medium", "tags": [ "dockerfile", "alpine", "native-deps", "numpy" ], "files": [ { "path": "Dockerfile", "content": [ "FROM python:3.12-alpine", "WORKDIR /app", "RUN pip install --no-cache-dir numpy", "CMD [\"python\", \"-c\", \"print('ok')\"]" ] } ], "failure_log": [ "Failed building wheel" ], "build": { "command": "docker build -t sabnock/sbd-0092 ." }, "verify": { "commands": [ "docker build -t sabnock/sbd-0092 ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,4 +1,5 @@", " FROM python:3.12-alpine", " WORKDIR /app", "+RUN apk add --no-cache gfortran openblas-dev musl-dev", " RUN pip install --no-cache-dir numpy", " CMD [\"python\", \"-c\", \"print('ok')\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "apk add --no-cache gfortran openblas-dev musl-dev" } ], "must_not_contain": [] } }, { "id": "sbd-0093", "split": "validation", "title": "Dockerfile leaks NPM_TOKEN through ARG", "summary": "The Dockerfile passes a secret through ARG and writes it into a layer instead of using a BuildKit secret mount.", "failure_type": "build_secret_leak", "ecosystem": "security", "difficulty": "hard", "tags": [ "dockerfile", "buildkit", "secrets", "security" ], "files": [ { "path": "Dockerfile", "content": [ "FROM alpine:3.20", "WORKDIR /app", "ARG NPM_TOKEN", "RUN echo \"token=${NPM_TOKEN}\" > .credentials", "RUN wget -q https://registry.npmjs.org -O /dev/null || true", "CMD [\"true\"]" ] } ], "failure_log": [ "security-scan: SecretsUsedInArgOrEnv", "security-scan: secret may persist in image layer history" ], "build": { "command": "DOCKER_BUILDKIT=1 docker build --secret id=npm_token,src=.npm_token -t sabnock/sbd-0093 ." }, "verify": { "commands": [ "docker buildx build --check ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,6 +1,5 @@", "+# syntax=docker/dockerfile:1.7", " FROM alpine:3.20", " WORKDIR /app", "-ARG NPM_TOKEN", "-RUN echo \"token=${NPM_TOKEN}\" > .credentials", "-RUN wget -q https://registry.npmjs.org -O /dev/null || true", "+RUN --mount=type=secret,id=npm_token sh -c 'test -s /run/secrets/npm_token && wget -q https://registry.npmjs.org -O /dev/null || true'", " CMD [\"true\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "# syntax=docker/dockerfile:1.7" }, { "path": "Dockerfile", "text": "--mount=type=secret,id=npm_token" } ], "must_not_contain": [ { "path": "Dockerfile", "text": "ARG NPM_TOKEN" }, { "path": "Dockerfile", "text": "${NPM_TOKEN}" } ] } }, { "id": "sbd-0094", "split": "validation", "title": "Dockerfile leaks PYPI_TOKEN through ARG", "summary": "The Dockerfile passes a secret through ARG and writes it into a layer instead of using a BuildKit secret mount.", "failure_type": "build_secret_leak", "ecosystem": "security", "difficulty": "hard", "tags": [ "dockerfile", "buildkit", "secrets", "security" ], "files": [ { "path": "Dockerfile", "content": [ "FROM alpine:3.20", "WORKDIR /app", "ARG PYPI_TOKEN", "RUN echo \"token=${PYPI_TOKEN}\" > .credentials", "RUN wget -q https://pypi.org -O /dev/null || true", "CMD [\"true\"]" ] } ], "failure_log": [ "security-scan: SecretsUsedInArgOrEnv", "security-scan: secret may persist in image layer history" ], "build": { "command": "DOCKER_BUILDKIT=1 docker build --secret id=pypi_token,src=.pypi_token -t sabnock/sbd-0094 ." }, "verify": { "commands": [ "docker buildx build --check ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,6 +1,5 @@", "+# syntax=docker/dockerfile:1.7", " FROM alpine:3.20", " WORKDIR /app", "-ARG PYPI_TOKEN", "-RUN echo \"token=${PYPI_TOKEN}\" > .credentials", "-RUN wget -q https://pypi.org -O /dev/null || true", "+RUN --mount=type=secret,id=pypi_token sh -c 'test -s /run/secrets/pypi_token && wget -q https://pypi.org -O /dev/null || true'", " CMD [\"true\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "# syntax=docker/dockerfile:1.7" }, { "path": "Dockerfile", "text": "--mount=type=secret,id=pypi_token" } ], "must_not_contain": [ { "path": "Dockerfile", "text": "ARG PYPI_TOKEN" }, { "path": "Dockerfile", "text": "${PYPI_TOKEN}" } ] } }, { "id": "sbd-0095", "split": "validation", "title": "Dockerfile leaks GITHUB_TOKEN through ARG", "summary": "The Dockerfile passes a secret through ARG and writes it into a layer instead of using a BuildKit secret mount.", "failure_type": "build_secret_leak", "ecosystem": "security", "difficulty": "hard", "tags": [ "dockerfile", "buildkit", "secrets", "security" ], "files": [ { "path": "Dockerfile", "content": [ "FROM alpine:3.20", "WORKDIR /app", "ARG GITHUB_TOKEN", "RUN echo \"token=${GITHUB_TOKEN}\" > .credentials", "RUN wget -q https://github.com -O /dev/null || true", "CMD [\"true\"]" ] } ], "failure_log": [ "security-scan: SecretsUsedInArgOrEnv", "security-scan: secret may persist in image layer history" ], "build": { "command": "DOCKER_BUILDKIT=1 docker build --secret id=github_token,src=.github_token -t sabnock/sbd-0095 ." }, "verify": { "commands": [ "docker buildx build --check ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,6 +1,5 @@", "+# syntax=docker/dockerfile:1.7", " FROM alpine:3.20", " WORKDIR /app", "-ARG GITHUB_TOKEN", "-RUN echo \"token=${GITHUB_TOKEN}\" > .credentials", "-RUN wget -q https://github.com -O /dev/null || true", "+RUN --mount=type=secret,id=github_token sh -c 'test -s /run/secrets/github_token && wget -q https://github.com -O /dev/null || true'", " CMD [\"true\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "# syntax=docker/dockerfile:1.7" }, { "path": "Dockerfile", "text": "--mount=type=secret,id=github_token" } ], "must_not_contain": [ { "path": "Dockerfile", "text": "ARG GITHUB_TOKEN" }, { "path": "Dockerfile", "text": "${GITHUB_TOKEN}" } ] } }, { "id": "sbd-0096", "split": "validation", "title": "Dockerfile leaks GEM_TOKEN through ARG", "summary": "The Dockerfile passes a secret through ARG and writes it into a layer instead of using a BuildKit secret mount.", "failure_type": "build_secret_leak", "ecosystem": "security", "difficulty": "hard", "tags": [ "dockerfile", "buildkit", "secrets", "security" ], "files": [ { "path": "Dockerfile", "content": [ "FROM alpine:3.20", "WORKDIR /app", "ARG GEM_TOKEN", "RUN echo \"token=${GEM_TOKEN}\" > .credentials", "RUN wget -q https://rubygems.org -O /dev/null || true", "CMD [\"true\"]" ] } ], "failure_log": [ "security-scan: SecretsUsedInArgOrEnv", "security-scan: secret may persist in image layer history" ], "build": { "command": "DOCKER_BUILDKIT=1 docker build --secret id=gem_token,src=.gem_token -t sabnock/sbd-0096 ." }, "verify": { "commands": [ "docker buildx build --check ." ] }, "oracle_patch": [ "--- a/Dockerfile", "+++ b/Dockerfile", "@@ -1,6 +1,5 @@", "+# syntax=docker/dockerfile:1.7", " FROM alpine:3.20", " WORKDIR /app", "-ARG GEM_TOKEN", "-RUN echo \"token=${GEM_TOKEN}\" > .credentials", "-RUN wget -q https://rubygems.org -O /dev/null || true", "+RUN --mount=type=secret,id=gem_token sh -c 'test -s /run/secrets/gem_token && wget -q https://rubygems.org -O /dev/null || true'", " CMD [\"true\"]" ], "scoring": { "must_touch": [ "Dockerfile" ], "must_contain": [ { "path": "Dockerfile", "text": "# syntax=docker/dockerfile:1.7" }, { "path": "Dockerfile", "text": "--mount=type=secret,id=gem_token" } ], "must_not_contain": [ { "path": "Dockerfile", "text": "ARG GEM_TOKEN" }, { "path": "Dockerfile", "text": "${GEM_TOKEN}" } ] } } ]