Vulnerability Discovery and Analysis

A tester with approval to modify a non-production cluster has a shell in one pod. The tester wants kube-hunter to act as an insider pod, attempt exploitation of findings, and write the results as JSON. Which command meets all three needs?

Show the answer

Correct answerD. kube-hunter --pod --active --report json

AWhy not this: It meets the mode and exploitation needs but writes YAML instead of the requested JSON.

BWhy not this: Remote mode scans from outside a named address instead of acting as an insider pod.

CWhy not this: Without --active it only hunts passively, so findings are not exploited.

DWhy this is right: It combines insider pod mode, active exploitation and JSON output.

The --pod option makes kube-hunter act as an insider pod, --active attempts exploitation, and --report json sets the output format. The same command without --active would only report findings passively.