Vinny
09/18/2024, 5:41 PMRebecca Cowart
09/18/2024, 8:55 PMAND matches='eicar'
and see if that solves your issue. If that does not work, I would check the path in your WHERE clause, because it might need to be altered. If you've checked/tested the path, and you're certain that its correct, it is worth noting that there are some files on your computer that osquery doesn't have access to.Vinny
09/18/2024, 8:58 PMAND matches='eicar'
and it worked. Any idea why it was returning no results because of this?Rebecca Cowart
09/19/2024, 4:15 PMVinny
09/19/2024, 5:23 PMSELECT * FROM yara WHERE path like '/root/%%' AND sigrule IN ( 'rule eicar {
strings:
$s1 = "X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" fullword ascii
condition:
all of them
}'
) AND matches='eicar';
Rebecca Cowart
09/19/2024, 6:24 PMVinny
09/19/2024, 6:28 PM