コード例 #1
0
ファイル: kubelet.py プロジェクト: yoavrotems/kube-hunter
 def __init__(self, pods):
     Vulnerability.__init__(self,
                            Kubelet,
                            "Exposed Pods",
                            category=InformationDisclosure)
     self.pods = pods
     self.evidence = f"count: {len(self.pods)}"
コード例 #2
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="CAP_NET_RAW Enabled",
         category=AccessRisk,
     )
コード例 #3
0
ファイル: cves.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            name="Critical Privilege Escalation CVE",
                            category=PrivilegeEscalation,
                            vid="KHV022")
     self.evidence = evidence
コード例 #4
0
 def __init__(self, keys):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            name="Etcd Remote Read Access Event",
                            category=AccessRisk,
                            vid="KHV032")
     self.evidence = keys
コード例 #5
0
ファイル: etcd.py プロジェクト: yoavrotems/kube-hunter
 def __init__(self, write_res):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Etcd Remote Write Access Event",
         category=RemoteCodeExec, vid="KHV031")
     self.evidence = write_res
コード例 #6
0
ファイル: aks.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, container):
     Vulnerability.__init__(self,
                            Azure,
                            "Azure SPN Exposure",
                            category=IdentityTheft,
                            vid="KHV004")
     self.container = container
コード例 #7
0
ファイル: etcd.py プロジェクト: yoavrotems/kube-hunter
    def __init__(self, version):

        Vulnerability.__init__(self, KubernetesCluster,
                               name="Etcd Remote version disclosure",
                               category=InformationDisclosure,
                               vid="KHV033")
        self.evidence = version
コード例 #8
0
ファイル: mounts.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, output):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            "Root Traversal Read On The Kubelet",
                            category=PrivilegeEscalation)
     self.output = output
     self.evidence = "output: {}".format(self.output)
コード例 #9
0
ファイル: capabilities.py プロジェクト: slapula/kube-hunter
 def __init__(self):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="CAP_NET_RAW Enabled",
         category=ARPPoisoningTechnique,
     )
コード例 #10
0
ファイル: dashboard.py プロジェクト: virajs/kube-hunter
 def __init__(self, nodes):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            "Dashboard Exposed",
                            category=RemoteCodeExec,
                            vid="KHV029")
     self.evidence = "nodes: {}".format(' '.join(nodes)) if nodes else None
コード例 #11
0
ファイル: cves.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            name="Possible Reset Flood Attack",
                            category=DenialOfService,
                            vid="KHV025")
     self.evidence = evidence
コード例 #12
0
 def __init__(self, email):
     Vulnerability.__init__(self, KubernetesCluster,
                            "Certificate Includes Email Address",
                            category=InformationDisclosure,
                            khv="KHV021")
     self.email = email
     self.evidence = "email: {}".format(self.email)
コード例 #13
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         component=Kubelet,
         name="Anonymous Authentication",
         category=RemoteCodeExec,
         vid="KHV036",
     )
コード例 #14
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         component=Kubelet,
         name="Exposed Attaching To Container",
         category=RemoteCodeExec,
         vid="KHV042",
     )
コード例 #15
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         component=Kubelet,
         name="Exposed Port Forward",
         category=RemoteCodeExec,
         vid="KHV041",
     )
コード例 #16
0
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Read access to pod's service account token",
         category=AccessRisk,
         vid="KHV050")
     self.evidence = evidence
コード例 #17
0
ファイル: cves.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, binary_version):
     Vulnerability.__init__(self,
                            KubectlClient,
                            "Kubectl Vulnerable To CVE-2019-1002101",
                            category=RemoteCodeExec,
                            vid="KHV028")
     self.binary_version = binary_version
     self.evidence = "kubectl version: {}".format(self.binary_version)
コード例 #18
0
 def __init__(self, kubedns_pod_ip):
     Vulnerability.__init__(self,
                            KubernetesCluster,
                            "Possible DNS Spoof",
                            category=IdentityTheft,
                            vid="KHV030")
     self.kubedns_pod_ip = kubedns_pod_ip
     self.evidence = "kube-dns at: {}".format(self.kubedns_pod_ip)
コード例 #19
0
ファイル: proxy.py プロジェクト: slapula/kube-hunter
 def __init__(self):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         "Proxy Exposed",
         category=ConnectFromProxyServerTechnique,
         vid="KHV049",
     )
コード例 #20
0
ファイル: apiserver.py プロジェクト: th3architect/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Deleted A Pod",
         category=AccessRisk,
     )
     self.evidence = evidence
コード例 #21
0
ファイル: apiserver.py プロジェクト: th3architect/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Patched a cluster role",
         category=AccessRisk,
     )
     self.evidence = evidence
コード例 #22
0
ファイル: apiserver.py プロジェクト: th3architect/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Created a namespace",
         category=AccessRisk,
     )
     self.evidence = evidence
コード例 #23
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         component=Kubelet,
         name="Exposed Container Logs",
         category=InformationDisclosure,
         vid="KHV037",
     )
コード例 #24
0
ファイル: hosts.py プロジェクト: virajs/kube-hunter
 def __init__(self, cidr):
     Vulnerability.__init__(self,
                            Azure,
                            "Azure Metadata Exposure",
                            category=InformationDisclosure,
                            vid="KHV003")
     self.cidr = cidr
     self.evidence = "cidr: {}".format(cidr)
コード例 #25
0
 def __init__(self):
     Vulnerability.__init__(
         self,
         component=Kubelet,
         name="Exposed Run Inside Container",
         category=RemoteCodeExec,
         vid="KHV040",
     )
コード例 #26
0
ファイル: cves.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Arbitrary Access To Cluster Scoped Resources",
         category=PrivilegeEscalation,
         vid="KHV026")
     self.evidence = evidence
コード例 #27
0
ファイル: arp.py プロジェクト: xmonader/kube-hunter
 def __init__(self):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         "Possible Arp Spoof",
         category=IdentityTheft,
         vid="KHV020",
     )
コード例 #28
0
 def __init__(self, pods):
     Vulnerability.__init__(self,
                            component=Kubelet,
                            name="Exposed Pods",
                            category=InformationDisclosure,
                            vid="KHV052")
     self.pods = pods
     self.evidence = f"count: {len(self.pods)}"
コード例 #29
0
ファイル: secrets.py プロジェクト: xmonader/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         component=KubernetesCluster,
         name="Access to pod's secrets",
         category=AccessRisk,
     )
     self.evidence = evidence
コード例 #30
0
ファイル: cves.py プロジェクト: wonkarthik/kube-hunter
 def __init__(self, evidence):
     Vulnerability.__init__(
         self,
         KubernetesCluster,
         name="Denial of Service to Kubernetes API Server",
         category=DenialOfService,
         vid="KHV023")
     self.evidence = evidence