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.
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-semgrepRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit /tmp/SecOpsAgentKit && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SecOpsAgentKit/skills/appsec/sast-semgrep ~/.gemini/antigravity-cli/skills/sast-semgrepAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
