mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-10 03:07:16 +00:00
Had to remove the Azure component form the hunting/aks since it made a circular dependency bug!
This commit is contained in:
@@ -16,11 +16,6 @@ from ...core.events.types import Event, NewHostEvent, Vulnerability
|
||||
from ...core.types import Hunter, InformationDisclosure, Azure
|
||||
|
||||
|
||||
class RunningAsPodEvent(Event):
|
||||
def __init__(self):
|
||||
self.name = 'Running from within a pod'
|
||||
|
||||
|
||||
class AzureMetadataApi(Vulnerability, Event):
|
||||
"""Access to the Azure Metadata API exposes sensitive information about the machines associated with the cluster"""
|
||||
def __init__(self, cidr):
|
||||
@@ -70,7 +65,6 @@ class HostDiscovery(Hunter):
|
||||
for host in config.remote:
|
||||
self.publish_event(NewHostEvent(host=host, cloud=self.get_cloud(host)))
|
||||
elif config.pod:
|
||||
self.publish_event(RunningAsPodEvent())
|
||||
if self.is_azure_pod():
|
||||
self.azure_metadata_discovery()
|
||||
else:
|
||||
|
||||
@@ -7,7 +7,7 @@ from kubelet import ExposedRunHandler
|
||||
|
||||
from ...core.events import handler
|
||||
from ...core.events.types import Event, Vulnerability
|
||||
from ...core.types import Hunter, ActiveHunter, KubernetesCluster, IdentityTheft, Azure
|
||||
from ...core.types import Hunter, ActiveHunter, KubernetesCluster, IdentityTheft
|
||||
|
||||
|
||||
class AzureSpnExposure(Vulnerability, Event):
|
||||
|
||||
Reference in New Issue
Block a user