Skip to main content


In the secureCodeBox we created new Custom Resource Definitions (CRD) for Kubernetes to manage scanners (ScanType) and hooks (see Custom Resource Definitions). To add a new Scanner you need to add a new ScanType (see ScanType) and a parser for its results.

The directory structure of a scanner Helm Chart will look something like this:

scanners/nmapโ”œโ”€โ”€ cascading-rulesโ”‚ย ย  โ””โ”€โ”€ ...โ”œโ”€โ”€ docsโ”‚ย ย  โ”œโ”€โ”€ README.ArtifactHub.mdโ”‚ย ย  โ”œโ”€โ”€ README.DockerHub-Parser.mdโ”‚ย ย  โ””โ”€โ”€ README.DockerHub-Scanner.mdโ”œโ”€โ”€ examplesโ”‚ย ย  โ”œโ”€โ”€ demo-target-sshโ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ findings.yamlโ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ nmap-results.xmlโ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ scan.yamlโ”‚ย ย  โ””โ”€โ”€ ...โ”œโ”€โ”€ parserโ”‚ย ย  โ”œโ”€โ”€ Dockerfileโ”‚ย ย  โ”œโ”€โ”€ package.jsonโ”‚ย ย  โ”œโ”€โ”€ package-lock.jsonโ”‚ย ย  โ”œโ”€โ”€ parser.jsโ”‚ย ย  โ”œโ”€โ”€ parser.test.jsโ”‚ย ย  โ””โ”€โ”€ __testFiles__โ”‚ย ย      โ””โ”€โ”€ ...โ”œโ”€โ”€ templatesโ”‚ย ย  โ”œโ”€โ”€ cascading-rules.yamlโ”‚ย ย  โ”œโ”€โ”€ nmap-parse-definition.yamlโ”‚ย ย  โ””โ”€โ”€ nmap-scan-type.yamlโ”œโ”€โ”€ scannerโ”‚ย ย  โ””โ”€โ”€ Dockerfileโ”œโ”€โ”€ Chart.yamlโ”œโ”€โ”€ values.yamlโ”œโ”€โ”€ Makefileโ”œโ”€โ”€ README.mdโ”œโ”€โ”€ .helm-docs.gotmplโ”œโ”€โ”€ .helmignoreโ””โ”€โ”€ .gitignore

To create a new Helm Chart for your scanner you can use the following command (replace new-scanner with the name of the scanner):

make create-new-scanner NAME=new-scanner

This command will create a new directory named new-scanner and some template files provided by helm to simplify the creation of Helm Charts (see Helm | Getting Started).

The following pages describe the purpose of all files and how to configure them.