Is this PowerShell script safe?

Paste code on the left. It is checked automatically, and the verdict appears here.

The report shows what the code can reach — network, files, commands, credentials — and flags the combinations dangerous scripts rely on.

Checks run locally in your browser. Nothing is uploaded, logged or stored.

Results update as you type.

How it works

PowerShell one-liners are the most common way Windows machines get compromised, usually as a single line that downloads something and pipes it into Invoke-Expression. Paste the command before you press enter.

  1. The language is detected from the code, and you can override it in the dropdown.
  2. JavaScript and TypeScript are parsed into an abstract syntax tree, so function calls, imports and property accesses are matched structurally rather than as text. Python, PowerShell and shell are scanned with rules that first mask comments and string contents. HTML is scanned tag by tag, with inline scripts handed to the JavaScript analyzer.
  3. Findings are split into capabilities (what the code can do) and suspicious behaviour (patterns typical of malicious code).
  4. Behaviour chains are evaluated: reading cookies is one thing, reading cookies and posting them to a hardcoded host is another.
  5. A risk level is assigned and every finding links to the line it came from, so you can jump straight to the code responsible.

What it detects

  • Invoke-WebRequest, Invoke-RestMethod, iwr, irm and Net.WebClient downloads
  • download piped directly into Invoke-Expression or iex
  • -EncodedCommand and other Base64 command payloads
  • backtick-obfuscated cmdlet names such as I`e`x, which exist only to defeat scanners
  • registry Run keys, scheduled tasks and services used for persistence
  • Set-MpPreference, firewall changes, execution policy bypass and event log clearing
  • Get-Credential, ConvertFrom-SecureString and -AsPlainText credential handling
  • vssadmin and wbadmin deletion of shadow copies and backups

Privacy: your code stays in your browser

The whole static analysis, including parsing, rule matching and risk scoring, is compiled into the page and runs on your machine. Checking code never sends it anywhere and nothing is logged. Without an account nothing is stored either: close the tab and it is gone.

Signing in is optional. If you do, the code on your desk (up to 3,000 characters) is saved to your account so you can open it on your other devices. Only you can read it, pressing Clear deletes it, and it is deleted automatically 24 hours after your last edit.

Why we never say "this code is safe"

Nobody can prove a piece of code is harmless by inspecting it. Code can fetch its real payload at runtime, behave differently on another machine, or hide its intent in a dependency you cannot see. So the verdict is always one of four: low apparent risk, potential risk, high risk, or unable to determine. "Low apparent risk" means these particular patterns are absent — nothing more.

Frequently asked questions

Someone sent me a long Base64 PowerShell command. Is it malware?
Not automatically, but -EncodedCommand exists to make a command unreadable, and legitimate instructions almost never need it. The checker rates it high risk and tells you to decode and read the payload before running anything.
Why is -WindowStyle Hidden flagged?
Hiding the window serves no purpose for a script you are running deliberately. It is there so you do not notice the script running, which is why it is treated as an evasion signal.
Is PowerShell itself safe?
PowerShell is a legitimate administration tool built into Windows, and having it on your machine is normal. It is also the most common vehicle for malware precisely because it is powerful and already installed: one pasted line can download and run anything. The tool is safe; the one-liner somebody told you to paste into it may not be.

Checkers by language