Skip to content

chore(enforcer): make command args part of alert resource #2019

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rootxrishabh
Copy link
Member

Purpose of PR?:
make command args part of alert resource
Fixes #2010

Does this PR introduce a breaking change?
No
If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix. Fixes BPFLSM add full command #2010
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

@rootxrishabh
Copy link
Member Author

verified changes -

== Alert / 2025-03-26 20:59:48.509520 ==
ClusterName: default
HostName: rootxrishabh
NamespaceName: container_namespace
PodName: upbeat_bouman
Labels: org.opencontainers.image.version=24.04,org.opencontainers.image.ref.name=ubuntu,namespaceName=container_namespace,kubearmor.io/container.name=upbeat_bouman
ContainerName: upbeat_bouman
ContainerID: 2b4d8acbd1cf4483c9d0d2e202305edbf3e9c825288bced587a83b5aab4f82b6
ContainerImage: ubuntu
Type: MatchedPolicy
Severity: 1
Source: /usr/bin/bash
Resource: /usr/bin/apt update --forreal
Operation: Process
Action: Block
Data: lsm=SECURITY_BPRM_CHECK
Enforcer: BPFLSM
Result: Permission denied
Cwd: /
HostPID: 626217
HostPPID: 442172
PID: 91
PPID: 442172
ParentProcessName: /usr/bin/bash
ProcessName: /usr/bin/apt
UID: 0

Signed-off-by: Rishabh Soni <[email protected]>
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.

BPFLSM add full command
3 participants