Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rules: don't load rules that fail to compile
Be sure that we don't load invalid regexp rules. related: #536
- Loading branch information
1 parent
8037c38
commit 9821800
Showing
5 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"created": "2020-12-13T18:06:52.209804547+01:00", | ||
"updated": "2020-12-13T18:06:52.209857713+01:00", | ||
"name": "invalid-regexp-list", | ||
"enabled": true, | ||
"precedence": true, | ||
"action": "allow", | ||
"duration": "always", | ||
"operator": { | ||
"type": "list", | ||
"operand": "list", | ||
"sensitive": false, | ||
"data": "[{\"type\": \"regexp\", \"operand\": \"process.path\", \"sensitive\": false, \"data\": \"^(/di(rmngr$\"}, {\"type\": \"simple\", \"operand\": \"dest.port\", \"data\": \"53\", \"sensitive\": false}]", | ||
"list": [ | ||
{ | ||
"type": "regexp", | ||
"operand": "process.path", | ||
"sensitive": false, | ||
"data": "^(/di(rmngr)$", | ||
"list": null | ||
}, | ||
{ | ||
"type": "simple", | ||
"operand": "dest.port", | ||
"sensitive": false, | ||
"data": "53", | ||
"list": null | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"created": "2020-12-13T18:06:52.209804547+01:00", | ||
"updated": "2020-12-13T18:06:52.209857713+01:00", | ||
"name": "invalid-regexp", | ||
"enabled": true, | ||
"precedence": true, | ||
"action": "allow", | ||
"duration": "always", | ||
"operator": { | ||
"type": "regexp", | ||
"operand": "process.path", | ||
"sensitive": false, | ||
"data": "/opt/((.*)google/chrome/chrome", | ||
"list": [] | ||
} | ||
} |