Wazuh CDB lists: when your team needs lookup tables in detection rules
A SOC team often needs to check a value against a large, changing set of entries inside a detection: known-bad IP addresses, malicious file hashes, or service accounts approved to perform a sensitive action. Writing each entry into rule XML means every feed update becomes a rule edit, a review and a server restart cycle. In Wazuh, a CDB list (constant database) lets a rule look a field up against a separate file instead. The rule condition references the list by name, and the list holds the keys. Wazuh rule conditions can use CDB lists through the list field, and the matching logic is documented in Wazuh's ruleset and custom rule guidance. Confirm the exact list lookup syntax and supported options against the documentation for your installed version before you write rules around it.
Choose a list over plain rule matching when the set of values is long, changes on a schedule, or is owned by someone other than the person who maintains rules. A known-bad IP feed, a hash blocklist and an approved-account allowlist are typical candidates. Plain <match> or <regex> conditions suit a handful of stable strings, because they are easier to read in the rule itself and need no separate file. Before adopting lists, decide who owns each file, how entries are added and removed, and how a bad entry gets reverted. Also confirm how your version handles subnet-style keys and whether the list must be compiled or placed in a specific directory, since those details determine whether an update takes effect without a manager restart.
Which lookup type and list design fits each use case
This table pairs each common CDB list use for allowlists, blocklists and threat intelligence with the lookup type and key design it needs, the decoded field the rule must read, and the main risk of that choice. Read each row as a set: a list only works when its keys match the field your decoder produces. Confirm exact lookup attribute names and key syntax in the Wazuh documentation for your installed version before building rules on them.
| Use case | Lookup type and key design | Field the rule must match | Main risk |
|---|---|---|---|
| Known-bad IP addresses (blocklist) | Address lookup with single IP keys and optional subnet keys | Source or destination IP extracted by the decoder | Broad subnet keys can match legitimate hosts and flood analysts with alerts |
| Known-bad file hashes (threat intelligence) | Exact string lookup on the hash value | Hash field from file integrity or endpoint telemetry | A digest algorithm that differs from the feed produces no matches at all |
| Approved administrators (allowlist) | Exact string lookup on the account name | User name from the authentication decoder | Name-only entries trust any account that reuses or takes over that name |
| Internal scanners and monitoring hosts (allowlist) | Address lookup with subnet keys covering the approved ranges | Source IP of the scanning or probing event | Anyone who reaches or spoofs the range inherits the exemption |
| Threat feed domains (threat intelligence) | Exact string lookup on normalized domain names | Domain or URL field from DNS or proxy logs | Case differences, trailing dots or subdomains cause missed hits without normalization |
| Rule-specific suppressions (allowlist) | Exact string lookup on a value built by a custom decoder | Field extracted by your own decoder | A decoder change can silently stop matching keys, so suppressed events resurface or real ones hide |
| Aging threat feed entries (threat intelligence) | Any lookup type, refreshed on a schedule with a named owner | Same field as the original rule | Stale indicators raise false positives, and lists with no refresh record drift over time |
Creating, loading and testing a CDB list
This sequence takes a CDB list from a plain text file to a tested rule on the Wazuh server. Each step ends with a check, so the team knows the list compiled, the rule references it correctly and a sample event produces the expected alert before the change reaches production.
Write the list in the documented format
The rule owner writes a plain text file with one entry per line. Each line starts with the key, which is an IP address, a subnet in the notation your version supports, a file hash or a username, followed by a colon and an optional value. Keep one list per purpose, such as known-bad IPs or approved administrators, so each rule reads clearly. Confirm the key notation and any value rules for your Wazuh version in the CDB list documentation before writing entries. Check: open the file in a plain text editor, look for stray spaces, duplicate keys and typos, and confirm each line follows the same pattern.
Place the file in the custom lists directory
An administrator copies the file to the custom lists location on the Wazuh server, which sits under the installation's etc directory. Keep custom lists separate from the default lists that ship with Wazuh so your content is not overwritten during an upgrade. Set ownership to the account the Wazuh services run under so the analysis daemon can read the file. Confirm the directory and ownership expected for your installation method. Check: list the directory and confirm the file is present, readable by the Wazuh service account and has the expected name.
Register the list in the server configuration
The administrator adds an entry for the list in the ruleset section of the manager configuration file. The entry points to the list path relative to the Wazuh installation, so the server knows to load and compile it. Edit the configuration on the manager node only, and record the change in your configuration management system or change log. Run the configuration test your version provides before restarting. Check: the test completes without errors and reports no problems with the new list entry.
Restart the manager to compile the list
The administrator restarts the Wazuh manager services in a maintenance window or on a single node first if the environment is a cluster. On restart, the server compiles the text file into a binary CDB file in the same directory, which is the version rules use for lookups. Confirm the restart procedure for your deployment before running it. Check: the compiled file with the same base name and a compiled extension exists, its timestamp is newer than the restart, and the manager logs show no errors for the list.
Reference the list from a custom rule
The rule author creates or edits a rule in a custom rule file, using an ID inside the custom range and a descriptive message that an analyst can act on. The rule includes a list element that names the field to check, such as the source IP, the lookup type that matches your data and the list path from the configuration. The lookup type decides whether the key must match exactly, match a subnet or compare a value, so confirm it against the documentation before use. Check: the rule file loads without errors on the manager and the new rule ID appears in the ruleset after restart.
Test matches with wazuh-logtest before deployment
The rule author starts a wazuh-logtest session on the manager and pastes a sample event that contains a value from the list, then a second sample event with a value that is not on the list. The first event should show the custom rule in the output, and the second should not. Keep the sample events in a shared repository so later changes can be retested. Use only sample data, not production logs with sensitive content. Check: the phase three output lists the expected rule ID and level for the matching event, and no rule fires for the non-matching event.
Keeping threat intelligence feeds current without breaking rules
An indicator list is only as useful as its last refresh. A known-bad IP address or file hash that was accurate six months ago may now belong to a hosting provider, a shared CDN node or a clean file. If a CDB list keeps those entries, rules that match them will raise alerts that look authoritative but describe activity nobody can confirm. Plan refresh cadence as part of the detection design, not as an afterthought, and record for each list when it was last rebuilt and where its data came from. Feed sources, their licensing terms and their update frequency are decisions you confirm with each provider before you schedule anything, including whether redistribution inside your Wazuh deployment is permitted.
Schedule each refresh as a pipeline with three gates. First, fetch the feed to a staging path, never directly into the live etc/lists directory. Second, validate it: confirm every line matches the key and value format your list type requires, that no line is empty or malformed, and that the entry count falls within a range you set from the previous version. A sudden drop to near zero usually means a broken download, and a sudden jump often means a changed format. Third, load the list only after the checks pass, using the same process you use for any content change. Keep the previous version on disk so a bad update can be reversed by restoring that file and reloading the list.
Test the refresh in the same way you test rules. Keep a small set of sample events that should still match after each update, including one known-bad entry and one entry that must not match, and run them through wazuh-logtest or your CI logtest setup before the change reaches production. Then confirm the change in the running server by checking the rule firing on a controlled test event. Ask your team and the feed provider who owns each list, how quickly a retraction is applied, and what happens to alerts already raised from an entry that was later removed. Those answers determine how far back you need to review, so write them down before the first refresh.
Security and operational risks of CDB list management
A CDB list is trusted input: a rule that consults it will believe whatever the file says. The cards below cover the failure modes that matter most, from silent allowlist abuse to feeds nobody verified, and the control that answers each one.
Unreviewed allowlist hiding attacker activity
An allowlist entry suppresses alerts for every event that matches it, so a broad or stale entry can hide real activity from the analysts who never see it. Review each entry against a named owner and a reason, and keep the entry as narrow as the business need allows, such as one account on one host rather than a whole team. Measure how many alerts each allowlist suppresses so a sudden jump in suppression is visible. Illustrative example: a service account allowed for one job may later be reused by an intruder with the same name.
Poisoned or unverified threat feed
A blocklist fed automatically from a third-party source can inherit bad data, including false positives that block legitimate infrastructure or entries an attacker has planted. Before a feed updates a production list, check its source, its licensing terms and how it handles removals. Load new feed data into a test environment first and confirm that known-good addresses are not flagged. Keep the feed source documented so the team can explain why any entry is present.
Lists stored with weak file permissions
CDB lists are files on the Wazuh server, and anyone who can write to them can change what the rules believe. Confirm that the list files and their compiled database files are owned by the account the Wazuh server runs under and are not writable by general users. Restrict shell access to the server and log administrative changes. Review permissions after every upgrade or configuration management run, since a playbook can reset them.
Change control for approved users
Approved user lists define who is expected to log in and from where, so an unauthorized edit can turn a suspicious login into a trusted one. Route every change through a ticket or merge request with an approver who is not the requester. Keep the lists in version control where possible, so each change has an author, a date and a reason. Confirm the process covers emergency changes, which are the ones most often made without review.
Audit evidence for list changes
When an auditor or incident responder asks who added an address to a blocklist or why a user was allowlisted, the answer should come from records, not memory. Ask whether file integrity monitoring on the Wazuh server covers the list directories and whether the change history is retained for the period your policy requires. Store change records outside the server so an attacker who edits a list cannot also erase its history. Verify that the evidence can be retrieved before an assessment, not during one.
Stale entries after the threat has passed
Blocklist entries for addresses that have been reassigned or cleaned up keep blocking legitimate traffic, and allowlist entries for departed staff keep granting trust. Set a review date for each feed and each manual entry, and remove entries that no longer have an owner. Compare list contents against the current directory or feed on a schedule. A list that is never pruned becomes a list nobody dares to edit.
Questions buyers ask before building CDB-based detections
What drives the cost of building CDB lists for Wazuh?
The cost depends mostly on how many lists, how many rules depend on them, and how the feeds are maintained. Wazuh's self-hosted software is open source with no license fee, so the spend is on people and infrastructure. A quote should separate one-time work (list format design, rule changes, testing, loading procedure, documentation) from recurring work (feed refresh, review of approved users, retesting after Wazuh upgrades). Ask each provider to itemize who does each task, which environments are covered, and whether feed licensing from threat intelligence vendors is included or billed separately.
How long does a first CDB list build and feed pipeline take?
The duration follows the scope: how many lists, whether the team needs a scheduled feed pipeline or a manual update, how many data sources feed the rules, and how much testing the change must pass before production. No researched duration is available for this work, so treat any timeline as unconfirmed until it is written into the scope. A workable plan usually starts with one list, one rule and one test log, then adds feeds once the loading and reload steps are proven. Ask for milestones and what counts as done for each.
What must our team provide before a CDB project starts?
The team needs to supply representative sample logs for each source that will be matched against lists, plus the source of truth for approved users, asset owners and known-bad indicators. For allowlists, that means the approved user records and the systems they apply to. For threat intelligence, it means the feed sources you are permitted to use, their license terms and the owner who approves changes. Sample logs should include both normal and malicious events, since they drive the logtest checks that prove a list matches the right field and nothing else.
Can one Wazuh engineer build CDB lists without outside help?
A single engineer with working knowledge of Wazuh rules, decoders and the file layout under the Wazuh server can build a small set of lists, provided someone else reviews the approval process for allowlisted users. The harder parts are usually not the file format. They are deciding who owns each list, keeping feeds current on a schedule, and proving that a change does not silence a detection. If the same person writes the list, the rule and the test, there is no independent check. Confirm internal capacity for ongoing maintenance, not only the first build.
When does a partner add value to CDB-based detections?
A partner adds value when the work spans several data sources, multiple environments, or compliance evidence that an auditor will read. Typical examples include building a feed pipeline that refreshes lists on a schedule, writing tests that run in a pipeline, and documenting how allowlist changes are approved. DeployOpen plans, implements, tests and documents open-source platforms inside the client's own infrastructure, and most engagements are fixed-scope with the scope and deliverables agreed in writing first. DeployOpen does not issue audit reports, so evidence is prepared for independent assessors.
What recurring work comes after the lists go live?
Recurring work includes refreshing threat intelligence lists, reviewing allowlist entries when people change roles or leave, checking that subnet and hash entries still match real traffic, and retesting rules after each Wazuh upgrade. Wazuh shipped 4.14 patch releases on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October 2026, so patch-level changes arrive regularly. Ask any provider how often feeds are refreshed, who approves allowlist changes, and whether retesting after upgrades is included in a retainer or billed per change.
What are the main risks of an allowlist built on CDB lists?
The main risk is that a list silently suppresses real attacks. An allowlisted user or subnet that is later compromised can generate events that never alert. Mitigate this by keeping allowlist entries narrow, tying each entry to an owner and an expiry review, logging which list matched, and testing that high-risk events still fire for allowlisted identities. Stale threat intelligence has the opposite problem: it misses newly listed indicators. Both risks belong in the scope document, with named owners and a review cadence.
How a CDB list feeds a Wazuh rule decision
The flow starts with a threat feed or an approved-user list, exported as plain key and value lines. Sample events run through wazuh-logtest at the testing gate, and the list is deployed only after that gate passes. On the server, a decoder extracts the field the list is keyed on, such as srcip, and the rule looks up that value in the compiled CDB list. A blocklist hit raises an alert, while an allowlist hit suppresses the event. Check the key format at the gate, because a mismatched key simply never matches.
A list reaches a rule lookup only after the logtest gate passes.
How DeployOpen scopes and delivers Wazuh CDB list work
DeployOpen plans and builds Wazuh CDB lists as part of a written scope, covering which lists exist, which rules read them and who owns each feed. The work runs inside your own Wazuh deployment, so the lists, rules and feed handling stay under your control.
How we scope
- We inventory which allowlists, blocklists and threat intelligence lists your rules need, and which rules will read them.
- We agree the list types, lookup keys and subnet handling with your security team before any file is written.
- Engagements are fixed-scope, with deliverables, timelines and the feed sources you approve written down before work starts.
How we build
- We write CDB list source files in the key and value format your Wazuh server version expects, then compile them with the supplied tools.
- We wire lists into rules with the correct lookup type and test matches and misses with wazuh-logtest before deployment.
- We document the feed refresh method and confirm the list paths and permissions on each Wazuh server node in your environment.
How we hand over
- You receive the list sources, rule files, test sample logs and the expected logtest results for each list-driven rule.
- We hand over a runbook covering how lists are updated, reloaded, reviewed and rolled back, with named owners for each feed.
- We walk your operations team through checking that a changed list entry produces the expected alert or suppression.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including checks after Wazuh patch releases.
- Retainer work can cover feed refresh reviews, list growth and false positive reviews as your environment changes.
- Ask for a written quote tied to the scope above, and confirm with us which Wazuh version and deployment method you run.

