Skip to content

Commit

Permalink
Add an example of rule preventing CVE-2021-4034
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Dec 20, 2023
1 parent a158059 commit 9ce9e25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rules/basic-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@
- name: Executable deleted itself
type: FileDeleted
condition: payload.filename == header.image


# Rules preventing known vulnerabilities
- name: CVE-2021-4034, possible envp manipulation with empty argv
type: Exec
condition: payload.argc == 0

0 comments on commit 9ce9e25

Please sign in to comment.