How Wazuh and VirusTotal integration catches changed malicious files
Your team already runs Wazuh file integrity monitoring and wants a second opinion on files that change on endpoints. Wazuh can pass the hashes recorded by integrity monitoring events to VirusTotal through its documented integration, so a changed file gets a reputation lookup instead of only a timestamp and a checksum. The verdict can then drive two things: an alert that reaches your analysts, and an active response that acts on the endpoint. Deciding which of those you want, and for which directories and file types, is the first design decision, because it determines how much noise you accept and how much automation you trust.
The exact integration block, its parameters and the Wazuh versions it supports must be confirmed in the Wazuh documentation for the version you run. This page does not give those values, and they change between releases, so do not copy settings from older blog posts or forum threads. Confirm the expected format of the integration configuration on the server, which rule or event groups trigger the lookup, how the API key is supplied and stored, and whether the integration needs outbound network access from the Wazuh server. Check those points against your own version before you write any configuration.
Before you enable the lookup on production endpoints, confirm the public API rate limits for the key you plan to use with your own VirusTotal account terms, and size your monitored paths so a mass change, such as a software update, cannot exhaust the quota. Note also that file hashes leave your environment in this design, so your data handling and legal teams should approve sending hashes to an external service. Plan the active response step last, and test it on a non-production group first so a false positive does not remove a business file.
What you need before connecting Wazuh to VirusTotal
The VirusTotal integration depends on four things being in place before any configuration: a working Wazuh deployment that already reports file integrity monitoring events, a VirusTotal API key approved for your use, a network path from the Wazuh server to the VirusTotal API, and a clear decision on what gets checked. Settle these first, because most delays come from access and network questions rather than from Wazuh configuration.
A working Wazuh deployment with FIM events
The integration starts from file integrity monitoring (FIM) events that agents send to the Wazuh server. Confirm that agents are enrolled, that the syscheck settings in the agent configuration cover the directories you care about, and that FIM alerts already reach the dashboard. If no file change events arrive, there is nothing for VirusTotal to check. Confirm the minimum Wazuh version for the integration against the release notes for your release line, and plan your upgrade path before you start.
A VirusTotal account and approved API key
Create or confirm a VirusTotal account and check which access tier it carries. The public API has rate limits that suit small test scopes but may not suit broad endpoint coverage, so your expected volume of file hashes decides whether the public tier is enough. Ask your security and legal teams whether uploading or looking up file hashes with an external service is permitted for the endpoints involved. Confirm the terms of the tier you choose with VirusTotal directly.
An approved location for the API key
The key grants access to an external service, so store it where the Wazuh server process can read it but ordinary users and agents cannot. Choose a file owned by root or the Wazuh service account with restrictive permissions, and avoid placing the key in shared scripts, configuration repositories or tickets. Record who owns the key, how it is rotated and how a revocation would be handled if the server is compromised.
Outbound HTTPS from the Wazuh server
The Wazuh server must reach the VirusTotal API over HTTPS. Confirm that egress firewall rules allow this destination from the server, not from every endpoint, and that DNS resolves the API host. If your organization uses an outbound proxy, document the proxy address, authentication and any bypass rules, and test the path with the same user and environment the Wazuh server runs under. Many failed lookups trace back to a proxy or certificate chain issue rather than a Wazuh setting.
Scope of endpoints and directories
Decide which endpoints and directories are in scope before enabling lookups. Checking every changed file on every endpoint multiplies API calls and noise, while a narrow scope can miss the paths malware actually uses, such as user download folders, temporary directories or startup locations. Write the list per agent group, record the reason for each directory, and agree who reviews the results. This list also drives how many lookups your rate limit must cover.
Active response and removal rules
Pairing VirusTotal results with active response means the server may trigger an action on an endpoint, such as removing a file. Decide in advance which verdicts trigger which action, who approves automated removal, and how a false positive is restored. Test removal on a non-production group first, and confirm that the agent running the response has the file permissions it needs without broader rights than the task requires.
How a changed file travels from endpoint to verdict
The path starts when a Wazuh agent's file integrity monitoring notices a changed file and sends the event to the Wazuh server. The server's VirusTotal integration sends the file hash to the external VirusTotal API, which is the one step that leaves your network, and the API key is held on the Wazuh server rather than the endpoint. The verdict returns to the server, which either raises an alert that reaches the Wazuh indexer and dashboard or triggers an active response on the endpoint. Check where the key is stored, what leaves the network, and which verdicts trigger each branch.
Trust boundary between the organization network and the VirusTotal API, with the API key held on the server.
How public API rate limits shape the design
The public VirusTotal API is subject to request quotas, and those quotas shape the integration more than any other single setting. A software update, a configuration push or a mass deployment can change thousands of files within minutes. If every changed file triggers a hash lookup, the key can hit its limit early, and the remaining verdicts arrive late or not at all. Before you design anything, take the current request limits from VirusTotal's own documentation, since limits can change, and measure expected change volume on a sample endpoint group during a normal week and during a known patch window. Those two numbers decide whether the public tier can carry the workload.
Four design choices reduce the lookup volume. First, limit the monitored paths in the file integrity monitoring configuration to high-risk locations, such as web roots, user download and temporary directories, and autorun or startup paths, rather than whole operating system trees that change constantly during updates. Second, filter by event type so that lookups run on added or modified files, and do not spend quota on deletions. Third, decide whether an unknown hash or a failed lookup should raise an alert. Treating those cases as alerts gives coverage but adds noise during a burst, so many teams record them at a lower level and review them in batches. Fourth, decide whether a premium API tier is needed. Ask your security team to confirm what throughput and access terms that tier provides, and price it against the endpoints in scope.
Test these choices on a sample group before rollout, and check the results against the queue. Watch for lookups that are delayed or dropped, and confirm that active response only acts on verdicts that arrived, so a missing answer never removes a file by default. Document the chosen paths, event types and alert rules together, because a later change to any one of them alters the lookup volume and the quota headroom.
Configuring the VirusTotal integration in sequence
This sequence takes a Wazuh deployment from an API key to a tested pipeline in which file integrity monitoring changes are checked against VirusTotal and can trigger active response. Each step ends with a check so the team knows it can move on.
Create and scope the VirusTotal API key
The security engineer who owns the Wazuh deployment creates a VirusTotal account and API key for this integration, and records who holds it and what it is for. Confirm in VirusTotal's current documentation which API tier the account has and what request limits apply to it, since the public API is rate limited and those limits shape how many file hashes can be checked. Keep the key out of shared tickets and chat. Done when the key is recorded in your secrets register with an owner and a rotation contact, and a single test lookup succeeds from a workstation you control.
Store the key on the Wazuh server
On the Wazuh server, the administrator places the key in the integration configuration or in the file the installed version reads for it, then restricts the file so only the root user and the Wazuh service account can read it. Confirm the exact file path, ownership and permission mode for your version and install method in the Wazuh documentation before editing anything. Check the result by listing the file's permissions and confirming that an unprivileged user account cannot read it. Done when the permissions check passes and the key does not appear in any shell history or configuration backup you keep.
Confirm outbound connectivity to VirusTotal
The network team confirms that the Wazuh server can reach the VirusTotal API endpoint over HTTPS through any proxy or egress policy you run, and that the request is allowed by firewall rules on the server's network segment. Use a simple authenticated request from the server itself, not from a laptop, so the test reflects the production path. Check the response status and confirm the key is accepted. Done when the request returns a successful status from the Wazuh server and the outcome is logged in your change record.
Enable file integrity monitoring on a pilot group
The Wazuh administrator creates or selects a pilot agent group with a small set of endpoints, then enables file integrity monitoring in that group's agent configuration for a narrow list of directories, such as one application configuration path that changes rarely. Avoid broad paths like home directories or system-wide temporary folders during the pilot, because they produce noise and add lookups. Confirm the directory list and the group membership with the agent list. Check that a file change in a monitored directory produces a file integrity event on the Wazuh dashboard. Done when that event appears for a pilot agent.
Add the VirusTotal integration block
The administrator adds the VirusTotal integration block to the Wazuh server configuration, using the parameter names and structure in the Wazuh documentation for the installed version. Set the integration to act on file integrity events from the pilot group, and set the alert level or rule filter so only relevant events are sent. Keep the API key reference pointing at the protected file from step two rather than pasting the key into the block. Validate the configuration with the syntax check the installed version provides before restarting anything. Done when the validation reports no errors.
Restart the Wazuh server service
The administrator restarts the Wazuh manager service so the new integration block is loaded, using the service command that matches the installed version and install method. Confirm the exact command in the Wazuh documentation, since it differs between packaged installs, containers and clustered deployments. Watch the server's log output for the integration starting without errors. If the service is part of a cluster, check which node runs the integration before relying on it. Done when the service reports running and the log shows the VirusTotal integration initialized.
Trigger a controlled test file change
On a pilot endpoint, the administrator creates or modifies a test file in a monitored directory. The file should contain harmless content with a hash that is not already known to VirusTotal, or a file from a documented test set your security team approves. Then search the Wazuh dashboard for the file integrity event and the matching VirusTotal lookup record in the integration's logs. Confirm that the lookup result is attached to the alert and that rate limit responses, if any, are logged. Done when the test event shows a VirusTotal result on the dashboard, and the test file and its record are documented as the baseline for the pilot.
Choosing what happens after a malicious verdict
The lowest-risk option is to let Wazuh raise an alert when VirusTotal flags a changed file and leave the file in place. An analyst reviews the alert, confirms the verdict against the host and decides what to do. This keeps humans in every containment decision and avoids removing a file that turns out to be a false positive, such as a build artifact, a packaged installer or a vendor tool that a detection engine misclassifies.
- Slower containment: A malicious file keeps running until someone acts on the alert, so the alert routing and on-call coverage must be fast enough for your risk.
- Alert volume: Every changed file that triggers a lookup becomes a review item, so filter by path, group and verdict threshold before go-live.
- Preserved state: The host is unchanged, which keeps forensic evidence intact for the investigation.
- Analyst skill: Reviewers need a runbook for reading VirusTotal results and checking file hashes, owners and recent changes.
- Cost driver: Staffing for review hours is the main recurring cost, and it grows with endpoint count and file change rate.
Before relying on this option, confirm how alerts are delivered and retained in your Wazuh version, and check the VirusTotal rate limits that apply to your API key so lookups are not dropped during a change burst.
Active response lets the Wazuh server trigger a script on the agent when a rule fires, for example to remove or quarantine a file flagged as malicious. This gives the fastest containment, but it acts without human review. A wrong verdict, a misconfigured rule or a broad path filter can delete business-critical files on production systems, and deleted files may not be recoverable from the endpoint alone.
- Blast radius: A script with a wide match can remove system files, so limit it to narrow paths and specific rule IDs.
- Evidence before removal: Copy the file, its hash, its metadata and the VirusTotal response to a protected location before the script deletes or moves anything.
- Test on a non-production group: Run the script against a lab or pilot agent group first, using known-safe test files, and confirm the logs show the expected action.
- Rollback path: Decide whether quarantined files can be restored and who can authorize it.
- Version check: Active response behavior, supported script types and available actions must be confirmed in the Wazuh documentation for the version in use.
Before enabling automatic removal in production, confirm the exact active response configuration keys, the default timeouts and the restore procedure in the documentation for your release.
A middle path sends the alert to a ticketing system or SOAR workflow that gathers context and requests approval before any removal runs. Enrichment, such as asset owner, business service and recent change history, is attached automatically, and an approver decides whether to trigger the response. This adds a control point without requiring analysts to collect evidence manually every time.
- Approval gate: Define who may approve removal, how long a request stays open and what happens if no one responds.
- Evidence bundle: The workflow should store the alert, file hash, VirusTotal result, host identifier and a copy of the file before approval releases the action.
- Workflow testing: Test the integration on a non-production group so the approval step, the callback to active response and the logging all behave as designed.
- Integration effort: The integration itself is a build item, and its scope depends on the ticketing or SOAR platform you already run. Ask for the integration steps in writing.
- Audit trail: Approvals and actions must be logged in a form your auditors can review.
Confirm with the Wazuh documentation for your version how the integrator and active response interact, and confirm any required credentials and permissions before building the workflow.
Most organizations do not need one path for every endpoint. A practical approach is to match the option to the asset class: alert only on systems where a wrong removal would cause outages, approval gates on important but recoverable systems, and automatic response only on narrow, low-impact locations where the expected malicious files are well understood. Document the decision per group so the response matches the asset's role.
- Group by criticality: Map Wazuh agent groups to business impact and set the response mode per group.
- Start in observation: Run alert-only mode first to measure false positive rates before enabling any removal.
- Document decisions: Record who approved each mode, the rule IDs involved and the date of change.
- Revisit after changes: Re-test scripts after Wazuh upgrades or changes to the file integrity monitoring scope.
- Quote scope: Ask any implementation partner to price each path separately, including testing and runbook work.
Before finalizing the design, confirm each chosen response mode against the Wazuh documentation for your version and have the rollout approved by the system owners of every affected group.
Which fields move between Wazuh and VirusTotal
This table traces each value from the file integrity monitoring event through the VirusTotal lookup, the rule match, the alert and the active response action. Use it to decide where to look when checking a verdict, and confirm each field name against the Wazuh version you run before writing queries or dashboards, because names can change between releases.
| Field or step | Where it is stored | What to confirm against the installed version |
|---|---|---|
| File path and file hash from the FIM event | Agent event, then server alert data and indexer alert document | Confirm the hash algorithms the syscheck module records and which field names the indexer uses for path and hash |
| Agent name and agent group | Server alert record and indexer alert document, shown in the dashboard agent filter | Confirm whether group membership appears on the alert or must be read from the agent record |
| Rule that fired for the file change | Server rules engine output, alert record in the indexer and dashboard rule view | Confirm the rule ID and description used by the VirusTotal integration in your release and any custom rule overrides |
| VirusTotal verdict and detection count | Integration response processed by the server, written to the alert data and the server log for troubleshooting | Confirm which response fields the integration exposes and whether the count is stored as a separate field or only in the rule description |
| Alert level assigned | Rule definition on the server, stored as a numeric level on each indexer alert | Confirm the level thresholds your rules use for malicious verdicts and whether level changes are applied by a custom rule |
| Active response action taken | Active response log on the agent and server log, with the executed action referenced in the alert | Confirm the active response command name, the agent-side script and whether removal runs only on agents in a given group |
Security settings for a VirusTotal-connected Wazuh server
A VirusTotal integration sends file data or hashes outside your environment and can trigger automatic file removal on endpoints. The six controls below cover the API key, the data that leaves your network, the active response that acts on results, the people who can change the configuration, and the monitoring that shows whether the integration works.
Protect the API key
The VirusTotal API key is a credential that ties lookups to your account and its quota. Keep the integration block in the Wazuh server configuration readable only by the account that runs the Wazuh manager and the administrators who maintain it, and check the file owner and permissions after every package upgrade. Do not paste the key into tickets, chat or shared configuration repositories. Store it in a secrets manager and inject it during deployment, and confirm how your configuration management tool handles the value before you commit anything.
Vulnerability detection docsRotate the key on a schedule
Write a rotation procedure before go-live. It should name who creates the new key in VirusTotal, where the new value is stored, which server reloads the configuration, and how the old key is revoked. Rotate immediately after any suspected exposure, after an administrator with access leaves, and on your organization's routine credential interval. Test the procedure on a non-production manager first so that a failed reload does not silently stop lookups during an incident.
Limit what leaves the environment
Hash lookups send a file digest to VirusTotal, while file submission sends the file contents. Decide which data classes may be hashed, which paths are in scope for file integrity monitoring checks, and whether any file may be uploaded. Confirm with legal, privacy and policy owners before enabling any file submission beyond hash lookups, because uploaded files may contain personal data, customer records or secrets. Ask the vendor for its current terms on retention and sharing of submitted content and record the approval.
Restrict active response to approved scripts
Pairing VirusTotal results with active response can delete or quarantine files automatically. Limit the response to a named, reviewed script and to agent groups where automated removal is acceptable, such as workstations with a tested recovery path, and exclude production databases, domain controllers and build hosts. Set the trigger to malicious verdicts above a threshold you have tested, and require that the script logs what it removed. Review the response rules after every change to the group membership.
Audit changes to integration blocks
Anyone who edits the integration block can redirect alerts, change the key or widen the active response scope. Keep the Wazuh server configuration under version control with reviewed changes, and restrict write access on the manager host to named administrators. Record who changed the integration and when, and compare the effective configuration against the approved version on a schedule. Confirm where your team keeps these audit records and how long they are retained.
Monitor failed lookups and quota errors
A broken key, an exhausted quota or a blocked outbound connection can stop lookups without any visible error for analysts. Watch the Wazuh server logs for failed integration calls and set an alert when the count of failures rises or when no lookups complete over a normal period. Check that the public API quota is not reached during routine scans, and tell the team who responds when lookups stop, since a gap in checks can leave malicious files unreviewed.
Common failures when VirusTotal checks stop returning verdicts
This table lists the failures teams most often hit when Wazuh file integrity monitoring checks changed files against VirusTotal, with the likely cause and first fix for each. Read it top to bottom when lookups stop producing verdicts, and confirm log locations and messages for your installed version before changing settings.
| Symptom | Likely cause | Fix to try first |
|---|---|---|
| No integration events in logs after a file change | The VirusTotal integration block was not loaded, or the Wazuh server was not restarted after the configuration change | Confirm the integration block sits in the server configuration with the correct structure, validate the file syntax, then restart the Wazuh manager and check the integration log for a fresh lookup entry |
| Authentication errors in the integration log | The API key is wrong, was copied with extra whitespace, or has expired or been revoked in VirusTotal | Generate or retrieve the key from your VirusTotal account, replace it in the configuration, restart the manager, and trigger a test file change to confirm a successful response |
| Lookups slow down or stop during a change burst | The public API request quota was exceeded because many files changed at once, such as during a software update or deployment | Narrow the monitored paths to high-risk locations, limit scheduled scans of large directories, and confirm the current public API limits in VirusTotal documentation before planning burst volume |
| Lookups fail with connection or timeout messages | No outbound route from the Wazuh server to the VirusTotal API, usually blocked by a firewall rule or an unconfigured proxy | Test outbound HTTPS from the server to the VirusTotal API host, then add the egress rule or proxy settings your security team approves |
| Alerts fire but no file is removed | The active response is not bound to the VirusTotal rule or to the agent group that holds the affected endpoints | Check the active response block for the rule identifier and location, confirm the target agents belong to the group, and review the active response log on the endpoint |
| Legitimate files are removed after a verdict | The malicious-detection threshold is set too loosely, so a small number of vendor detections, often false positives, triggers removal | Raise the detection threshold, exclude known build or vendor paths, and require review of new detections before enabling automatic removal on critical systems |
| Verdicts appear for some agents but not others | Monitored directories differ between agent group configurations, or the agent has not received the updated configuration | Compare the file integrity monitoring settings across groups, then check agent configuration sync status in the Wazuh manager |
Questions buyers ask before connecting Wazuh to VirusTotal
What drives the cost of a Wazuh and VirusTotal integration?
The cost depends on how much work sits around the integration, not on the integration itself. The main drivers are the number of monitored paths and endpoints, how many file integrity monitoring groups need checking, how active response should act on a malicious verdict (alert only, quarantine or delete), how much testing is needed before production, and whether your VirusTotal access level covers the query volume you expect. Any VirusTotal subscription cost is paid to VirusTotal, while the design, configuration and testing work is what you would pay a partner or your own staff for. Ask any quote to separate one-time build work from recurring items such as key rotation, rule tuning and retesting after Wazuh upgrades.
How long does a pilot of this integration take?
A pilot runs as long as it takes to prove detection and response on a small, representative endpoint group without disrupting users. The duration is set by the number of endpoint groups in the pilot, how quickly your change approval process moves, whether a test host can safely receive a planted or known-safe test file, and how many false positives appear and need tuning. Teams with a clear test plan and a staging Wazuh environment usually move faster than teams who must build both at once. Ask for a pilot exit list that names the paths, groups, actions and rollback steps, so the duration follows from agreed criteria.
What does our internal team need to provide for this work?
Your team needs to supply access and decisions that only your organization can give. The list usually includes:
- Administrative access to the Wazuh server and the agent groups that will carry the file integrity monitoring configuration
- A list of endpoint groups and monitored paths, with owners who can confirm what should be watched
- A change approval route for new active response behavior, especially anything that deletes or quarantines files
- A test plan with safe sample files, expected results and rollback steps
- A decision on where the VirusTotal API key is stored and who may read it
If any of these are missing, the build stops at the point where the missing input is needed, so confirm owners before the work is scheduled.
Can our team set up Wazuh and VirusTotal alone using the documentation?
A capable Wazuh team can usually set up the basic pieces from the Wazuh documentation, provided it has someone who understands file integrity monitoring, active response and the agent configuration model. The harder parts are rarely the first configuration file. They are deciding which paths to monitor without flooding the dashboard, writing active response logic that will not remove a legitimate file, handling API rate limits and failures without losing results, and proving the setup works after a Wazuh upgrade. If your team lacks one of those skills or has no staging environment, a fixed-scope engagement can cover the gap, with the scope and deliverables agreed in writing before work starts.
Do we need a retainer for key rotation and detection tuning?
A retainer is optional. It becomes useful when you want someone else to own recurring work after go-live. Key rotation is a small, periodic task, but it has to be coordinated with the agents, the server configuration and the people who hold the key. Tuning is the larger recurring task: new paths appear, legitimate software changes hashes, and VirusTotal verdicts shift over time. If your security team can absorb that work, keep it in-house and document the runbook. If it cannot, ask for an ongoing support or continuous testing arrangement that lists which tasks recur, how often they are reviewed and who approves changes.
Does connecting Wazuh to VirusTotal make us compliant?
No. The integration is a technical control that can produce evidence for a requirement, but it does not make an organization compliant on its own. Compliance assessments look at whether the control is defined, owned, operating as designed and reviewed over time, and whether the evidence matches the policy. Wazuh dashboards and rule mappings can help show file integrity monitoring and malware detection activity, yet the assessor will still ask about scope, exception handling, change records and the people responsible. DeployOpen prepares systems, controls and evidence for assessments, but independent auditors and certification bodies issue the audit results.
What should we check before sending file hashes to an external service?
Before enabling the integration, confirm what leaves your environment. In a typical file integrity setup, the hash of a changed file is sent to VirusTotal for lookup, not the file itself, but this depends on the exact configuration and VirusTotal settings, so verify it in your own test environment. Also confirm that your data handling policy allows external lookups from the monitored hosts, which paths are excluded because they contain sensitive data, and who approves the external service as a subprocessor. Keep the answer in writing, because security reviewers will ask for it.
How DeployOpen works on this
DeployOpen plans and builds the Wazuh and VirusTotal integration inside your own infrastructure, starting from a written scope that names the agents, file paths and response rules involved. We test the setup against your environment, document how it runs, and hand it over to your team with a support option if you want ongoing help.
How we scope
- Confirm which Wazuh deployment, agents and file integrity monitoring paths are in scope for the VirusTotal check.
- Agree who holds the VirusTotal API key, how it is stored, and which hashing and upload rules apply.
- Document the public API rate limits, expected file change volume and the active response actions you accept.
How we build
- Configure the Wazuh server integration and file integrity monitoring rules that send changed file hashes for lookup.
- Set alert levels and rule filters so only meaningful VirusTotal results reach analysts and response scripts.
- Test active response against a controlled test file to confirm removal behaves as the written scope describes.
How we hand over
- Deliver configuration files, rule definitions and a runbook covering key rotation, rate limit handling and rollback.
- Walk your security and platform engineers through alert triage, false positive review and response decisions.
- Record test results and open items so your team can repeat checks after upgrades or agent changes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Ask any partner for a quote tied to a written scope, which sets the price for this integration.

