--- title: "Prevent AMSI write-raid bypass tampering" slug: "amsi-bypass" updated: 2026-11-16T11:35:55Z published: 2026-11-16T11:35:55Z canonical: "docs.trellix.com/amsi-bypass" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Prevent AMSI write-raid bypass tampering Trellix Endpoint Security (ENS) Adaptive Threat Protection (ATP) provides Antimalware Scan Interface (AMSI) efficacy improvements to detect script-based bypass attempts. Threat actors can execute scripts that tamper with internal APIs to evade detection. The AMSI guard monitors both script-level and buffer-level interface calls to identify tampering. If a script tampers with System.Management.Automation.AmsiUtils.ScanContent to bypass amsi!AmsiScanBuffer, Trellix Endpoint Security Adaptive Threat Protection detects the bypass before subsequent malicious code executes. ## AMSI bypass detection workflow 1. A process or script executes an Antimalware Scan Interface (AMSI) sample that tampers with system APIs on the client endpoint. 2. Trellix Endpoint Security Adaptive Threat Protection tracks thread-local storage (TLS) states between the pre-hook and post-hook handlers. 3. The post-hook handler detects that the process bypassed the scan buffer. 4. Trellix Endpoint Security Adaptive Threat Protection blocks the subsequent malicious script payload or reports the event based on your policy mode. > [!NOTE] > Note: > > The client user interface (UI) displays the Threat Event ID and Info when an Anti-Malware Scan Interface (AMSI) write raid bypass detection occurs. ## Verify AMSI guard protection To ensure endpoints detect AMSI bypass scripts, verify that your client software and policy configurations meet the deployment requirements. ### Prerequisites - Upgrade client endpoints to Trellix Endpoint Security Adaptive Threat Protection release 26.11 or later. - Configure Exploit Prevention policies in Trellix ePolicy Orchestrator (ePO) to enforce AMSI guard rules. ### Procedure 1. Log in to the Trellix ePO console. 2. Select **Menu > Policy > Policy Catalog**. 3. Select **Endpoint Security Adaptive Threat Protection** from the **Product** drop-down list. 4. Select the policy assigned to your target systems. 5. Verify that AMSI guard features are active. 6. Execute a test script on a non-production system to confirm that Trellix Endpoint Security Adaptive Threat Protection detects or reports the bypass.