55000) and a Wazuh indexer user (the alert store, port 9200).
Prerequisites
- A Wazuh server API (port
55000) and Wazuh indexer (port9200) that CloudThinker can reach over HTTPS from the internet. Firewall both ports to CloudThinker’s egress IPs only. These docs don’t publish CloudThinker’s egress IP list: ask your CloudThinker contact, or contact us. See Reaching private services for other options. - Admin access to the Wazuh dashboard, to create both users.
- The Admin role in the CloudThinker workspace, which you need to add connections. See Roles.
Setup
Create a Wazuh server API user
cloudthinker and a password, and under Roles select readonly, which can read everything in Wazuh. Save the user.If agents should test log lines against your rules, also give the user a role with the logtest_all_* policy.To let agents make changes, give the user a role with only the policies you allow instead, such as rules_all_*, decoders_all_*, agents_all_*, agents_commands_*, and cluster_all_*. Avoid administrator: it can also manage Wazuh users and roles. See Wazuh’s RBAC configuration for custom roles.Create a Wazuh indexer user
cloudthinker and a Password, then click Create.Then open Roles, click Create role, and set:- Name:
cloudthinker_read - Cluster permissions:
cluster_composite_ops_ro - Index:
wazuh-* - Index permissions:
read
cloudthinker_read role, open Mapped users, click Manage mapping, add cloudthinker, and click Map.Open Wazuh in CloudThinker
Enter both accounts and connect
Wazuh <version> connected.Decide on writes
readonly role, write attempts also fail in Wazuh itself.Every change an agent makes goes through your workspace’s Approvals first. On the default Auto · Rules + AI · Ask me mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on Rule enforcement for your workspace. Choose Manual to approve every change yourself.That means AI judgment could approve deleting a Wazuh agent with no person involved. Before you leave writes on, choose Manual so a person approves every change. Once CloudThinker turns on Rule enforcement for your workspace, a Rule can single out agent deletion: in a chat, type /create-policy Deny deleting agents on the Wazuh connection (or Ask first instead of Deny if a person should decide), then accept it under Approvals → Rules → Needs review.Connection details
Required permissions
Agent capabilities
Verify the connection
Start a chat, type# and pick Wazuh, then ask:
Example prompts
003 with an agent ID from your Wazuh agents list. Agent 000 is the Wazuh manager itself. If vulnerability detection is off in Wazuh, agents have no CVE data to report.
Troubleshooting
The accordion titles below are the exact messages CloudThinker shows when the connection test fails.Manager rejected the username or password.
Manager rejected the username or password.
Indexer rejected the username or password.
Indexer rejected the username or password.
Manager account has no API access.
Manager account has no API access.
readonly role, or add cluster_read_* to your custom role, and connect again. Keep cluster_all_* for a role that applies changes, since it can also restart the manager.Indexer account cannot read wazuh-alerts-4.x-*.
Indexer account cannot read wazuh-alerts-4.x-*.
read on wazuh-*. Update the role and connect again.Indexer has no wazuh-alerts-4.x-* index.
Indexer has no wazuh-alerts-4.x-* index.
The Manager URL must start with https://.
The Manager URL must start with https://.
https://. The same applies to the Indexer URL.Enter the Manager URL without a path, for example https://wazuh.example.com.
Enter the Manager URL without a path, for example https://wazuh.example.com.
/api. The same applies to the Indexer URL.Manager certificate is not trusted. Choose Allow self-signed.
Manager certificate is not trusted. Choose Allow self-signed.
Manager URL is unreachable. Check the URL and port 55000.
Manager URL is unreachable. Check the URL and port 55000.
9200.An agent says the write tool is disabled on this connection
An agent says the write tool is disabled on this connection
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Writes start on here. On Wazuh, Allow writes is on for a new connection, so read-only access depends on you switching it off and using the
readonlyrole. - Use dedicated users. Create both accounts only for CloudThinker, so you can remove them without affecting anyone else.
- Alert content is treated as data. Agents read alert text as evidence and don’t follow instructions found inside it.