BASE

Semgrep

Semgrep

Security tool · Free + paid

Rule-based static analysis: finds errors and vulnerable patterns in code; the local Community engine and cloud security products differ.

Resource illustration: Semgrep

Open resource ↗

What you can use for free

The open source component used locally or self-hosted for the stated workflow, within its license terms.

Paid features and costs

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.

Access and limitations

Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.

Use cases

  • Check risky patterns in a repository
  • Run a Community scan and manually review the warnings found

Example workflow

A possible workflow; this is not a report of hands-on testing.

Check risky patterns in a repository

Before you start

  • Test code, a rule collection, and permitted exclusions.
  • A test project and completion criteria for the task: Check risky patterns in a repository.

Steps

  1. Set up Semgrep to test: Test code, a rule collection, and permitted exclusions.
  2. Run a Community scan and manually review the warnings found.
  3. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

Check your result

  • A reference vulnerable example is available; the absence of findings is not presented as a security guarantee.
  • Check the result against a reference example; separately confirm the terms of any assets and external services used.

Choosing Semgrep

Check risky patterns in a repository

Choose this when

  • Check risky patterns in a repository
  • Run a Community scan and manually review the warnings found

Requirements

  • Choose local CLI, pre-commit, IDE, or CI; scan rules define the patterns sought.

Things to consider

  • Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
  • Terms of use: LGPL-2.1
  • Community Edition analyzes within one function or file and may miss cross-file/interprocedural issues.

Frequently asked questions

What can you use for free in Semgrep?

The openly available portion, used locally or self-hosted for the stated use case within its license terms.

What additional costs might arise with Semgrep?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.

What terms of use matter for Semgrep?

LGPL-2.1

How do you get started with Semgrep?

Set up Semgrep to test: Test code, a rule collection, and permitted exclusions. Run a Community scan and manually review the warnings found. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

How does CE differ from AppSec Platform?

CE is an open analyzer. AppSec Platform adds cross-file/cross-function analysis, proprietary rules, result management, and separate SAST/SCA/secrets capabilities. There is no single license covering every component.

Is source code sent to the cloud during normal scanning?

The README says analysis runs locally on a computer or in a build environment, and code is not uploaded by default. This describes the default scan rather than every integration and AI configuration.

Are there metrics even with local analysis?

The README reports pseudonymous rule metrics with remote Registry configuration, and with local-file configuration if the user is logged in. --metrics=off disables Registry rule metrics.

License

LGPL-2.1

LGPL2.1 — terms for a library and its modifications

You can use the library while complying with LGPL; distributing a modified version and linking it with an application involves specific requirements for source code, notices, and the ability to replace the library. Check the linking method and exact version's terms before distribution.

License terms

Technologies and topics

  • Semgrep
  • Security tool

Sources

Other resources