Wazuh MCP server security: does the scope model meet our access requirement?
A security team deciding whether an AI assistant may query or act on Wazuh should know first that the gensecaihq server has built-in read and write scopes, fail-closed by default, with confirmation and audit logging for writes. It is a community project, not an official Wazuh product, so these controls are set by your own configuration and are not guaranteed by a vendor. The server exposes 55 tools in total: 40 under wazuh:read (alerts, agents, vulnerabilities, analysis, compliance and monitoring) and 14 under wazuh:write (active response and rollback). The README lists Wazuh 4.8.0 to 4.14.7 as supported, so confirm your manager version falls inside that range before you test anything.
The scope model only meets your requirement if the key you issue matches the access you approve. Start with MCP_API_KEY at read-only, since a key without MCP_API_KEY_SCOPES including wazuh:write cannot reach containment tools such as wazuh_block_ip, wazuh_isolate_host, wazuh_disable_user or wazuh_active_response. Confirm that WAZUH_REQUIRE_ACTION_CONFIRMATION is enabled in production so write calls need confirm=true. Then check that the Wazuh service account behind WAZUH_USER has only the Manager API permissions the read tools need, because the server cannot restrict what that account is allowed to do inside Wazuh itself.
Before approval, ask your engineering team to run a denial test with a read-only token against each of the 14 write tools and to confirm that the wazuh_mcp_server.audit log records principal, session, arguments and outcome for every permitted write. Also confirm which fork or version you are running, because the project's changelog records an earlier OAuth flaw that auto-approved write tokens. Review the configuration guide and the releases page against the exact build you plan to deploy, and record the result as the evidence for your access decision.
Access controls by capability and deployment option
This table compares what the gensecaihq Wazuh MCP server builds in, what depends on another Wazuh or proxy component, and what its documentation does not cover. Read each row against the exact version you deploy, since the releases page lists version 5.0.0 and the changelog records an earlier OAuth flaw. The main takeaway is that read access is the default, write access needs an explicit key scope, and the Wazuh Indexer and a reverse proxy are required before the tools work as described.
| Capability or control | Built into the server | Needs an outside component | Not available or not documented |
|---|---|---|---|
| Read scope (wazuh:read) | Covers 40 tools for alerts, agents, vulnerabilities, analysis, compliance and monitoring | Not applicable | Not applicable |
| Write scope (wazuh:write) | Covers 14 tools for active response and rollback, including containment actions such as wazuh_isolate_host | Not applicable | Not applicable |
| Default for tokens with no scope claim | Treated as read-only (fail-closed) | Not applicable | Not applicable |
| confirm=true on write tools | Required in production, controlled by WAZUH_REQUIRE_ACTION_CONFIRMATION | Not applicable | Not applicable |
| Audit logging of write calls | Each write call is logged before and after execution by wazuh_mcp_server.audit, with principal, session, arguments and outcome | Not applicable | Audit coverage for read calls is not described in the sources reviewed; confirm it in your version |
| API key sign-in | MCP_API_KEY with MCP_API_KEY_SCOPES; current versions require API key sign-in | Not applicable | Not applicable |
| OAuth sign-in | Not applicable | Not applicable | An older version auto-approved OAuth requests, so anyone who could reach the server could obtain a write token; confirm your version |
| Wazuh Indexer for alert tools | Not applicable | Required for alert search, alert aggregation, vulnerability tools and alert-backed compliance checks, since Wazuh 4.8 removed those Manager endpoints | Not applicable |
| Docker images and TLS | Multi-arch Docker images (amd64, arm64) on GitHub Container Registry, with Docker Compose files in the repository | TLS must be terminated at a reverse proxy because the server listens on plain HTTP on MCP_PORT (default 3000) | Not applicable |
How scopes and confirmation gate each tool call
Every call from an MCP client to the gensecaihq server follows the same path: the client sends a tool request, the server checks the scope on the presented key against that tool, and only then does the Wazuh Manager API account run the call. The scope check is the first gate. A key without a scope claim is treated as read-only, so a token that carries no scope cannot reach the 14 write tools. Confirm in your own test environment that a key with only wazuh:read is refused for an active response tool before you approve any rollout.
Write tools add two more controls. In production, a write call must pass the confirm=true check, which WAZUH_REQUIRE_ACTION_CONFIRMATION controls, so confirm that the setting is on in your deployment and not only in the example files. The server's wazuh_mcp_server.audit logger records the principal, session, arguments and outcome before and after execution for every write call that passes both checks. Ask the team that operates the server where those log lines go and how long they are kept, because the audit trail is only useful if a security team can read it.
The scope model also depends on how tools are named. According to the releases page, a tool that is not explicitly read-scoped, or whose name matches a destructive verb, now requires wazuh:write. Containment tools such as wazuh_block_ip, wazuh_isolate_host, wazuh_kill_process and wazuh_disable_user fall under that rule. The releases page also says all 14 write tools are tested as denied to a read-only token, which is a useful regression check to repeat on any version you deploy. Transport is split: the server calls the Manager API over HTTPS, while its own MCP listener runs plain HTTP on MCP_PORT and should sit behind a TLS reverse proxy. Confirm that no client reaches the listener directly across an untrusted network.
Which active response tools carry the most risk
The gensecaihq server exposes several containment tools that change live endpoints, accounts and network paths. Each group below names what a wrong call would disrupt and the control that limits it, so reviewers can decide which write actions to allow and who approves them.
Network blocking tools
wazuh_block_ip and wazuh_firewall_drop change traffic rules, so a wrong call can cut off a legitimate service, a monitoring path or an administrator's own session. Illustrative scenario: an agent blocks a shared NAT address and several hosts lose access at once. Keep the key at wazuh:read so these tools are denied by default, set WAZUH_REQUIRE_ACTION_CONFIRMATION so each call needs confirm=true, and name who may approve a write before any block is applied.
- Write tools
- 14
Host isolation and quarantine
wazuh_isolate_host and wazuh_quarantine_file take a machine or file out of service. An isolated server can stop production traffic, and a quarantined file can be a working binary or configuration that a team needs back. Treat these as high-impact writes that require a named approver outside the agent workflow, and confirm the host inventory in Wazuh before any call so the target is the intended asset.
Process and account disabling
wazuh_kill_process stops a running process and wazuh_disable_user locks an account. Either can interrupt a batch job, a service account or a person's access during business hours. The risk is largest when an agent acts on an alert that was a false positive. Restrict the write scope to a small set of principals, review the audit record of each call, and confirm that disabling an account has a documented reversal path owned by the identity team.
Host-level deny and active response
wazuh_host_deny and the generic wazuh_active_response tool run Wazuh active response actions, and the generic tool can reach more than one action type. Because the tool is broad, a wrong argument can apply a response to the wrong agent or group. Ask the team to list which active response commands are enabled on the Manager, confirm the agent IDs passed as arguments, and verify that the write key is not shared with general analysts.
Service restarts
wazuh_restart restarts a service or agent component. A restart looks minor, but it interrupts monitoring and can drop telemetry during the window, which weakens detection exactly when an incident is active. Ask the SOC to define which components an agent may restart, and check that the audit logger records the principal, session, arguments and outcome before and after each call so gaps can be traced later.
How the answer changes by team size and environment
A small analyst group usually needs read access for alert search, triage and vulnerability review, and write access only for a few named responders. In an illustrative setup, four analysts share one MCP deployment, and only the on-call lead can trigger containment.
- Read scope by default: Keep MCP_API_KEY_SCOPES at
wazuh:readso the shared key can use the 40 read tools covering alerts, agents, vulnerabilities, analysis, compliance and monitoring. - Write scope for responders only: Issue a separate key with
wazuh:writeto the people who can run active response, and keep it out of the shared analyst configuration. - Confirmation on: Keep WAZUH_REQUIRE_ACTION_CONFIRMATION enabled so every write tool requires confirm=true in production.
- Dedicated Manager account: Use a dedicated Wazuh service account for the Manager API, as the configuration guide's production example does.
Ask the team lead to name the holder of the write key and request audit logger entries for recent write calls to confirm that only those people triggered them.
When a SOC, platform team and endpoint engineering group share one Wazuh Manager and Indexer, a single MCP deployment can reach agents owned by several groups. The supplied documentation describes read and write scopes rather than per-team boundaries, so the reviewer should confirm whether finer separation is possible in the version under review.
- One key per team: Issue a separate MCP_API_KEY value to each team so that audit entries identify who made each call.
- Write scope limited to containment owners: Grant
wazuh:writeonly to the team that runs tools such as wazuh_isolate_host, wazuh_block_ip or wazuh_disable_user. - Account mapping: Decide whether each team needs its own Wazuh service account, and confirm with Wazuh documentation how Manager roles map to those accounts.
- Central audit routing: Send wazuh_mcp_server.audit output to the central log platform so entries from all teams are searchable in one place.
- Review on membership change: Compare key scopes against team membership whenever people join, move or leave a team.
Request a list of issued keys, their scopes, the owning team for each key and a sample of audit entries showing the principal for a write call.
Where alert data includes personal, patient or other restricted records, the review centers on who can read that data, who can act on it, and whether every call leaves a record. The supplied facts do not cover HIPAA or GDPR terms for this community server, so compliance staff must confirm legal and data handling obligations separately from the technical settings below.
- Fail-closed tokens: A token with no scope claim is treated as read-only, so confirm that every issued token carries an explicit scope.
- Write tests against read tokens: The releases page says all 14 write tools are tested as denied to a read-only token, so ask for test evidence against the version deployed.
- Complete call records: Each write call that passes the scope and confirmation checks is logged before and after execution, with principal, session, arguments and outcome.
- Version with API key sign-in: The changelog records an earlier OAuth flaw that auto-approved requests, so confirm the deployed release requires sign-in with an API key.
- TLS at a reverse proxy: The server listens on plain HTTP on MCP_PORT (default 3000), so TLS must be terminated at a reverse proxy in front of it.
Request the deployed version number, the scope assignment for each key and redacted audit log samples for one contained action.
In an isolated network, the MCP server, the Wazuh Manager API and the Wazuh Indexer must all run inside the enclosed environment, and images and updates must enter through an approved transfer path. The supplied facts confirm the Manager API is called over HTTPS and the Indexer is required for alert search, so the reviewer should map each of those connections on the network diagram.
- Internal Manager and Indexer: Confirm that the Manager API on port 55000 and the Indexer are reachable only on internal addresses.
- Image transfer: The images are published to ghcr.io/gensecaihq/wazuh-mcp-server. Ask how the team mirrors them, verifies their contents and records the version it imported.
- Local client model: The README lists Open WebUI with Ollama as a supported client, so a model can run inside the network. Confirm the client has no outbound dependencies.
- Host platform: Confirm the Wazuh central components run on 64-bit x86_64 or AARCH64 Linux hosts, as the Wazuh quickstart requires.
- Unchanged scope rules: Isolation does not change scope or confirmation settings, so keep the read-only default and restrict the write key as in the other contexts.
Request a network diagram showing every connection the server makes, along with the firewall rules that enforce it, and ask the vendor to confirm in writing whether the server makes any outbound call.
Order of work to lock the server down before production
This sequence moves the gensecaihq Wazuh MCP server from an unverified download to a production setup where read-only is the default, write access is granted only per case, and every write attempt leaves a record. Each step ends with a check the reviewer can confirm before moving on.
Confirm the server, source and version
The security or platform lead confirms that the client uses the gensecaihq/Wazuh-MCP-Server project and not another community server such as gbrigandi/mcp-server-wazuh or socfortress/wazuh-mcp-server, since each has its own tool set and security model. Check the version against the supported Wazuh range in the README (4.8.0 to 4.14.7) and review the changelog for the OAuth auto-approval flaw so the team knows which releases fixed it. Done when the reviewer has a written record of the repository, the release tag and the Docker image digest that will run in production.
Create a dedicated Manager service account
The Wazuh administrator creates a separate service account on the Manager API for the MCP server, rather than reusing a personal or administrator login. The account should hold only the Manager permissions the server needs, and the connection to the Manager API must use HTTPS on the default port 55000 as the configuration guide describes. Confirm that the Indexer connection is also in place for alert search, vulnerability tools and alert-backed compliance checks, because those tools depend on it. Done when the account is documented, its permissions have been reviewed by someone outside the deployment team, and its activity can be traced to the MCP server alone.
Issue read-only keys to users and clients
The platform team issues MCP API keys with MCP_API_KEY_SCOPES set to wazuh:read, which the configuration guide's production example uses. Scopes are fail-closed, so a token without a scope claim is treated as read-only, and that default protects the setup if a key is configured incorrectly. Each key should map to one client or one named group of users so that audit entries can be tied to a principal. Done when a test token can run a read tool such as alert search, and the reviewer confirms that no key in production carries wazuh:write.
Keep write scope off until a case requires it
The security operations lead decides, case by case, which containment action needs a write-scoped key, using the write tools named in the README, such as wazuh_block_ip, wazuh_isolate_host, wazuh_disable_user and wazuh_active_response. Any write-scoped key should be issued for a defined purpose, time-bound in the internal process, and removed after the action is complete. Done when the access request, approver and removal date are recorded for each write-scoped key, and the reviewer has a list of which keys currently hold wazuh:write.
Keep action confirmation enabled
The platform team confirms that WAZUH_REQUIRE_ACTION_CONFIRMATION is set so that write tools require confirm=true in production. Confirmation is a second check on top of scope, so a call made with a write-scoped key still needs an explicit confirmation argument before it runs. The team should test that a write call without confirmation is refused and that the refusal is logged. Done when a reviewer has seen the refused call in the audit output and the configuration change is captured in the deployment record.
Verify the audit logger output
The security engineer checks that the wazuh_mcp_server.audit logger writes an entry before and after each write-tool call, with the principal, session, arguments and outcome. Confirm that the log is sent to a location the MCP server operators cannot edit, that retention matches your internal policy, and that the entries can be searched by principal. The gensecaihq documentation describes what is logged, so the test should compare actual entries against that description. Done when a test write call produces both a before and an after record that a reviewer can trace to a specific key.
Retest that write tools are denied to read-only tokens
The security team runs a retest against the production configuration using a read-only token and attempts each of the 14 write tools, then records the denial. The releases page says every write tool is tested as denied to a read-only token, but the organization should confirm this on its own version rather than rely on the vendor's test suite alone. Repeat the retest after every upgrade, configuration change or key rotation. Done when the results for all 14 write tools are saved with the version tested, and the reviewer signs off that no read-only key can change Wazuh state.
Evidence a security reviewer should request
This table lists the evidence to request from a team that runs the gensecaihq Wazuh MCP server, with what to ask for and where each item comes from in the tool. Use it as a checklist: a claim in the README or changelog is only settled once the team shows the running configuration, a log sample or a test result. Treat any row the team cannot produce as an open finding before the server reaches staff.
| Control | What to ask for | Where it comes from in the tool |
|---|---|---|
| Scope configuration | The live MCP_API_KEY_SCOPES value, and a list of which API keys hold wazuh:write and why | Environment or Compose file for the server, checked against the configuration guide |
| Confirmation setting | Proof that WAZUH_REQUIRE_ACTION_CONFIRMATION is enabled in production, with a sample rejected call lacking confirm=true | Server environment settings and a test call record |
| Audit log sample | Redacted entries showing the before and after records for one write call, with principal, session, arguments and outcome | The wazuh_mcp_server.audit logger output |
| Manager service account permissions | The Wazuh role assigned to the dedicated service account, showing it cannot exceed what the MCP server needs | Wazuh Manager API user and role configuration |
| TLS termination config | The reverse proxy configuration that terminates HTTPS in front of the plain HTTP MCP_PORT listener, and the Manager API HTTPS setting | Reverse proxy config and the configuration guide |
| Version pinned | The exact image tag or release in use, matched to a published release and its notes, and a plan for upgrades | Image reference in the Compose file, compared with the releases page |
| Write denial retest result | A dated retest report showing each of the 14 write tools is refused to a read-only token | Test output from the team, or a retest by an independent tester |
Questions buyers ask before approving the Wazuh MCP server
Is the gensecaihq Wazuh MCP server an official Wazuh product?
No. The gensecaihq/Wazuh-MCP-Server repository is a community project published under the gensecaihq account, not under the wazuh organization, so Wazuh does not own or support it. Other community Wazuh MCP servers exist, such as gbrigandi/mcp-server-wazuh and socfortress/wazuh-mcp-server, and each has its own tool set and security model. Confirm which repository your team will actually run, record its owner and commit or release version, and decide who will answer for it internally when it fails or is vulnerable. Your review should treat it as third-party code with your own support path.
What license does the gensecaihq Wazuh MCP server use?
The repository README shows an MIT license badge. Legal and procurement should read the LICENSE file in the exact release being deployed rather than rely on the badge, and confirm that the license covers the Docker images published to ghcr.io/gensecaihq/wazuh-mcp-server as well as the source. The MIT license permits use without a vendor contract, so the cost of adopting the server sits in your own engineering, hosting, testing and maintenance rather than in a license fee. Also check the license of any dependencies your build pulls in, because the server's own license does not cover them.
What does it cost to run a community Wazuh MCP server?
The software has no license fee under MIT, so the cost is in the work and infrastructure around it. Expect recurring costs for the hosts that run the MCP server and the Wazuh Manager and Indexer it depends on, and for staff time to deploy it, configure service accounts and scopes, put a reverse proxy with TLS in front, test each release and track upgrades. Those costs rise with the number of tools you enable, the number of Wazuh environments, how often you upgrade, and how much write access you allow, because write access needs more review and testing. Ask any implementation partner for a written scope that lists these components, what is one-time and what recurs, and who owns each piece after handover.
Is read-only use enough for alert triage with a Wazuh MCP server?
For many triage tasks, yes. The gensecaihq configuration guide defines a wazuh:read scope covering 40 tools for alerts, agents, vulnerabilities, analysis, compliance and monitoring, and an API key stays read-only unless MCP_API_KEY_SCOPES includes wazuh:write. Keep MCP_API_KEY_SCOPES at wazuh:read for analysts who only investigate, and add wazuh:write only for a separate key that triggers active response. Note that alert search, aggregation, vulnerability tools and alert-backed compliance checks need a Wazuh Indexer connection, so the read path depends on both components. Confirm with a test token that a read-only key is denied all 14 write tools before you rely on that boundary.
Can our own team configure a Wazuh MCP server without outside help?
Often yes, if you already run Wazuh and have engineers comfortable with Docker, HTTPS and service accounts. The configuration guide asks for WAZUH_HOST, WAZUH_USER and WAZUH_PASS for the Manager API, which is called over HTTPS on port 55000 by default, plus an Indexer connection for alert tools. The server listens on plain HTTP on MCP_PORT (default 3000), so your team must also set up TLS termination at a reverse proxy and decide how clients authenticate. The harder parts are the review work: a dedicated Wazuh service account, least-privilege scopes, audit log retention, and testing the write tools in a lab first. If those skills are thin, scope outside help for the security review and configuration, and confirm in writing what the partner will and will not test.
What happens when the Wazuh MCP server releases a new version?
A new version can change tool names, scopes, defaults and authentication behavior, so each upgrade needs a fresh review rather than a silent pull of the latest image. The repository's changelog and releases page show that past versions changed permissions: a flaw once let OAuth auto-approve every request, and later versions require sign-in with an API key, and a later release made destructive-named tools require wazuh:write. Pin the image to a specific tag, read the changelog and releases notes for each change, rerun your denied-token tests on the write tools, and check that the supported Wazuh range (4.8.0 to 4.14.7 in the README) still matches your Manager. Ask whoever maintains the deployment who owns that cycle and how often it happens.
How DeployOpen tests a Wazuh MCP setup before rollout
DeployOpen approaches a Wazuh MCP server as a governed deployment inside your own environment, not a plug-in to switch on. The work starts with the scopes, tokens and tools your team will actually use, then tests whether write tools stay locked to the people and clients you approve.
How we scope
- Written scope names the exact MCP server, repository and version under review before any testing starts
- Scope lists which Wazuh Manager API and Indexer connections the server will use, and which service account holds them
- Scope records which MCP_API_KEY_SCOPES values are approved, with wazuh:write justified tool by tool
How we build
- Test a read-only token against the 40 wazuh:read tools and confirm no containment action runs
- Confirm all 14 wazuh:write tools are denied to read-only tokens and that confirm=true is enforced
- Review the audit logger output for principal, session, arguments and outcome on every write attempt
How we hand over
- Findings report lists each risky tool, the evidence observed, and the recommended fix
- Hardening guide covers HTTPS termination at the reverse proxy, network restriction and key rotation steps
- Retest confirms each fix works before the setup is handed over for staff use
How we support
- Ongoing support is available as a retainer for upgrades to new server releases and changelog changes
- Continuous testing can recheck scopes and write tools after configuration or version changes
- Quotes follow from the written scope, so reviewers can compare what is tested against what is delivered

