rule DeviceGuard_WDS_Evasion { meta: license = "https://creativecommons.org/licenses/by-nc/4.0/" author = "Florian Roth" description = "Detects WDS file used to circumvent Device Guard" score = 80 reference = "http://www.exploit-monday.com/2016/08/windbg-cdb-shellcode-runner.html" strings: $s1 = "r @$ip=@$t0" ascii fullword $s2 = ";eb @$t0+" ascii $s3 = ".foreach /pS" ascii fullword condition: filesize < 50KB and all of them }