-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rule improvements based on temporal analysis (#175)
- Loading branch information
1 parent
53b9174
commit fa3e63d
Showing
6 changed files
with
44 additions
and
19 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
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
rule nmap : notable { | ||
strings: | ||
$ref = "nmap" fullword | ||
// referenced by some /etc/protocols files | ||
// example: https://github.com/SerenityOS/serenity/blob/416eb74fa5269d69eefc6baddfb1966c4da2a1e8/Base/etc/protocols#L7 | ||
$not_please = "please install the nmap package" | ||
condition: | ||
$ref | ||
$ref and none of ($not*) | ||
} |
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
rule lockedFiles : suspicious { | ||
rule lockedFiles : notable { | ||
meta: | ||
description = "References 'locked files'" | ||
strings: | ||
$ref = "lockedFiles" | ||
$ref2 = "lockedFileNames" | ||
$ref = /[\w\/\.]{0,24}lockedFiles/ | ||
condition: | ||
any of them | ||
} | ||
|
||
rule lockedFileNames : notable { | ||
meta: | ||
description = "References 'locked file names'" | ||
strings: | ||
$ref2 = /[\w\/\.]{0,24}lockedFileNames/ | ||
condition: | ||
any of them | ||
} |