PowerShell
Microsoft's command-line shell and scripting language, built into Windows and also available on macOS and Linux.
In more detail
It is the default shell in current Windows terminals and is widely used to automate administration. Scripts use the .ps1 extension, and a script execution policy controls whether they may run. Because it is always present and can download and run code in memory, attackers use it too, so defenders turn on script block logging to record what actually ran.
Related terms
- Command Prompt — The traditional Windows terminal program and shell, where you type commands such as python or dir.
- activate script — The script inside a virtual environment that puts it first on PATH for the current shell session.
- encoded command — A PowerShell command passed as Base64 text, which hides what it does from a quick read of the command line.
- execution policy — A PowerShell setting that controls whether scripts may run; it is a safety feature for users, not a security boundary.
- living off the land — Attacking with tools that are already installed on the victim's system, such as PowerShell or certutil, instead of bringing new malware.
Taught in
- Rosa Is Locked Out: Users, Groups And Self-Service Reset — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Role That Fits: Reading And Writing Role Definitions — Microsoft Azure Administrator (AZ-104) Exam Prep
- Infrastructure As Code In The Pipeline — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- The Benefits, In Microsoft's Words — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Governance: Policy, Locks And Purview — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Managing And Deploying Resources — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Virtual Environments — Hands-on Python: Complete Video Course & Book
- SOC Operating Models, Tiers & Key Performance Metrics — Security Operations & Threat Hunting (SOC)
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)
- YARA Rule Authoring & File Signature Matching — Security Operations & Threat Hunting (SOC)
- Cyber Kill Chain vs MITRE ATT&CK Framework — Security Operations & Threat Hunting (SOC)
- Tracking Advanced Persistent Threats & Profiles — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Disk Forensics: MFT, UsnJrnl & Prefetch — Security Operations & Threat Hunting (SOC)
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)