Skip to main content

Command Palette

Search for a command to run...

Command and Scripting Interpreter: PowerShell

Updated
1 min read

PowerShell

A Powerful Command-Line Interface and Scripting Platform in Windows

PowerShell is a powerful command-line interface and scripting platform provided in Windows,
which adversaries can exploit for information gathering, remote control, malware execution, and other malicious activities.


How Attackers Abuse PowerShell

Command Execution: Execute files using Start-Process
Remote Command Execution: Control remote systems using Invoke-Command (Administrator privileges required)
File Download and Execution: Download malicious files from the internet and execute them in memory without writing to disk


Advanced PowerShell Attack Techniques

Even without directly executing PowerShell,
adversaries can bypass detection by leveraging the .NET framework and Windows CLI to call PowerShell’s core library (System.Management.Automation DLL) directly.


Common PowerShell-Based Attack Tools Used by Adversaries

Empire – Remote control and persistence
PowerSploit – Penetration testing and malware execution
PoshC2 – Command & Control (C2) attack framework
PSAttack – PowerShell-based attack automation


PowerShell is a powerful tool, but when abused by attackers, it can become a serious security threat.

Security Notes

Part 12 of 14

A collection of security-related topics that are interesting, useful, or easy to get wrong in real systems. Notes on vulnerabilities, cryptography, system security, and practical lessons.

Up next

Empire

Command and Scripting Interpreter→ PowerShell→Empire concept Empire: A Post-Exploitation Framework for PowerShell and Python Empire is an advanced post-exploitation framework designed for red teaming, penetration testing, and adversary emulation. Ori...

More from this blog

psk-study

134 posts