Skip to content

Conversation

@Molter73
Copy link
Collaborator

Description

This change introduces the capability to monitor process execution events by adding a new eBPF program attached to the bprm_check_security LSM hook.

A PROCESS_EXEC event type is added to the event pipeline. The gRPC API is extended with a new SignalService to handle these process-related signals, separate from the existing file activity service.

The event handling logic is refactored to differentiate between file and process events, routing them to their respective gRPC streams.

This is an alternative to #141, with this one being a "hand-crafted" implementation. They are both pretty similar, took about the same time to implement but this one has slightly more functionality and better coding quality IMO, do with that information what you will.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

This change introduces the capability to monitor process execution
events by adding a new eBPF program attached to the
`bprm_check_security` LSM hook.

A `PROCESS_EXEC` event type is added to the event pipeline. The gRPC API
is extended with a new `SignalService` to handle these process-related
signals, separate from the existing file activity service.

The event handling logic is refactored to differentiate between file and
process events, routing them to their respective gRPC streams.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant