{"schemaVersion":1,"resourceType":"connector","slug":"sigma","name":"Sigma","catalog":"sigma","description":"Match log events against Sigma detection rules, check that rules compile, and list the fields they use","language":"Python","categories":["security"],"repository":"https://github.com/Query-farm/vgi-sigma","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T17:35:54Z","url":"https://github.com/Query-farm/vgi-sigma/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/sigma/","llms":"https://query.farm/products/orchard/connectors/sigma/llms.txt","markdown":"https://query.farm/products/orchard/connectors/sigma/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/sigma.json","objects":"https://query.farm/products/orchard/api/v1/connectors/sigma/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=sigma&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'sigma' AS sigma (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-sigma@v0.5.0 vgi-sigma-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'sigma' AS sigma (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-sigma:0.5.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'sigma' AS sigma (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-sigma@v0.5.0 vgi-sigma-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'sigma' AS sigma (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-sigma:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-sigma","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=sigma","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'sigma' AS sigma (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-sigma@v0.5.0 vgi-sigma-worker'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Turn matching log events into security alerts","sql":"WITH logs(event_id, event) AS (VALUES (1, '{\"EventID\": 4625, \"LogonType\": 3, \"TargetUserName\": \"admin\"}'), (2, '{\"EventID\": 4624, \"LogonType\": 3, \"TargetUserName\": \"admin\"}'), (3, '{\"EventID\": 4625, \"LogonType\": 3, \"TargetUserName\": \"svc_backup\"}')) SELECT l.event_id, i.title, i.level, i.tags FROM logs AS l CROSS JOIN sigma.main.sigma_rule_info('{title: Failed Network Logon, level: medium, tags: [attack.credential_access, attack.t1110], logsource: {product: windows, service: security}, detection: {selection: {EventID: 4625, LogonType: 3}, condition: selection}}') AS i WHERE sigma.main.sigma_match(l.event, '{title: Failed Network Logon, level: medium, tags: [attack.credential_access, attack.t1110], logsource: {product: windows, service: security}, detection: {selection: {EventID: 4625, LogonType: 3}, condition: selection}}') ORDER BY l.event_id","requiresCredentials":null,"note":null,"objects":[{"name":"sigma.main.sigma_rule_info","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/sigma/#obj-main-sigma_rule_info","markdown":"https://query.farm/products/orchard/connectors/sigma/objects/table_function.bWFpbg.c2lnbWFfcnVsZV9pbmZv.md","json":"https://query.farm/products/orchard/api/v1/connectors/sigma/objects/table_function.bWFpbg.c2lnbWFfcnVsZV9pbmZv.json"}},{"name":"sigma.main.sigma_match","kind":"scalar_function","links":{"html":"https://query.farm/products/orchard/connectors/sigma/#obj-main-sigma_match","markdown":"https://query.farm/products/orchard/connectors/sigma/objects/scalar_function.bWFpbg.c2lnbWFfbWF0Y2g.md","json":"https://query.farm/products/orchard/api/v1/connectors/sigma/objects/scalar_function.bWFpbg.c2lnbWFfbWF0Y2g.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:21:29+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["event_id","title","level","tags"],"types":["INTEGER","VARCHAR","VARCHAR","VARCHAR[]"],"rows":[[1,"Failed Network Logon","medium","[\"attack.credential_access\", \"attack.t1110\"]"],[3,"Failed Network Logon","medium","[\"attack.credential_access\", \"attack.t1110\"]"]],"more":false}},"artifact":null},"objects":{"total":5,"index":"https://query.farm/products/orchard/api/v1/connectors/sigma/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=sigma&q={query}"},"agentTasks":["You have a single Windows security event, the JSON object {\"EventID\": 4625, \"LogonType\": 3}. Determine whether it matches a Sigma detection rule for failed network logons — one whose selection requires EventID 4625 and LogonType 3. Return a single boolean value.","Check whether a Sigma rule is valid — i.e. it parses and compiles using only supported features — without evaluating it against any event. Use this rule: title 'Failed Logon', a security logsource, and a selection matching EventID 4625 with condition 'selection'. Return a single boolean value.","Read the header metadata of a Sigma rule and return its title and severity level. The rule has title 'Failed Logon', level 'high', a security logsource, and a selection matching EventID 4625 with condition 'selection'.","List the distinct event field names that a Sigma rule keys on, so an analyst knows which log columns must be present. Use a rule titled 'Failed Network Logon' with a security logsource, whose selection matches EventID 4625 and LogonType 3, with condition 'selection'. Return the field names.","The worker publishes a browsable discovery table listing every Sigma field modifier its evaluator understands. Using that table, how many distinct modifiers of kind 'affix' does the engine support? Return a single number.","A small Sigma rule library has three rules. rdp_failure: title 'Failed RDP Logon', logsource product windows / service security, selection EventID 4625 and LogonType 10. powershell_service: title 'PowerShell Service Install', logsource product windows / service system, selection EventID 7045 and ServiceFileName containing 'powershell'. high_port: title 'High Destination Port', logsource category network_connection, selection DestinationPort greater than 1024 (the gt modifier). Every rule's condition is 'selection'. A Windows security log has four JSON events: event 1 {\"EventID\": 4625, \"LogonType\": 10, \"TargetUserName\": \"admin\"}, event 2 {\"EventID\": 4625, \"LogonType\": 3, \"TargetUserName\": \"admin\"}, event 3 {\"EventID\": 4624, \"LogonType\": 10, \"TargetUserName\": \"admin\"} and event 4 {\"EventID\": 4625, \"LogonType\": 10, \"TargetUserName\": \"guest\"}. Skip any rule the engine cannot evaluate, and for every remaining rule count how many events it matches, keeping rules with zero matches. Return rule_name (VARCHAR) and hits (BIGINT), ordered by rule_name.","Before trusting a non-match you want to know whether the events even carry the fields a Sigma rule looks at. The rule is titled 'Suspicious Service Install', logsource product windows / service system, and its selection requires EventID 7045 and ServiceFileName containing 'powershell' (condition 'selection'). The events are: event 1 {\"EventID\": 7045, \"ServiceName\": \"updater\", \"ServiceFileName\": \"powershell.exe -nop -enc SQBFAFgA\"}, event 2 {\"EventID\": 7045, \"ServiceName\": \"spooler2\"} and event 3 {\"Provider\": \"Service Control Manager\"}. For each event return event_id (INTEGER), whether it matches the rule (BOOLEAN) and how many of the event fields the rule references are absent from the event (BIGINT), ordered by event_id."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-sigma","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":4,"passed":4,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-sigma@v0.5.0 vgi-sigma-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:17:58+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}