Custom and Specific Checks #1249
-
Custom and Specific ChecksI have a requirement to scan my K8s clusters w.r.t a few CIS 1.6 benchmarks. And most of these checks align with the CIS benchmarks but there are few checks for which the configuration parameter (the flag) values have to be modified according to the requirement. So, I wanted to understand the best way to modify a check or add a custom check and then install the kube-bench to scan the clusters. Also, with the above use case I'm not required to check for all the benchmarks, so what is the best advice to have these checks? One thing I discovered was to use the -c flag, but I couldn't really see any example of it. Could you kindly please advise? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Or do you suggest I go thru custom checks at Starboard? |
Beta Was this translation helpful? Give feedback.
-
@nijdarshan Hi, You can modify a check or add a custom check via the below steps:
|
Beta Was this translation helpful? Give feedback.
@nijdarshan Hi, You can modify a check or add a custom check via the below steps:
cfg
directory: https://github.com/aquasecurity/kube-bench/tree/main/cfgcfg/cis-1.6
directorykube-bench
command with the--config-dir
flag: