changed evidence of priviledged containers, also added casting to str in reporter

This commit is contained in:
daniel_sagi
2018-06-11 18:28:01 +03:00
parent 9bb835edd3
commit 548ae7e486
2 changed files with 3 additions and 2 deletions

View File

@@ -60,7 +60,8 @@ class PrivilegedContainers(Vulnerability, Event):
"""A priviledged container on a node, can expose the node/cluster to unwanted root operations"""
def __init__(self, containers):
Vulnerability.__init__(self, KubernetesCluster, "Priviledged Container")
self.evidence = containers
self.containers = containers
self.evidence = "pod: {}, container: {}".format(containers[0][0], containers[0][1])
""" dividing ports for seperate hunters """