falcosecurity / plugins

Falco plugins registry
Apache License 2.0
80 stars 73 forks source link

Application name is not captured by Falco #427

Closed fdriouch closed 5 months ago

fdriouch commented 5 months ago

Description of the Bug

When using Falco (0.36.2) to monitor Okta logs with the Okta plugin (0.10.0), when an event that contains application data is detected, the application name is not captured. While there is an actual application name in the Okta audit logs, the falco event logs and the okta.app field return empty values (respectively NA & null) instead of the app name.

How to reproduce it

  1. Activate the below default rule in your Okta ruleset.
- rule: Adding user to application membership in OKTA
  desc: Detect a user who has been added to application membership in OKTA
  condition: okta.evt.type = "application.user_membership.add"
  output: "A user has been added to an application membership in OKTA (user=%okta.actor.name, ip=%okta.client.ip, target user=%okta.target.user.name, app=%okta.app)"
  priority: NOTICE
  source: okta
  tags: [okta]
  1. Assign an application to a user
  2. Check your Falco logs
  3. Confirm the alert does not contain the application name

Expected behaviour

The Falco alert as well as the okta.app container captures the application name in one from the appropriate target block in Okta logs. The application name is visible in alerts forwarded by Falcosidekick.

Screenshots

image Code_2024-03-08 09-38-10 Microsoft Edge_2024-03-08 09-36-47

Environment