learn-cyber · reference
Every component, the port it speaks on, the hotel-security job it does, and the checklist to ship it. The one-page map for going live.
| Component / daemon | Side | Job (hotel framing) |
|---|---|---|
| wazuh-logcollector | agent | Reads auth / PMS / POS logs and ships them. |
| wazuh-syscheckd (FIM) | agent | File-tamper detection — swapped POS binary, edited PMS config. |
| SCA module | agent | CIS hardening score → PCI-DSS evidence per machine. |
| rootcheck | agent | Rootkit / hidden-process detection. |
| wazuh-execd | agent | Runs the Active-Response action locally (e.g. firewall-drop). |
| wazuh-analysisd | manager | Decoders + rules → alerts with a level. The brain. |
| wazuh-remoted | manager | Receives agent events; pushes Active Response back down. |
| wazuh-authd | manager | Agent enrolment / key issuance. |
| wazuh-modulesd | manager | Vulnerability Detection & other manager modules. |
| wazuh-db | manager | Agent state & inventory store. |
| wazuh-apid (Wazuh API) | manager | REST API the dashboard & your automation call. |
| Filebeat | manager | Ships alerts.json from manager → indexer. |
| Wazuh indexer | storage | Stores & searches alerts (wazuh-alerts-*), vuln state. |
| Wazuh dashboard | screen | Triage UI + RBAC / tenant management. |
| Port | Between | Production rule |
|---|---|---|
| 1514/tcp | agent → manager (events) | Reachable only from hotel agent networks. |
| 1515/tcp | agent → manager (enrolment) | Password-protect (authd); restrict source. |
| 514/udp | firewall/switch → manager (syslog) | Only the agentless devices' subnet. |
| 55000/tcp | dashboard/automation → Wazuh API | Restrict to you & tooling, not public. |
| 9200/tcp | Filebeat/dashboard → indexer | Never public. Localhost / internal only. |
| 443/tcp | browser → dashboard | Proper TLS; the only port analysts need. |
Response flows the other way: manager → execd on the
agent over 1514.
| Path | What |
|---|---|
| /var/ossec/etc/ossec.conf | Main config (agent & manager each have one). |
| /var/ossec/etc/rules/local_rules.xml | Your custom rules (IDs ≥ 100000). |
| /var/ossec/etc/decoders/local_decoder.xml | Your custom decoders. |
| /var/ossec/etc/shared/<group>/agent.conf | Per-hotel centralized config (auto-pushed). |
| /var/ossec/logs/alerts/alerts.json | Alerts the dashboard reads (via Filebeat). |
| /var/ossec/logs/ossec.log | Daemon health — first stop when something breaks. |
| /var/ossec/logs/active-responses.log | What Active Response actually did. |
1515.9200 firewalled to internal/localhost only.443 (dashboard); scope 55000, 1514/1515./var/ossec/etc + indexer snapshots.Sources
Walkthrough: Lesson 12 — The whole system, in production · Config cheat-sheet · Glossary · Course home