Securing the Wazuh server API

The Wazuh server API on port 55000 controls agents, configuration and automation, so it needs deliberate hardening before the platform is trusted. This page explains which controls to plan, how to sequence them and what to confirm in your version.

On this page

Why securing the Wazuh server API is a day one task

The Wazuh server API on port 55000 is the management interface for the Wazuh server, so who can reach it, which credentials it accepts and which certificate it presents decide how safely the rest of the deployment can run. A team that has just installed Wazuh should treat the API as part of the initial build, not as a later tuning task, and should be able to answer one question before go-live: which hosts can open a connection to port 55000, and from where.

The Wazuh server analyzes the data agents send, applies decoders and rules to it, and manages agent configuration and upgrades remotely, according to the Wazuh components documentation. Those are privileged actions. Anyone who can authenticate to the API can influence how endpoints are monitored and what the server does with their data, which makes the management interface more sensitive than the agent traffic it oversees. The controls covered on this page, including a custom certificate, binding to specific interfaces, rate limits, login lockout, changing the wazuh and wazuh-wui users and restricting access, each need to be confirmed against the documentation for the exact 4.14 patch level you run. This page does not assume configuration keys or default values, and you should record the ones you verify in your own build notes.

The 4.14 release line receives patch releases roughly every one to two months, according to the Wazuh release notes, so hardening settings can change between versions. Treat the API checks as a step you repeat after every upgrade, not a one-time task. Before you start, read the Wazuh release notes for the version you are moving to and confirm that the API settings you changed still behave as expected.

Which API controls fit which exposure

This table compares the main controls for the Wazuh server API on port 55000, what each one protects against, when it fits and what it costs to run. Read each row against your own exposure: who reaches the API, from which networks, and which tools depend on it. The main takeaway is that most controls reduce risk but add operational work, so start with the ones that match your access pattern and confirm rate limit and lockout behavior for your installed version.

ControlWhat it protects againstWhen it fitsOperational cost
Own TLS certificate from your CAUntrusted or spoofed API endpoints and clients that cannot verify the server identityOrganizations whose clients and scripts already trust an internal CACertificate renewal planning, and updates to every client that pins or validates the certificate
Binding the API to specific interfacesReachability from networks that have no business calling the APIServers with a dedicated management interface or separate administrative networkIntegrations that reach the API from another network may stop working until they are re-pointed
Restricting source addresses at the host or network firewallUnauthorized connection attempts from hosts outside an approved listStable automation hosts, administrator workstations and a known monitoring systemFirewall rules must be maintained when hosts change addresses or new tools are added
Rate limitingBrute-force attempts and bursts of API requests that degrade the serverEnvironments exposing the API to several internal clients or automation jobsLegitimate scripts may hit limits; confirm the setting and its behavior in the documentation for your version
Login lockoutRepeated password guessing against API accountsAny deployment where API credentials may be reachable from a wider networkLocked accounts can block automation and need a documented unlock procedure for on-call staff
Changing the wazuh and wazuh-wui account passwords and their referencesUse of default or widely known credentialsEvery deployment, including test systems that later move into productionPasswords must be updated in every file, keystore and script that references them, or services can fail
Separate read-only or scoped API account for automationOver-privileged scripts and leaked credentials with broad rightsPipelines that only read agent status or alerts, and tools that do not need administrator rightsRole design and credential rotation work; each new automation needs its own account and review

Every API request crosses three trust boundaries before it reaches the server

The diagram starts with administrators, automation scripts and the Wazuh dashboard on the operator network. Their API calls pass through a firewall or load balancer into the server network segment, where host firewall rules and interface binding decide which sources can connect to the Wazuh server API. The TLS connection presents the server certificate, and the API then authenticates the caller before any request reaches the Wazuh server. Agents on the agent network reach the server through a separate path, and the Wazuh indexer stores the resulting alerts. When you review the setup, check each boundary separately: who can reach the port, which certificate the client verifies, and where credentials are checked.

Request path from operators and scripts to the Wazuh server API, with trust boundaries marked.

Hardening the API in a safe order

This sequence moves the Wazuh server API on port 55000 from its installed state to a locked-down state in an order that avoids breaking the dashboard and automation that depend on it. Each step ends with a check so the team knows the change held before moving on.

  1. Inventory every client using port 55000

    List every component and script that calls the API on port 55000, including the Wazuh dashboard, administrator scripts, CI or configuration jobs, SOAR connectors and monitoring probes. For each client, record its source address, the account it logs in with, and the owner who can change it. Compare the list against firewall logs or connection records for a representative period so that unlisted callers surface before you restrict access. The step is done when every caller has an owner and a planned change, and the team agrees the list is complete.

  2. Replace the wazuh and wazuh-wui passwords

    Change the passwords for the wazuh and wazuh-wui API accounts using the procedure in the Wazuh documentation for your installed version, and update every client that stores them. Record where each credential lives, such as the secrets store, the keystore or a restricted configuration file, and who can read it. Confirm that the dashboard and each scripted client authenticate with the new values and that the old values are rejected. The step is done when a login with the old password fails and every known client succeeds with the new one.

  3. Install the API certificate from your CA

    Issue a certificate for the API from your organization's certificate authority, following the Wazuh documentation for certificate replacement in your version, and install the certificate and key where the server expects them. Make sure every client that connects to the API trusts your CA root, so validation does not depend on skipping checks. Restart the affected service only in the window your change process allows. The step is done when each client connects over a verified TLS session and no client relies on disabled certificate verification.

  4. Bind the API to the required interfaces

    Confirm from the documentation which interfaces the dashboard, the server cluster members and automation need to reach the API, then configure the API to listen only on those addresses. Avoid leaving a wildcard listener on hosts that have public or untrusted interfaces. Verify the listening sockets on the server after the change. The step is done when the socket table shows port 55000 bound only to the intended addresses and the dashboard still reaches the API.

  5. Restrict reachability with firewall rules

    Create host and network firewall rules that allow port 55000 only from the administrator and automation subnets identified in step one, and deny it from everywhere else. Keep the dashboard path and any cluster traffic working by allowing those sources explicitly. Document each rule with its owner and purpose so later changes can be reviewed. The step is done when the rules are in place and the next checks confirm the expected sources can still reach the API.

  6. Configure rate limits and lockout only if documented

    Check the Wazuh documentation for your installed version to see whether rate limiting and login lockout are supported and how they are configured. Enable them only where the documentation describes the setting, and do not rely on unsupported options. Test lockout first with a non-production account, confirming the threshold, the lockout duration and that a legitimate client is not affected. The step is done when the test account locks and unlocks as configured and the production accounts and clients behave normally.

  7. Retest from allowed and disallowed sources

    Connect to the API from one permitted source and one source outside the allowed subnets, using the same TLS validation your clients use. The permitted connection should authenticate, and the disallowed one should fail at the firewall or listener. Then check the API and server logs to confirm that failed attempts, including the disallowed source and any rejected logins, are recorded and forwarded to your monitoring. The step is done when both tests produce the expected results and the failed attempts appear in logs you can search.

Security risks to control around the API

The Wazuh server API on port 55000 controls agents, configuration and user access, so a weakness there reaches the whole deployment. The six risks below recur in most Wazuh installations, and each one has a control and a check you can repeat on a schedule. Confirm every setting against Wazuh's guidance for your release, because defaults and file locations change between patch releases.

Default credentials left in place

Installers and images ship with the API user wazuh and the wazuh-wui account set to values that are documented publicly, so any installation that keeps them can be logged into by anyone who knows the defaults. Replace both passwords as part of the first build, record the new values in your secrets store, and confirm that the old values no longer authenticate. Repeat this check after any restore or reinstall, since a restored configuration can bring the defaults back.

API reachable from untrusted networks

Port 55000 should accept connections only from the administrative hosts and automation runners that need it, not from user workstations, agent subnets or the internet. Bind the API to a management interface where the bind option is supported, and enforce the same boundary with host firewall rules and your network controls. Review the list of allowed sources on a fixed schedule and compare it with your current administrator roster, because allowed sources tend to grow and rarely shrink.

Certificate warnings taught as normal

When the API presents a self-signed certificate, administrators and scripts learn to skip verification, which removes the protection that TLS is meant to provide. Issue the API certificate from your own certificate authority, distribute the root to the tools that call the API, and remove flags that disable verification from scripts and runbooks. Check the certificate chain and expiry date as part of routine monitoring, so renewal does not surprise the team.

Automation scripts holding broad credentials

Scripts that call the API for agent queries, reporting or configuration often store an administrator password in a plain text file or a shell variable, and that credential then has more rights than the task needs. Create a dedicated API user with the narrowest role that covers each script, store its password in a restricted secrets store, and rotate it on a schedule. Review which accounts have which roles, and remove any service account that no current job uses.

Lockout and rate limits blocking monitoring

Login lockout and rate limit settings protect the API from password guessing, but a limit set too low can stop legitimate polling jobs and dashboards that authenticate often. Tune the thresholds against the call volume your automation produces, then test a deliberate failed login sequence to confirm that lockout triggers as intended. Record the chosen values and their reason, so a future engineer does not raise or remove them to fix an unrelated outage.

Upgrades quietly resetting hardening

Upgrades and package updates can rewrite configuration files, restore default users or reopen bindings that you changed by hand, so a hardened API can return to its original exposure without any alert. After every upgrade, rerun the checks for bindings, certificates, default credentials and allowed sources before you return the system to service. Read Wazuh's release notes and upgrade guidance for each release you move to, because the required steps are documented per version.

Wazuh release notes

How API hardening changes across deployment models

In an all-in-one installation, the Wazuh indexer, Wazuh server, Wazuh dashboard and API all run on one host. The API on port 55000 is local to that machine, and the dashboard calls it from the same place, so the main hardening question is which network interfaces the API listens on and who can reach them. Certificate, credential and access changes apply to a single set of files, which makes this the simplest layout to verify, but also the easiest to leave half-finished.

  • Interface binding: Confirm the API listens only on the address the dashboard or your approved administrators need, not on every interface.
  • Certificate replacement: Replace the self-signed API certificate with one from your own CA, then restart the affected services and test the dashboard connection.
  • Default account changes: Change the wazuh and wazuh-wui API users so the defaults cannot be used.
  • Host firewall: Restrict inbound access to port 55000 to approved administrator and automation hosts.
  • Login protection: Confirm the rate limit and login lockout settings you chose are active after a restart.

On this layout, check every item on the single host, then confirm that a request from an unapproved network is refused.

Changing the wazuh and wazuh-wui users without breaking the dashboard

Changing the wazuh and wazuh-wui API accounts is risky because the dashboard, scripts, automation jobs and third-party integrations may each hold one of these credentials, and a change to one account can silently stop a client that nobody remembered to update. Before touching either account, build an inventory of every consumer: the dashboard's server-side configuration, any cron jobs or CI pipelines that call the API, SIEM connectors, SOAR playbooks and monitoring probes. For each one, record which account it uses, where the secret is stored, who owns it and how it is restarted. This inventory is the basis for sequencing the change, and it should be reviewed by the teams that own each consumer, not only by the platform team.

Schedule the change in a maintenance window agreed with the owners of those consumers, and store the new secret in your organization's secrets manager before the window opens so that every update pulls from one controlled source. Test each client against a staging copy of the deployment where possible, including the dashboard login and any API call that runs on a schedule, because some failures only appear at the next scheduled run. Confirm during planning that your Wazuh version supports the change path you intend, and check the current Wazuh documentation for any version-specific steps. Keep the procedure for changing the passwords themselves on the separate page about changing Wazuh default passwords, and decide in the RBAC design whether scripts should use separate automation accounts with narrower access instead of the shared wazuh-wui account.

Write a rollback path before the change starts: retain the previous secret until every client has been verified, record the exact order in which the consumers were restarted, and name the person who can reverse each step. Verify after the window by running each consumer's normal workflow and checking the API and dashboard logs for authentication failures, then keep the old credential disabled rather than deleted for a period your change board agrees. Ask your implementation partner or internal team to produce this runbook as a deliverable, since an undocumented rollback is the most common reason a credential change turns into a longer outage.

What to confirm in your environment before changing the API

The API on port 55000 is controlled by configuration that differs across installation methods, patch releases and integrations. The cards below list what to verify in your own environment and in a test copy before any change reaches production.

Exact keys and file paths

Confirm the configuration keys and file paths for the API in the Wazuh documentation for the exact 4.14 patch release you run. Settings for certificates, listening interfaces and authentication are the ones most likely to differ between versions. Compare the live file on your server with the documented version before editing it, and record the original values so you can roll back.

Release notes

Rate limiting and lockout behavior

Confirm whether your patch release provides API rate limiting and login lockout, and how each one counts attempts, resets and reports blocked requests. Test with a single account and a known client so you know whether a lockout could also stop your own automation. Do not assume either control exists until you have seen it work in a test environment.

Certificate trust across components

Changing the API certificate can affect more than the API. Check how the indexer, the dashboard and any agent or script that verifies the server trust the new certificate and its CA. Map every consumer of port 55000 and confirm each one accepts the change before you replace the certificate.

Integrations and source addresses

List every monitoring, SOAR or SIEM integration that calls the API, along with the addresses it connects from and the account it uses. Restricting access by address or interface can silently break a poll or a playbook. Confirm each integration against your allow list in a test environment first.

Installation method effects

Confirm whether your installation method changes where API settings live. Offline installs, Ansible and Puppet deployments, and Kubernetes manifests can each generate or overwrite configuration. Find the source of truth for your setup, such as a playbook variable or a manifest value, so a later run does not revert your hardening.

Custom settings during upgrades

Confirm how upgrades to later 4.14 patch releases treat custom API settings, certificates and credentials. Check the upgrade notes for each patch and rerun your hardening checks after every upgrade. Keep the changes in version control so they can be reapplied and reviewed.

Questions teams ask about securing the Wazuh API

What work is involved in hardening the Wazuh API, and what drives the effort?

Hardening the API on port 55000 covers replacing its certificate, binding the service to specific interfaces, setting rate limits and login lockout, changing the default wazuh and wazuh-wui users, and restricting which sources can reach it. The effort depends on how many API clients exist, how many server nodes run in the deployment, how many integrations call the API, and whether changes must pass formal change control. Each client that authenticates against the API needs a tested path after the change, so a long list of scripts, SOAR playbooks or dashboards adds verification work. A single server with a short client list is a far smaller job than a cluster with many automated consumers.

Can our own team secure the Wazuh API without a partner?

Yes, for a small, single-node deployment where the team can follow the documented steps and test each change in a non-production copy. The work is mostly configuration, certificate handling and firewall changes, which experienced Linux and security operations staff can carry out. Cluster deployments, environments with several integrations, and regulated organizations add work that is easy to underestimate: regression testing of every client, change records, evidence that each control works, and rollback plans. Teams that lack spare capacity for those tasks often bring in an outside implementation partner for the testing and documentation, while keeping ownership of the production system.

How long does API hardening take?

No duration is given here because it depends on the scope of each environment. Ask for an estimate that is tied to a written scope, and check that the estimate lists the factors that move it. These include the number of Wazuh server nodes, the number of API clients and integrations, whether certificates come from an internal certificate authority that the team must coordinate with, how many firewall change requests must be approved, whether a test environment exists, and how many review cycles the change control process requires. Ask the provider to state which of these factors it has assumed.

What do we need to provide before API hardening starts?

Before work begins, the customer should prepare several inputs. An inventory of every system that calls the API, including scripts, automation tools, integrations and monitoring checks, lets the team test each one. Access to the certificate authority, or a decision on which CA issues the new certificate, is needed to avoid delays. Firewall change approvals must be scheduled for the source networks that will remain allowed. A test environment that mirrors the production layout is important for validating lockout and rate limit settings. Finally, name an owner for each credential, including who holds the new passwords for the wazuh and wazuh-wui accounts and where they are stored.

What recurring work follows after the API is hardened?

Several tasks recur after the initial change. Certificates expire and need renewal before they lapse, so the renewal date and the procedure should be recorded and tested. Credentials for API users should be rotated on a schedule your policy sets, and the storage location of those secrets must be checked each time. Allowed source addresses should be reviewed after each Wazuh upgrade, because the documented release cadence on the 4.14 line includes frequent patch releases and any upgrade can change how services are configured. Lockout and rate limit settings should also be reviewed when the number of integrations changes. Plan these as operational tasks with named owners rather than one-time project work.

Does a fixed-scope DeployOpen engagement include verification of the hardened API?

DeployOpen works mostly on fixed-scope engagements, so scope, deliverables and timelines are agreed in writing before work starts. Whether verification is included depends on what the written scope says. Ask for the scope to name the checks that will be performed, such as confirming the certificate chain, testing that the API accepts only the intended sources, verifying lockout and rate limit behavior, and confirming that each known integration still authenticates. DeployOpen also runs security testing of applications, APIs and infrastructure, so a separate retest or penetration test of the API can be scoped as its own piece of work. Ask for the evidence that will be handed over at the end, and confirm it matches what your auditors or security reviewers expect.

How DeployOpen scopes and delivers API hardening for Wazuh

DeployOpen treats the Wazuh server API on port 55000 as a scoped piece of work inside your own infrastructure. We agree the exposure, certificate, access and account changes in writing, apply them in a controlled order, test them, and hand over documentation your team can operate.

How we scope

  • We map who and what currently reaches port 55000, including dashboard, automation and agent-related traffic
  • We agree in writing which interfaces, certificate, lockout and rate-limit settings are in scope
  • We confirm the Wazuh version in use so changes match the release you actually run
  • We record the account changes for the wazuh and wazuh-wui users and who approves them

How we build

  • We apply the API certificate from your own CA or the one you specify, with renewal steps documented
  • We bind the API to the interfaces you choose and restrict reachability with firewall rules
  • We configure rate limits and login lockout, then confirm the values with your operations team
  • We stage changes in a non-production environment first where your setup allows it

How we hand over

  • We test each control: failed logins, blocked sources, certificate validation and dashboard connectivity
  • We deliver a written configuration record, a rollback procedure and a list of open items
  • We walk your engineers through the settings so they can audit and change them later
  • We document which checks to repeat after each Wazuh patch release

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers
  • A retainer can cover re-checking API exposure after Wazuh upgrades and certificate renewals
  • Engagements are fixed-scope, so changes beyond the agreed API work are quoted separately
  • Ask for a written quote that lists every component, check and deliverable before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.