Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ShiftLeft build rules #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ongamse
Copy link
Owner

@ongamse ongamse commented Apr 21, 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

Qwiet LogoQwiet Logo

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

Using sl version 0.9.1816 (0329ef2de14a77ebe20bf934acfbcb5420b22455).

Checking findings on scan 1.

Results per rule:

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

    First 5 findings:

       ID   CVSS    Rating    CVE              Title                                                                                                                                                      
     40    9.8   critical   CVE-2015-4412    BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem before 3.0.4 for Ruby allows remote attackers to cause a denial of service (re…
     49    9.8   critical   CVE-2021-44906   Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).                             
      1    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/[email protected]                                                                                                                         
      2    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/[email protected]                                                                                                                         
     22    9.0   critical   CVE-2021-23839   OpenSSL 1.0.2 supports SSLv2. If a client attempts to negotiate SSLv2 with a server that is configured to support both SSLv2 and more recent SSL and TLS v…
     Severity rating   Count 
     Critical             11 
     High                  0 
     Medium                0 
     Low                   0 
     Finding Type   Count 
     Vuln               5 
     Container          4 
     Oss_vuln           2 
     Category                Count 
     Weak Cipher                 3 
     Crypto                      3 
     Remote Code Execution       1 
     Express                     1 
     Denial Of Service           1 
     CVE              Count 
     CVE-2021-44906       1 
     CVE-2021-36159       1 
     CVE-2021-30139       1 
     CVE-2021-23839       1 
     CVE-2021-3711        1 
     CVE-2015-4412        1 
     OWASP 2021 Category             Count 
     A02-Cryptographic-Failures          3 
     A05-Security-Misconfiguration       1 
     A03-Injection                       1 
  • Allow one OSS or container finding: FAIL
    (53 matched vulnerabilities; configured threshold is 1).

    First 5 findings:

       ID   CVSS    Rating    CVE              Title                                                                                                                                                      
     40    9.8   critical   CVE-2015-4412    BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem before 3.0.4 for Ruby allows remote attackers to cause a denial of service (re…
     49    9.8   critical   CVE-2021-44906   Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).                             
      1    9.0   critical   CVE-2021-30139   pkg:pkg/alpine/[email protected]                                                                                                                         
      2    9.0   critical   CVE-2021-36159   pkg:pkg/alpine/[email protected]                                                                                                                         
     22    9.0   critical   CVE-2021-23839   OpenSSL 1.0.2 supports SSLv2. If a client attempts to negotiate SSLv2 with a server that is configured to support both SSLv2 and more recent SSL and TLS v…
     Severity rating   Count 
     Critical              6 
     High                 18 
     Medium               27 
     Low                   2 
     Finding Type   Count 
     Container         35 
     Oss_vuln          18 
  • 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