Skip to main content

Semgrep release notes for July 2024

๐ŸŒ Semgrep AppSec Platformโ€‹

Addedโ€‹

  • A new dashboard focused on secure guardrails adoption is now in private beta. Find out what percent of findings are fixed before they enter your default or primary branch. To join the private beta, reach out to your Technical Account Manager or Account Executive. See the Dashboard beta documentation for more information. Dashboard (beta) page
  • Added support for the following source code managers (SCMs):
    • Azure DevOps
    • Bitbucket Cloud
    • Bitbucket Data Center With these changes, it is easier for you to add repositories from these SCMs to Semgrep.
  • Semgrep Managed Scans:
    • You can now view your most recent scan log.
    • You can enable or disable diff-aware scans for PRs and MRs.
  • Semgrep API:
    • There is a new public endpoint /v1/scan/:id, which returns the metadata from first_seen_scan.
    • Added ecosystem field to public findings API response. It is under found_dependency.

Changedโ€‹

  • Improved the new user onboarding experience for GitHub users. Changes to the onboarding flow include copy fixes to the instructions and the faster addition of Semgrep to your repository's CI pipeline.
  • Updated the findings details page.
  • Updated GHA sample workflows to use setup-node@v4.
  • Various performance improvements to Semgrep Managed Scans.
  • Projects on Semgrep Managed Scans now use the managed-scan tag instead of autoscan.
  • Improvements to API documentation.

Fixedโ€‹

  • Fixed an issue in the Editor or Playground in which Turbo mode could return an undefined object.
  • Fixed an issue in which Add other GitHub organization wouldn't redirect to the correct URL.
  • Minor type fixes to the Policies page.

๐Ÿ’ป Semgrep Codeโ€‹

Addedโ€‹

  • Added the --exclude-minified-files flag to enable skipping minified files and the --no-exclude-minified-files flag to include minified files during scans triggered by running semgrep ci and semgrep scan. By default, Semgrep scans minified files.
  • Added as-metavariable, a new rule-writing feature that allows rule writers to bind arbitrary matches to a name and then use it with autofixes.
  • Python: Added support for Flask, Django, and FastAPI.
  • Added community support for Move.
  • Added community support for Circom.

Changedโ€‹

  • Improved module resolution for Python scans so that imports like from a.b import c, where c is a module, resolve correctly.
  • Improved error handling for rules with invalid patterns so that scans still complete and findings from other rules are reported.
  • CLI:
    • Users must sign in before running semgrep scan --pro. Scans will not begin until the user signs in.
    • The --debug option now displays logging information incrementally instead of waiting for the scan to complete.

Fixedโ€‹

  • Fixed an issue where Semgrep Managed Scanning would occasionally hang.
  • Fixed an issue where users couldn't pass in the --junit-xml-output flag.
  • Fixed an issue with the --pro-intrafile flag that caused Semgrep to confuse parameters with top-level functions with no arguments when both share a name:
    def foo
    taint
    end

    def bar(foo)
    sink(foo) # no more false positive here
    end
  • Semgrep is stricter when unifying identifiers. For example, this pattern doesn't work because the foo methods in classes A and B aren't the same. As such, their IDs aren't unifiable through $F:
    patterns:
    - pattern-inside: |
    class A:
    ...
    def $F(...):
    ...
    ...
    ...
    - pattern-inside: |
    class B:
    ...
    def $F(...):
    ...
    ...
    ...
    should be rewritten as follows:
    patterns:
    - pattern-inside: |
    class A:
    ...
    def $F1(...):
    ...
    ...
    ...
    - pattern-inside: |
    class B:
    ...
    def $F2(...):
    ...
    ...
    ...
    - metavariable-comparison:
    comparison: str($F1) == str($F2)
  • Fixed an issue where code snippets from GitLab-hosted repositories weren't loading.
  • C++: Fixed an issue so that scanning a project with header files no longer causes spurious warnings that the file is being skipped or isn't being analyzed.
  • CLI:
    • Fixed an issue where autofix previews weren't displayed with appropriate spacing.
    • Fixed an issue where rules served to the CLI weren't filtered by minimum and maximum versions supported, causing errors.

โ›“๏ธ Semgrep Supply Chainโ€‹

Addedโ€‹

  • Added support for comparing Go pseudo-versions against other pseudo-versions and strict core versions.
  • Added support for uploading and parsing large npm repositories.
  • Added the ability for Supply Chain to retrieve and display CVE data.
  • Added a filter to support filtering by reachability rule, CVE, or GHSA information.

Changedโ€‹

  • SBOMs generated by Semgrep now contain time zone information.

Fixedโ€‹

  • Fixed an issue where package-lock.json parser incorrectly assumed that all paths in the packages component of package-lock.json started with node_modules/. This is incorrect, since a dependency can be installed anywhere. The parser can now recognize alternative locations.
  • Fixed an issue where users couldn't create Jira tickets for Supply Chain findings with the severity filter active.
  • Fixed an issue where CVE information was labeled as CWE information.

๐Ÿค– Semgrep Assistantโ€‹

Addedโ€‹

  • Assistant Memories is now in public beta. Assistant Memories allows users to tailor Assistant's remediation guidance on a per-project, per-rule basis.

Fixedโ€‹

  • Fixed various UI issues when analyzing findings.

๐Ÿ” Semgrep Secretsโ€‹

Addedโ€‹

  • Added the Open in Editor button to the findings detail page for findings identified by Secrets.
  • Added the ability to filter for Secrets findings with the status of Ignored.
  • Added the ability to triage Secrets using the Reviewing and Fixing statuses.

Fixedโ€‹

  • Fixed an issue where Slack webhooks weren't included in historical scan findings.

๐Ÿ“ Documentation and knowledge baseโ€‹

Addedโ€‹

Changedโ€‹

Fixedโ€‹

  • Various broken links have been updated.

Removedโ€‹

  • Removed the Semgrep vim extension from the documentation due to the lack of activity on the extension itself.

๐Ÿ”ง OSS Engineโ€‹

  • The following versions of the OSS Engine were released in July 2024:

Not finding what you need in this doc? Ask questions in our Community Slack group, or see Support for other ways to get help.