2020-08-27 09:14:40,064 - xtesting.ci.run_tests - INFO - Deployment description: +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ENV VAR | VALUE | +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | TEST_DB_EXT_URL | http://testresults.opnfv.org/test/api/v1/results | | S3_DST_URL | s3://artifacts.opnfv.org/functest-kubernetes/00HUE8C7BMI7/functest-kubernetes-pi-ollivier-functest-kubernetes-security-arm-hunter-kube_hunter-run-23 | | S3_ENDPOINT_URL | https://storage.googleapis.com | | DEPLOY_SCENARIO | k8-nosdn-nofeature-noha | | BUILD_TAG | 00HUE8C7BMI7 | | DEBUG | true | | INSTALLER_TYPE | unknown | | CI_LOOP | daily | | TEST_DB_URL | http://testresults.opnfv.org/test/api/v1/results | | HTTP_DST_URL | http://artifacts.opnfv.org/functest-kubernetes/00HUE8C7BMI7/functest-kubernetes-pi-ollivier-functest-kubernetes-security-arm-hunter-kube_hunter-run-23 | | NODE_NAME | lf-virtual1-1 | +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ 2020-08-27 09:14:40,268 - xtesting.ci.run_tests - DEBUG - No env file /var/lib/xtesting/conf/env_file found 2020-08-27 09:14:40,270 - xtesting.ci.run_tests - DEBUG - Test args: kube_hunter 2020-08-27 09:14:40,319 - xtesting.ci.run_tests - INFO - Loading test case 'kube_hunter'... 2020-08-27 09:14:41,408 - xtesting.ci.run_tests - INFO - Running test case 'kube_hunter'... 2020-08-27 09:14:41,563 - kubernetes.client.rest - DEBUG - response body: {"kind":"Namespace","apiVersion":"v1","metadata":{"name":"ims-gnb8m","generateName":"ims-","selfLink":"/api/v1/namespaces/ims-gnb8m","uid":"bd5ca006-e845-11ea-a485-0242ac120004","resourceVersion":"2586330","creationTimestamp":"2020-08-27T09:14:41Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}} 2020-08-27 09:14:41,575 - functest_kubernetes.security.security - DEBUG - create_namespace: {'api_version': 'v1', 'kind': 'Namespace', 'metadata': {'annotations': None, 'cluster_name': None, 'creation_timestamp': datetime.datetime(2020, 8, 27, 9, 14, 41, tzinfo=tzlocal()), 'deletion_grace_period_seconds': None, 'deletion_timestamp': None, 'finalizers': None, 'generate_name': 'ims-', 'generation': None, 'initializers': None, 'labels': None, 'managed_fields': None, 'name': 'ims-gnb8m', 'namespace': None, 'owner_references': None, 'resource_version': '2586330', 'self_link': '/api/v1/namespaces/ims-gnb8m', 'uid': 'bd5ca006-e845-11ea-a485-0242ac120004'}, 'spec': {'finalizers': ['kubernetes']}, 'status': {'phase': 'Active'}} 2020-08-27 09:14:41,949 - kubernetes.client.rest - DEBUG - response body: {"kind":"Job","apiVersion":"batch/v1","metadata":{"name":"kube-hunter","namespace":"ims-gnb8m","selfLink":"/apis/batch/v1/namespaces/ims-gnb8m/jobs/kube-hunter","uid":"bd742733-e845-11ea-a485-0242ac120004","resourceVersion":"2586334","creationTimestamp":"2020-08-27T09:14:41Z","labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"}},"spec":{"parallelism":1,"completions":1,"backoffLimit":4,"selector":{"matchLabels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"}},"spec":{"containers":[{"name":"kube-hunter","image":"aquasec/kube-hunter:0.3.1","command":["python","kube-hunter.py"],"args":["--pod"],"resources":{},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Never","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"schedulerName":"default-scheduler"}}},"status":{}} 2020-08-27 09:14:42,060 - functest_kubernetes.security.security - INFO - Job kube-hunter created 2020-08-27 09:14:42,061 - functest_kubernetes.security.security - DEBUG - create_namespaced_job: {'api_version': 'batch/v1', 'kind': 'Job', 'metadata': {'annotations': None, 'cluster_name': None, 'creation_timestamp': datetime.datetime(2020, 8, 27, 9, 14, 41, tzinfo=tzlocal()), 'deletion_grace_period_seconds': None, 'deletion_timestamp': None, 'finalizers': None, 'generate_name': None, 'generation': None, 'initializers': None, 'labels': {u'controller-uid': 'bd742733-e845-11ea-a485-0242ac120004', u'job-name': 'kube-hunter'}, 'managed_fields': None, 'name': 'kube-hunter', 'namespace': 'ims-gnb8m', 'owner_references': None, 'resource_version': '2586334', 'self_link': '/apis/batch/v1/namespaces/ims-gnb8m/jobs/kube-hunter', 'uid': 'bd742733-e845-11ea-a485-0242ac120004'}, 'spec': {'active_deadline_seconds': None, 'backoff_limit': 4, 'completions': 1, 'manual_selector': None, 'parallelism': 1, 'selector': {'match_expressions': None, 'match_labels': {u'controller-uid': 'bd742733-e845-11ea-a485-0242ac120004'}}, 'template': {'metadata': {'annotations': None, 'cluster_name': None, 'creation_timestamp': None, 'deletion_grace_period_seconds': None, 'deletion_timestamp': None, 'finalizers': None, 'generate_name': None, 'generation': None, 'initializers': None, 'labels': {u'controller-uid': 'bd742733-e845-11ea-a485-0242ac120004', u'job-name': 'kube-hunter'}, 'managed_fields': None, 'name': None, 'namespace': None, 'owner_references': None, 'resource_version': None, 'self_link': None, 'uid': None}, 'spec': {'active_deadline_seconds': None, 'affinity': None, 'automount_service_account_token': None, 'containers': [{'args': ['--pod'], 'command': ['python', 'kube-hunter.py'], 'env': None, 'env_from': None, 'image': 'aquasec/kube-hunter:0.3.1', 'image_pull_policy': 'IfNotPresent', 'lifecycle': None, 'liveness_probe': None, 'name': 'kube-hunter', 'ports': None, 'readiness_probe': None, 'resources': {'limits': None, 'requests': None}, 'security_context': None, 'stdin': None, 'stdin_once': None, 'termination_message_path': '/dev/termination-log', 'termination_message_policy': 'File', 'tty': None, 'volume_devices': None, 'volume_mounts': None, 'working_dir': None}], 'dns_config': None, 'dns_policy': 'ClusterFirst', 'enable_service_links': None, 'host_aliases': None, 'host_ipc': None, 'host_network': None, 'host_pid': None, 'hostname': None, 'image_pull_secrets': None, 'init_containers': None, 'node_name': None, 'node_selector': None, 'priority': None, 'priority_class_name': None, 'readiness_gates': None, 'restart_policy': 'Never', 'runtime_class_name': None, 'scheduler_name': 'default-scheduler', 'security_context': {'fs_group': None, 'run_as_group': None, 'run_as_non_root': None, 'run_as_user': None, 'se_linux_options': None, 'supplemental_groups': None, 'sysctls': None}, 'service_account': None, 'service_account_name': None, 'share_process_namespace': None, 'subdomain': None, 'termination_grace_period_seconds': 30, 'tolerations': None, 'volumes': None}}, 'ttl_seconds_after_finished': None}, 'status': {'active': None, 'completion_time': None, 'conditions': None, 'failed': None, 'start_time': None, 'succeeded': None}} 2020-08-27 09:15:03,926 - functest_kubernetes.security.security - INFO - kube-hunter started in 22.52 sec 2020-08-27 09:15:03,954 - kubernetes.client.rest - DEBUG - response body: {"kind":"PodList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/ims-gnb8m/pods","resourceVersion":"2586419"},"items":[{"metadata":{"name":"kube-hunter-hv6lz","generateName":"kube-hunter-","namespace":"ims-gnb8m","selfLink":"/api/v1/namespaces/ims-gnb8m/pods/kube-hunter-hv6lz","uid":"bdb7b3ff-e845-11ea-a485-0242ac120004","resourceVersion":"2586418","creationTimestamp":"2020-08-27T09:14:42Z","labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"},"ownerReferences":[{"apiVersion":"batch/v1","kind":"Job","name":"kube-hunter","uid":"bd742733-e845-11ea-a485-0242ac120004","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"default-token-qsq4t","secret":{"secretName":"default-token-qsq4t","defaultMode":420}}],"containers":[{"name":"kube-hunter","image":"aquasec/kube-hunter:0.3.1","command":["python","kube-hunter.py"],"args":["--pod"],"resources":{},"volumeMounts":[{"name":"default-token-qsq4t","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Never","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"default","serviceAccount":"default","nodeName":"hunter-worker","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Succeeded","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:14:42Z","reason":"PodCompleted"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:15:03Z","reason":"PodCompleted"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:15:03Z","reason":"PodCompleted"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:14:42Z"}],"hostIP":"172.18.0.2","podIP":"10.244.1.97","startTime":"2020-08-27T09:14:42Z","containerStatuses":[{"name":"kube-hunter","state":{"terminated":{"exitCode":0,"reason":"Completed","startedAt":"2020-08-27T09:14:48Z","finishedAt":"2020-08-27T09:15:02Z","containerID":"containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9"}},"lastState":{},"ready":false,"restartCount":0,"image":"docker.io/aquasec/kube-hunter:0.3.1","imageID":"docker.io/aquasec/kube-hunter@sha256:2be6820bc1d7e0f57193a9a27d5a3e16b2fd93c53747b03ce8ca48c6fc323781","containerID":"containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9"}],"qosClass":"BestEffort"}}]} 2020-08-27 09:15:04,015 - kubernetes.client.rest - DEBUG - response body: 2020-08-27 09:14:50,124 INFO kube_hunter.modules.report.collector Started hunting 2020-08-27 09:14:50,124 INFO kube_hunter.modules.report.collector Discovering Open Kubernetes Services 2020-08-27 09:14:50,131 INFO kube_hunter.modules.report.collector Found vulnerability "Read access to pod's service account token" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,132 INFO kube_hunter.modules.report.collector Found vulnerability "CAP_NET_RAW Enabled" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,133 INFO kube_hunter.modules.report.collector Found vulnerability "Access to pod's secrets" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,478 INFO kube_hunter.modules.report.collector Found open service "Kubelet API" at 10.244.1.1:10250 2020-08-27 09:14:50,513 INFO kube_hunter.modules.report.collector Found open service "API Server" at 10.96.0.1:443 2020-08-27 09:14:50,576 INFO kube_hunter.modules.report.collector Found vulnerability "Unauthenticated access to API" in 10.96.0.1:443 2020-08-27 09:14:50,580 INFO kube_hunter.modules.report.collector Found vulnerability "Access to API using service account token" in 10.96.0.1:443 2020-08-27 09:14:50,584 INFO kube_hunter.modules.report.collector Found vulnerability "K8s Version Disclosure" in 10.96.0.1:443 Nodes +-------------+------------+ | TYPE | LOCATION | +-------------+------------+ | Node/Master | 10.244.1.1 | +-------------+------------+ | Node/Master | 10.96.0.1 | +-------------+------------+ Detected Services +-------------+------------------+----------------------+ | SERVICE | LOCATION | DESCRIPTION | +-------------+------------------+----------------------+ | Kubelet API | 10.244.1.1:10250 | The Kubelet is the | | | | main component in | | | | every Node, all pod | | | | operations goes | | | | through the kubelet | +-------------+------------------+----------------------+ | API Server | 10.96.0.1:443 | The API server is in | | | | charge of all | | | | operations on the | | | | cluster. | +-------------+------------------+----------------------+ Vulnerabilities For further information about a vulnerability, search its ID in: https://github.com/aquasecurity/kube-hunter/tree/master/docs/_kb +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | ID | LOCATION | CATEGORY | VULNERABILITY | DESCRIPTION | EVIDENCE | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV005 | 10.96.0.1:443 | Unauthenticated | Unauthenticated | The API Server port | b'{"kind":"APIVersio | | | | Access | access to API | is accessible. | ns","versions":["v1" | | | | | | Depending on | ... | | | | | | your RBAC settings | | | | | | | this could expose | | | | | | | access to or control | | | | | | | of your cluster. | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV005 | 10.96.0.1:443 | Information | Access to API using | The API Server port | b'{"kind":"APIVersio | | | | Disclosure | service account | is accessible. | ns","versions":["v1" | | | | | token | Depending on | ... | | | | | | your RBAC settings | | | | | | | this could expose | | | | | | | access to or control | | | | | | | of your cluster. | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV002 | 10.96.0.1:443 | Information | K8s Version | The kubernetes | v1.13.12 | | | | Disclosure | Disclosure | version could be | | | | | | | obtained from the | | | | | | | /version endpoint | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | None | Local to Pod (kube- | Access Risk | CAP_NET_RAW Enabled | CAP_NET_RAW is | | | | hunter-hv6lz) | | | enabled by default | | | | | | | for pods. | | | | | | | If an attacker | | | | | | | manages to | | | | | | | compromise a pod, | | | | | | | they could | | | | | | | potentially take | | | | | | | advantage of this | | | | | | | capability to | | | | | | | perform network | | | | | | | attacks on other | | | | | | | pods running on the | | | | | | | same node | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | None | Local to Pod (kube- | Access Risk | Access to pod's | Accessing the pod's | ['/var/run/secrets/k | | | hunter-hv6lz) | | secrets | secrets within a | ubernetes.io/service | | | | | | compromised pod | ... | | | | | | might disclose | | | | | | | valuable data to a | | | | | | | potential attacker | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV050 | Local to Pod (kube- | Access Risk | Read access to pod's | Accessing the pod | eyJhbGciOiJSUzI1NiIs | | | hunter-hv6lz) | | service account | service account | ImtpZCI6IiJ9.eyJpc3M | | | | | token | token gives an | ... | | | | | | attacker the option | | | | | | | to use the server | | | | | | | API | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ 2020-08-27 09:15:04,017 - functest_kubernetes.security.security - WARNING - 2020-08-27 09:14:50,124 INFO kube_hunter.modules.report.collector Started hunting 2020-08-27 09:14:50,124 INFO kube_hunter.modules.report.collector Discovering Open Kubernetes Services 2020-08-27 09:14:50,131 INFO kube_hunter.modules.report.collector Found vulnerability "Read access to pod's service account token" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,132 INFO kube_hunter.modules.report.collector Found vulnerability "CAP_NET_RAW Enabled" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,133 INFO kube_hunter.modules.report.collector Found vulnerability "Access to pod's secrets" in Local to Pod (kube-hunter-hv6lz) 2020-08-27 09:14:50,478 INFO kube_hunter.modules.report.collector Found open service "Kubelet API" at 10.244.1.1:10250 2020-08-27 09:14:50,513 INFO kube_hunter.modules.report.collector Found open service "API Server" at 10.96.0.1:443 2020-08-27 09:14:50,576 INFO kube_hunter.modules.report.collector Found vulnerability "Unauthenticated access to API" in 10.96.0.1:443 2020-08-27 09:14:50,580 INFO kube_hunter.modules.report.collector Found vulnerability "Access to API using service account token" in 10.96.0.1:443 2020-08-27 09:14:50,584 INFO kube_hunter.modules.report.collector Found vulnerability "K8s Version Disclosure" in 10.96.0.1:443 Nodes +-------------+------------+ | TYPE | LOCATION | +-------------+------------+ | Node/Master | 10.244.1.1 | +-------------+------------+ | Node/Master | 10.96.0.1 | +-------------+------------+ Detected Services +-------------+------------------+----------------------+ | SERVICE | LOCATION | DESCRIPTION | +-------------+------------------+----------------------+ | Kubelet API | 10.244.1.1:10250 | The Kubelet is the | | | | main component in | | | | every Node, all pod | | | | operations goes | | | | through the kubelet | +-------------+------------------+----------------------+ | API Server | 10.96.0.1:443 | The API server is in | | | | charge of all | | | | operations on the | | | | cluster. | +-------------+------------------+----------------------+ Vulnerabilities For further information about a vulnerability, search its ID in: https://github.com/aquasecurity/kube-hunter/tree/master/docs/_kb +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | ID | LOCATION | CATEGORY | VULNERABILITY | DESCRIPTION | EVIDENCE | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV005 | 10.96.0.1:443 | Unauthenticated | Unauthenticated | The API Server port | b'{"kind":"APIVersio | | | | Access | access to API | is accessible. | ns","versions":["v1" | | | | | | Depending on | ... | | | | | | your RBAC settings | | | | | | | this could expose | | | | | | | access to or control | | | | | | | of your cluster. | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV005 | 10.96.0.1:443 | Information | Access to API using | The API Server port | b'{"kind":"APIVersio | | | | Disclosure | service account | is accessible. | ns","versions":["v1" | | | | | token | Depending on | ... | | | | | | your RBAC settings | | | | | | | this could expose | | | | | | | access to or control | | | | | | | of your cluster. | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV002 | 10.96.0.1:443 | Information | K8s Version | The kubernetes | v1.13.12 | | | | Disclosure | Disclosure | version could be | | | | | | | obtained from the | | | | | | | /version endpoint | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | None | Local to Pod (kube- | Access Risk | CAP_NET_RAW Enabled | CAP_NET_RAW is | | | | hunter-hv6lz) | | | enabled by default | | | | | | | for pods. | | | | | | | If an attacker | | | | | | | manages to | | | | | | | compromise a pod, | | | | | | | they could | | | | | | | potentially take | | | | | | | advantage of this | | | | | | | capability to | | | | | | | perform network | | | | | | | attacks on other | | | | | | | pods running on the | | | | | | | same node | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | None | Local to Pod (kube- | Access Risk | Access to pod's | Accessing the pod's | ['/var/run/secrets/k | | | hunter-hv6lz) | | secrets | secrets within a | ubernetes.io/service | | | | | | compromised pod | ... | | | | | | might disclose | | | | | | | valuable data to a | | | | | | | potential attacker | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ | KHV050 | Local to Pod (kube- | Access Risk | Read access to pod's | Accessing the pod | eyJhbGciOiJSUzI1NiIs | | | hunter-hv6lz) | | service account | service account | ImtpZCI6IiJ9.eyJpc3M | | | | | token | token gives an | ... | | | | | | attacker the option | | | | | | | to use the server | | | | | | | API | | +--------+----------------------+----------------------+----------------------+----------------------+----------------------+ 2020-08-27 09:15:04,019 - xtesting.ci.run_tests - INFO - Test result: +---------------------+------------------+------------------+----------------+ | TEST CASE | PROJECT | DURATION | RESULT | +---------------------+------------------+------------------+----------------+ | kube_hunter | functest | 00:23 | PASS | +---------------------+------------------+------------------+----------------+ 2020-08-27 09:15:04,223 - kubernetes.client.rest - DEBUG - response body: {"kind":"Pod","apiVersion":"v1","metadata":{"name":"kube-hunter-hv6lz","generateName":"kube-hunter-","namespace":"ims-gnb8m","selfLink":"/api/v1/namespaces/ims-gnb8m/pods/kube-hunter-hv6lz","uid":"bdb7b3ff-e845-11ea-a485-0242ac120004","resourceVersion":"2586420","creationTimestamp":"2020-08-27T09:14:42Z","deletionTimestamp":"2020-08-27T09:15:04Z","deletionGracePeriodSeconds":0,"labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"},"ownerReferences":[{"apiVersion":"batch/v1","kind":"Job","name":"kube-hunter","uid":"bd742733-e845-11ea-a485-0242ac120004","controller":true,"blockOwnerDeletion":true}]},"spec":{"volumes":[{"name":"default-token-qsq4t","secret":{"secretName":"default-token-qsq4t","defaultMode":420}}],"containers":[{"name":"kube-hunter","image":"aquasec/kube-hunter:0.3.1","command":["python","kube-hunter.py"],"args":["--pod"],"resources":{},"volumeMounts":[{"name":"default-token-qsq4t","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Never","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"default","serviceAccount":"default","nodeName":"hunter-worker","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true},"status":{"phase":"Succeeded","conditions":[{"type":"Initialized","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:14:42Z","reason":"PodCompleted"},{"type":"Ready","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:15:03Z","reason":"PodCompleted"},{"type":"ContainersReady","status":"False","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:15:03Z","reason":"PodCompleted"},{"type":"PodScheduled","status":"True","lastProbeTime":null,"lastTransitionTime":"2020-08-27T09:14:42Z"}],"hostIP":"172.18.0.2","podIP":"10.244.1.97","startTime":"2020-08-27T09:14:42Z","containerStatuses":[{"name":"kube-hunter","state":{"terminated":{"exitCode":0,"reason":"Completed","startedAt":"2020-08-27T09:14:48Z","finishedAt":"2020-08-27T09:15:02Z","containerID":"containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9"}},"lastState":{},"ready":false,"restartCount":0,"image":"docker.io/aquasec/kube-hunter:0.3.1","imageID":"docker.io/aquasec/kube-hunter@sha256:2be6820bc1d7e0f57193a9a27d5a3e16b2fd93c53747b03ce8ca48c6fc323781","containerID":"containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9"}],"qosClass":"BestEffort"}} 2020-08-27 09:15:04,231 - functest_kubernetes.security.security - DEBUG - delete_namespaced_pod: {'api_version': 'v1', 'code': None, 'details': None, 'kind': 'Pod', 'message': None, 'metadata': {'_continue': None, 'resource_version': '2586420', 'self_link': '/api/v1/namespaces/ims-gnb8m/pods/kube-hunter-hv6lz'}, 'reason': None, 'status': "{u'qosClass': u'BestEffort', u'containerStatuses': [{u'restartCount': 0, u'name': u'kube-hunter', u'image': u'docker.io/aquasec/kube-hunter:0.3.1', u'imageID': u'docker.io/aquasec/kube-hunter@sha256:2be6820bc1d7e0f57193a9a27d5a3e16b2fd93c53747b03ce8ca48c6fc323781', u'state': {u'terminated': {u'startedAt': u'2020-08-27T09:14:48Z', u'reason': u'Completed', u'finishedAt': u'2020-08-27T09:15:02Z', u'containerID': u'containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9', u'exitCode': 0}}, u'ready': False, u'lastState': {}, u'containerID': u'containerd://ae8ca417e198c7bb6523985338cbe07a63f7aa0b5091bd950eab6733aeaddde9'}], u'podIP': u'10.244.1.97', u'startTime': u'2020-08-27T09:14:42Z', u'hostIP': u'172.18.0.2', u'phase': u'Succeeded', u'conditions': [{u'status': u'True', u'lastProbeTime': None, u'reason': u'PodCompleted', u'type': u'Initialized', u'lastTransitionTime': u'2020-08-27T09:14:42Z'}, {u'status': u'False', u'lastProbeTime': None, u'reason': u'PodCompleted', u'type': u'Ready', u'lastTransitionTime': u'2020-08-27T09:15:03Z'}, {u'status': u'False', u'lastProbeTime': None, u'reason': u'PodCompleted', u'type': u'ContainersReady', u'lastTransitionTime': u'2020-08-27T09:15:03Z'}, {u'status': u'True', u'lastProbeTime': None, u'type': u'PodScheduled', u'lastTransitionTime': u'2020-08-27T09:14:42Z'}]}"} 2020-08-27 09:15:04,487 - kubernetes.client.rest - DEBUG - response body: {"kind":"Job","apiVersion":"batch/v1","metadata":{"name":"kube-hunter","namespace":"ims-gnb8m","selfLink":"/apis/batch/v1/namespaces/ims-gnb8m/jobs/kube-hunter","uid":"bd742733-e845-11ea-a485-0242ac120004","resourceVersion":"2586422","creationTimestamp":"2020-08-27T09:14:41Z","deletionTimestamp":"2020-08-27T09:15:04Z","deletionGracePeriodSeconds":0,"labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"},"finalizers":["orphan"]},"spec":{"parallelism":1,"completions":1,"backoffLimit":4,"selector":{"matchLabels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"controller-uid":"bd742733-e845-11ea-a485-0242ac120004","job-name":"kube-hunter"}},"spec":{"containers":[{"name":"kube-hunter","image":"aquasec/kube-hunter:0.3.1","command":["python","kube-hunter.py"],"args":["--pod"],"resources":{},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Never","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"schedulerName":"default-scheduler"}}},"status":{"conditions":[{"type":"Complete","status":"True","lastProbeTime":"2020-08-27T09:15:03Z","lastTransitionTime":"2020-08-27T09:15:03Z"}],"startTime":"2020-08-27T09:14:41Z","completionTime":"2020-08-27T09:15:03Z","succeeded":1}} 2020-08-27 09:15:04,491 - functest_kubernetes.security.security - DEBUG - delete_namespaced_deployment: {'api_version': 'batch/v1', 'code': None, 'details': None, 'kind': 'Job', 'message': None, 'metadata': {'_continue': None, 'resource_version': '2586422', 'self_link': '/apis/batch/v1/namespaces/ims-gnb8m/jobs/kube-hunter'}, 'reason': None, 'status': "{u'completionTime': u'2020-08-27T09:15:03Z', u'conditions': [{u'status': u'True', u'lastProbeTime': u'2020-08-27T09:15:03Z', u'type': u'Complete', u'lastTransitionTime': u'2020-08-27T09:15:03Z'}], u'succeeded': 1, u'startTime': u'2020-08-27T09:14:41Z'}"} 2020-08-27 09:15:04,525 - kubernetes.client.rest - DEBUG - response body: {"kind":"Namespace","apiVersion":"v1","metadata":{"name":"ims-gnb8m","generateName":"ims-","selfLink":"/api/v1/namespaces/ims-gnb8m","uid":"bd5ca006-e845-11ea-a485-0242ac120004","resourceVersion":"2586424","creationTimestamp":"2020-08-27T09:14:41Z","deletionTimestamp":"2020-08-27T09:15:04Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}} 2020-08-27 09:15:04,527 - functest_kubernetes.security.security - DEBUG - delete_namespace: ims-gnb8m 2020-08-27 09:15:05,998 - xtesting.core.testcase - DEBUG - Publishing /var/lib/xtesting/results/functest-kubernetes.log ('text/plain', None) 2020-08-27 09:15:06,506 - xtesting.core.testcase - DEBUG - Publishing /var/lib/xtesting/results/functest-kubernetes.debug.log ('text/plain', None)