Antimalware Scan Interface
Also called AMSI.
A Windows API that lets security tools inspect scripts and content at runtime.
What it is
The Antimalware Scan Interface is a Windows interface that applications (notably PowerShell, JScript, VBScript, and Office macros) call to submit content to the registered antivirus engine for inspection just before it executes, after any obfuscation has been resolved. It provides a deobfuscated view of dynamically generated code.
Why it matters
Because AMSI sees the final, decoded payload, it is a strong source of detection telemetry against fileless and heavily obfuscated scripts. Attackers spend real effort attempting to bypass or patch AMSI in memory, and those tampering attempts are themselves valuable indicators.
In practice
An AMSI-generated alert firing on the deobfuscated body of an in-memory script that no on-disk file would ever have revealed.
What to look for
- AMSI detections on scripts and macros.
- Bypass attempts such as patching AmsiScanBuffer.
- Script content captured just before execution.
Common mistake
Treating it as a complete defense. It is easy to bypass in process, so watch for the bypass itself.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CrowdStrike Falcon Commercial
An EDR agent that records process, file and network activity on each host and flags this kind of behavior.
-
Microsoft Defender for Endpoint Commercial
Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.
-
Velociraptor Open source
Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.
-
Sysmon Free
Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.
Read next
- PowerShell Logging: Recording PowerShell commands, scripts, and pipeline activity for audit.
- Event Tracing for Windows: The high-speed kernel and user-mode tracing framework underpinning Windows telemetry.
- Endpoint Detection Telemetry: Continuous, detailed activity data collected by endpoint sensors.