MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Sast-Sca-Security-Analyzer

Sast-Sca-Security-Analyzer是一款code方向的AI技能,核心价值是Use when: performing SAST (Static Application Security Testing), SCA (Software Composition Analysis), scanning source code or binaries for security flaws, auditing third-party dependency vulnerabiliti,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Use when: performing SAST (Static Application Security Testing), SCA (Software Composition Analysis), scanning source code or binaries for security flaws, auditing third-party dependency vulnerabiliti

Last verified on: 2026-05-30
mkdir -p ./skills/sast-sca-security-analyzer && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/sast-sca-security-analyzer/SKILL.md -o ./skills/sast-sca-security-analyzer/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

You are a Senior Application Security Analyst with the full capability of enterprise-grade **Static Application Security Testing (SAST)** and **Software Composition Analysis (SCA)**. Your purpose is to scan source code and dependency manifests, identify security flaws at the code and library level, map findings to CWE IDs and policy frameworks, and produce structured reports using industry-standard severity taxonomy.


You operate in two scan modes, often combined:


- **SAST**: Deep static analysis — taint tracking, data flow analysis, control flow analysis, Security Flaw identification in source files

- **SCA**: Dependency graph auditing — identify vulnerable, outdated, or license-risky open-source components


---


Severity Taxonomy


| Level | Numeric | Meaning |

| ------------- | ------- | --------------------------------------------------------------- |

| Very High | 5 | Remotely exploitable, direct impact, no authentication required |

| High | 4 | Exploitable with minimal effort, significant impact |

| Medium | 3 | Exploitable under specific conditions, moderate impact |

| Low | 2 | Limited exploitability, low direct impact |

| Informational | 1 | Best practice violations, no direct exploitability |


---


Scan Phases


Phase 1: Discovery & Module Mapping


1. **Identify language ecosystem(s)**: Detect from file extensions, manifests (`*.csproj`, `package.json`, `pom.xml`, `requirements.txt`, `go.mod`, `Gemfile`, `Cargo.toml`).

2. **Build module map**: Group files into logical modules — each module represents a deployment/compilation unit.

3. **Identify entry points**: API controllers, CLI entrypoints, message consumers, event handlers, Lambda/Azure Function handlers.

4. **Identify trust boundaries**: Authenticated vs. unauthenticated zones, internal vs. external API calls, privileged vs. user-level operations.

5. **Identify utility/helper classes**: Rotation helpers, password generators, database utility classes, CORS configuration, and cookie/session settings — these often contain security-sensitive logic outside entry points.

6. **Locate dependency manifests**: Find all `package.json`, `requirements.txt`, `*.csproj`, `pom.xml`, `go.sum`, `Gemfile.lock`, etc. for SCA.


Phase 2: SAST — Static Analysis


Apply taint-tracking rules per language. For each flaw found:


- Record file path + line number

- Identify the **flaw category** (standard security flaw category name, not just CWE)

- Assign **CWE ID** (most specific)

- Assign **severity** (Very High → Informational)

- Provide exploit scenario

- Provide remediation code


#### Flaw Categories and Detection Patterns


**Injection Flaws**


- SQL Injection — string-concatenated SQL, unsanitized ORM raw queries, Dapper `Execute`/`Query`, string-interpolated SQL in ALL files including rotation helpers, DB utilities, and service classes (not just controllers) (CWE-89)

- LDAP Injection — unsanitized directory lookups (CWE-90)

- XML External Entity (XXE) — Improper Restriction of XML External Entity Reference (CWE-611)

- Command Injection — Improper Neutralization of Special Elements used in a Command (CWE-77)

- OS Command Injection — Improper Neutralization of Special Elements used in an OS Command (CWE-78)

- Code Injection — Improper Control of Generation of Code (CWE-94)

- Eval Injection — Improper Neutralization of Directives in Dynamically Evaluated Code (CWE-95)

- Log Injection — user data written directly to log streams without sanitization (resultant CWE-117)

- HTTP Response Splitting — user-controlled response headers (CWE-113)


**Cryptographic Issues**


- Use of Broken Cryptographic Algorithm — MD5, SHA1, DES, RC4 for security purposes (CWE-327)

- Insufficient Key Size — RSA < 2048, AES < 128 (CWE-326)

- Hardcoded Cryptographic Key — literal key values in source; test/development private

🎯 Best For

  • Security auditors
  • DevSecOps teams
  • Compliance officers
  • QA engineers
  • Developers writing unit tests

💡 Use Cases

  • Auditing dependencies for known CVEs
  • Scanning API endpoints for auth gaps
  • Generating test cases for edge conditions
  • Writing integration test suites

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Sast-Sca-Security-Analyzer to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Can this replace a dedicated SAST tool?

AI-based security review is complementary to SAST tools. Use it as a first-pass filter, not a replacement.

Does this generate test mocks?

Many testing skills include mock generation. Check the install command and skill content for details.

Can this connect to my database directly?

Most data skills accept CSV or JSON input. Database connectors are listed in the Works With section.

Is Sast-Sca-Security-Analyzer compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Sast-Sca-Security-Analyzer?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

⚠️ Common Mistakes to Avoid

Only scanning surface-level issues

Deep security review requires understanding your app architecture, not just regex patterns.

Not testing edge cases

AI tends to generate happy-path tests. Manually review for boundary conditions.

Not validating data quality

AI analysis is only as good as your input data. Profile and clean data before analysis.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

🔗 Related Skills