Skip to content

Commit

Permalink
Merge pull request #363 from sublime-security/cd.target.es6-js
Browse files Browse the repository at this point in the history
Adds  keyword to js scanner to scan ECMA6 compliant js (#33)
  • Loading branch information
phutelmyer authored Apr 18, 2023
2 parents 3b40901 + e338d46 commit d6a1b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/python/backend/taste/taste.yara
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ rule javascript_file {
type = "script"
strings:
$var = { 76 61 72 20 } // var
$let = { 6C 65 74 20 } // let
$function1 = { 66 75 6E 63 74 69 6F 6E } // function
$function2 = { 28 66 75 6E 63 74 69 6F 6E } // (function
$function3 = { 66 75 6E 63 74 69 6F 6E [0-1] 28 } // function[0-1](
Expand All @@ -720,6 +721,7 @@ rule javascript_file {
$unescape = { 75 6E 65 73 63 61 70 65 28 } // unescape(
condition:
$var at 0 or
$let at 0 or
$function1 at 0 or
$function2 at 0 or
$if at 0 or
Expand Down
2 changes: 2 additions & 0 deletions src/python/strelka/config/taste.yara
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ rule javascript_file {
type = "script"
strings:
$var = { 76 61 72 20 } // var
$let = { 6C 65 74 20 } // let
$function1 = { 66 75 6E 63 74 69 6F 6E } // function
$function2 = { 28 66 75 6E 63 74 69 6F 6E } // (function
$function3 = { 66 75 6E 63 74 69 6F 6E [0-1] 28 } // function[0-1](
Expand All @@ -707,6 +708,7 @@ rule javascript_file {
$unescape = { 75 6E 65 73 63 61 70 65 28 } // unescape(
condition:
$var at 0 or
$let at 0 or
$function1 at 0 or
$function2 at 0 or
$if at 0 or
Expand Down

0 comments on commit d6a1b8a

Please sign in to comment.