Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

psalm-security-analysis

Skill by psalm

Runs and interprets Psalm taint analysis on a Laravel project to find security issues like SQL injection and XSS. Built for developers auditing Laravel code, and requires psalm-plugin-laravel.

  • Score 77
  • 352 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install psalm-security-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/psalm/psalm-plugin-laravel /tmp/psalm-plugin-laravel && mkdir -p ~/.claude/skills && cp -r /tmp/psalm-plugin-laravel/resources/boost/skills/psalm-security-analysis ~/.claude/skills/psalm-security-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install psalm-security-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through a run, triage and report workflow for Psalm security (taint) analysis on a Laravel project. It runs Psalm in either a baseline mode that reports only new findings or a full mode that ignores the baseline. Results come as compact stdout lines plus a JSON report with source-to-sink taint traces, which the assistant queries with jq.

For each finding the assistant checks whether user input reaches the sink, whether any sanitization sits in between, and who can reach the endpoint. It then assigns a severity from HIGH to FALSE. The skill is for Laravel developers who want to find or fix taint errors. A separate reference file covers fixes and suppression annotations.

Written from the project's SKILL.md and checked against it.

What it can do

  • Baseline runRuns Psalm taint analysis and reports only new findings since psalm-baseline.xml was created.
  • Full audit runRuns Psalm taint analysis with the baseline ignored to surface all findings.
  • Triage with JSON tracesUses the JSON report and jq to inspect source-to-sink taint chains for each finding.
  • Severity classificationLabels findings as HIGH, MEDIUM, LOW or FALSE based on endpoint exposure and impact.
  • Cross-file taint tracingGreps for method callers to trace taint flows across files when the trace is incomplete.
  • Fix and suppression guidancePoints to a reference file with per-issue fix patterns and @psalm-taint-escape usage.
  • Baseline policy checkExplains that Tainted* findings must be fixed or escaped, not added to the baseline.

What you need

  • A Laravel project with Composer dependencies installed
  • psalm-plugin-laravel installed in the project
  • Psalm available at ./vendor/bin/psalm
  • jq for querying the JSON report

Try asking

  • Run a full Psalm security audit on this Laravel project
  • Check for new taint issues since the last baseline
  • Show the taint trace for every TaintedSql finding

Good to know

  • Do not pipe Psalm output, because an early exit can stop the report file from being written.
  • Do not add Tainted* findings to psalm-baseline.xml; fix or escape them instead.
  • Http::get() facade calls may not propagate taint; calling the underlying class is more reliable.
  • Psalm cannot track taint through chained calls such as ->upper() on Str::of() results.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: resources/boost/skills/psalm-security-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to psalm-security-analysis

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

psalm-security-analysis: common questions

Does this skill need psalm-plugin-laravel?

Yes. The skill description states that it requires psalm-plugin-laravel to be installed.

What does the skill check for?

It runs Psalm taint analysis and covers issues such as SQL injection, XSS, SSRF, file, shell and redirect sinks.

Does it fix the code automatically?

The source describes triage and reporting in this file and points to a separate reference file for fix patterns and annotations.

How do I install psalm-security-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is psalm-security-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is psalm-security-analysis safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to psalm-security-analysis?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

psalm-security-analysis Install

Add to stack

Loading.