Skip to content

Commit e0ee2cc

Browse files
committed
Tweak malicious command regexes
1 parent ccb3bab commit e0ee2cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"malicious": {
33
"rmrf": {
44
"variations": [
5-
"^rm \\-rf \\.$", "^rm \\-rf \\/$", "^rm \\-rf \\*$", "rm \\-r \\.\\[\\^\\.\\]\\*",
5+
"^rm \\-rf \\.$", "^rm \\-rf \\/$", "^rm \\-rf \\*$",
6+
"^rm \\-r \\.\\[\\^\\.\\]\\*", "^rm.*\\-\\-no\\-preserve\\-root",
67
"^echo cm0gLXJmIH4vKg== \\| base64 \\-d", "python \\-c.*sn!\\.sg!\\+"
78
],
89
"description": "delete all files"
910
},
1011

1112
"void": {
12-
"variations": [ "^mv .* \/dev\/null", "^rm \\-rf \\/\\w\\/?\\w?" ],
13+
"variations": [ "^mv .* \/dev\/null", "^rm \\-?\\S+ \\/\\w\\/?\\w?" ],
1314
"description": "delete important files"
1415
},
1516

0 commit comments

Comments
 (0)