Had to remove the Azure component form the hunting/aks since it made a circular dependency bug!

This commit is contained in:
ori.agmon
2018-10-14 14:51:15 +03:00
committed by oriagmon
parent 1f9b611237
commit 08f38c623f
2 changed files with 1 additions and 7 deletions

View File

@@ -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:

View File

@@ -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):