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

Update RedKubeCTL.yml #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions RedKubeCTL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ id: get-cap-admin-containers
# CREDENTIAL ACCESS

id: get-sensitive-configmaps-keys
description: Get all Configmaps With Sensetive Details In Keys
description: Get all Configmaps With Sensitive Details In Keys
command: kubectl get configmaps --all-namespaces -o json | jq -r '.items[].data | select(. != null)' | awk '{print(tolower($0))}' | jq -r 'with_entries( select(.key|(contains("pass") or contains("secret") or contains("token"))))'

id: get-sensitive-configmaps-values
description: Get all configmaps with sensetive details in values
description: Get all configmaps with Sensitive details in values
command: kubectl get configmaps --all-namespaces -o json | jq -r '.items[].data | select(. != null)' | awk '{print(tolower($0))}' | jq -r 'with_entries( select(.value|(contains("pass") or contains("secret") or contains("token"))))'

id: get-sensitive-containers-env
description: Get Containers With Sensetive Details In env
description: Get Containers With Sensitive Details In env
command: kubectl get pods --all-namespaces -o json | jq -r '.items[].spec.containers[].env | select(. != null)' | awk '{print(tolower($0))}' | jq -r '.[] | select(.name | (contains("pass") or contains("secret") or contains("token")))'

id: steal-container-mounted-token
Expand Down