Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Latest commit

 

History

History

enemycluster

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Exploits

Chmod kubectl

kubectl is missing it's execution bit, as well as chmod

Fix

/lib64/ld-linux-x86-64.so.2 /usr/bin/chmod +x /usr/bin/chmod

Containerd Logs

-> Idea <-

Fix

  1. Remove /etc/containerd/config.toml
  2. Restart containerd

Api Mitm

-> Idea <-

Fix

  1. Remove iptables (iptables -t nat -D PREROUTING 2)
  2. Remove nftables (nft flush ruleset)

Impersonation

-> Idea <-

Fix

kubeadm kubeconfig user --client-name kubernetes-admin --org system:masters --config <(kubeadm config print init-defaults) > .kube/config

or

k --as kubernetes-admins --as-group system:masters

Deploymentcontroller

Fix

  1. Remove missing deployment controller from kube-controller-manager

Scheduler

Fix

  1. Rename scheduler to nondefault or schedule with nodeName