What PSRafScan does

PSRafScan reviews PowerShell scripts before they run. It combines PowerShell's native parser with 58 focused rules for correctness, safety, portability, error handling, credentials, terminal paste behavior, and more.

It runs on Windows, macOS, and Linux with PowerShell 7.4 or later.

Why it was created

PowerShell can be syntactically valid while still hiding failures, relying on fragile environment assumptions, or using patterns that deserve closer attention. PSRafScan brings those review questions into one clear report for saved scripts and live terminal input.

Who maintains it

Rafael Lucas created PSRafScan and maintains the scanner, documentation, rule catalog, and practical guidance. Learn more on Rafael's profile.

PSRafScan is currently a public alpha. Browse the source, releases, and documentation.