Subscribe to the Non-Human & AI Identity Journal

AMSI Bypass

An AMSI bypass is any method used to prevent Anti-malware Scan Interface inspection from seeing script or in-memory content. Attackers may patch memory, alter return values, or interrupt scanning logic so later payload stages execute without the usual endpoint scrutiny.

Expanded Definition

An AMSI bypass is a technique that interferes with NIST SP 800-53 Rev 5 Security and Privacy Controls style endpoint inspection by preventing script content, reflective code, or other in-memory data from being handed to anti-malware analysis at the expected point in execution. In practice, the bypass may target API calls, patch scanning routines, alter return values, or disrupt hooks so the inspection layer never sees the material it was meant to assess. The concept sits within endpoint evasion rather than persistence or privilege escalation, although it often supports both by allowing later stages to run with less scrutiny.

Definitions vary across vendors because AMSI is an integration point, not a single security product. That means the term can describe anything from a temporary in-memory patch to a more durable tampering method that breaks scanning across multiple processes. In security operations, the important distinction is whether the bypass is suppressing inspection before execution, or merely attempting to hide artifacts after detection has already occurred. The most common misapplication is treating any malware that evades detection as an AMSI bypass, which occurs when defenders label post-execution concealment as AMSI tampering even though the inspection path was never modified.

Examples and Use Cases

Implementing detections for AMSI bypass activity rigorously often introduces more endpoint telemetry, requiring organisations to weigh deeper visibility against higher tuning effort and potential false positives.

  • PowerShell malware patches the AMSI scan routine in memory so the next script block is not inspected before execution.
  • A loader alters a return code from the scanning interface, making the host believe content was clean even when it was not.
  • Post-exploitation tooling disables or corrupts logging paths that feed inspection, reducing the chance that staged payloads are flagged.
  • Attackers combine obfuscation with a bypass attempt to defeat content-based detections that rely on the same inspection boundary described in MITRE ATT&CK techniques for script and command interpretation.
  • Defenders test whether endpoint protections still surface alerts when a security control is tampered with, often mapping coverage to NIST controls for system integrity and monitoring.

Why It Matters for Security Teams

AMSI bypass matters because it attacks the inspection layer that many Windows defenses depend on for script visibility, making it harder to detect fileless malware, staged payloads, and hands-on-keyboard intrusion activity. When teams misunderstand the term, they may overtrust endpoint scanning while missing that the attacker has already neutralised the control. That gap affects incident response, detection engineering, and hardening priorities because success is no longer only about blocking payloads, but also about protecting the mechanisms that inspect them.

For identity and access teams, the relevance becomes sharper when privileged automation or administrative scripts run under high trust. A compromised NHI, abused service account, or privileged session can use an AMSI bypass to execute dangerous content without the usual endpoint scrutiny, turning identity compromise into code execution. The right defensive posture blends script logging, tamper resistance, and least privilege, with controls informed by NIST SP 800-53 Rev 5 Security and Privacy Controls and endpoint monitoring practices.

Organisations typically encounter the operational impact only after a suspicious script has already executed successfully on a host, at which point AMSI bypass becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5, NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 DE.CM-8 Endpoint monitoring and security tooling visibility are central when AMSI is tampered with.
NIST SP 800-53 Rev 5 SI-3 Malicious code protection and inspection controls relate directly to AMSI bypass behavior.
OWASP Agentic AI Top 10 Agentic tooling can execute scripts and inherit bypass risk when it runs with tool access.
NIST AI RMF AI systems that execute code need governance for integrity and misuse of execution paths.
NIST Zero Trust (SP 800-207) JR-2 Zero trust assumes inspection and trust boundaries must be continuously validated.

Assume endpoint controls can fail and continuously verify host integrity before allowing execution.