--- title: "Enabling or disabling riskware detection custom policy rules using the CLI" slug: "enabling-or-disabling-riskware-detection-custom-policy-rules-using-the-cli-2" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Customer", "Network Security"] updated: 2026-09-07T21:14:23Z published: 2026-09-07T21:14:23Z canonical: "docs.trellix.com/enabling-or-disabling-riskware-detection-custom-policy-rules-using-the-cli-2" --- > ## 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 or disabling riskware detection custom policy rules using the CLI Use the CLI commands in this procedure to enable or disable riskware detection custom policy rules on the Malware Analysis appliance. **To enable riskware detection custom policy rules:** `hostname (config) # show analysis riskware policy rules` 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Locate the policy rule ID you want to enable. 3. Enable a particular policy rule ID. ``` hostname (config) # analysis riskware policy rule enable ``` 4. Save your changes. ``` hostname (config) # write memory ``` 5. Verify the status of a custom policy rule for riskware detection. ``` hostname (config) # show analysis riskware policy rules ``` **To disable riskware detection custom policy rules:** `hostname (config) # show analysis riskware policy rules` 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Locate the policy rule ID you want to disable. 3. Disable a particular policy rule ID. ``` hostname (config) # no analysis riskware policy rule enable ``` 4. Save your changes. ``` hostname (config) # write memory ``` 5. Verify the status of a custom policy rule for riskware detection. ``` hostname (config) # show analysis riskware policy rules ``` ### Examples This example enables a custom policy rule ID for riskware detection. `hostname (config) # analysis riskware policy rule 65005 enable` This example disables a custom policy rule ID for riskware detection. `hostname (config) # no analysis riskware policy rule 65006 enable` This example shows the current custom policy rule configuration for riskware detection. ``` >hostname (config) # show analysis riskware policy rules |------------|------------------------------------------------------------|------------| |    Rule ID |                                                       Rule | Alert Only | |------------|------------------------------------------------------------|------------| |      65005 |               Low Confidence Custom Yara Rule Weights 0-50 |   Disabled | |      65006 |             High Confidence Custom Yara Rule Weights 51-99 |   Disabled | |      65009 |   Non Executable file Connecting to Non-Standard High Port |   Disabled | |      65012 | MS Office Document With Macro Activity Dropping a exe file |   Disabled | |      65013 |     Password From Web Forms Sent as Plaintext Http_Request |   Disabled | |      65020 |                    MS Office Document running Flash Events |   Disabled | |      65021 |           MS Office Document With Password Protected Macro |   Disabled | |      65029 |     Provided list of extensions marked for Policy Blocking |   Disabled | |      65031 |                      Potential Risky ScreenSaver Indicator |   Disabled | |      65035 |                         Low Confidence Malware Guard on NX |   Disabled | |            |Trellix Riskware (Adware/PUP/Spam) |    Enabled | |____________|____________________________________________________________|____________| ```