diff --git a/src/modules/discovery/hosts.py b/src/modules/discovery/hosts.py index 4f837cc..fcde41f 100644 --- a/src/modules/discovery/hosts.py +++ b/src/modules/discovery/hosts.py @@ -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: diff --git a/src/modules/hunting/aks.py b/src/modules/hunting/aks.py index 16257e2..2fdaf0c 100644 --- a/src/modules/hunting/aks.py +++ b/src/modules/hunting/aks.py @@ -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):