-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This does a madvise, which doesn't have a ppm event type, both directly and indirectly via syscall(__NR_madvise, ...), as well as an open directly + indirectly. The corresponding rules file matches on madvise and open. The test ensures that both opens and both madvises are detected.
- Loading branch information
Showing
3 changed files
with
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- rule: detect_madvise | ||
desc: Detect any call to madvise | ||
condition: evt.type=madvise and evt.dir=< | ||
output: A madvise syscall was seen (command=%proc.cmdline evt=%evt.type) | ||
priority: INFO | ||
|
||
- rule: detect_open | ||
desc: Detect any call to open | ||
condition: evt.type=open and evt.dir=< and fd.name=/dev/null | ||
output: An open syscall was seen (command=%proc.cmdline evt=%evt.type file=%fd.name) | ||
priority: INFO |
Binary file not shown.