8000 :construction: [Consistency] Make all files of cmseek follow consistent templates by SebieF · Pull Request #727 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@SebieF
Copy link
Contributor
@SebieF SebieF commented Oct 13, 2021

Description

Because cmseek was added as a new security scanner while recent consistentcy refactoring was done, some files from cmseek do not follow the new template structure. This PR fixes all the inconsistencies with other scanners.
It also seems like the securityContext of values.yaml needs readOnlyRootFilesystem to be false (see #723).

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make codeclimate checks happy

SebieF and others added 16 commits September 29, 2021 11:35
1. Replaced some unnecessary comments
2. Added xy.xyz.zxy descriptions to all values
3. Added security context to all scanners
4. Added cascading rules to all scanners (when no cascading rules exist, they are set to false)
5. Changed nuclei image tag from "latest" to "null"
6. Set RunAsNonRoot for whatweb from "false" to "true"
7. ncrack, zap/zap-advanced have some special settings that have not been touched

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
This is necessary because the provided amass container has a non-numeric user that cannot be verified to be root or not:
Error: container has runAsNonRoot and image has non-numeric user (user), cannot verify user is non-root (pod: "scan-amass-scanner-dummy-scan, container: amass)

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
A non-numeric user cannot be checked to be non-root by Kubernetes and causes an error if runAsNonRoot is (justifiably) activated.

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Like Kubehunter Dockerfile, non-root user is not needed

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Changes to USER did not yield the desired effect

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
For scanners: gitleaks, kube-hunter, ssh-scan, sslyze, trivy, wpscan, zap, zap-advanced

Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
@SebieF SebieF self-assigned this Oct 13, 2021
@J12934
Copy link
Member
J12934 commented Oct 13, 2021

@SebieF this seems to include a lot of changes from the other consistency pr's not just the cms seek

@SebieF
Copy link
Contributor Author
SebieF commented Oct 13, 2021

Yeah :( but this should be no problem when the other PRs are merged first?

SebieF and others added 3 commits October 15, 2021 13:07
Signed-off-by: Sebastian <sebastian.franz@iteratec.com>
Signed-off-by: Sebastian Franz <sebastian11@online.de>
@SebieF SebieF force-pushed the consistency/cmseek branch from 6d60aec to d859e7f Compare October 15, 2021 11:13
Signed-off-by: Sebastian Franz <sebastian11@online.de>
Signed-off-by: Sebastian Franz <sebastian11@online.de>
Necessary because unrelated files were included in the PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0