{"id":37679854,"url":"https://github.com/kannkyo/buggy-docker","last_synced_at":"2026-01-16T12:22:51.307Z","repository":{"id":39925274,"uuid":"432379003","full_name":"kannkyo/buggy-docker","owner":"kannkyo","description":"脆弱な Dockerfile の例です。","archived":false,"fork":false,"pushed_at":"2025-12-06T06:39:18.000Z","size":54,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-10T00:15:42.077Z","etag":null,"topics":["buggy","docker","security"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kannkyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-27T05:43:01.000Z","updated_at":"2021-11-28T10:53:30.000Z","dependencies_parsed_at":"2024-03-16T19:11:44.600Z","dependency_job_id":"d76ea7fa-5b77-4d5c-88d6-6aa976644f1f","html_url":"https://github.com/kannkyo/buggy-docker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"boilerplate-language/boilerplate-docker","purl":"pkg:github/kannkyo/buggy-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kannkyo%2Fbuggy-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kannkyo%2Fbuggy-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kannkyo%2Fbuggy-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kannkyo%2Fbuggy-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kannkyo","download_url":"https://codeload.github.com/kannkyo/buggy-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kannkyo%2Fbuggy-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buggy","docker","security"],"created_at":"2026-01-16T12:22:51.219Z","updated_at":"2026-01-16T12:22:51.296Z","avatar_url":"https://github.com/kannkyo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buggy-docker\n\n脆弱な Dockerfile の例です。\n\n[![docker ci](https://github.com/kannkyo/buggy-docker/actions/workflows/docker-ci.yml/badge.svg)](https://github.com/kannkyo/buggy-docker/actions/workflows/docker-ci.yml)\n[![docker publish](https://github.com/kannkyo/buggy-docker/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/kannkyo/buggy-docker/actions/workflows/docker-publish.yml)\n\n## 埋め込まれている脆弱性\n\n### Dockerfile の脆弱性\n\n[CIS Docker Benchmarks](https://www.cisecurity.org/benchmark/docker/) で定義されている以下の脆弱性を埋め込んでいます。\n\n- CIS 4.1 Create a user for the container\n- CIS 4.2 Use trusted base images for containers (user provide trusted base image list)\n- CIS 4.3 Do not install unnecessary packages in the container (user provide the disallowed package list)\n- CIS 4.6 Add HEALTHCHECK instruction to the container image\n- CIS 4.7 Do not use update instructions alone in the Dockerfile\n- CIS 4.9 Use COPY instead of ADD in Dockerfile\n- CIS 4.10 Do not store secrets in Dockerfiles (user provide the secret pattern, only checks contents in `ENV` and `LABEL` instructions)\n\n### ベースイメージの脆弱性\n\n本ページ執筆時点(2021.11.27)で、ベースイメージの`httpd:2.4.51`には、curlとglibcに関する脆弱性が含まれています。\n\n```bash\n✗ High severity vulnerability found in curl/libcurl4\n  Description: Cleartext Transmission of Sensitive Information\n  Info: https://snyk.io/vuln/SNYK-DEBIAN11-CURL-1585138\n  Introduced through: curl/libcurl4@7.74.0-1.3+b1\n  From: curl/libcurl4@7.74.0-1.3+b1\n  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)\n\n✗ Critical severity vulnerability found in glibc/libc-bin\n  Description: Use After Free\n  Info: https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-1296898\n  Introduced through: glibc/libc-bin@2.31-13+deb11u2, meta-common-packages@meta\n  From: glibc/libc-bin@2.31-13+deb11u2\n  From: meta-common-packages@meta \u003e glibc/libc6@2.31-13+deb11u2\n  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)\n\n✗ Critical severity vulnerability found in curl/libcurl4\n  Description: Double Free\n  Info: https://snyk.io/vuln/SNYK-DEBIAN11-CURL-1585150\n  Introduced through: curl/libcurl4@7.74.0-1.3+b1\n  From: curl/libcurl4@7.74.0-1.3+b1\n  Image layer: Introduced by your base image (httpd:2.4.51-bullseye)\n```\n\n## 使用している脆弱性スキャナー\n\nGitHub Actioons で以下の脆弱性スキャナーを使って、脆弱性をチェックしています。\n\n- [sysdiglabs/benchmark-dockerfile](https://github.com/sysdiglabs/benchmark-dockerfile) @ [.github/workflows/docker-ci.yml](.github/workflows/docker-ci.yml)\n  - スキャン結果は [Actionsのログ](https://github.com/kannkyo/buggy-docker/actions/workflows/docker-ci.yml) に出力されます。\n- [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) @ [.github/workflows/docker-ci.yml](.github/workflows/docker-ci.yml)\n  - スキャン結果は [Code scanning alerts](https://github.com/kannkyo/buggy-docker/security/code-scanning) に出力されます。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkannkyo%2Fbuggy-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkannkyo%2Fbuggy-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkannkyo%2Fbuggy-docker/lists"}