-
Notifications
You must be signed in to change notification settings - Fork 419
feat(preset): add protectProc preset #2017
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6e70439 to
4ac1ba4
Compare
4ac1ba4 to
acbd5a6
Compare
Collaborator
Author
|
denying symlink alert == Alert / 2025-04-02 08:31:10.185986 ==
ClusterName: default
HostName: archlinux
NamespaceName: default
PodName: nginx-676b6c5bbc-frx9l
Labels: app=nginx
ContainerName: nginx
ContainerID: 05eb0693b5363458e09f5c1b9644a9eea9ae61377751776fb8d55bbc8d0bc2eb
ContainerImage: docker.io/library/nginx:latest@sha256:124b44bfc9ccd1f3cedf4b592d4d1e8bddb78b51ec2ed5056c52d3692baebc19
Type: MatchedPolicy
PolicyName: ksp-nginx-protect-proc-preset
Source: /usr/bin/cat /proc/41/fd/0
Resource: /proc/41/fd/0
Operation: File
Enforcer: PRESET-ProtectProcPreset
Result: Permission denied
Cwd: /
HostPID: 145285
HostPPID: 140744
Owner: map[Name:nginx Namespace:default Ref:Deployment]
PID: 964
PPID: 140744
ParentProcessName: /usr/bin/bash
ProcessName: /usr/bin/cat
UID: 0 |
Aryan-sharma11
requested changes
Apr 3, 2025
Member
Aryan-sharma11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, minor nits to address
acbd5a6 to
9c8b74f
Compare
Aryan-sharma11
previously approved these changes
Apr 4, 2025
9c8b74f to
5a59d93
Compare
645ab46 to
e855867
Compare
e855867 to
b1d2caf
Compare
Aryan-sharma11
previously approved these changes
May 19, 2025
Signed-off-by: rksharma95 <[email protected]>
Signed-off-by: rksharma95 <[email protected]>
Signed-off-by: rksharma95 <[email protected]>
Signed-off-by: rksharma95 <[email protected]>
Signed-off-by: rksharma95 <[email protected]>
b1d2caf to
6f427d9
Compare
Aryan-sharma11
approved these changes
Jun 9, 2025
rootxrishabh
approved these changes
Jun 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds a preset
protectProcthat can enforce (audit or block) policy on/procdirectory access by non-owner process.example ksp policy:
simulating policy violation:
alert generated for policy violation
Does this PR introduce a breaking change?
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:
<type>(<scope>): <subject>