You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The join(<list>, <sep>) transformer concatenates the items of a list with a given separator. Its output can be utilized in two primary ways:
In conditions for filtering.
In the output: field of Falco's rule.
One significant use case is generating a string representation of the process lineage, such as join(proc.lineage, "->").
Feature
Implement the join(<list>, <sep>) function with the following specifications:
<list>: A list (i.e., a field with EPF_IS_LIST).
<sep>: A string used as a separator.
The transformer should return a concatenated string.
For example, join(proc.env, ";") would return something like SHELL=/bin/bash;SHELL_NEW=/bin/sh;PWD=/home/user HOME=/home/user.
Note: Implementing this transformer requires extending the current syntax to allow more than one argument.
Alternatives
An alternative is not to implement this transformer if all potential use cases can be achieved through other methods. However, implementing this general-purpose transformer could provide greater flexibility in both filtering and output. Therefore, there is no compelling reason not to implement this transformer.
The text was updated successfully, but these errors were encountered:
Motivation
Please take a look at this comment for context.
The
join(<list>, <sep>)
transformer concatenates the items of a list with a given separator. Its output can be utilized in two primary ways:output:
field of Falco's rule.One significant use case is generating a string representation of the process lineage, such as
join(proc.lineage, "->")
.Feature
Implement the
join(<list>, <sep>)
function with the following specifications:<list>
: A list (i.e., a field withEPF_IS_LIST
).<sep>
: A string used as a separator.The transformer should return a concatenated string.
For example,
join(proc.env, ";")
would return something likeSHELL=/bin/bash;SHELL_NEW=/bin/sh;PWD=/home/user HOME=/home/user
.Note: Implementing this transformer requires extending the current syntax to allow more than one argument.
Alternatives
An alternative is not to implement this transformer if all potential use cases can be achieved through other methods. However, implementing this general-purpose transformer could provide greater flexibility in both filtering and output. Therefore, there is no compelling reason not to implement this transformer.
The text was updated successfully, but these errors were encountered: