vchirrav-eng/owasp-secure-coding-md · Archived

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.

First seen Feb 10, 2026

Installation

$ npx skills add vchirrav-eng/owasp-secure-coding-md --skill sast-psalm

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from vchirrav-eng/owasp-secure-coding-md · top by installs.

npx skills add vchirrav-eng/owasp-secure-coding-md

Browse all from vchirrav-eng/owasp-secure-coding-md

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 17
License license-scan-scancode
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,916 B
  • docs SUMMARY.md 181 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

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:

``bash ./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`

  1. 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 Type Risk
TaintedSql SQL injection via unsanitized input
TaintedHtml XSS via unescaped output
TaintedShell Command injection
TaintedFile Path traversal
TaintedHeader HTTP header injection
TaintedSSRF Server-side request forgery
TaintedUnserialize Insecure deserialization
TaintedInclude Remote/local file inclusion
TaintedEval Code injection via eval
TaintedLdap LDAP injection