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

Extended uprobe support in TracingPolicies #3000

Open
2 tasks done
anfedotoff opened this issue Oct 14, 2024 · 0 comments
Open
2 tasks done

Extended uprobe support in TracingPolicies #3000

anfedotoff opened this issue Oct 14, 2024 · 0 comments
Labels
kind/enhancement This improves or streamlines existing functionality

Comments

@anfedotoff
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

No response

Describe the feature you would like

Hi!
I think, it would be nice to support some selectors that we have for kprobes/tracepoints/lsm hooks. According to this uprobe policies are only support matchPid selector:

func isValidUprobeSelectors(selectors []v1alpha1.KProbeSelector) error {
for _, s := range selectors {
if len(s.MatchArgs) > 0 ||
len(s.MatchActions) > 0 ||
len(s.MatchReturnArgs) > 0 ||
len(s.MatchNamespaces) > 0 ||
len(s.MatchNamespaceChanges) > 0 ||
len(s.MatchCapabilities) > 0 ||
len(s.MatchCapabilityChanges) > 0 {
return fmt.Errorf("Only matchPIDs selector is supported")

With this uprobe support we can do a lot of interesting things. For example, we can monitor for suspicious commands user executes from shell. More details can be found in nice Quarkslab blog post.

Describe your proposed solution

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@anfedotoff anfedotoff added the kind/enhancement This improves or streamlines existing functionality label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This improves or streamlines existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant