diff --git a/kube_hunter/modules/hunting/aks.py b/kube_hunter/modules/hunting/aks.py index aa46bb7..536019e 100644 --- a/kube_hunter/modules/hunting/aks.py +++ b/kube_hunter/modules/hunting/aks.py @@ -27,7 +27,7 @@ class AzureSpnExposure(Vulnerability, Event): self.evidence = evidence -@handler.subscribe(ExposedPodsHandler, predicate=lambda x: x.cloud == "Azure") +@handler.subscribe(ExposedPodsHandler, predicate=lambda x: x.cloud_type == "Azure") class AzureSpnHunter(Hunter): """AKS Hunting Hunting Azure cluster deployments using specific known configurations