Klepto is a powerful tool for scanning Docker images to detect secrets and vulnerabilities. It searches public Docker Hub repositories for images matching your criteria and analyzes them using advanced detectors like trufflehog and gitleaks.
- Search Docker Hub for images by keyword
- Extract and analyze images for secrets
- Supports multiple detectors for comprehensive scanning
- Customizable detection rules
Tested on:
- Debian Bookworm
- WSL Ubuntu 24.04.3 LTS
sudo apt install git curl jq docker.io python3 docker-registry docker-compose
git clone https://github.com/telekom-security/klepto.gitsudo ./search.sh SEARCHTERMEdit configuration:
script.sh→ Set your API keyparser.py→ Adjustdesired_detector_typeandundesired_terms
Steps:
- Search Docker Hub
- Pull Image
- Extract Layers
- Scan for Secrets
- Generate Report
- Add support for private registries
- Implement parallel scanning
- Enhance reporting with HTML output
Feel free to open issues or submit pull requests.
Thanks to Maximilian Gutowski and Jakub Sucharkiewicz
GPL 3.0

