Skip to content

Pin Docker base image versions to stable tags (Issue #20, Task #5)#68

Open
Divyateja2709 wants to merge 112 commits intoOWASP:masterfrom
Divyateja2709:solving-issue-20
Open

Pin Docker base image versions to stable tags (Issue #20, Task #5)#68
Divyateja2709 wants to merge 112 commits intoOWASP:masterfrom
Divyateja2709:solving-issue-20

Conversation

@Divyateja2709
Copy link
Copy Markdown

Hi @adrianwinckles and @dextermallo

This pull request addresses Task #5 from Issue #20 by pinning all Docker base image versions to specific stable tags. This change improves build reproducibility, enhances security posture, and prevents unexpected breaking changes from floating latest tags.

Changes Implemented
Total: 10 Dockerfiles Updated
Phase 1 - honeytraps/waf_modsec/ (6 files)
docker-compose.yml
Updated nginx base image from nginx:alpine to nginx:1.25-alpine
Dockerfile
Updated ModSecurity CRS base image from owasp/modsecurity-crs:apache to owasp/modsecurity-crs:4.0-apache

personas/wordpress/Dockerfile
Updated nginx base image from nginx:alpine to nginx:1.25-alpine
personas/drupal/Dockerfile
Updated nginx base image from nginx:alpine to nginx:1.25-alpine
personas/moodle/Dockerfile
Updated nginx base image from nginx:alpine to nginx:1.25-alpine
personas/cas/Dockerfile
Updated nginx base image from nginx:alpine to nginx:1.25-alpine
Phase 2 - Other Directories (4 files)
mds_elk/waf_elk/Dockerfile
Updated ELK stack base image from sebp/elk to sebp/elk:800
mds_elk/waf_modsec/Dockerfile
Updated ModSecurity CRS base image from owasp/modsecurity-crs to owasp/modsecurity-crs:3.3-apache
mlogc_elk/elk/Dockerfile
Updated ELK stack base image from sebp/elk to sebp/elk:800
mlogc_elk/mlogc/Dockerfile
Updated ModSecurity CRS base image from owasp/modsecurity-crs to owasp/modsecurity-crs:3.3-apache

Added optional CRS update logic and improved logging for background processes.
Added initial README.md for CRS Auto Update script with planned features and assumptions.
Removed comment about Sidekick code generation.
Added logging and process management for Apache and Filebeat.
Updated the script to enforce SHA256 checksum format and added timeout options for curl and wget commands.
Updated filebeat configuration path to absolute path.
Updated Dockerfile to include TARGETARCH argument and modified file paths.
Added headers to prevent HTTP_PROXY leakage and set authentication headers.
Add a test script to verify the existence of bundled CRS paths and includes in the Docker container.
This script tests the successful update of the CRS within a Docker container, ensuring that the configuration remains valid and usable after the update.
Refactor test script for CRS update to use unique identifiers and validate fixture installation.
This script tests the behavior of the CRS update when the updater is disabled, ensuring that the status reflects 'skipped' and that the bundled CRS files remain intact.
Add a test script to verify fallback behavior during CRS update download failure.
This script tests the fallback behavior of the CRS updater when the SHA256 checksum does not match the expected value. It verifies that the bundled CRS remains unchanged and that the correct status is recorded.
This script tests the behavior of the CRS update process when a lock is held by another instance. It verifies that the update is skipped and the bundled CRS remains intact.
- Add nginx-based Moodle 3.9.3 persona (login, admin, lib paths) for sector lure
- Wire persona-moodle into docker-compose and swap_persona rotation
- Extend Shodan context_key with cloud provider/region when present
- Add /readme.html (WordPress) and /CHANGELOG.txt (Drupal) version surfaces
- Add CI test for Moodle persona

Made-with: Cursor
- Introduced specific location blocks in nginx configurations to handle requests for version.php and drupal.js files, enhancing detection of CMS versions.
- Updated persona_manifest with new fingerprint summaries reflecting these changes.
- Enhanced test scripts to verify the presence of version information for each CMS.

This improves the accuracy of the honeypot's fingerprinting capabilities.
- Improved nginx configurations for handling version.php and drupal.js requests, refining CMS version detection.
- Updated persona_manifest with new fingerprint summaries to reflect recent changes.
- Enhanced test scripts to ensure accurate verification of version information across WordPress, Drupal, and Moodle.

These updates bolster the honeypot's fingerprinting accuracy.
@Divyateja2709 Divyateja2709 changed the title Solving issue 20 Pin Docker base image versions to stable tags (Issue #20, Task #5) Apr 8, 2026
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