Changing Wazuh default passwords

Replacing the installer-generated credentials for the Wazuh indexer, API and dashboard, with the steps that differ between all-in-one and distributed installs and the keystore and wazuh.yml updates that are easy to miss.

On this page

Why changing Wazuh default passwords comes before go-live

A fresh Wazuh stack is not ready for users, agents or integrations until the credentials created by the installer or image have been replaced. Three places hold credentials that matter: the Wazuh indexer, which stores alerts, the Wazuh server API, which agents, the dashboard and automation all call, and the Wazuh dashboard itself, which analysts use to search and triage. Each one has its own account set, so changing a password in one place does not secure the others. Treat this task as a hardening step that belongs in the go-live checklist, not as an optional extra for later.

Teams need this task in three situations: after a first install from the all-in-one assistant, after a deployment built from a prebuilt image or Docker setup, and before any service account, SIEM forwarder or dashboard user is handed a login. The longer the default credentials remain valid on a reachable network segment, the more exposure the stack carries, and the harder it becomes to tell later which connections were made with the original values. Confirm with your own deployment record which accounts the installer created and which network paths reach each component before you schedule the change.

The self-hosted Wazuh software is open source and carries no license fee, so the cost of this work is labor: your own engineers, or a partner working from a written scope. Ask for the password change to be listed as a named deliverable with a verification step, so the outcome can be checked rather than assumed. Plan an owner for where the new credentials are stored and who may read them, because a password change that leaves the values in an installer log or a shared document creates a new exposure.

How the steps differ between all-in-one and distributed installs

An all-in-one deployment runs the Wazuh indexer, Wazuh server and Wazuh dashboard on one host, so the password change is made in one place, but it still touches three components that each hold credentials. You run wazuh-passwords-tool on that host, which regenerates the credentials for the indexer, API and dashboard users and writes them into the places each component reads from. Because every component lives on the same machine, the order is set by the components' dependencies rather than by host placement, and you restart or reload each affected service before testing logins.

  • Run the tool locally: Execute wazuh-passwords-tool on the single host with the privileges and flags the documentation gives for your release.
  • Update every component on that host: Confirm the indexer, server API and dashboard all pick up the new values, including any keystore entries.
  • Check the configuration files: Review the wazuh.yml and dashboard settings the tool writes, because manual edits left behind are a common cause of failed logins.
  • Restart in dependency order: Restart the indexer first, then the server and dashboard, and verify each service is healthy before the next.
  • Record the new credentials: Store the new values in your secrets manager before the old ones are removed from any backup or script.

Confirm exact commands, flags and restart sequence against the Wazuh documentation for your installed release before you start.

Which credential changes apply to which component

This table compares each Wazuh credential holder, where its secret lives, what it touches and when to change it. Read each row as a checklist: confirm the storage location and update steps in the current Wazuh documentation for your deployment type before editing anything. The main takeaway is that indexer, server API and dashboard credentials live in different places, so changing one does not update the others.

Credential holderWhere it is storedWhen it fits
Indexer admin accountWazuh indexer internal user store, with the password also referenced by the server and dashboard configuration (confirm exact files in the vendor docs)Initial hardening after install, and after any staff change that knew the installer password
Indexer internal service accountsIndexer security configuration and the Wazuh keystore entries used by the server and dashboard (confirm keystore key names in the vendor docs)Initial hardening, and whenever the tool reports these accounts were regenerated
Wazuh server API user (wazuh)Wazuh API user database, with the secret referenced from the dashboard connection settings (confirm file paths and API steps in the vendor docs)Initial hardening, then rotation on a schedule your policy sets
Wazuh server API user (wazuh-wui)Wazuh API user database, used by the dashboard to query the API (confirm whether it is managed by the same tool run)Initial hardening, and after changing the dashboard connection to the API
Dashboard service account (kibanaserver)Dashboard keystore and dashboard configuration file for the indexer connection (confirm in the vendor docs)Initial hardening, and after rebuilding or moving the dashboard host
Agent enrollment passwordServer-side enrollment password file, separate from the accounts above (see the enrollment password topic)Handled as its own control, not by the default password change
Integration or API client accountsWherever your SIEM, SOAR or script stores them, plus any Wazuh API or indexer user you createdRotate when the owning team or tool changes, and confirm which Wazuh file each one touches

Sequence for replacing the default credentials safely

This sequence replaces the installer and image default passwords for the Wazuh indexer, server API and dashboard in a controlled order, so each change is confirmed before the next one depends on it. The result is a deployment where no default credential works and every component still authenticates correctly.

  1. Inventory every install and account

    The engineer responsible for the deployment lists each node in the Wazuh indexer, server, dashboard and any integration host, along with the accounts that use default or image-supplied credentials. Include the API users, the indexer internal users, and any service account used by scripts, collectors or dashboards that call the API. Confirm the inventory against the actual hosts rather than the original install notes, because a cluster or a second dashboard often exists that the notes do not mention. The step is done when every node and account is on one written list with an owner.

  2. Back up configuration and certificates

    Before any password changes, copy the configuration directories, the indexer keystore, the wazuh.yml file and the certificate files from each node to a location the change team controls, and record the checksums. Store the backup with restricted permissions because it contains secrets. Confirm that the backup can be read back and that the current services still log in, so you have a known-good state to return to. The step is done when each node has a verified copy and a named person has confirmed where it is kept.

  3. Generate new passwords with the tool

    Run the wazuh-passwords-tool on the node that the documentation designates for password generation, and generate new values for the indexer, API and dashboard accounts in the same run so they are recorded together. Save the output in your secrets manager instead of a shared document, and remove any terminal or log copy from the host. Confirm that the new values differ from the defaults and that each account has its own value. The step is done when the new credentials are stored and the tool output has been removed from the host.

  4. Update the indexer keystore on every node

    Write the new indexer credentials into the Wazuh indexer keystore on each indexer node, not only the node where the tool ran, because a node that keeps an old entry will fail to rejoin the cluster after a restart. Make the change one node at a time and check that each node accepts the new value before moving to the next. Confirm the change by listing the keystore keys on each node and checking that the cluster reports the expected number of nodes as healthy. The step is done when every indexer node reports the new credentials and the cluster health check passes.

  5. Update wazuh.yml on the server and dashboard

    Edit the wazuh.yml file on the Wazuh server and on the dashboard host, replacing the old values for the API user and password and any indexer credentials the dashboard uses. Check that no other file on those hosts still carries the old password, because the dashboard and the server each read this file and a missed entry causes a login failure that looks unrelated. Restart the services only after the file has been validated. The step is done when both files hold the new values and no default password remains in the configuration directories.

  6. Restart services and update dependent configs

    Restart the indexer nodes, the Wazuh server and the dashboard in the order your deployment documentation specifies, and confirm each service returns to a running state before restarting the next. Then find and update anything that stored the old secret outside these files, such as custom scripts, API automation, saved integrations, SIEM forwarders or monitoring probes that call the API. Confirm that each dependent system authenticates with the new value, because these are the items most often missed. The step is done when every service is running and every known consumer has been tested against the new credentials.

  7. Verify logins for each component

    Test each component separately: sign in to the dashboard with each account that should have access, request an authenticated API response with the new API credentials, and query the indexer for cluster health using the new indexer account. Also confirm that the old default passwords are rejected on every endpoint. Record the result of each test with the date and the person who ran it. The step is done when all three components accept the new credentials, reject the old ones, and the test record is filed with the change ticket.

Where stale credentials usually hide after the change

Changing the password in the wazuh-passwords-tool run rarely removes every copy of the old value. The places below hold copies of the same credentials, and each one fails in its own way, so an operator can miss them for days. Check each location on every node and every system that talks to the Wazuh API or indexer before you call the change complete.

Indexer keystore on each node

The indexer keystore holds the credentials the indexer and its plugins use to authenticate internally. Each indexer node keeps its own copy, so updating one node does not update the others. Run the keystore check on every indexer node, not only the first one you changed, and confirm that the nodes restarted and rejoined the cluster after the update. A node that still holds an old value often shows up as intermittent connection failures rather than a clean outage.

Server wazuh.yml on server nodes

The Wazuh server reads the credentials it uses to reach the indexer and the Wazuh API from its configuration file, wazuh.yml, on each server node. In a cluster, every master and worker node needs the same values. Open the file on each node, confirm the username and password entries match the new values, and restart the services that read them. Leftover values here tend to appear as failed API calls from the dashboard or from automation.

Dashboard configuration

The dashboard keeps its own copy of the credentials it uses to connect to the indexer and the server API. Check the dashboard configuration on the host that runs it, confirm the connection settings point at the intended endpoints, and reload the dashboard service. If the dashboard shows a login screen that accepts the new password but data panels stay empty, the stored connection credentials are the first place to check.

Scripts and API automation

Cron jobs, shell scripts, Ansible roles and CI pipelines that call the Wazuh API or query the indexer often hard-code the old password or read it from an environment file that nobody updated. Search your automation repositories and configuration management for the account names used in the change, then test each job against the new credentials. These jobs usually fail silently or write errors to a log that no one reads, so list them in a runbook and check their last successful run.

Third-party integrations and monitoring

SIEM forwarders, ticketing connectors, SOAR playbooks and uptime monitors that query Wazuh or its indexer store their own credentials in separate tools. Ask each owning team for an inventory of the integrations that use the Wazuh accounts, and confirm which ones reuse the built-in users. Retest each connection after the change, because these systems often keep running on a cached session until it expires.

Backup and snapshot jobs

Scheduled backups and indexer snapshot jobs authenticate to the indexer as well, and they can run for weeks after a password change without anyone noticing. Review the backup configuration and the repository settings, confirm the next scheduled run uses the new credentials, and check that the most recent backup completed. A backup job that fails quietly leaves you without a restore point, which is why this check belongs in the change record.

Questions teams ask before changing Wazuh passwords

Can our own team change the Wazuh default passwords, or do we need a partner?

Your own team can do it if it has Linux administration skills, access to every Wazuh host, and time to follow the documented steps in order. The work is procedural rather than architectural, but the mistakes are easy to make: a password changed in one place and not updated in the keystore or the configuration file will break a component after restart. A partner is worth considering when the deployment spans many nodes, several integrations depend on the API credentials, or your change control requires a tested runbook and evidence of each step. Ask any partner to show how they will verify each service after the change.

What drives the effort of changing Wazuh passwords?

The main drivers are the number of nodes, the cluster layout and the number of systems that call the Wazuh API. An all-in-one installation has one set of hosts to update, while a distributed deployment with several indexer, server and dashboard nodes requires the same change coordinated across each of them. Integrations, scripts and dashboards that hold the API or indexer credentials add work because each one must be found and updated. Change control adds effort when every step needs an approval record, a rollback plan and a post-change check.

What do we need to provide before the work starts?

Plan to provide the following before the work begins:

  • Administrative access to every Wazuh indexer, server and dashboard host, plus the account used to run the installation assistant
  • A list of all systems and scripts that authenticate to the Wazuh API or indexer, with their current credential owners
  • A maintenance window that your change board approves, and a named contact who can confirm service health
  • A secrets manager or approved vault where the new credentials will be stored, with access limited to the people who need them

Confirm these items with your own environment before you schedule the change.

Does changing the Wazuh passwords cause downtime?

Yes, expect a service interruption, because the indexer, server and dashboard must restart to load the new credentials. The length of the interruption depends on how many components you restart and how your cluster is arranged. Agents keep collecting events during the change, but they may not reach the manager while the server restarts, so events are buffered on the endpoint rather than lost in most normal cases. Plan the window, test the procedure in a non-production copy first, and confirm each step in the documentation for your exact version before you begin.

How often should we rotate the Wazuh service passwords?

The Wazuh documentation does not set a rotation interval, so set one through your own security policy and the requirements of any framework you are assessed against. Rotate immediately after installation, after staff with knowledge of the credentials leave, and after any suspected exposure. Routine rotation adds recurring effort, so record each change, keep the secrets manager current and include the Wazuh credentials in your regular access review. Confirm the approach with your compliance team before you commit to a schedule.

What does Wazuh cost to run, and where do the costs come from?

The self-hosted Wazuh software is open source and carries no license fee, so the costs are infrastructure, staff time and any external services you choose. One-time costs include planning, the initial hardening and documentation. Recurring costs include the hosts that run the components, storage for alerts, staff time for upgrades and password rotation, and any support contract you buy. Wazuh Cloud is a separate, managed offering with paid plans, so it has its own pricing and is not part of the self-hosted cost. Ask any quote to separate labor, infrastructure and recurring support so you can compare options fairly.

What should we check after the change to confirm it worked?

Check each component separately and then the whole path. Confirm that the indexer answers with the new credentials, that the Wazuh server API accepts the new login, and that the dashboard signs in and shows recent alerts. Confirm that agents remain connected and that scheduled integrations still authenticate. Keep the old credentials out of configuration files, remove any temporary notes, and record the change in your change log. Test the procedure against your installed version, since file locations and key handling can differ between releases.

Security considerations for the password change

Changing the default passwords is itself a security event. The new credentials, the files that hold them and the people and systems that can reach the indexer and API during the change all need the same care as the credentials themselves. The cards below cover where new passwords live, who can read the files, how the work is recorded and what happens to the fallback admin account.

Store generated passwords in a secrets manager

Write each generated password to an approved secrets manager as soon as the tool produces it, with separate entries for the indexer admin, the API user, the dashboard user and the server API user. Do not rely on the terminal output alone, because it is easy to lose and easy to copy into the wrong place. Confirm with your security team which vault is approved for infrastructure credentials and who holds break-glass access to it. Check that the entries record the component each password protects, since the keystore and wazuh.yml must match them later.

Restrict permissions on keystore and wazuh.yml

The keystore and the wazuh.yml file hold or reference credentials that the dashboard and server use, so they should be readable only by the service accounts and administrators who manage the deployment. After each change, list the owner and mode of these files and compare them with the baseline your team recorded before the change. Remove any backup copies or temporary files that the procedure leaves behind, and confirm that configuration management tooling does not copy these files into shared locations.

Keep passwords out of shell history and tickets

Passwords typed as command arguments can end up in shell history, process listings and change tickets. Use interactive prompts where the procedure offers them, clear the history for administrative sessions that handled the change, and avoid pasting credentials into chat tools or ticket fields. If a password was exposed this way, treat it as compromised and generate a new one. Ask your change process to record that the credential was rotated, without recording the value itself.

Limit access to the indexer and API during the change

While the credentials are being replaced, the indexer and the server API are in a mixed state, so limit who and what can reach them. Use a maintenance window, restrict the management network to the administrators running the change, and confirm that agents and the dashboard are either paused or expected to fail until the new values are in place. Review which firewall rules and source addresses are allowed for the duration, and remove the temporary rules once the change is verified.

Log the change and its verification

Record who ran the procedure, when it started and finished, which components were changed, and which checks confirmed that each service accepted its new credential. Keep this record with the change ticket and make sure the audit trail of your SIEM or log platform captures the administrative logins that followed. Ask your compliance lead which evidence format the organization accepts for credential rotation, because that answer decides what the log must contain.

Handle the fallback admin account deliberately

Decide early whether a fallback administrative account will remain, what its password will be and who can use it, especially if single sign-on is planned. Store its credential in the same secrets manager under restricted access, and test that it works before the change so you are not locked out if SAML or another identity source fails. Review it on a fixed schedule and remove it when it is no longer needed, because a standing account with a known name is a common target.

How the credential changes propagate across nodes

The diagram starts on the operator workstation, where wazuh-passwords-tool generates the new credentials. One copy of those values goes to a secrets store outside the Wazuh nodes, and the same values are applied to each node that uses them. The indexer keystore on indexer nodes, the wazuh.yml file on server nodes and the dashboard configuration each receive their own change. These three hand-offs are where credentials most often drift, so the final step is verification: restart each component, then confirm that logins and API calls succeed with the new values and fail with the old ones.

Credential changes flow from the workstation through each node to final checks.

Planning rotation after the first change

The first password change closes the default credentials, but it does not keep them closed. Rotation is a recurring control, so the client needs a named owner, a rotation schedule set by its own password policy, and a written procedure that repeats the same checks each time. DeployOpen does not set the interval for you. Ask the security team which policy applies to the indexer admin account, the API wazuh and wazuh-wui users, and the dashboard users, and confirm whether those accounts are covered by a privileged access process that already tracks rotation dates.

Each rotation should be recorded per node, not per cluster. Keep a change log that lists every indexer, server, dashboard and API endpoint that was touched, the date and the operator, and the keystore and wazuh.yml entries that were written. Record the result of a login test against each component after the change. In a distributed deployment, a partial failure is the most likely problem: one indexer node may accept the new password while another still holds the old keystore value, or the dashboard may fail because wazuh.yml was not updated. Treat any node that did not confirm the new value as unfinished, stop further changes, restore service with the last known good value, and rerun the procedure on that node only, using the same verification as the first pass.

Before you close a rotation, repeat the keystore and wazuh.yml checks from the first change, then confirm that the old credentials are rejected everywhere. Store the new secrets in the client's approved vault rather than in a shared document, and confirm with the vendor documentation for your Wazuh version how each step is run in your layout, because the exact commands can change between releases. Your change record is also evidence: it shows an auditor that the default credentials were replaced and that rotation is run on a schedule with a documented owner.

How DeployOpen scopes and delivers Wazuh hardening

DeployOpen treats the default credential change as a scoped engagement on your own Wazuh deployment, covering the indexer, server API and dashboard in the topology you run. The work is planned in writing, built in your infrastructure, checked end to end and handed over with documentation your team can repeat.

How we scope

  • Confirm whether your deployment is all-in-one or distributed, and list every node that holds an indexer, server, dashboard or API credential.
  • Inventory where current credentials are referenced, including service configuration, automation scripts and the keystore on each host.
  • Agree the written scope, the Wazuh version in use and the change window before any credential is touched.
  • Define who receives new credentials, how they are stored and which accounts stay disabled or renamed as part of the work.

How we build

  • Run the password change with wazuh-passwords-tool on a tested copy first, then apply it to your environment in the agreed order.
  • Update the keystore and wazuh.yml entries that services read, so the server and dashboard reconnect without manual workarounds.
  • Confirm that dashboard login, API authentication and indexer connections all succeed with the new credentials.
  • Check that no installer or image default remains active, and record each credential change against the approved scope.

How we hand over

  • Provide a runbook listing every credential location, the update sequence and the verification commands used during the work.
  • Document the rollback steps and the state of each node so your team can reverse a change safely if needed.
  • Walk your operators through the procedure so they can repeat it when rotating credentials later.
  • Deliver findings from the verification pass, with any open items your team needs to confirm in your environment.

How we support

  • Retest the credential state after upgrades or node changes, since those steps can reintroduce or expose configuration you changed.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your team wants DeployOpen to keep the hardening current.
  • Pair the credential work with related hardening tasks, such as API exposure and network ports, under the same written scope.
  • Ask any provider to confirm in writing which Wazuh versions and topologies their scope covers before signing.

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.