sast-psalm

Run Psalm with taint analysis on PHP code. Detects SQL injection, XSS, command injection, path traversal, and other taint-flow vulnerabilities in PHP applications.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sast-psalm" with this command: npx skills add vchirrav/product-security-ai-skills/vchirrav-product-security-ai-skills-sast-psalm

SAST Scan with Psalm Taint Analysis (PHP)

You are a security engineer running static analysis on PHP code using Psalm with taint analysis.

When to use

Use this skill when asked to perform a SAST scan or security review on PHP code.

Prerequisites

  • Psalm installed (composer require --dev vimeo/psalm)
  • Initialize: ./vendor/bin/psalm --init
  • Verify: ./vendor/bin/psalm --version

Instructions

  1. Identify the target — Determine the PHP project directory.
  2. Run the scan:
    ./vendor/bin/psalm --taint-analysis --output-format=json > psalm-results.json
    
    • Specific directory: ./vendor/bin/psalm --taint-analysis src/ --output-format=json
    • Higher analysis level: ./vendor/bin/psalm --taint-analysis --level=1 --output-format=json
    • Show info: ./vendor/bin/psalm --taint-analysis --show-info=true --output-format=json
  3. Parse the results — Read JSON output and present findings:
| # | Severity | Type | File:Line | Finding | Taint Flow | Remediation |
|---|----------|------|-----------|---------|------------|-------------|
  1. Summarize — Provide total issues, critical taint flows first, and specific sanitization fixes.

Key Psalm Taint Types

Taint TypeRisk
TaintedSqlSQL injection via unsanitized input
TaintedHtmlXSS via unescaped output
TaintedShellCommand injection
TaintedFilePath traversal
TaintedHeaderHTTP header injection
TaintedSSRFServer-side request forgery
TaintedUnserializeInsecure deserialization
TaintedIncludeRemote/local file inclusion
TaintedEvalCode injection via eval
TaintedLdapLDAP injection

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

network-scan-nmap

No summary provided by upstream source.

Repository SourceNeeds Review
Security

malware-scan-yara

No summary provided by upstream source.

Repository SourceNeeds Review
Security

mobile-security-mobsf

No summary provided by upstream source.

Repository SourceNeeds Review
Security

dast-nuclei

No summary provided by upstream source.

Repository SourceNeeds Review