Victim Container¶
The victim container serves as a target system for red team activities and security testing. It provides a Rocky Linux 9 environment with SSH access, Wazuh agent integration, and Falco runtime security monitoring.
Container Configuration¶
- Base Image: rockylinux:9
- User:
labadminwith sudo privileges (NOPASSWD) - SSH: Key-based authentication only (port 22, lab-internal; no host port is published; use
aptl container shell aptl-victimfrom the host) - IP Address: 172.20.2.20 (aptl-internal network)
See containers/victim/Dockerfile for complete build configuration.
Security Monitoring¶
Wazuh Agent + Falco Integration¶
The container runs dual security monitoring:
- Wazuh Agent: Connects to manager at 172.20.2.30:1514 (manager's internal network interface)
- Falco Runtime Security: Modern eBPF syscall monitoring
- rsyslog: Forwards system logs to 172.20.2.30:514
Installation Scripts: - install-all.sh - Main installer - install-wazuh.sh - Wazuh agent setup - install-falco.sh - Falco setup - ossec.conf.template - Wazuh config template
Monitored Data¶
Wazuh Agent:
- File integrity monitoring
- Authentication events via /var/log/secure (SSH, sudo)
- System logs and command history
Falco eBPF: - Syscall monitoring - Container escape attempts - Privilege escalation - Sensitive file access (/etc/shadow, SSH keys) - Suspicious process spawning
Falco events are written to /var/log/falco_events.json and forwarded to Wazuh by the agent.
Network Configuration¶
- Internal IP: 172.20.2.20 (static, aptl-internal network)
- SSH Port: 22 (host port 2022)
Access Methods¶
# SSH from host
ssh -i ~/.ssh/aptl_lab_key labadmin@localhost -p 2022
# Direct container access
docker exec -it aptl-victim /bin/bash
Service Status¶
# Check services
docker exec aptl-victim systemctl status sshd wazuh-agent falco
# Check agent connection
docker exec aptl-victim /var/ossec/bin/wazuh-control info
Troubleshooting¶
Service Issues:
# Check service status
docker exec aptl-victim systemctl status sshd wazuh-agent falco
# Check system logs
docker exec aptl-victim journalctl -xe
Wazuh Agent Issues:
# Check agent status
docker exec aptl-victim /var/ossec/bin/wazuh-control status
# Check agent logs
docker exec aptl-victim tail -f /var/ossec/logs/ossec.log
# Test connectivity
docker exec aptl-victim nc -zv 172.20.2.30 1514
Falco Issues: