Sneed-Reactivity/yara-mikesxrs/InQuest/Excel_IQY_File.yar
Sam Sneed 08e8d462fe OMG ISTG PLS WORK
RED PILL 🔴 💊
2024-07-25 12:43:35 -05:00

20 lines
680 B
Text

rule IQY_File
{
meta:
Author = "InQuest Labs"
Website = "http://blog.inquest.net/blog/2018/08/23/hunting-iqy-files-with-yara/"
Description = "Detects all Excel IQY files by identifying the WEB 'magic' on the first line and also includes any URL."
Severity = "0"
strings:
/* match WEB on the first line of a file
takes into account potential whitespace before or after case-insensitive "WEB" string
*/
$web = /^[ \t]*WEB[ \t]*(\x0A|\x0D\x0A)/ nocase
/* match any http or https URL within the file */
$url = /https?:\/\/([\w\.-]+)([\/\w \.-]*)/
condition:
$web at 0 and $url
}