RobustaStudio/semsec
Security & PrivacySemgrep ruleset for taint-based web vulnerability detection, secret scanning across 75 providers, and modern web stack security checks.
Overview
SemSec is an open-source Semgrep ruleset from Robusta Studio for scanning application code before it ships. It bundles taint-tracking rules for Python, JavaScript, Java, and PHP web vulnerabilities; rules aimed at common mistakes in AI-assisted web stacks such as Supabase, Next.js, Firebase, Prisma, tRPC, and GraphQL; and provider-specific secret detection. Each rule file can be used alone or together under one semgrep --config invocation.
The rule count advertised on the README is inconsistent: the badge says 262 rules, while the sections list 47 vulnerability rules, 35 vibe-coding rules, 20 client-side rules, 17 ORM rules, 15 serverless rules, 16 webhook rules, 13 tRPC/GraphQL rules, and 99 secret rules. The project-structure tree also gives 10 Python, 8 JavaScript, 7 Java, and 7 PHP rules, which totals 47 vulnerability rules. Treat the per-file counts as the concrete figures and check the rule pack itself for the current total.
Quick start
You need Semgrep installed (pip install semgrep). Clone the ruleset and point Semgrep at the directory:
git clone https://github.com/RobustaStudio/semsec.git
semgrep --config semsec/ /path/to/your/project
To narrow the scan, use one rule file at a time. For leaked keys:
semgrep --config semsec/hardcoded-secrets.yaml .
For Python taint-tracking web rules:
semgrep --config semsec/python-web-taint.yaml .
For SARIF output that can be uploaded to GitHub code scanning:
semgrep --config semsec/ --sarif -o results.sarif .
The README provides GitHub Actions and GitLab CI examples that clone the repository into /tmp/semsec and upload SARIF. It also provides a pre-commit configuration. For pre-commit, Semgrep cannot load an entire GitHub repository from one URL and silently passes with zero rules, so the example lists each rule file separately. Pin main to a commit SHA if you need reproducible rule versions.
How taint rules work
Instead of matching only a dangerous call such as cursor.execute, the taint rules model attacker-controlled HTTP input from sources such as request.args, req.query, or $_GET, follow it toward sinks such as cursor.execute, os.system, send_file, or redirect, and stay quiet when a sanitizer or parameterized query breaks the flow. The README frames this as the main way the ruleset limits false positives compared with pattern-only scanning. Whether a given framework and sink pair is covered still depends on the individual rule definitions.
Constraints
- Rules target Python (Django, Flask, FastAPI), JavaScript (Express/Node.js), Java (Spring Boot, Servlet), and PHP (Laravel, WordPress). Code outside those frameworks and languages gets no coverage from the corresponding rule files.
- The README's claim that every rule is grounded in real CVEs or breach reports is a project claim; the mapping table lists a small set of representative CVE references rather than an entry for each rule.
- Secret detection depends on provider-specific prefixes and formats. Keys that do not match a known provider format, or custom/internal credentials, are not covered.
- The ruleset is MIT licensed.
- The repository is new and distributed as rule YAML rather than a binary; it does not require closing security protections to install.
HotRepo's take
SemSec recorded 100 stars and 10 forks in its first new-project snapshot on 2026-11-26, after opening its growth window on 2026-11-25. That is a single early data point, not evidence of sustained adoption. The interesting part from a technical standpoint is the packaging: small per-file rule packs for specific stacks, plus a pre-commit path that accounts for Semgrep's behavior of loading zero rules from a whole-repo URL. The README's own rule-count mismatch is the first thing to resolve before quoting a coverage number.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- erkamyaman/safe-anythingA Rust CLI vulnerability scanner for source code, secrets, dependencies and AI agent configurations.
- betterleaks/betterleaksScans files, Git history, container images and hosted sources for leaked secrets, optionally validating and analysing them.
- DependencyTrack/dependency-trackTracks vulnerabilities across every application in a portfolio by ingesting SBOMs, instead of scanning each project's code separately.
- aquasecurity/trivyA single CLI scanner that checks container images, filesystems, repos, VMs and Kubernetes for CVEs, misconfigurations and secrets.
- KeygraphHQ/shannonAn autonomous agent that reads your web app's source, then runs real exploits against a staging copy to prove vulnerabilities.