Tracee Policies #2640
Replies: 9 comments 20 replies
-
it would be helpful to consider how policy maps to current cli flags. let me know if I get it right or I missed something:
not sure how to place |
Beta Was this translation helpful? Give feedback.
-
I'm not sure about the way operators are declared. in your example:
^^ here we use
^^ here I suppose it's implicitly "equal" but then the value contains a modifier
^^ here there's no operator at all Additionally, the I'm thinking maybe to just use the same operators we have today in the cli? It's more readable for the user and probably will be easier to implement since the code is already there. So it will look like:
alternatively, if we want structured operators then we need to 1) use them more consistently across the yaml 2) make sure all current and future ones are easily supported |
Beta Was this translation helpful? Give feedback.
-
When users enable container enrichment, I it would be a good idea to allow scoping by a container image/SHA as well, WDYT? |
Beta Was this translation helpful? Give feedback.
-
^^ shows multi value filter in same line
^^ shows multi value filter as two lines are both options going to be possible or we want to choose one? BTW it is OR in both cases right? |
Beta Was this translation helpful? Give feedback.
-
From our last talk we were going to start with network-related policies (so we could apply rules of allow/deny according to network values). Is that still the case? If that is so, I should implement a network-related filter for the net_packet events, and a way to allow/deny the flows. |
Beta Was this translation helpful? Give feedback.
-
I updated the policy and changed "events" list to be "rules" list, where a rule is composed of:
|
Beta Was this translation helpful? Give feedback.
-
actions are sometimes a dict (webhook) and sometimes string (block). depending on if configuration is needed. |
Beta Was this translation helpful? Give feedback.
-
sorry for another name debate but don't we call audit print everywhere else? should we call it print here as well |
Beta Was this translation helpful? Give feedback.
-
for audit format - we need to rethink this as the format needs to fit with the "everything is an event" scheme. now everything tracee emits needs to follow the same common json structure, so we can't let the user print arbitrary strings. |
Beta Was this translation helpful? Give feedback.
-
Now that we have sets of filters in place, we can move to the next step of implementing runtime policies in tracee.
Following is a proposal for how we can implement policies in Tracee. Any comments/suggestions are welcome.
A runtime policy is composed of:
Policies will be defined in files - one policy per file
A policy can be given to tracee using a new "--policy" flag, which takes the path of the policy as an argument
Following is an example for such a policy, defined in a yaml file:
Beta Was this translation helpful? Give feedback.
All reactions