--- title: "Prevent notepad execution" slug: "prevent-notepad-execution-1" tags: ["Product Usage", "ENS 26.x", "Endpoint Security"] updated: 2026-09-14T19:35:23Z published: 2026-09-14T19:35:23Z canonical: "docs.trellix.com/prevent-notepad-execution-1" stale: true --- > ## 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 notepad execution This Expert rule prevents users from executing notepad.exe through Windows File explorer. It also considers the size of the main module memory section. > [!NOTE] > Note > > Exploit Prevention is not supported in the ARM architecture. > [!WARNING] > Important > > Make sure to test this Expert rule on a client system before enforcing wider. ``` Rule {    Process {        Include OBJECT_NAME {            -v explorer.exe        }    }    Target {        Match SECTION {            Include OBJECT_NAME {                -v "notepad.exe"            }            Include OBJECT_SIZE {                -v 12345678            }            Include -access "EXECUTE" ; # Prevents section execution        }    } } ``` When you validate this rule, execute the file `C:\Windows\notepad.exe`. This triggers an event in Trellix Endpoint Security (ENS) Client. For more Expert Rules examples, visit the [Trellix Github repository](https://github.com/trellix-enterprise/ExpertRules).