Skip to content
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

Mocked outputs for a GenAI Cyber project #3481

Open
erezweinstein5 opened this issue Feb 4, 2025 · 2 comments
Open

Mocked outputs for a GenAI Cyber project #3481

erezweinstein5 opened this issue Feb 4, 2025 · 2 comments

Comments

@erezweinstein5
Copy link

erezweinstein5 commented Feb 4, 2025

Add mocked outputs

It would be super helpful to have a mocked data (preferably with some real security issues detected). We're building a GenAI Cyber project and we would be happy to integrate Flaco as a data source.
Thank you :)

@ekoops
Copy link
Contributor

ekoops commented Feb 4, 2025

Hey! You can use the falcosecurity/event-generator to generate mocked data for your use case.

The event-generator allows you to generate suspicious events (actions) which will trigger Falco rules. You can collect the generated alerts and feed them into your project.

You can use

# See all the available actions
event-generator list --all

# Run the actions matching the regular expression [regexp]
event-generator run [regexp]

I think it would be useful for you also to take a look at --loop and --sleep options:

--loop to run actions in a loop
--sleep to set the length of time to wait before running an action (default to 100ms)

If you want to generate custom actions triggering your own custom rules, you can add your own custom implementation or try the (still-in-development) declarative-testing branch.

The declarative-testing branch adds two new commands:

# Run test(s) specified via a YAML description
event-generator declarative run ...

# Run test(s) specified via a YAML description and verify that they produce the expected outcomes
event-generator declarative test ...

These commands are similar to their counterpart event-generator run and event-generator test, but allows to write your own action using a YAML based syntax. Take a look at these PRs to see some examples of usage:

You can also use event-generator declarative explain ... command to explore the YAML syntax.

@erezweinstein5
Copy link
Author

Thank you @ekoops! Will certainly try that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants