Skip to main content
Version: 3.17-dev

Security Findings

The KubeRocketCI portal shows the security findings that DefectDojo holds for the codebases and the Environments of the platform. The findings come from the security scans of the pipelines and from the scans of the running workloads. The portal shows the findings and links to DefectDojo, where they are triaged.

The findings appear in the following places:

note

The portal reads DefectDojo with its own connection. To configure it, refer to Configure the KubeRocketCI Portal.

Levels and Producers​

Each finding belongs to one of three levels, by the place where it was found:

LevelWhereScan typesProducer
CodeThe source code of a branchSemgrep JSON Report (SAST) and Gitleaks Scan (secret detection)The security scan pipeline, started from the portal
ImageThe container images built from a branch and the images of its Helm chartTrivy Scan and Anchore GrypeThe security scan pipeline
RuntimeThe containers that run in the EnvironmentsTrivy Operator Scan, with two report kinds: vulnerabilities and exposed secretskrci-security-operator, from the reports of Trivy Operator

Build, review, and deploy pipelines write nothing to DefectDojo, so a codebase that never ran a security scan has no Code or Image data. The image-scan-remote pipeline also uploads Image findings, to a test of its own that has no branch: it appears on the Vulnerabilities page and not in the views of a project. A scan uploaded before KubeRocketCI 3.17 has no codebase tags, so the portal shows no data for it before the next security scan of the codebase. For the pipelines, refer to Security Scanning Pipelines. For the runtime findings, refer to Runtime Security Findings in DefectDojo.

States​

Each view shows the findings or one of the following states:

StateShown asMeaning
FindingsThe counts by severity, for example C 4 and H 2, and the number of exposed secretsThe scans hold active findings
CleanClean, or No findings with the date of the last uploadScans exist and hold no active finding
No scan dataNo scan data, and a dash (—) instead of the countsNo scan exists for the level, so nothing is known about it: a dash is not a zero. The view names the producer that writes the data: the CI security scan for Code and Image, the security operator for Runtime
Not runningNot runningThe scanned workload or container no longer runs. The portal does not count its findings
Not connectedDefectDojo is not connectedThe portal has no DefectDojo address or token. The full views add a link to the configuration guide
UnreachableDefectDojo is unreachable and RetryThe portal cannot reach DefectDojo, or DefectDojo rejects its token. The rest of the page works
Load failedFailed to load security findings and RetryThe request failed for another reason

How the Portal Counts Findings​

The counts follow these rules:

  • The counts include active findings only. The triaged findings, which are mitigated, false positive, out of scope, or risk accepted, are behind the State filter of the Findings pages and the Show triaged switch of a scan.
  • The portal never adds the counts of two scanners: Trivy Scan and Anchore Grype scan the same image, and DefectDojo does not merge their findings. A card or a summary shows one line per scan type, not a total.
  • For the running workloads, the severity counts are those of the vulnerabilities, and the number of exposed secrets, counted apart, stands next to them.
  • The portal reads a limited number of active exposed secrets for a view. When the namespaces of the view hold more, the exposed secrets past the limit are counted as vulnerabilities, and the view says so.
  • The image as built and the same image as running are counted apart, and their counts can differ even for one image tag: the CI scan and Trivy Operator run with their own settings. For example, Trivy Operator can be set to report only the vulnerabilities that have a fix.
  • Runtime vulnerabilities carry no fix version, file path, or line, and the portal shows only whether a fix is available. Runtime exposed secrets carry a file path but no line.

Project: Security Findings Tab​

The Security Findings tab of a project lists every scan of the codebase in one table, in the Code, Image, and Runtime sections. To open it, go to Projects, select a project, and open the Security Findings tab.

Security Findings tab of a project

The sections contain the following rows:

  • Code: one row per scanner and branch. The tab shows the branches that exist in the platform, the default branch first.
  • Image: one row per scanner, branch, and image. The image that the codebase builds is marked Own image, and the other images of its chart are marked Third-party image. The Image tag column shows the scanned tag.
  • Runtime: one row per container of the codebase in each Environment where it runs, with its workload and the number of exposed secrets. A container that no longer runs is marked Not running.

A row shows the counts by severity, the number of triaged findings, and the date of the last upload, and links to the test in DefectDojo. Expand a row to see its findings. Filter them by severity, and turn on Show triaged to see the triaged ones. A Runtime row has two tabs, Vulnerabilities and Exposed secrets.

For the own image, the Built vs running tab puts the image as built next to the same image as running in each Environment, with the image tags and the counts of both. It groups the findings by component and marks an Environment that runs the scanned tag with Same image tag.

A section without a scan shows No scan data and names the producer. When the tab is opened from an Environment, it highlights that Environment.

Security Line on the Overview Tab​

The first row of the Overview tab of a project, Security findings, sums up each level in one phrase. For Code and Image, it names the scan of the default branch with the most severe findings: the highest severity, its count, and the scanner. For Runtime, it names the report kind and the Environment instead of the scanner. The other phrases are Clean, — No scan data, and Not running. Click the line to open the Security Findings tab.

Security line of a project

Environment: Applications and Overview Tabs​

The page of an Environment shows the runtime findings of its namespace in two tabs. To open the page, go to Deployments, select a Deployment, and click the Environment name.

  • The Applications tab has the Security column. For each application, it shows the counts by severity of the running containers and the number of exposed secrets, with one line per container when several run. An application without counts shows Clean, No scan data, or Not running. The icon next to the cell opens the Security Findings tab of the codebase on this Environment.

    Security column of an Environment

  • The Overview tab has the Runtime security card. It counts the vulnerabilities and the exposed secrets of the whole namespace and shows how many workload containers are scanned and how many of them belong to no codebase. Its links open this namespace on the Vulnerabilities and Exposed Secrets pages, and its namespace product in DefectDojo.

    Runtime security card of an Environment

Deployment: Environments Tab​

The Environments tab of a Deployment shows a findings row on each Environment card: the counts by severity of the running workloads and the number of exposed secrets, or Clean, Not running, or — No scan data. The row opens the Overview tab of the Environment.

Findings of the Environments of a Deployment