The new docs.trellix.com offers a modernized UI and AI-powered features like conversational searches. Content is currently available only in English. Other languages will be available in mid-October 2026. We hope you enjoy the new experience.

Prevent notepad execution

Prev Next

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

Exploit Prevention is not supported in the ARM architecture.

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.