# PSRafScan > 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. - Canonical website: https://www.psrafscan.com/ - Public repository: https://github.com/RLucas707/PSRafScan - Public releases: https://github.com/RLucas707/PSRafScan/releases - Current version: 0.2.0-alpha1 - Platforms: Windows, macOS, and Linux - Runtime requirement: PowerShell 7.4 or later - Inputs: an existing path or clipboard content - Intended-use values: Ps1File and TerminalPaste - Reports: PlainText and Json - Process results: 0 Pass, 1 Fail, 2 ParseError ## Product - [How PSRafScan Works](https://www.psrafscan.com/how-it-works): See how PSRafScan accepts a script, uses PowerShell's native parser, applies focused rules, and turns findings into a clear report. - [PSRafScan Rules](https://www.psrafscan.com/rules): Search 58 PSRafScan rules by name, category, type, severity, intended use, issue, fix, tag, or alias, and learn how to create your own. - [About PSRafScan](https://www.psrafscan.com/about): Learn how PSRafScan combines PowerShell's parser with focused rules, why the project was created, and who develops and maintains it. - [PSRafScan Security](https://www.psrafscan.com/security): Learn how PSRafScan handles script source and reports, what static analysis covers, and how to report a PSRafScan vulnerability privately. - [PSRafScan License](https://www.psrafscan.com/license): Read the MIT License for the PSRafScan software and understand how website articles, the project name, logo, and brand assets are handled. - [Changelog](https://www.psrafscan.com/changelog): Follow meaningful PSRafScan.com updates, including documentation, articles, rule discovery, themes, search, metadata, and accessibility improvements. ## Documentation - [PSRafScan Documentation](https://www.psrafscan.com/docs): Install PSRafScan, run script reviews, choose intended use, read reports, work with generated code, and create custom rules and self-tests. - [Getting Started with PSRafScan](https://www.psrafscan.com/docs/getting-started): Install PSRafScan on Windows, macOS, or Linux with PowerShell 7.4 or later, confirm the module, and run your first script review. - [Run a PSRafScan Review](https://www.psrafscan.com/docs/run-a-scan): Review a saved PowerShell script or clipboard content with the intended-use mode, severity threshold, report format, and output you need. - [Choose Ps1File or TerminalPaste](https://www.psrafscan.com/docs/intended-use): Choose Ps1File for a saved PowerShell script or TerminalPaste for live terminal input, and understand the six paste-specific checks. - [Use the Guided Terminal Workflow](https://www.psrafscan.com/docs/guided-terminal-workflow): Run RSX without flags and follow the interactive prompts for input, intended use, threshold, report format, destination, and results. - [PSRafScan CLI Reference](https://www.psrafscan.com/docs/cli-reference): Reference PSRafScan commands, the RSX alias, scan inputs, intended-use values, thresholds, report options, catalog filters, and examples. - [Reports, Findings, and Exit Codes](https://www.psrafscan.com/docs/reports-and-exit-codes): Understand PlainText and JSON reports, finding fields, severities, FailOn thresholds, sensitive output, and process results 0, 1, and 2. - [Review AI-Generated PowerShell](https://www.psrafscan.com/docs/ai-generated-powershell-workflow): Define the task, save the original, scan generated PowerShell, make focused revisions, review the diff, rescan, and test when appropriate. - [Create Rules and Rule Self-Tests](https://www.psrafscan.com/docs/custom-rules-and-self-tests): Use the included templates to create custom PSRafScan rules, positive and negative self-tests, expected findings, and validation checks. ## Articles - [PowerShell Script Review Articles](https://www.psrafscan.com/articles): Read practical guides to checking PowerShell scripts, understanding terminal-paste behavior, and reviewing AI-generated PowerShell before use. - [How to Check a PowerShell Script Before You Run It](https://www.psrafscan.com/articles/how-to-check-powershell-script-before-running): Use PowerShell's parser and PSRafScan rules to find syntax errors, risky patterns, and hidden failures before deciding how to test a script. - [PowerShell Script vs. Terminal Paste: Why the Same Code Can Behave Differently](https://www.psrafscan.com/articles/powershell-script-vs-terminal-paste): Learn why saved PowerShell scripts and live terminal input provide different context, which patterns are paste-sensitive, and how to scan each one. - [How to Review AI-Generated PowerShell Without Running It](https://www.psrafscan.com/articles/review-ai-generated-powershell-without-running): Use PSRafScan to inspect AI-generated PowerShell, make focused revisions, compare the diff, and rescan before controlled runtime testing. ## Editorial and policies - [Rafael Lucas](https://www.psrafscan.com/about/rafael-lucas): Meet Rafael Lucas, creator and maintainer of PSRafScan, and browse his PowerShell script-review documentation and practical articles. - [Editorial Policy](https://www.psrafscan.com/editorial-policy): Read the standards Rafael Lucas uses for authorship, technical sources, article updates, and corrections across PSRafScan.com. - [Content Corrections](https://www.psrafscan.com/corrections): Report a factual or technical issue in PSRafScan.com content, learn what details help, and find the separate route for security reports. - [Contact PSRafScan](https://www.psrafscan.com/contact): Choose the right GitHub route for PSRafScan questions and bugs, website corrections, or private security reports. - [Privacy Notice](https://www.psrafscan.com/privacy): Learn how PSRafScan.com handles theme preferences, AI Search and Chat input, Cloudflare browser checks, hosting logs, and external links. - [Website Terms](https://www.psrafscan.com/terms): Read the terms for PSRafScan.com content, software licensing, intellectual property, acceptable use, external links, and site changes.