-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New transformer: join(<list>, <sep>)
#1925
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: