Antimalware Scan Interface (AMSI) is a Windows feature that allows applications to send scripts and dynamic content to the system's antimalware engine for real-time scanning. Its goal is to detect malicious code, especially fileless malware and obfuscated scripts, before they execute.
How it works:
When an application (e.g., PowerShell, WSH, Office) runs a script, the content is passed to AMSI. AMSI forwards it to the registered antivirus engine, which returns a verdict:
• If clean → execution continues.
• If malicious → the content is blocked or mitigated.
Key features:
• Scans runtime content from multiple scripting engines.
• Uses the installed AV/antimalware engine (vendor-neutral).
• Enhances detection of advanced threats and fileless attacks.
Security note:
Attackers often attempt AMSI bypass techniques, such as disabling AMSI or obfuscating payloads, so layered security remains important.




