diff --git a/shared/oval/rpm_verify_hashes.xml b/shared/oval/rpm_verify_hashes.xml
index 8f61c46ac80..220c17f6445 100644
--- a/shared/oval/rpm_verify_hashes.xml
+++ b/shared/oval/rpm_verify_hashes.xml
@@ -5,7 +5,6 @@
multi_platform_fedora
multi_platform_rhel
-:w
Verify the RPM digests of system binaries using the RPM database.
@@ -13,10 +12,9 @@
-
-
-
-
+
+
+
@@ -31,7 +29,7 @@
.*
.*
.*
- ^.*bin/.*$
+ ^/(bin|sbin|lib|lib64|usr)/.+$
state_files_fail_md5_hash
diff --git a/shared/templates/static/ansible/rpm_verify_hashes.yml b/shared/templates/static/ansible/rpm_verify_hashes.yml
index ddb1d3d2dc7..7199e303f9d 100644
--- a/shared/templates/static/ansible/rpm_verify_hashes.yml
+++ b/shared/templates/static/ansible/rpm_verify_hashes.yml
@@ -15,7 +15,7 @@
when: ansible_distribution == "RedHat"
- name: "Read files with incorrect hash"
- shell: "rpm -Va | grep -E '^..5.*s?bin/' | sed -r 's;^.*\\s+(.+);\\1;g'"
+ shell: "rpm -Va | grep -E '^..5.* /(bin|sbin|lib|lib64|usr)/' | sed -r 's;^.*\\s+(.+);\\1;g'"
register: files_with_incorrect_hash
changed_when: False
when: package_manager_reinstall_cmd is defined