Skip to content

Add ShiftLeft build rules#10

Open
ongamse wants to merge 1 commit intomasterfrom
demo-branch-1689863051
Open

Add ShiftLeft build rules#10
ongamse wants to merge 1 commit intomasterfrom
demo-branch-1689863051

Conversation

@ongamse
Copy link
Copy Markdown
Owner

@ongamse ongamse commented Jul 20, 2023

Qwiet LogoQwiet Logo

This pull request enables build rules. You can read more about build rules here. The build rules are controlled by the shiftleft.yml file in the repository.

Visit app.shiftleft.io to see the security findings for this repository.

We've done a few things on your behalf

  • Forked this demo application
  • Generated a unique secret SHIFTLEFT_ACCESS_TOKEN to allow GitHub Actions in this repository to communicate with the Qwiet (Shiftleft) API
  • Committed a GitHub Action that will invoke Qwiet preZero's Static Application Security Testing (SAST) on all future pull requests on this repository
  • Created this pull request that demonstrates build rules. It also adds a status check that displays the result of the GitHub Action

Questions? Comments? Want to learn more? Get in touch with us or check out our documentation.

@github-actions
Copy link
Copy Markdown

Qwiet LogoQwiet Logo

Checking analysis of application shiftleft-python-demo against 3 build rules.

Using sl version 0.9.1954 (0de7ca182b3ae6596632b61ec849315806b72e8d).

Checking findings on scan 5.

Results per rule:

  • Allow no critical findings: FAIL
    (8 matched vulnerabilities; configured threshold is 0).

    First 5 findings:

        ID   CVSS    Rating    CVE              Title                                                                                                                                                     
       8    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      11    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      37    9.0   critical   CVE-2022-28391   CVE-2022-28391 affecting package busybox 1.35.0-1. A patched version of the package is available.                                                         
      46    9.0   critical   CVE-2022-37434   zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field. NOTE: only applicat…
     156    9.0   critical                    Remote Code Execution: Command Injection Through Attacker-controlled Data in grep_processes                                                             
     Severity rating   Count 
     Critical              8 
     High                  0 
     Medium                0 
     Low                   0 
     Finding Type   Count 
     Container          7 
     Vuln               1 
     CVE              Count 
     CVE-2022-28391       2 
     CVE-2021-3711        2 
     CVE-2022-37434       1 
     CVE-2021-36159       1 
     CVE-2021-30139       1 
  • Allow one OSS or container finding: FAIL
    (74 matched vulnerabilities; configured threshold is 1).

    First 5 findings:

        ID   CVSS    Rating    CVE              Title                                                                                                                                                     
       8    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      11    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/apk-tools@2.12.3-r0                                                                                                                        
      37    9.0   critical   CVE-2022-28391   CVE-2022-28391 affecting package busybox 1.35.0-1. A patched version of the package is available.                                                         
      46    9.0   critical   CVE-2022-37434   zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field. NOTE: only applicat…
     175    9.0   critical   CVE-2021-3711    In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this fu…
     Severity rating   Count 
     Critical              7 
     High                 51 
     Medium               13 
     Low                   3 
     Finding Type   Count 
     Container         67 
     Oss_vuln           7 
  • Allow no reachable OSS vulnerability: pass
    (0 matched vulnerabilities; configured threshold is 0).

2 rules failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant