Reverse engineer Docker images to Dockerfiles using Whaler
Whaler is a tool used for the reverse engineering of Docker images to reconstruct their original Dockerfile.
website·Indexed 30 days ago
https://cybersecref.meA repository of quick references, cheatsheets, and practical scripts for security, containers, and automation. It includes guides on tools like Semgrep, Nmap, Frida, MobSF, Trivy, and Dive, as well as security auditing for Kubernetes (Service Accounts, Pod Security) and Docker.
# .pre-commit-config.yaml
repos:
- repo: https://github.com/semgrep/semgrep
rev: v1.67.0
hooks:
- id: semgrep
args: ["--config=auto", "--error", "--severity=ERROR"]pip install pre-commit pre-commit install
pre-commit run semgrep --all-files
# Explore an existing image
dive nginx:latest
# Build and explore in one step
dive build -t myapp:latest .https://google.github.io/eng-practices/review/dive to explore and analyze the layers of a Docker image. This allows you to inspect the contents of each layer and understand how the image was built.