--- title: "Enabling custom YARA rules using the CLI" slug: "enabling-custom-yara-rules-using-the-cli" tags: ["Product Usage", "CMS 11.x", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Network Security"] updated: 2026-08-24T20:40:26Z published: 2026-08-24T20:40:26Z canonical: "docs.trellix.com/enabling-custom-yara-rules-using-the-cli" 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. # Enabling custom YARA rules using the CLI This procedure describes how to configure YARA rules-based analysis using the CLI. This feature can be configured using CLI commands only. **Prerequisites** - Operator or Admin access **To enable or disable the use of custom YARA rules:** 1. Go to CLI configuration mode. ``` vx-hostname > enable vx-hostname # configure terminal ``` 2. Enable the compute node to use custom YARA rules in addition to Trellix-provided YARA rules: ``` vx-hostname (config) # yara policy both ``` 3. Verify your changes. In the following example, the Intelligent Virtual Execution - Server appliance is configured to use both Trellix-provided and custom YARA rules: ``` vx-hostname (config) # show static-analysis config    Static Analysis enabled                : yes    AV-suite enabled                     : yes    AV-suite version                     : 6    SA on AV-suite whitelist enabled     : no    AV-check enabled                     : yes    Dropper enabled                      : yes    YARA enabled                         : yes  Embedded object extraction enabled     : no  Embedded URL extraction enabled        : yes  Max URLs from files to be analyzed     : 5  Static info policy                     : Disable Yara Configuration  Yara policy                         : both   Yara customer match limit             : 3 ........ ``` 4. Save your changes. ``` vx-hostname (config) # write memory ```