Course contents · Build the lab
- 1. Draw the evidence path before installing WazuhFree
- 2. Deploy the central stack inside a disposable boundaryFree
- 3. Enroll one Linux endpoint and prove its configurationFree account
- 4. Trace a known application record into the analysis pathPremium
- 5. Build a detection with positive and negative fixturesPremium
- 6. Detect a file change without collecting its secretsPremium
- 7. Distinguish failed configuration from missing assessment evidencePremium
- 8. Separate vulnerability state from alert historyPremium
- 9. Separate analyst access from management and export authorityPremium
- 10. Find the first failed boundary in a missing-alert incidentPremium
- 11. Preserve state and rehearse recovery before an upgradePremium
- 12. Hand over a Wazuh pilot another operator can verifyPremium
Deploy the central stack inside a disposable boundary
Pin the central components to a reviewed release, restrict published ports, replace the bundled credentials and verify each service before enrolling an endpoint. Preserve the configuration and persistent data needed to rebuild the lab.
30 MIN
By AISecurityInterviews · Updated
TL;DR: Pin the central components to a reviewed release, restrict published ports, replace the bundled credentials and verify each service before enrolling an endpoint. Preserve the configuration and persistent data needed to rebuild the lab.
Where you are. Step 2 of twelve: build the lab.
Reference and lab. Wazuh 4.14.10, checked 18 November 2026. Alder AI Services and all records are fictional. The product procedures are documentation-checked, not executed against a Wazuh deployment. Python exercises are executed offline and do not emulate Wazuh. Product work requires two disposable Linux VMs on an isolated network you own or are authorized to administer; do not use a production endpoint. This reference version is not a production upgrade recommendation.
Prepare a host that can actually run the stack
Use a dedicated Ubuntu 24.04 x86-64 training VM with Docker Engine, the Compose plugin and Git installed from their official distribution channels. The Wazuh Docker guide specifies at least four CPU cores, 8 GB RAM and 50 GB storage for its single-node stack. Treat those as prerequisites, not a capacity guarantee for a business workload. Check free space where Docker stores images and volumes, not merely in your home directory. This lab should never compete with production applications for that space.
Record docker version, docker compose version, docker info and df -h. Confirm the VM has no unrelated containers. Snapshot the clean VM while it is stopped. On this dedicated VM, set vm.max_map_count to the documented minimum of 262144 and make it persistent in a dedicated sysctl file. Do not reduce a higher existing setting or change a shared host just to satisfy a lab. Record the before value and verify again after a reboot.
Pin and inspect the deployment
The following commands are documentation-checked. Run them only inside the prepared central VM. The release notes date this reference to 5 November 2026. Record the Git commit and, after pulling, the resolved image digests; a version tag alone is not an immutable supply-chain record.
git clone --branch v4.14.10 --depth 1 \
https://github.com/wazuh/wazuh-docker.git alder-wazuh
cd alder-wazuh/single-node
git rev-parse HEAD
docker compose config --images
Expect manager, indexer and dashboard images tagged 4.14.10. Inspect the pinned Compose file before execution. Keep its license notice. Do not paste its default credentials into tickets or the course evidence packet. Restrict the working directory because deployment settings and generated private keys are secrets.
Edit the existing ports lists in that file, rather than adding a second override that may merge with the original mappings. For the manager, publish 10.77.40.10:1514:1514, 10.77.40.10:1515:1515 and 127.0.0.1:55000:55000. Remove the unused UDP 514 publication. For the indexer use 127.0.0.1:9200:9200; for the dashboard use 10.77.40.10:443:5601. Substitute the central VM's actual lab address. Keep container-to-container connections on their internal service names. Inspect the resolved configuration locally; it can contain secrets, so do not attach its full output to a support request.
- 1
1 · Isolated VM network
- No public inbound forwarding
- Only the enrolled endpoint and administrator
limits reachability to - 2
2 · Explicit host publications
- Agent channel and dashboard on lab IP
- Management APIs published only on loopback
preserves authenticated internal calls - 3
3 · Private component network
- Component names match TLS trust material
- Separate indexer and server API credentials
Create trust material and replace default credentials
Review config/certs.yml, then run the official certificate-generation command below. Ensure its host names match the component names in the pinned configuration. A browser reaching the dashboard by IP may not match the certificate's names. Use a lab DNS name covered by a certificate issued by your trusted lab CA when configuring browser access; inspect certificate identity instead of disabling verification across the lab.
docker compose -f generate-indexer-certs.yml run --rm generator
docker compose pull
Before permitting access from the agent or administrator network, follow the official Docker password procedure. Change the indexer admin and dashboard service credentials separately, updating the matching password references and hashes. Generate each hash with the reference image's interactive hash.sh, then edit the correct entry in config/wazuh_indexer/internal_users.yml. Preserve every required user when applying that security configuration. A bulk security reload with an incomplete users file can remove accounts.
Update the server API service password consistently in the manager/dashboard environment and config/wazuh_dashboard/wazuh.yml. These credentials belong to different authentication systems; changing one does not rotate the others. Use locally generated unique secrets and protect the Compose files. The documented procedure includes applying the indexer security configuration after initialization. Keep the network isolated during that step, verify the new credentials, and confirm that the old defaults no longer work before opening the approved lab paths. Do not reproduce a default password as a recommended training credential.
Check readiness at the right layer
docker compose up -d
docker compose ps
docker compose logs --tail=80 wazuh.indexer
docker compose logs --tail=80 wazuh.manager
docker compose logs --tail=80 wazuh.dashboard
Read logs locally and redact credentials before sharing. A container being running is weaker evidence than a ready application. Verify that the indexer accepts a certificate-validated authenticated health request, that the server API reports the expected version and that the dashboard reaches both. A yellow single-node index may have an unassigned replica; inspect shard allocation before calling it data loss. Red primary-shard health blocks acceptance.
Use the read-only checks from later lessons after enrollment to validate useful work. For now, confirm that the agent VM cannot reach the host's loopback-only API publications and that the administrator can reach only the intended dashboard address. A failed connection by itself cannot distinguish an access rule from a stopped service, so pair it with a successful local readiness check.
Stop without deleting the state
docker compose stop pauses this lab while retaining containers and volumes. docker compose down removes its containers and network but normally retains named volumes. Do not add -v: that would remove the very data needed for the recovery lesson. Preserve the Compose project identity, generated certificates and mounted configuration. Recreating an empty container is not the same as restoring the evidence store.
Do this before moving on
Compare the resolved Compose port mappings with the intended table. Then stop and start the lab without removing volumes. Record service readiness and which identities still authenticate.
Worked feedback: Reject an extra wildcard API publication even if the intended loopback mapping also exists. After restart, test the new credentials and component connectivity. Persistent volumes should preserve state; do not erase them to conceal an initialization problem.
Go deeper
- Container isolation explains what the container boundary does and does not contain.
- Network segmentation and egress supports the explicit source and destination admission decisions.
- Certificate validation explains why encryption without identity checking is insufficient.
Key takeaways
- Pin the deployment and retain resolved image identities.
- Restrict published ports before allowing lab access.
- Rotate each credential system and preserve recovery material.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Where must you check available storage before pulling the stack?
2Why is a second loopback mapping insufficient if the original wildcard publication remains?
Sign in to track which lessons you have finished.