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

include missing rpm pkg managers #1057

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cis/system/ksp-audit-cis-mysql-1-5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ spec:
matchPaths:
- path: /bin/false
- path: /sbin/nologin
- path: /usr/sbin/nologin
action: Audit
1 change: 1 addition & 0 deletions cis/system/ksp-block-cis-centos-8-1-1-4-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ spec:
- path: /usr/bin/auditd
- path: /bin/auditd
- path: /sbin/auditd
- path: /usr/sbin/auditd
action: Block
1 change: 1 addition & 0 deletions elastic/system/ksp-audit-elasticsearch-bash-spawn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ spec:
- path: /bin/bash
- path: /bin/sh
- path: /sbin/sh
- path: /usr/sbin/sh
- path: /bin/csh
action: Audit
3 changes: 3 additions & 0 deletions golang/system/ksp-block-golang-generic-policy-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
- path: /sbin/ldconfig
fromSource:
- path: /usr/bin/python2.7
- path: /usr/sbin/ldconfig
fromSource:
- path: /usr/bin/python2.7
- path: /usr/bin/whoami
fromSource:
- path: /bin/dash
Expand Down
1 change: 1 addition & 0 deletions malware/system/ksp-block-sysrv-hello-malware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
process:
matchPaths:
- path: /sbin/iptables
- path: /usr/sbin/iptables
- path: /etc/iptables
- path: /usr/share/iptables
- path: /usr/sbin/ufw
Expand Down
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ policyRules:
matchDirectories:
- dir: /sbin/
recursive: true
- dir: /usr/sbin/
recursive: true
message: restricted maintenance tool access attempted
selector:
matchLabels:
Expand Down
3 changes: 3 additions & 0 deletions nist/system/ksp-nist-cm-5-3-cm-14-signed-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
matchPaths:
- path: /usr/sbin/alternatives
- path: /usr/bin/dnf
- path: /usr/bin/dnf-3
- path: /usr/bin/dnf5
- path: /usr/bin/microdnf
- path: /usr/bin/rpm
- path: /usr/bin/yum
- path: /usr/bin/rpmkeys
Expand Down
6 changes: 6 additions & 0 deletions nist/system/ksp-nist-cm-7-5-software-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ spec:
ownerOnly: true
- path: /usr/bin/dnf
ownerOnly: true
- path: /usr/bin/dnf-3
ownerOnly: true
- path: /usr/bin/dnf5
ownerOnly: true
- path: /usr/bin/microdnf
ownerOnly: true
- path: /bin/dnf
ownerOnly: true
- path: /usr/bin/pacman
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
- path: /bin/rpm
- path: /usr/bin/dnf
- path: /bin/dnf
- path: /usr/bin/dnf-3
- path: /usr/bin/dnf5
- path: /usr/bin/microdnf
- path: /usr/bin/pacman
- path: /usr/sbin/pacman
- path: /bin/pacman
Expand Down
1 change: 1 addition & 0 deletions nist/system/ksp-system-information-blockwithaudit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ spec:
- path: /bin/lsblk
- path: /usr/bin/lspci
- path: /sbin/fdisk
- path: /usr/sbin/fdisk
action: Block
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ spec:
process:
matchPaths:
- path: /sbin/unix_update
- path: /usr/sbin/unix_update
action:
Audit