Mapping custom Wazuh rules to MITRE ATT&CK

Tag custom Wazuh rules with ATT&CK technique IDs so they show in the MITRE dashboard, and use the framework view to see where detection coverage is missing.

On this page

Why map custom Wazuh rules to MITRE ATT&CK

Tagging custom Wazuh rules with MITRE ATT&CK technique IDs gives a security team a way to show which adversary behaviors its own detections cover. Without those tags, custom rules sit in the ruleset as free-text descriptions that an auditor, a manager or a new analyst cannot easily relate to a framework. With them, each rule can be counted, filtered and reviewed against a shared vocabulary, which is the point of the exercise.

The MITRE ATT&CK view in the Wazuh dashboard displays alerts grouped by the technique and tactic tags that rules carry. Teams usually need it for three purposes: answering audit questions about which techniques are monitored, running detection gap reviews to find tactics with little or no coverage, and planning new detections around the techniques that matter most to their sector. Confirm in your Wazuh version how the view counts rules that have no alerts in the selected time range, because that behavior determines whether the view shows coverage or only activity.

The mapping is only as good as the rules behind it. A tag on a rule that never fires, or that matches a broad pattern and fires on unrelated events, makes the coverage picture look better than the monitoring actually is. Before you report on coverage, check that each tagged rule has been tested against sample logs with wazuh-logtest, and that the technique ID in the mitre block matches the behavior the rule detects. Review the full ATT&CK definitions for each technique, since the framework is updated over time and a tag chosen from memory is a common source of error.

Plan for ownership of the mapping as well as its creation. Assign someone to review tags whenever rules change, and record in your rule documentation which technique each detection is meant to cover and why. The Wazuh documentation describes the server's decoders and rules as the components that produce these alerts, so the dashboard view is only a reflection of what those rules currently emit.

Mapping options and when each fits

This table compares four ways to attach MITRE ATT&CK identifiers to custom Wazuh rules and what each costs in review effort and dashboard clarity. Read each row against your team's rule volume and how often analysts will need to trace an alert back to a technique. The main takeaway is that single-technique tagging with a consistent tactic convention is usually the easiest to review and keep accurate.

ApproachWhen it fitsReview effort and dashboard clarity
Single technique per ruleRules that detect one clear behavior, such as a specific tool execution or a log-cleared eventLow review effort. Each rule maps to one technique, so the MITRE dashboard shows a clean count per technique but may hide secondary behaviors.
Sub-technique taggingBehaviors that fall under a named sub-technique, such as a particular credential access method or persistence pathModerate review effort. Reviewers must confirm the sub-technique matches the detection logic. The dashboard becomes more precise but gaps appear faster in sparse sub-techniques.
Shared tactic grouping for a rule familySeveral related rules that cover one tactic but different techniques, such as an application's audit trailHigher review effort because reviewers must confirm each rule's technique individually. Keep the tactic label consistent so the framework view shows the family under one tactic.
Mapping through stock parent rulesCustom child rules that refine a stock Wazuh rule that already carries ATT&CK tagsLowest authoring effort, but inherited tags can be wrong after an upgrade changes the parent. Confirm inherited tags in the dashboard after each Wazuh update.
Multiple techniques on one ruleRules where one log event genuinely reflects more than one technique and the detection cannot be splitHigher review effort and noisier counts. Document the reason in the rule description so analysts understand why the rule appears under several techniques.

Setting up ATT&CK tags on custom rules

This sequence takes a custom Wazuh rule from a detected behavior to a tagged, tested detection that appears in the MITRE ATT&CK view of the dashboard. Each step ends with a check so you can confirm the rule works before it is relied on.

  1. Confirm the Wazuh version and MITRE view

    The platform engineer or detection owner checks which Wazuh release the manager, indexer and dashboard run, and confirms that the dashboard shows the MITRE ATT&CK view under the Management or Threat Intelligence area in that version. Wazuh ships patch releases in the 4.14 line, so compare your version against the release notes before you rely on syntax from the documentation. The step is done when you have a written version record and have opened the MITRE view and seen the prebuilt technique matrix, which confirms the dashboard can display tagged alerts.

  2. Pick the ATT&CK technique for each rule

    The detection author works from the behavior the rule matches, such as a particular command, log pattern or authentication event, and selects the ATT&CK technique and sub-technique that describe what an adversary is doing. Choose the most specific technique the log evidence supports, and avoid tagging a rule with a technique it cannot observe. Record the technique ID, the rule ID and the reason in the rule's change request so reviewers can challenge the mapping. The step is complete when each planned rule has one documented technique ID and a reviewer has agreed it matches the behavior.

  3. Add the mitre block to the rule

    The detection author opens the custom rules file under the manager's local rules directory, adds a <mitre> block inside the <rule> element, and lists each technique ID as an <id> child. Keep the rule ID within the custom range described in your rules standard so the file survives upgrades, and do not change the default rule files. The step is done when the XML is well formed and the new block sits inside the rule it belongs to. Verify the element names and nesting against the rule syntax for your Wazuh version in the official documentation before saving.

  4. Restart or reload the manager

    The operator validates the configuration and then restarts or reloads the Wazuh manager using the method the documentation gives for the installed version and deployment type. In a cluster, follow the cluster procedure so the change reaches every node that analyzes events. The step is complete when the manager service reports healthy on each node and the logs show no rule loading errors for the custom file. If the manager fails to load the file, the error message in the log identifies the line to fix, so correct it before continuing.

  5. Test the rule with wazuh-logtest

    The detection author runs wazuh-logtest on the manager and pastes a sample log line that should match the behavior. Read the three phases the tool reports (pre-decoding, decoding and rule matching) and confirm the output names the custom rule ID, its level and the technique ID in the MITRE section. Also paste a near-miss log to confirm the rule stays silent. The step is done when the expected rule fires on the positive sample and does not fire on the negative sample, and the results are saved with the change.

  6. Generate a real alert and check the MITRE view

    The operator triggers the behavior on a test endpoint in a non-production environment, or replays a sample log through the normal ingest path, so the alert travels through the agent, manager and indexer. In the dashboard, open the MITRE ATT&CK view and filter to the technique ID, then confirm the alert appears under that technique with the expected rule description. The step is complete when the alert is visible in the MITRE view and in the event search, which shows the tag reached the indexer. If it is missing, check that the rule fired in the manager logs and that the indexer received the alert before changing the rule.

  7. Review coverage gaps in the framework view

    The detection lead reviews the MITRE view for the techniques that now have alerts, the ones with no coverage, and any that only show a single rule. Compare the list against the techniques your threat model says matter for your environment, and record the gaps as a backlog of planned rules. The step is done when the coverage review is saved with the date, the Wazuh version and the rule IDs, so the next upgrade or rule change can be checked against the same baseline.

Mapping in single-node, cluster and air-gapped deployments

A single-node, all-in-one installation runs the Wazuh indexer, server and dashboard on one host, so custom rule files live in one place and the server restarts once to load them. Validation is straightforward because the same host runs analysis and the dashboard, which means you can test a tagged rule with the logtest tool on that host before the change reaches agents.

  • Rule location: Custom rule files sit in the server's local rules directory, and a change takes effect after the manager service restarts.
  • Validation: Run the rule against sample events on the same host before restarting, then confirm the alert shows the expected technique tag in the dashboard.
  • Dashboard refresh: The MITRE view reflects new tags once newly generated alerts are indexed, so check with a test event rather than with older alerts.
  • Backups: Back up the custom rule directory before each change, because an all-in-one host has no peer to restore from.
  • Change window: Any restart interrupts analysis on the only node, so schedule tag changes with the rest of your maintenance.

Before relying on this layout, confirm the restart behavior, rule directory paths and dashboard indexing delay for your installed 4.14 patch level in the Wazuh documentation.

Using the framework view to find detection coverage gaps

The MITRE ATT&CK framework view in the Wazuh dashboard works as a coverage map: each tactic and technique is shaded by the alerts it has produced, so empty cells point to places where you may have no detection. Treat an empty cell as a question, not a finding. A technique can show no alerts because no rule maps to it, because your custom rules map to it but never fired in the period you are viewing, or because the telemetry needed to see it is not reaching the Wazuh server at all. Before adding a rule for an empty cell, confirm which of these is true.

The silence problem is why the view must be paired with a data source inventory. For each agent group, list which log sources are actually collected, such as Sysmon or Windows event channels, audit logs, authentication logs, cloud audit feeds and the network or application sources configured for syslog or API collection. Check that agents report and that the logs arrive with the decoded fields your rules expect, using wazuh-logtest on representative samples. Software inventory and vulnerability detection data are also telemetry, so include them when judging whether a technique under Initial Access or Privilege Escalation is observable in your environment. Confirm the exact fields and data sources for your agent versions against the Wazuh documentation.

Do not try to fill every cell. Start from a threat model that names the adversary behaviors relevant to your organization, the systems that hold your most important data and the attack paths your security team has seen or expects. Map those behaviors to ATT&CK techniques, then check the framework view only for those techniques. Record each accepted gap with a reason, such as no telemetry available, the technique is out of scope for the platform, or another control covers it. Review the accepted gaps when your threat model or data sources change, so the coverage map stays a decision record rather than a score to maximize.

Security and operational risks of tagging rules

Tagging custom rules with ATT&CK technique IDs changes what your dashboard claims to cover, so mistakes here mislead the people who rely on it. The cards below cover the risks that come from labeling, editing stock content, reviewing changes, controlling access and keeping mappings current.

Mislabeled techniques overstate coverage

A rule tagged with a technique ID tells the MITRE view that the behavior is detected, even when the rule only matches one tool, one log format or one event code. Overstated coverage can hide real gaps during planning and audits. Before merging a tag, check that the rule's matched event actually reflects the technique's behavior, and record the scope of the detection in the rule description so analysts know what it does not see.

Edits to stock rules break upgrades

Adding a technique tag by editing a default rule file in place means the change can be lost or conflict when Wazuh ships a new ruleset. Put new tags on custom rules in your own files, and use the override mechanism described in the rule documentation when a stock rule needs a different level or mapping. Confirm the exact override syntax for your release in the documentation before relying on it.

Wazuh release notes

Unreviewed rule changes reach production

A tag edit is a detection change, and it can alter alert volume, levels and dashboard counts once the manager reloads. Route every rule and mapping change through a reviewed merge request and test it against sample logs before deployment. Keep the reviewer's name and the test log set with the change so you can explain later why a technique appeared or disappeared from the view.

Unrestricted access to rule files

Anyone who can write to the custom rules directory or use the dashboard ruleset tools can change what the platform detects and what it claims to cover. Limit write access on the manager to the people who maintain detection content, and audit file changes on the server. Review who holds dashboard and API roles that can alter rule content, and confirm the role model with your Wazuh administrator before go-live.

No change control over mappings

Mappings often live in comments, spreadsheets or individual memory, so no one can show which technique a rule was meant to cover on a given date. Keep the technique ID in the rule itself, track it in version control, and tie each change to a ticket that explains the reason. This record is what lets your team answer coverage questions during an assessment without reconstructing the history.

Mappings drift as ATT&CK changes

ATT&CK technique IDs are revised over time, so a tag that was accurate when written can later point to a retired or renamed technique. Schedule a periodic review of every custom tag against the current ATT&CK release, and check the dashboard after each Wazuh update that changes the framework data. Record which ATT&CK version your mapping was checked against so reviewers know how current it is.

Questions teams ask before mapping Wazuh rules

How much effort does mapping custom Wazuh rules to MITRE ATT&CK take?

The effort depends mostly on how many custom rules exist, how many of them already describe a clear attacker behavior, and how much of the mapping must be reviewed by people who know the environment. Each rule needs a technique ID that matches what the rule actually detects, not what it loosely resembles. Teams with a small, well-documented rule set usually find the work is a review and tagging exercise. Teams with rules written years ago, under different naming, often need to read each rule, its decoder and its test logs before they can decide on a mapping. Ask any partner to break the estimate into rule inventory, technique review, tagging, testing and handover, so you can see which part drives the cost.

Can our own team map Wazuh rules to ATT&CK without a partner?

Yes, many teams do this in-house, provided they have someone who understands both the ATT&CK technique definitions and the Wazuh rule syntax. The tagging itself is a small change to each rule, but the decisions behind it are not. Your team needs to agree on what counts as coverage for a technique, which sub-techniques a rule actually supports, and when a rule should carry more than one ID. A partner is most useful when the team lacks that time, when the rule count is large, or when a second reviewer is needed to check consistency across analysts. Either way, the test is whether your team can explain every mapping to an auditor or incident responder.

What do analysts and engineers need to contribute to the mapping work?

Analysts supply the detection intent: what behavior each rule is meant to catch, what a true positive looks like, and which techniques the SOC actually investigates. Engineers supply the technical context: the decoders that feed each rule, the log sources involved, the rule IDs and ID ranges in use, and the test logs that show what fires today. Both groups should review the final mappings together, because an engineer may see that a rule only matches one log format while an analyst knows the attacker behavior is broader. Plan time for these reviews on the calendar before the work starts, since waiting for the right people is a common cause of delay.

How long does a Wazuh ATT&CK mapping project take?

Duration is driven by rule count, the number of log sources, the depth of review, and how quickly reviewers can respond. No supplied figure gives a fixed duration for this work, so treat any timeline as provisional until the written scope lists the rules, sources and review rounds. A project that tags a few dozen rules with clear intent moves faster than one that must reconcile overlapping rules from several past projects. Ask for milestones tied to the inventory, a draft mapping, a review round and a final handover, and confirm who approves each step on your side.

What should a quote for ATT&CK mapping include?

A useful quote states the rules in scope by file or ID range, the log sources and decoders they depend on, and the output format for mappings. It should name the technique IDs or the method used to choose them, the number of review rounds, and whether the dashboard view will be checked after deployment. Look for testing against sample logs, with the expected rule matches recorded, and a list of changes made to rule files. Also ask who performs the work, who approves it, and what your team must provide, such as access to a test manager instance and sample events. DeployOpen plans and delivers fixed-scope engagements agreed in writing before work starts, so the quote follows directly from that scope.

How are ATT&CK mappings kept accurate after Wazuh upgrades?

Mappings live in your custom rule files, so they usually survive a Wazuh upgrade if those files are not replaced by default content. The risk comes from changes elsewhere: a vendor release that alters a built-in rule your custom rule overrides, a rule ID that collides with a new one, or a decoder change that stops a rule from matching. After each upgrade, rerun your test logs and confirm the expected rules still fire and still appear under the correct technique in the MITRE dashboard. Confirm the exact upgrade behavior for your version in the Wazuh release notes before scheduling the upgrade. Assign a named owner to re-check mappings whenever ATT&CK itself is updated, since technique definitions change over time.

Does mapping rules to ATT&CK show our real detection coverage?

It shows coverage for the rules you have tagged, which is narrower than detection coverage in practice. A technique appears as covered only when a rule carries its ID, so untagged rules, weak rules and rules that never fire in your environment still create gaps. Use the framework view to find techniques with no rule, then decide whether each gap needs a new rule, a decoder, a log source, or a documented reason to accept the risk. Confirm with your security team which techniques they consider in scope, because an empty cell may reflect a deliberate choice rather than a missing detection.

How a custom rule reaches the MITRE view

The path starts at a log source, where an agent collects the event and forwards it to the Wazuh server. The server decodes the log and evaluates it against rules, and a custom rule that carries a technique ID in its mitre block produces an alert. The indexer stores that alert, and the dashboard's MITRE ATT&CK view counts it under the matching technique. Review the coverage view against your rule set, then feed gaps back into rule authoring. The rules repository and the manager sit inside a trust boundary, so changes should pass through version control before they reach the server.

Custom rule tagged with ATT&CK IDs, from log source to dashboard coverage view.

How DeployOpen scopes and delivers ATT&CK mapping work

DeployOpen approaches ATT&CK mapping as part of the detection content itself, not as a separate labeling exercise. We agree what is in scope, tag custom rules against the techniques they detect, check the results in your Wazuh environment, and leave your team with documentation and a process to keep the mapping current.

How we scope

  • Engagements are fixed-scope, with the rule set, target techniques and deliverables agreed in writing before work starts.
  • The scope lists which custom rule files and ID ranges are covered, and which default Wazuh rules are out of scope.
  • We confirm which Wazuh deployment you run and who on your team will review the mapped rules and the coverage view.

How we build

  • We add technique IDs to custom rules and check that each tag matches what the rule actually detects.
  • We verify that tagged rules appear in the MITRE ATT&CK dashboard view on your Wazuh dashboard after deployment.
  • We test sample events with wazuh-logtest before deployment so each mapped rule fires on the log it is meant to catch.

How we hand over

  • You receive a mapping register listing each custom rule, its ID, its technique tags and the log source it depends on.
  • The coverage review identifies techniques with no custom detection, so your team can see where gaps remain.
  • We document the tagging convention and the steps for adding a new rule so your team can keep the mapping current.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for teams that add rules over time.
  • A retainer can cover re-checking mappings after Wazuh upgrades, when rule content and dashboard views may change.
  • Ask any provider to confirm how the mapping will be kept current after handover, and who owns each change.

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.