# PowerShell Deobfuscator

> Statically deobfuscate malicious PowerShell commands and extract IOCs without execution.

PowerShell Deobfuscator is a paid AI agent skill on Agensi by aingram702, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1.99 (one-time purchase)
- Creator: [aingram702](https://www.agensi.io/creators/aingram702)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/powershell-deobfuscator
- Tags: security, code-review, testing, powershell, security-analysis, malware-analysis

## About this skill

Malicious PowerShell scripts often hide their intent behind layers of encoding, string manipulation, and compression to bypass static analysis. This skill statically deobfuscates commands and script droppers to reveal their actual behavior without the risk of execution.

### What it does
- **Base64 decoding** handles `-EncodedCommand` (UTF-16LE) and nested Base64 strings.
- **Stream decompression** extracts payloads from `IO.Compression` Gzip and Deflate streams.
- **String reconstruction** resolves `[char]` arrays, `-join` operations, and `-f` format-operator reordering.
- **Escape removal** cleans backtick and caret escapes used to evade signature detection.
- **IOC extraction** pulls URLs, IP addresses, domains, and file paths from every layer of the script.
- **Behavioral mapping** identifies download cradles, AMSI bypasses, and persistence mechanisms.

### How it works
1. **Input ingestion** via file path, direct command string, or piped input.
2. **Iterative decoding** to strip layers of obfuscation until the code reaches a stable state.
3. **Static analysis** of the resulting script to identify malicious patterns and techniques.
4. **Report generation** showing the final script, transformations applied, and extracted indicators.

### Frameworks & tools
Uses a Python based static analysis engine specifically tuned for PowerShell syntax, `IO.Compression` libraries, and regex-based IOC extraction.

### Why this beats prompting it yourself
Generic LLM prompts often hallucinate the output of complex nested loops or fail to correctly reorder `-f` formatted strings. This skill uses a systematic, multi-layer approach to ensure every transformation is captured and documented, providing a reliable audit trail for security analysts.

### Use cases
- **Alert triage** for command lines flagged by EDR or SIEM systems.
- **Email analysis** to decode scripts found in malicious attachments or links.
- **Incident response** to map attacker behavior to the MITRE ATT&CK framework.
- **Threat hunting** by extracting IOCs from newly discovered samples.

### Known limitations
Does not support dynamic decryption where keys are generated at runtime. In these cases, it identifies the blockage and recommends sandbox detonation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PowerShell Deobfuscator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill handle complex obfuscation better than a standard LLM prompt?

Unlike standard LLMs that may hallucinate during complex string reordering, this skill uses a dedicated static analysis engine to systematically decode nested layers, ensuring 100% accuracy in string reconstruction and IOC extraction.

### Is there any risk of the malicious PowerShell script executing during the deobfuscation process?

The skill operates entirely through static analysis, meaning it parses and decodes the code without ever executing the PowerShell script, providing a safe environment for analyzing potentially malicious payloads.

### What types of inputs are supported and what specific indicators can I expect to extract?

The skill can process direct command-line strings, piped input, or script files, and it identifies a wide range of IOCs including URLs, IP addresses, domains, and specific file paths used by attackers.

### Which AI agents or platforms are compatible with the PowerShell Deobfuscator?

The skill is designed for seamless integration with any AI agent or security orchestration platform that supports Python-based tools, making it ideal for automated EDR alert triage or incident response workflows.

### What is included in the purchase of this skill?

You receive the full static analysis engine, the multi-layer decoding logic, and behavioral mapping templates, along with documentation for integrating the tool into your existing security stack.

### What happens if the PowerShell script uses dynamic runtime encryption?

If the script uses dynamic decryption keys generated only at runtime, the skill will flag the specific blockage and recommend sandbox detonation, as static analysis cannot guess runtime-generated secrets.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
