learn-cyber · reference

Wazuh production architecture blueprint

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.

Use this The compressed companion to Lesson 12. Grounded in the official Wazuh components and securing-Wazuh docs. Assumes the native package install (Lesson 3).

1 · Component & daemon map

Component / daemonSideJob (hotel framing)
wazuh-logcollectoragentReads auth / PMS / POS logs and ships them.
wazuh-syscheckd (FIM)agentFile-tamper detection — swapped POS binary, edited PMS config.
SCA moduleagentCIS hardening score → PCI-DSS evidence per machine.
rootcheckagentRootkit / hidden-process detection.
wazuh-execdagentRuns the Active-Response action locally (e.g. firewall-drop).
wazuh-analysisdmanagerDecoders + rules → alerts with a level. The brain.
wazuh-remotedmanagerReceives agent events; pushes Active Response back down.
wazuh-authdmanagerAgent enrolment / key issuance.
wazuh-modulesdmanagerVulnerability Detection & other manager modules.
wazuh-dbmanagerAgent state & inventory store.
wazuh-apid (Wazuh API)managerREST API the dashboard & your automation call.
FilebeatmanagerShips alerts.json from manager → indexer.
Wazuh indexerstorageStores & searches alerts (wazuh-alerts-*), vuln state.
Wazuh dashboardscreenTriage UI + RBAC / tenant management.

2 · Ports to know (and firewall)

PortBetweenProduction rule
1514/tcpagent → manager (events)Reachable only from hotel agent networks.
1515/tcpagent → manager (enrolment)Password-protect (authd); restrict source.
514/udpfirewall/switch → manager (syslog)Only the agentless devices' subnet.
55000/tcpdashboard/automation → Wazuh APIRestrict to you & tooling, not public.
9200/tcpFilebeat/dashboard → indexerNever public. Localhost / internal only.
443/tcpbrowser → dashboardProper TLS; the only port analysts need.

3 · Data flow

Agent:1515 enroll → :1514 events
Manageranalysisd → alerts.json
Filebeat→ indexer :9200
Indexerwazuh-alerts-*
Dashboard:443 → triage

Response flows the other way: manager → execd on the agent over 1514.

4 · Key files

PathWhat
/var/ossec/etc/ossec.confMain config (agent & manager each have one).
/var/ossec/etc/rules/local_rules.xmlYour custom rules (IDs ≥ 100000).
/var/ossec/etc/decoders/local_decoder.xmlYour custom decoders.
/var/ossec/etc/shared/<group>/agent.confPer-hotel centralized config (auto-pushed).
/var/ossec/logs/alerts/alerts.jsonAlerts the dashboard reads (via Filebeat).
/var/ossec/logs/ossec.logDaemon health — first stop when something breaks.
/var/ossec/logs/active-responses.logWhat Active Response actually did.

5 · Go-live checklist

Identity & trust
Network
Data lifecycle
Operate

Sources

  1. Wazuh — Components · Daemons reference.
  2. Wazuh — Securing your installation (certs, passwords, network).
  3. Wazuh — Index management / retention (ISM).
  4. Wazuh — Enrollment with password.

Walkthrough: Lesson 12 — The whole system, in production · Config cheat-sheet · Glossary · Course home