PowerShell scripts for AMSI operations.
- Windows OS
- PowerShell (v5.1+)
- Admin privileges (for some tasks)
- Clone/download repo.
- Open PowerShell in script directory.
- Run desired script:
.\Send-AmsiContent.ps1
: Scan content via AMSI..\Get-AMSIEvent.ps1 -Path <trace_path>
: Parse AMSI ETW trace..\Get-AMSIScanResult.ps1 -Interactive
: Interactive mode..\Get-AMSIScanResult.ps1 -File <input_file_path> -StandardAppName <app_name>
: File mode.
- Run with elevated permissions if needed.
- Understand implications before content scanning.
- Scripts are as-is; use at your own risk.
Scripts modified from Matt Graeber's work at Red Canary. See Microsoft for AMSI details.
MIT