Skip to content

Commit b807720

Browse files
authored
Merge pull request #77 from EMSeek/master
Version bump
2 parents f7962eb + 62558f5 commit b807720

File tree

20 files changed

+75
-5
lines changed

20 files changed

+75
-5
lines changed

Changelog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
3.8 2025 Apr 20
2+
Updated default rules
3+
Updated js rules
4+
Updated ruby rules
5+
Updated fruit rules
6+
Updated exec rules
7+
Updated dotnet rules
8+
Updated xss rules
9+
Updated php rules
10+
Updated secret rules
11+
112
3.7 2024 Dec 20
213
Updated javascript rules
314
Updated typescript rules

graudit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -- $GRARGS $@
66
set -e
77
set -o pipefail
8-
VERSION='3.7'
8+
VERSION='3.8'
99
basedir=$(dirname "$0")
1010
BINFILE=$(which grep)
1111

@@ -44,7 +44,7 @@ banner() {
4444
\___ /|__| (____ /____/\____ | |__||__|
4545
/_____/ \/ \/
4646
grep rough audit - static analysis tool
47-
v3.7 written by @Wireghoul
47+
v3.8 written by @Wireghoul
4848
=================================[justanotherhacker.com]==='
4949
fi
5050
}

signatures/default.db

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ eval[[:space:]]*\(.*\$.*\)
1919
(mysql.?_|pg_|sqlsrv_|::)query[[:space:]]*\(.*\$.*\)
2020
[Ww][Hh][Ee][Rr][Ee][[:space:]]+.*=.*\$[^; ]+
2121
([Ww][Hh][Ee][Rr][Ee]|[Aa][Nn][Dd]|[Oo][Rr])[[:space:]]+.*[[:space:]]+[Ll][Ii][Kk][Ee][[:space:]]+.*\$
22+
VALUES[[:space:]]*\([^\)]*\$.*\)
2223
^[[:space:]]*(include|include_once|require|require_once)[[:space:]]*\([^\;\}\{]*\$.*\)
2324
print.*param[[:space:]]*\(.*\);
2425
extract[[:space:]]*\(\$_(GET|POST|REQUEST|COOKIE|SERVER)

signatures/dotnet.db

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ new[[:space:]]+(System\.Diagnostic\.)?Process(StartInfo)?[[:space:]]*\(.*
3131
new[[:space:]]+Cli[[:space:]]*\(.*
3232
# via Microsoft.VisualBasic
3333
\.Shell[[:space:]]*\(.*
34+
\.Invoke[[:space:]]*\([^\)]+\)
3435
<%=[[:space:]]*[Rr]equest\.[Qq]uery[Ss]tring\[.*%>
3536
#[Ss][Ee][Ll][Ee][Cc][Tt][[:space:]]+.*\{[0-9]+\}
3637
[Ss][Ee][Ll][Ee][Cc][Tt][[:space:]]+.*[\'\"][[:space:]]*\+[[:space:]]*[Rr]equest\..*

signatures/dotnet/exec.db

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ new[[:space:]]+(System\.Diagnostic\.)?Process(StartInfo)?[[:space:]]*\(.*
55
new[[:space:]]+Cli[[:space:]]*\(.*
66
# via Microsoft.VisualBasic
77
\.Shell[[:space:]]*\(.*
8+
\.Invoke[[:space:]]*\([^\)]+\)

signatures/exec.db

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ new[[:space:]]+(System\.Diagnostic\.)?Process(StartInfo)?[[:space:]]*\(.*
55
new[[:space:]]+Cli[[:space:]]*\(.*
66
# via Microsoft.VisualBasic
77
\.Shell[[:space:]]*\(.*
8+
\.Invoke[[:space:]]*\([^\)]+\)
89
exec\.Command[[:space:]]*\(
910
syscall\.Exec[[:space:]]*\(
1011
os\.StartProcess[[:space:]]*\(
@@ -31,11 +32,11 @@ system([[:space:]]*\(|[[:space:]]+[\"\']).*\)?
3132
\.instance_eval.*
3233
eval([[:space:]]*\(|[[:space:]]+[^\(])
3334
spawn([[:space:]]*\(|[[:space:]]+[^\(])
35+
system([[:space:]]*\(|[[:space:]]+").*\#\{[^\}]+\}
3436
system[[:space:]]*\(
3537
\.open[[:space:]]*\(
3638
\.(public_)?send[[:space:]]*\(
3739
`.*#\{[^`]+`
38-
File\.(read|new|open|delete)[[:space:]]*\(
3940
.*\=.*\!\!
4041
[a-z0-9A-Z]\.\!
4142
\.execSync[[:space:]]*\(

signatures/fruit.db

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ eval[[:space:]]*\([^\)\;\"]*([Rr]eq(uest)?[\.\)]|\.[Gg]et[Pp]aram[[:space:]]*[\[
5050
(LIMIT|limit)[[:space:]]+([0-9,]+)?[;:space:]]*[\'\"][\'\"]?[[:space:]]*\+[[:space:]]*[^\"\']
5151
\.query\([^\);]*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
5252
eval[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
53+
eval[[:space:]]*\(.*[Rr]eq(quest)?\.(query|body|param)?
5354
<%-[[:space:]]+.*%>
5455
\.(spawn|exec)(File)?(Sync)?\([^\);]*([\'\"] *\+|\$\{)
56+
set(Interval|Timeout)[[:space:]]*\([^,\}\)]*[Rr]eq(quest)?\.[A-Za-z0-9]+
57+
\.SafeString[[:space:]]*\([^\)]*[\"'][[:space:]]*\+
5558
asm[[:space:]]+[\'\"].*
5659
unsafeAddr
5760
execShellCmd[[:space:]]*\(
@@ -112,10 +115,18 @@ pg_query[[:space:]]*\(.*\$(_ENV|_GET|_POST|_COOKIE|_REQUEST|_SERVER|HTTP|http).*
112115
(LIKE|like)[[:space:]]+.*\$(_ENV|_GET|_POST|_COOKIE|_REQUEST|_SERVER|HTTP|http)
113116
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\$(_ENV|_GET|_POST|_COOKIE|_REQUEST|_SERVER|HTTP|http)
114117
(LIMIT|limit)[[:space:]]+.*\$(_ENV|_GET|_POST|_COOKIE|_REQUEST|_SERVER|HTTP|http)
118+
VALUES[[:space:]]*\([^\)]*\$(_ENV|_GET|_POST|_COOKIE|_REQUEST|_SERVER|HTTP|http)
115119
\.execute[[:space:]]*\([\"\'].*%.*[\"\'][[:space:]]*%.*\)
116120
^[[:space:]]*`[^`]*#\{[^\}]+\}.*`
117121
[=\(][[:space:]]*`[^`]*#\{[^\}]+.*\}
118122
render[[:space:]]+:?(text|plain):?.*#\{[Pp][Aa][Rr][Aa][Mm][^\}]*\}
123+
File\.(read|new|open|delete|write)[[:space:]]*\("[^"]*\#\{[^\}]+[^\)]*\)
124+
['"(: ][Ss][Ee][Ll][Ee][Cc][Tt][[:space:]]+.*#\{[^\}]+
125+
(WHERE|where)[[:space:]]+.*=[[:space:]]*['"]*#\{[^\}]+
126+
[\'\" ]+AND[[:space:]]+.*=.*\+[[:space:]]*#\{[^\}]+
127+
(LIKE|like)[[:space:]]+.*#\{[^\}]+
128+
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\+[[:space:]]*#\{[^\}]+
129+
['" ](LIMIT|limit)[[:space:]]+.*#\{[^\}]+
119130
Source\.fromFile[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
120131
sql\".*\#\$.*\"\.as\[.*
121132
SQL[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+

signatures/js.db

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
(document|\$)\.cookie[[:space:]]*\(
2+
[Mm][Dd]5[[:space:]]*\(
3+
[Ss][Hh][Aa]1[[:space:]]*\(
4+
createHash[[:space:]]*\([[:space:]]*['"]([Ss][Hh][Aa][1]?|[Mm][Dd][5])['"]
25
\.write[[:space:]]*\([^;]+\.location\.href
36
nodeIntegration
47
nodeIntegrationInWorker
@@ -16,8 +19,11 @@ openExternal[[:space:]]*\(
1619
ELECTRON_RUN_AS_NODE
1720
\.query\([^\);]*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
1821
eval[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
22+
eval[[:space:]]*\(.*[Rr]eq(quest)?\.(query|body|param)?
1923
<%-[[:space:]]+.*%>
2024
\.(spawn|exec)(File)?(Sync)?\([^\);]*([\'\"] *\+|\$\{)
25+
set(Interval|Timeout)[[:space:]]*\([^,\}\)]*[Rr]eq(quest)?\.[A-Za-z0-9]+
26+
\.SafeString[[:space:]]*\([^\)]*[\"'][[:space:]]*\+
2127
eval[[:space:]]*\(
2228
dangerouslySetInnerHTML
2329
trustAsHtml

signatures/js/crypto.db

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Mm][Dd]5[[:space:]]*\(
2+
[Ss][Hh][Aa]1[[:space:]]*\(
3+
createHash[[:space:]]*\([[:space:]]*['"]([Ss][Hh][Aa][1]?|[Mm][Dd][5])['"]

signatures/js/fruit.db

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
\.query\([^\);]*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
22
eval[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
3+
eval[[:space:]]*\(.*[Rr]eq(quest)?\.(query|body|param)?
34
<%-[[:space:]]+.*%>
45
\.(spawn|exec)(File)?(Sync)?\([^\);]*([\'\"] *\+|\$\{)
6+
set(Interval|Timeout)[[:space:]]*\([^,\}\)]*[Rr]eq(quest)?\.[A-Za-z0-9]+
7+
\.SafeString[[:space:]]*\([^\)]*[\"'][[:space:]]*\+

0 commit comments

Comments
 (0)