aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.66k stars 579 forks source link

Change KB links to avd #406

Closed danielsagi closed 3 years ago

danielsagi commented 3 years ago

Description

Updated KB links to link to avd.aquasec.com

In general table reporting, this will be seen as:

...
Vulnerabilities
For further information about a vulnerability, search its ID in:
https://avd.aquasec.com/
+--------+---------------------+----------------------+----------------------+----------------------+------------+
...

And in json reporting, we build the full avd url and adding it to the resulting vulnerability object. as a new avd_reference var

{
  "location":"127.0.0.1:10250",
  "vid":"KHV040",
  "category":"Remote Code Execution",
  "severity":"high",
  "vulnerability":"Exposed Run Inside Container",
  "description":"An attacker could run an arbitrary command inside a container",
  "evidence":"",
  "avd_reference":"https://avd.aquasec.com/kube-hunter/khv040/",
  "hunter":"Kubelet Secure Ports Hunter"
}

Fixed Issues

closes #405

Contribution checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #406 (d20e5c8) into master (35873ba) will increase coverage by 0.08%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #406      +/-   ##
==========================================
+ Coverage   63.47%   63.56%   +0.08%     
==========================================
  Files          42       42              
  Lines        2289     2289              
==========================================
+ Hits         1453     1455       +2     
+ Misses        836      834       -2     
Impacted Files Coverage Δ
kube_hunter/modules/report/base.py 30.30% <100.00%> (+5.30%) :arrow_up:
kube_hunter/modules/report/plain.py 12.50% <100.00%> (-0.99%) :arrow_down:
kube_hunter/core/events/handler.py 91.08% <0.00%> (+0.99%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 35873ba...d20e5c8. Read the comment docs.