Skills sast-semgrep
📦

sast-semgrep

v0.1.0 Content revision r2 High Risk ⚙️ External commands🌐 Network access🔑 Env variables📁 Filesystem access Contains scripts

Audit Code with Semgrep

Security flaws can remain hidden across large, multilingual repositories. This skill guides focused Semgrep scans, triage, custom rules, CI gates, and standards-aligned remediation.

Supports: Claude Codex Code(CC)
⚠️ 38 Poor

This skill is part of a pack

Install the whole pack to get every skill the task needs, in one command.

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "sast-semgrep" from https://skillstore.io/skills/agentsecops-sast-semgrep.md and its manifest at https://skillstore.io/api/skills/agentsecops-sast-semgrep/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "sast-semgrep". Review this Python service for SQL injection.

Expected outcome:

  • High: User-controlled data reaches a formatted SQL query in the account lookup.
  • CWE-89 and OWASP A03 apply.
  • Use a parameterized query and add a regression test.

Using "sast-semgrep". Add Semgrep to this pull request workflow.

Expected outcome:

  • Workflow plan: scan changed files, publish SARIF, and block verified high-severity findings.
  • Dependencies are pinned to immutable versions, and scan artifacts exclude sensitive source excerpts.
  • Rollout starts in audit mode before enforcement.

Security Audit

High Risk
v10 • 7/23/2026 Open versioned report

All 109 static findings are false positives from documentation, detection rules, or fixed CI commands; none execute as part of the skill. The audit found flawed SSRF and path-containment guidance, plus unpinned CI dependencies that create supply-chain exposure.

9
Files scanned
2,126
Lines analyzed
0
Review items
0
False positives ignored

Confirmed security concerns (3)

High
SSRF Remediation Fails to Block Private IPs
The safe_fetch example catches and ignores the exception raised for a private IP. It also omits hostname resolution and redirect validation.
The private-address branch raises ValueError inside a try block whose ValueError handler continues execution, so the request still occurs.
High
Path Remediation Uses an Unsafe Prefix Check
The safe_join example compares resolved paths with string startswith. A sibling directory sharing the base prefix can pass and escape the intended directory.
Resolved path strings are compared lexically instead of checking path ancestry, which permits prefix-confusion bypasses.
Medium
CI Examples Use Mutable Dependencies
CI examples use mutable action tags, latest container tags, and unpinned pip installs. Upstream changes can alter code executed in privileged pipelines.
The examples visibly use action major tags, a latest image tag, and pip installation without an exact version or integrity hash.

Risk Factors

⚙️ External commands (50)
🌐 Network access (16)
🔑 Env variables (5)
📁 Filesystem access (2)
Contains scripts (9)
Audited by: codex View Audit History →
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/agentsecops-sast-semgrep/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/agentsecops-sast-semgrep/security.svg)](https://skillstore.io/skills/agentsecops-sast-semgrep?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/agentsecops-sast-semgrep?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/agentsecops-sast-semgrep/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/agentsecops-sast-semgrep.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA · BibTeX · CFF)

APA citation

AgentSecOps. (2026). sast-semgrep security audit report (audit version 10) [Author version 0.1.0]. Skillstore. https://skillstore.io/skills/agentsecops-sast-semgrep/audits/10

BibTeX citation

@techreport{agentsecops-agentsecops-sast-semgrep-2026, author = {AgentSecOps}, title = {sast-semgrep security audit report (audit version 10)}, institution = {Skillstore}, year = {2026}, number = {10}, url = {https://skillstore.io/skills/agentsecops-sast-semgrep/audits/10}, note = {Author version 0.1.0} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "sast-semgrep security audit report (audit version 10)" version: "0.1.0" type: report authors: - name: "AgentSecOps" date-released: "2026-07-23" url: "https://skillstore.io/skills/agentsecops-sast-semgrep/audits/10" identifiers: - type: other value: "skillstore:agentsecops-sast-semgrep:audit:10" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: Medium
59
Architecture
100
Maintainability
87
Content
70
Community
91
Spec Compliance

What You Can Build

Review a pull request

Scan changed code, validate findings in context, and identify verified issues that should block merging.

Add a CI security gate

Adapt a pipeline example to publish findings, preserve useful artifacts, and enforce justified severity thresholds.

Create organization rules

Build and test custom Semgrep rules for unsafe patterns specific to an application or engineering standard.

Try These Prompts

Run a baseline scan
Identify this repository's languages. Run a Semgrep baseline scan, then summarize high-confidence findings by severity, file, CWE, and recommended fix.
Review changed code
Scan changes against [base branch] with Semgrep. Separate new findings from existing debt and explain which findings should block the pull request.
Create a custom rule
Create and test a Semgrep rule for [unsafe pattern] in [language]. Include positive and negative fixtures, metadata, and false-positive controls.
Design a CI security gate
Design a Semgrep CI gate for [platform]. Pin dependencies, scan changed code, publish SARIF, protect secrets, and define justified failure thresholds.

Best Practices

  • Review every finding in context before blocking a change.
  • Pin CI actions, container images, packages, and rulesets to trusted immutable versions.
  • Test custom rules with vulnerable and safe fixtures before deployment.

Avoid

  • Do not treat every Semgrep match as a confirmed vulnerability.
  • Do not expose source excerpts, secrets, or unrestricted artifacts in shared reports.
  • Do not suppress findings without documented technical justification and an expiration review.

Frequently Asked Questions

What does this skill scan?
It guides Semgrep analysis of supported source languages, infrastructure files, and selected security patterns.
Does it include an executable scanner?
No. The package contains guidance and configuration examples, while several documented scripts are absent.
Can it find vulnerable dependencies?
No. Use a dedicated software composition analysis tool for dependency vulnerabilities and license risk.
Can I use the CI examples directly?
Review and pin every dependency first. Adapt permissions, artifacts, rulesets, and failure thresholds to your repository.
Does a clean scan prove the code is secure?
No. Semgrep coverage depends on rules and language support, so combine it with testing and expert review.
How should sensitive findings be handled?
Restrict report access, minimize source excerpts, remove secrets, and retain artifacts only for the required period.

Developer Details

License

MIT

Author version

v0.1.0

Skillstore revision

r2

Ref

9e952417e76879bc9d853e1b8b2cd6d6d8d4a1c2

Maintenance freshness

7/24/2026

Usage

11 downloads · 227 views

More from AgentSecOps

View all
View all