format
Formats
#powershell
#scripting
#security
#windows

PowerShell Script Analysis

PowerShell is the workhorse of Windows post-exploitation. Decoder reads `.ps1` files statically and surfaces the patterns attackers rely on: encoded commands, `Invoke-Expression`, download cradles, AMSI bypasses.

What it is

Static, no-execution inspection of PowerShell scripts.

Why it's useful

Most malicious PowerShell is obfuscated; reading it by eye is slow and dangerous to run.

How Decoder implements it

Lexical scan for high-signal cmdlets, decoded base64 payloads, entropy on string literals, optional AI verbalisation.

When to use it

Any untrusted `.ps1`, IR triage, training material, blue-team workflows.

When NOT to use it

Live process behaviour — that needs ETW / sandboxing.

Practical example

A pasted script with `powershell -enc <base64>`: Decoder decodes the payload, flags the download cradle and shows the dropped URL.

FAQ

Glossary

Download cradle
A one-liner that pulls and executes remote PowerShell — a common malware staging pattern.
AMSI
Anti-Malware Scan Interface — the Windows API that AV/EDR uses to inspect scripts at runtime.

Related