falcosecurity / rules

Falco rule repository
https://falcosecurity.github.io/rules/
Apache License 2.0
88 stars 64 forks source link

Resolve relative paths #242

Closed VVX7 closed 2 months ago

VVX7 commented 2 months ago

Motivation

Use of relative paths breaks rules that match paths via the starswith operator. For example, Execution from /dev/shm.

Feature

Falco should resolve relative paths.

Alternatives

Accept the performance cost and use a contains operator in the rule.

Additional context

I picked up Falco a few days ago and started poking at rules. Here's my blog post that discusses ways to bypass the Execution from /dev/shm rule.

https://vvx7.io/posts/2024/04/falco-detecting-linux-fileless-malware-execution/