--- title: "Sample custom IOC Rule" slug: "sample-custom-ioc-rule" tags: ["EDR with Forensics (EDRF)", "Endpoint Security"] updated: 2026-08-26T19:31:23Z published: 2026-08-26T19:31:23Z canonical: "docs.trellix.com/sample-custom-ioc-rule" --- > ## 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. # Sample custom IOC Rule In the preceding investigation use case, a custom IOC rule triggers an alert. An example of this rule is provided below. ``` {  "996e15a7-9962-4d98-b2cf-281d3cdf3490": {    "name": "Demo - Invoice 01",   "uri_name": "996e15a7-9962-4d98-b2cf-281d3cdf3490",    "category": "Custom",    "platforms": [    "win"    ],    "description": "Test detection with exclusions ",    "create_text": "Steen",    "execution": [],    "presence": [      [        {          "operator": "contains",          "token": "fileWriteEvent/fileName",          "type": "text",          "value": "invoice"        },        {          "operator": "contains",          "token": "fileWriteEvent/filePath",          "type": "text",          "value": "\\roaming\\microsoft\\windows\\recent",          "negate": true        },        {          "operator": "contains",          "token": "fileWriteEvent/fileName",          "type": "text",          "value": ":zone.identifier",          "negate": true        }      ]    ]  } } ```