Diese Seite ist nur auf Englisch verfügbar. English version

Wazuh: Mitigating false positive of coreutils

Some core-utils trigger the Wazuh 4.1.x line trojan finding. At least with some newer kernels, like Ubuntu 26.04.

This affects system binaries like:

  • /usr/bin/date, /bin/date

  • /usr/bin/passwd, /bin/passwd

  • /usr/bin/chfn, /bin/chfn

  • /usr/bin/chsh, /bin/chsh

  • /usr/bin/md5sum, /bin/md5sum

This problem was confirmed in this issue: Wazuh issue #35704. Unfortunately the thread does not give instructions how to disable this false positive. It states however that these false positives will be gone in v5.

Resolving the false positive

First of all it must be crosschecked if it is really a false positive.

Check with the following command on the affected OS, if the file is actually part of a distribution package:

# dpkg -S /usr/bin/<your binary>
dpkg -S /usr/bin/md5sum

To disable the false positive store this rule in the Wazuh manager:

<group name="rootcheck,local,">
    <rule id="100110" level="0">
    <if_sid>510</if_sid>
    <regex type="pcre2">Trojaned version of file '/(usr/)?bin/(date|passwd|chfn|chsh|md5sum)' detected</regex>
    <description>Ignore false positive rootcheck for Rust coreutils (wazuh/wazuh#35704)</description>
    </rule>
</group>

This is safer than defining an ignore rule on the binary file, because it only matches this single false positive related to a file, not other findings by the rootcheck.

How to set this exception rule?

In principal the rule can be added to this file:

sudo nano /var/ossec/etc/rules/local_rules.xml

If you want to do it the GitOps way in combination with Kubernetes, it can be set in the values.yaml file of the Wazuh deployment:

localRules: |
        <group name="rootcheck,local,">
          <rule id="100110" level="0">
            <if_sid>510</if_sid>
            <regex type="pcre2">Trojaned version of file '/(usr/)?bin/(date|passwd|chfn|chsh|md5sum)' detected</regex>
            <description>Ignore false positive rootcheck for Rust coreutils (wazuh/wazuh#35704)</description>
          </rule>
        </group>

Final considerations

Question: When disabling given detection with an exception rule, does’t it pose a problem when the file would be infected at some point in time?

In this case the rootcheck method is indeed blind for a potential infection. But, once the file hash changes, it would be detected by the FIM (File integrity monitoring).