PowerShell Security: Logging and AMSI
PowerShell is powerful — and attackers know it.
Script Block Logging
Logs every script block that executes. Enable via GPO. Events: Microsoft-Windows-PowerShell/Operational, Event ID 4104.
Transcription
Start-Transcript -Path transcript.txt Stop-Transcript
AMSI
Windows 10+ scans PowerShell content through AMSI before execution.