Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sast-semgrep

Skill by AgentSecOps

Runs Semgrep-based static application security testing (SAST) on code. It detects vulnerabilities, supports security code review, and gives remediation guidance mapped to OWASP and CWE.

  • Score 53
  • 239 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sast-semgrep

Built from the published package, never by AI.

git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit /tmp/SecOpsAgentKit && mkdir -p ~/.claude/skills && cp -r /tmp/SecOpsAgentKit/skills/appsec/sast-semgrep ~/.claude/skills/sast-semgrep

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sast-semgrep in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill uses Semgrep, an open-source static analysis tool, to test application code for security vulnerabilities across multiple languages. It runs pattern-based detection, sorts findings by severity, and maps them to OWASP Top 10 and CWE categories with remediation guidance. It also covers writing custom security rules, adding SAST checks to CI/CD pipelines, and analyzing dependencies for known vulnerabilities.

The workflows run Semgrep with rulesets such as auto, p/owasp-top-ten and p/security-audit. For pull requests, the skill can use semgrep --diff to scan only modified code. It is aimed at security and development teams doing application security reviews and setting up SAST in their pipelines. It requires Python 3.8 or later, the semgrep package and git.

Written from the project's SKILL.md and checked against it.

What it can do

  • Initial security scanScans a codebase with Semgrep rulesets and maps findings to OWASP and CWE.
  • Security code reviewScans only changed code with semgrep --diff and flags high-severity findings as blocking.
  • Custom rule developmentHelps create and test organization-specific Semgrep rules in YAML.
  • CI/CD integrationSets up baseline and pull request scans with severity thresholds and SARIF output.
  • Remediation guidanceProvides fix patterns for vulnerability categories from the bundled remediation guide.

What you need

  • Python 3.8 or later
  • semgrep Python package
  • git

Try asking

  • Scan this repository for OWASP Top 10 issues using Semgrep.
  • Review the changed files in this pull request for security problems.
  • Help me write a custom Semgrep rule for an internal SQL pattern.

Good to know

  • Dependency analysis is named in the description, but the body does not explain how it works.
  • Scan results may expose secrets or proprietary code patterns if not handled carefully.
  • False positives may need tuning with .semgrepignore, --exclude-rule or nosemgrep comments.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/appsec/sast-semgrep/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to sast-semgrep

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

sast-semgrep: common questions

What does the sast-semgrep skill need to run?

The source lists Python 3.8 or later, the semgrep package and git. It does not list any API keys or paid plans.

Does it map findings to OWASP and CWE?

Yes. The workflows map findings to OWASP Top 10 and CWE categories, and the source includes a mapping reference file.

Can I write my own security rules with it?

Yes. The skill includes a workflow for creating custom Semgrep rules in YAML, with a rule template and testing against sample code.

How do I install sast-semgrep?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sast-semgrep free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is sast-semgrep safe to use?

It scores 53 of 100. Grades: maintenance D, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sast-semgrep?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

sast-semgrep Install

Add to stack

Loading.