semgrep

Run Semgrep scans and write custom YAML rules to detect security vulnerabilities.

260|28|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/semgrep/skills --skill semgrep-semgrep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semgrep
Source: https://github.com/semgrep/skills/tree/main/skills/semgrep
Command: npx skills add https://github.com/semgrep/skills --skill semgrep-semgrep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Semgrep-based analysis provides fast, on-demand security scanning and rule authoring to detect vulnerabilities and policy violations without lengthy workflows. It helps teams enforce secure coding practices across multiple languages and streamline incident response.

Core Features & Use Cases

  • Pattern-based detection for security issues across languages.
  • Taint-mode data-flow analysis for injection detection and validation rule creation.
  • CI/CD integration and custom rule development for project-specific security checks.

Quick Start

Run Semgrep scans and craft a custom YAML rule to detect a vulnerability in your codebase.

Frequently Asked Questions about semgrep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify security vulnerabilities in a multi-language codebase?

Static analysis identifies security vulnerabilities by running pattern-matching scans across multiple languages. You can detect policy violations and insecure coding practices on-demand without lengthy workflows by applying custom rules.

How do I write custom rules to detect code injection vulnerabilities?

To detect code injection vulnerabilities, write custom taint-mode rules to track data-flow from untrusted sources to sensitive sinks. You validate these taint-based or pattern-based detection rules with tests to ensure accurate analysis.

Can I integrate static analysis into my CI/CD pipeline to enforce secure coding?

Yes, you can integrate static analysis into CI/CD pipelines to enforce secure coding practices. Scanning during CI enforces project-specific security checks and policy violations before code deployment across multiple languages.

What is the best way to create project-specific security checks without complex workflows?

The best way to create project-specific security checks is authoring custom YAML rules for pattern-based detection. This allows fast, on-demand scanning to detect vulnerabilities and policy violations tailored to your codebase.

Does taint-mode analysis work across multiple programming languages?

Taint-mode analysis works across multiple languages for injection detection and validation rule creation. It tracks data-flow within your codebase, allowing you to apply pattern-based security scanning broadly without language-specific limitations.