Rampart PHP

Standalone quality gate for plain PHP and any framework — PHP 7.4+.

View the Project on GitHub thiennhant95/Rampart-PHP

False positives

The custom analyzers are static heuristics. They are precise on the labelled corpus, but they do not replace a security review.

Triage order

  1. Open the reported file and line. Read the finding first.
  2. If the code can be made safe (parameter binding, validation, escaping), fix it.
  3. If it is a reviewed one-off, add an inline suppression on that line: // rampart-ignore RULE_ID or // rampart-ignore-next-line RULE_ID.
  4. Only baseline findings you have actually reviewed.

Confidence

Confidence Meaning Action
high Treat as a real bug until proven otherwise Fix; do not broadly disable
medium Usually correct Check context, then fix or baseline
low Heuristic hint Review when cleaning up; never gate CI on it

Common cases

XSS_ECHO

SQL_INJECTION

ROUTE_MISSING_AUTH

HARDCODED_SECRET