From 00db9cbdbe087f37a8e7bb1f07b8fbd77abc657c Mon Sep 17 00:00:00 2001 From: Daniel Sagi Date: Sun, 3 Jan 2021 20:26:23 +0200 Subject: [PATCH] fixed bug in cloud identification. TODO: remove the outsourcing for cloud provider --- kube_hunter/modules/hunting/aks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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