sast-scan

Scan multi-language codebases with local Semgrep rules for security weaknesses.

83|8|Updated May 6, 2026
One-click install
npx skills add https://github.com/Q16G/aster --skill sast-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sast-scan
Source: https://github.com/Q16G/aster/tree/main/skills/code-audit/sast-scan
Command: npx skills add https://github.com/Q16G/aster --skill sast-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Static security scanning across multiple languages using local Semgrep rules to identify common vulnerabilities (RCE, SQLi, XSS, XXE, SSRF, command injection, unsafe deserialization, path traversal) in source, XML config, and template files, returning structured results for prioritization.

Core Features & Use Cases

  • Local-rule based scanning: Uses locally embedded Semgrep rules (no online config) to avoid external dependencies.
  • Multi-language coverage: Detects Java, Go, Python, JavaScript, PHP, and C/C++ project signals to assemble a comprehensive scan surface.
  • Output stratification: Produces high_confidence, needs_dataflow_confirmation, and high_noise patterns to support subsequent dataflow analysis and business logic review.
  • Quick Start: Example use case of scanning a target path with language hints and interpreting results for remediation.

Quick Start

To start a local SAST scan, run the skill against a project directory with the appropriate language hint and review the categorized findings.

Frequently Asked Questions about sast-scan

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

FAQPage Schema
How do I run a local static analysis scan across multiple programming languages?

You can run a local static analysis scan on Java, Go, Python, JavaScript, PHP, and C/C++ projects by using embedded Semgrep rules to automatically detect project signals and assemble a comprehensive scan surface.

What common security vulnerabilities can local SAST rules detect in my codebase?

Local SAST rules detect common security vulnerabilities including RCE, SQL injection, XSS, XXE, SSRF, command injection, unsafe deserialization, and path traversal across source, XML config, and template files.

Does this local SAST tool require external dependencies or online configurations to scan code?

No, this local SAST tool uses locally embedded Semgrep rules and requires no online config or external dependencies, enabling language-agnostic scanning and structured output without external connectivity.

How are SAST findings categorized to help prioritize code remediation?

SAST findings are categorized into three structured buckets: high_confidence, needs_dataflow_confirmation, and high_noise patterns, which support subsequent dataflow analysis and business logic review for remediation.

Can I use Semgrep rules to scan both source code and XML configuration files?

Yes, you can use the embedded Semgrep rules to scan source, XML config, and template files across multiple languages, returning structured results for prioritization and identifying security weaknesses.

What is the best way to identify path traversal and unsafe deserialization in a multi-language codebase?

The best way to identify path traversal and unsafe deserialization is by performing local, rule-based SAST using embedded Semgrep rules, which automatically generate a scan surface for comprehensive multi-language detection.