falco icon indicating copy to clipboard operation
falco copied to clipboard

Adjusted falco to stop collecting certain types of syscalls

Open clr34m3r opened this issue 3 years ago • 4 comments

Hi there,

To improve performance based on my needs, I'm trying to adjust the driver so that falco driver only collects execve logs from the system. I only found documentation that support monitoring new syscalls with Falco, but no documentation about removing those syscalls. I wonder how I can remove other syscalls from driver so falco agent only collects execve logs. Hope someone can help.

Thanks, Huy

clr34m3r avatar May 24 '22 07:05 clr34m3r

Hi @kooriboh this is a good point. Right now Falco cannot collect only one syscall. We tried to reduce the number of captured syscalls with the simple_consumer mode, enabled by default since Falco 0.31.0. The next step will be to allow users to collect only specific syscalls like in your case. We had a discussion about that here https://github.com/falcosecurity/libs/issues/267. Here the focus is the eBPF probe, but the same idea can be applied to the kernel module. We will update you when will have news about it :)

Andreagit97 avatar May 29 '22 12:05 Andreagit97

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Aug 27 '22 21:08 poiana

Hi! I just wanted to share that PR https://github.com/falcosecurity/libs/pull/521 aims at allowing that, at least in a programmatic way. There is currently no plan to support any config in Falco to switch off syscalls/tracepoints because it is way too easy to completely break Falco doing that (eg: causing memleaks and other sort of issues). At least, it will be much easier to patch Falco to switch off some syscalls :)

FedeDP avatar Aug 27 '22 21:08 FedeDP

/remove-lifecycle stale

FedeDP avatar Aug 27 '22 21:08 FedeDP

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Nov 27 '22 03:11 poiana

/remove-lifecycle stale

Andreagit97 avatar Nov 27 '22 14:11 Andreagit97

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Feb 25 '23 15:02 poiana

@kooriboh this feature will be available in Falco 0.35, see for example this comment in https://github.com/falcosecurity/falco/issues/2433#issuecomment-1447620920

incertum avatar Mar 09 '23 03:03 incertum

/remove-lifecycle stale

incertum avatar Mar 09 '23 03:03 incertum

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Jun 07 '23 07:06 poiana

/milestone 0.35.0

FedeDP avatar Jun 07 '23 07:06 FedeDP

/close

This will be fixed by 0.35.0.

FedeDP avatar Jun 07 '23 07:06 FedeDP

@FedeDP: Closing this issue.

In response to this:

/close

This will be fixed by 0.35.0.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar Jun 07 '23 07:06 poiana