Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rules/anti-static/obfuscation/padding.yara
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ rule msxml2_http: critical {
$not_fileapi = "MSXML2.XMLHttp.3.0\")}catch(c){b=new ActiveXObject(\"Microsoft.XMLHTTP\")}return b},isArray:l,support:{dnd:s&&\"ondrop\"i"
$not_i18next1 = "i18nextHttpBackend"
$not_i18next2 = "u[\"User-Agent\"]=\"i18next-http-backend (node/\".concat(S.process.version,\"; \")"
$not_yui1 = "Copyright (c) 2008, Yahoo! Inc. All rights reserved."
$not_yui2 = "http://developer.yahoo.net/yui/license.txt"
$not_yui3 = "version: 2.6.0"
$not_yui4 = "YAHOO.util.Connect={_msxml_progid:[\"Microsoft.XMLHTTP\",\"MSXML2.XMLHTTP.3.0\",\"MSXML2.XMLHTTP\"]"
$not_yui5 = "if(typeof YAHOO==\"undefined\"||!YAHOO){var YAHOO={};}YAHOO.namespace=function()"

condition:
filesize < 128KB and $a and !a > 32 and none of ($not*)
Expand Down
5 changes: 3 additions & 2 deletions rules/exec/remote_commands/code_eval.yara
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ rule js_eval_response: critical {
strings:
$val = /eval\(\w{0,16}\.responseText\)/

$not_ejs = /EJS\.|EJS=/
$not_dojo = /dojo(\-|\_|x)/
$not_ejs = /EJS\.|EJS=/

condition:
filesize < 1MB and any of ($val*) and not #not_ejs > 0
filesize < 1MB and any of ($val*) and not #not_ejs > 0 and not #not_dojo > 0
}

rule js_eval_near_enough_fromChar: medium {
Expand Down
Loading