VOOZH about

URL: https://semgrep.dev/products/semgrep-workflows/

⇱ Semgrep Code | Scan Source-code with Static Application Security Testing (SAST) | Semgrep


At RSA, we launched Semgrep Multimodal to combine AI reasoning with rule-based detection Learn More β†’

Semgrep Custom Workflows
Scale AppSec with Semgrep and AI agents

Code security automation that combines Semgrep tools, AI agents, and your own integrations. Fast to develop, simple to extend, ready to deploy on Semgrep infrastructure at enterprise scale.

See Custom Workflows in action...

Introducing Semgrep Workflows

A platform for building automated code security pipelines.

AI can find vulnerability classes that traditional tools can't: business logic flaws, broken access control, IDORs. But putting AI into production for code security introduces real operational problems. Token costs are hard to predict and budget for. Outputs vary between runs, which breaks reproducibility and trust. Hallucinations generate false positives that erode developer confidence. And what works in a proof of concept doesn't automatically work across hundreds of repositories.

Meanwhile, developers using AI coding assistants are shipping more code and more PRs. Vulnerability volume is growing with it. Manual review alone can't keep up.

No vendor can foresee every company's code security needs. Customization is essential. Semgrep Custom Rules brought that philosophy to vulnerability detection. Custom Workflows extends it to the entire code security loop.

Workflows gives teams a programmable platform to combine deterministic analysis and AI into pipelines that are testable, auditable, and cost-controlled. Pick from pre-built workflows, adapt them, or build new ones for detection, triage, validation, remediation, and policy automation.

Teams write the security logic that matters to their organization. Semgrep runs it on managed infrastructure with built-in cost controls, observability, and auditability that scales across your full repository fleet.

Workflows already powers Semgrep's AI-driven vulnerability detection, combining program analysis with LLMs to find business logic flaws such as broken authorization, authentication bypasses, and insecure access patterns.

Research

Generate context from code, docs, or logs that informs other workflows. Produce assets that relate applications, priorities, and architectures.

Detect

Analyze code to find potential vulnerabilities. Apply best of breed tools like Semgrep. Strategically leverage AI for IDOR, business logic, and more.

Validate

Dynamically test code to confirm a vulnerability is exploitable. Provide clear evidence the issue needs to be addressed.

Triage

Review potential vulnerabilities in context for validity and priority. Explain impact and capture feedback for continuous improvement.

Fix

Drive code changes to resolve issues. Generate PRs that reference impact, context, and validation to accelerate developer action.

Optimize

Review workflow structure. Refactor agent activities into tools or scripts to increase consistency, manage costs, and scale up.

Inside the toolkit

The SDK

Define workflows as plain Python. Each workflow is a sequence of typed steps with explicit inputs and outputs, so pipeline logic is readable and easy to review. Workflows live in Git alongside your code, giving you version history, pull request reviews, and branch-based testing. AI coding assistants can help write and extend them. No proprietary config language or UI-only builder.

The Security Tools

Workflows ships with built-in steps for Semgrep's analysis tools and LLMs:

  • Semgrep CE and Pro Engine. Run pattern matching and cross-file taint analysis as deterministic pipeline steps.
  • Supply Chain. Check dependencies for known vulnerabilities and reachability data.
  • Malware Detection. Identify malicious packages in your dependency tree.
  • Secrets. Detect hardcoded credentials using semantic and entropy analysis.
  • LLMs. Invoke reasoning from models including Claude and OpenAI for tasks like exploitability classification, evidence synthesis, or fix generation.
CLI Testing

Write and test workflows on your machine using the Semgrep CLI. Set breakpoints, inspect step outputs, and iterate on pipeline logic in your normal development environment. When a workflow works locally, deploy it to Semgrep's managed infrastructure with no changes. The same code runs in both places, so what you test is what ships.

Managed Infrastructure for production deployment

Deploy workflows to Semgrep's managed infrastructure and run them across your full repository fleet. Execution is parallelized automatically, with built-in retries for transient failures. Every run produces structured logs so you can see what ran, what it cost, and what failed. Tenant isolation ensures workflows operate independently across repositories and teams. No infrastructure to provision, maintain, or scale yourself.

Pre-built Workflows

Start with workflows that are already running in production across thousands of Semgrep customers. Pre-built workflows for Multimodal detection, AI-powered triage, and Autofix are available out of the box. Beyond the core workflows, a growing library of additional workflows covers other common AppSec tasks. Use any of them as-is, customize them to fit your policies, or use them as reference implementations when building your own. Every workflow follows the same SDK patterns and exposes the same typed steps, so extending one is no different from writing a new one from scratch.

Already in production

45%
Enterprise customers
95%
Human agree rate
80%
Remediation guidance rated helpful
"Knowing which vulnerabilities to address requires a huge amount of skilled analysis. Getting that wrong damages trust and wastes scarce engineering time."
β€œSemgrep Autofix has materially improved our SAST remediation lifecycle. By shifting developer effort from writing fixes to reviewing AI-generated patches, we’ve reduced friction, improved adoption rates, and accelerated vulnerability resolution across our codebase.”
Utkarsh Tiwari
Head of Product Security Engineering & Compliance
Meesho
β€œWith Semgrep, I trust that a critical finding will be relevant to us. It saves time and helps our developers focus on the issues that actually matter.”
Minh Nghiem
Senior Security Engineer
Homebase