Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

Lua interpreter executed or a .lua script passed to a binary

Two observables for AN0278's "execution of Lua interpreters or scripts (.lua)" on a single process-creation event. The first is a named Lua interpreter as the process image. The second exists because Lua interpreters ship under many names and version suffixes (lua5.1.exe, luajit.exe, or a renamed build) and an image-name list alone is defeated by any name not on it — but a .lua path on a command line only proves that a process referenced the file, not that it executed it, so that branch excludes images under Program Files and System32 and a short list of named editors, version-control and search tools that read .lua files as content. That list is necessarily incomplete — antivirus and EDR content scanners are closed-source and vary by vendor, so no Image allowlist can exclude them, and any other editor, backup tool or file-copy utility not named in the filter survives and matches on nothing more than a .lua path in argv. This branch therefore does not detect Lua execution; it detects "some process was invoked with a .lua path as an argument," and the level below is set for that population, not for the narrower interpreter-usage noise the filter does catch. AN0278's file-drop correlation (Sysmon EventID 11) and its TimeWindow knob describe a join across two event types Sigma cannot express, so only the process-creation event is authored, and a renamed interpreter staged inside Program Files, or Lua embedded through struct lua_State with no separate process at all, produces no match here. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0101, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.

detection.yml

title: Lua interpreter executed or a .lua script passed to a binaryid: a9af0bd9-f1e0-4e70-94d2-f116301d5637status: experimentaldescription: |  Two observables for AN0278's "execution of Lua interpreters or scripts  (.lua)" on a single process-creation event. The first is a named Lua  interpreter as the process image. The second exists because Lua interpreters  ship under many names and version suffixes (lua5.1.exe, luajit.exe, or a  renamed build) and an image-name list alone is defeated by any name not on  it — but a .lua path on a command line only proves that a process referenced  the file, not that it executed it, so that branch excludes images under  Program Files and System32 and a short list of named editors, version-control  and search tools that read .lua files as content. That list is necessarily  incomplete — antivirus and EDR content scanners are closed-source and vary by  vendor, so no Image allowlist can exclude them, and any other editor, backup  tool or file-copy utility not named in the filter survives and matches on  nothing more than a .lua path in argv. This branch therefore does not detect  Lua execution; it detects "some process was invoked with a .lua path as an  argument," and the level below is set for that population, not for the  narrower interpreter-usage noise the filter does catch.  AN0278's file-drop correlation (Sysmon EventID 11) and its TimeWindow knob  describe a join across two event types Sigma cannot express, so only the  process-creation event is authored, and a renamed interpreter staged inside  Program Files, or Lua embedded through struct lua_State with no separate  process at all, produces no match here.  UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0101, not hand-written and not tested by its author. Any lab result is on this rule's own page.references:  - https://attack.mitre.org/techniques/T1059/011  - https://attack.mitre.org/detectionstrategies/DET0101author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags:  - attack.execution  - attack.t1059.011logsource:  category: process_creation  product: windowsdetection:  selection_interpreter:    Image|endswith:      - '\lua.exe'      - '\lua5.1.exe'      - '\lua5.2.exe'      - '\lua5.3.exe'      - '\lua5.4.exe'      - '\lua51.exe'      - '\lua52.exe'      - '\lua53.exe'      - '\lua54.exe'      - '\luajit.exe'      - '\wlua.exe'  selection_script_arg:    CommandLine|endswith:      - '.lua'      - '.lua"'  filter_installed_path:    Image|contains:      - '\program files\'      - '\program files (x86)\'      - '\windows\system32\'      - '\windows\syswow64\'  filter_content_tools:    Image|endswith:      - '\code.exe'      - '\nvim.exe'      - '\vim.exe'      - '\sublime_text.exe'      - '\notepad++.exe'      - '\git.exe'      - '\rg.exe'      - '\findstr.exe'      - '\7z.exe'      - '\tar.exe'      - '\robocopy.exe'      - '\xcopy.exe'  condition: selection_interpreter or (selection_script_arg and not (filter_installed_path or filter_content_tools))falsepositives:  - "Any non-interpreter process invoked with a .lua path as its last command-line argument that is not one of the named editors or content tools in the filter — antivirus and EDR content scanners walking the filesystem, other text editors and IDEs, backup and file-sync utilities such as rsync-for-Windows or rclone, and archivers not named in the filter. This is the dominant, undisclosed noise source for the untethered branch: it never executed as Lua, it only named a .lua path."  - "Editors, package managers and Lua language servers installed under a user profile rather than Program Files — Neovim or lua-language-server launched from %LOCALAPPDATA%, a scoop or npm shim, an IDE plugin host — passing an init.lua or config .lua path they only read. On a developer host this is loud, and it is not an execution of Lua at all."  - "Applications that embed Lua for scripting or plugins invoking their bundled interpreter with a .lua argument during ordinary use, such as a game's addon loader, Wireshark loading a .lua dissector, or Nmap running a .lua NSE script during authorized scanning."  - "Developers and CI build agents running Lua test suites or build tooling such as busted and luarocks, which invoke the interpreter directly against .lua files on every build."  - "Portable or self-contained tools that ship their own copy of lua.exe or luajit.exe outside Program Files, including game mod managers and vendor diagnostic bundles, which match the interpreter branch on every launch."level: informational

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where ((FolderPath endswith "\\lua.exe" or FolderPath endswith "\\lua5.1.exe" or FolderPath endswith "\\lua5.2.exe" or FolderPath endswith "\\lua5.3.exe" or FolderPath endswith "\\lua5.4.exe" or FolderPath endswith "\\lua51.exe" or FolderPath endswith "\\lua52.exe" or FolderPath endswith "\\lua53.exe" or FolderPath endswith "\\lua54.exe" or FolderPath endswith "\\luajit.exe" or FolderPath endswith "\\wlua.exe") or ((ProcessCommandLine endswith ".lua" or ProcessCommandLine endswith ".lua\"") and not (((FolderPath contains "\\program files\\" or FolderPath contains "\\program files (x86)\\" or FolderPath contains "\\windows\\system32\\" or FolderPath contains "\\windows\\syswow64\\") or (FolderPath endswith "\\code.exe" or FolderPath endswith "\\nvim.exe" or FolderPath endswith "\\vim.exe" or FolderPath endswith "\\sublime_text.exe" or FolderPath endswith "\\notepad++.exe" or FolderPath endswith "\\git.exe" or FolderPath endswith "\\rg.exe" or FolderPath endswith "\\findstr.exe" or FolderPath endswith "\\7z.exe" or FolderPath endswith "\\tar.exe" or FolderPath endswith "\\robocopy.exe" or FolderPath endswith "\\xcopy.exe")))))

Splunk · SPL

Run this as a search.

index=* ((Image="*\\lua.exe" OR Image="*\\lua5.1.exe" OR Image="*\\lua5.2.exe" OR Image="*\\lua5.3.exe" OR Image="*\\lua5.4.exe" OR Image="*\\lua51.exe" OR Image="*\\lua52.exe" OR Image="*\\lua53.exe" OR Image="*\\lua54.exe" OR Image="*\\luajit.exe" OR Image="*\\wlua.exe") OR ((CommandLine="*.lua" OR CommandLine="*.lua\"") AND NOT (((Image="*\\program files\\*" OR Image="*\\program files (x86)\\*" OR Image="*\\windows\\system32\\*" OR Image="*\\windows\\syswow64\\*") OR (Image="*\\code.exe" OR Image="*\\nvim.exe" OR Image="*\\vim.exe" OR Image="*\\sublime_text.exe" OR Image="*\\notepad++.exe" OR Image="*\\git.exe" OR Image="*\\rg.exe" OR Image="*\\findstr.exe" OR Image="*\\7z.exe" OR Image="*\\tar.exe" OR Image="*\\robocopy.exe" OR Image="*\\xcopy.exe")))))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.executable) LIKE "*\\\\lua.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua5.1.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua5.2.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua5.3.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua5.4.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua51.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua52.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua53.exe" OR TO_LOWER(process.executable) LIKE "*\\\\lua54.exe" OR TO_LOWER(process.executable) LIKE "*\\\\luajit.exe" OR TO_LOWER(process.executable) LIKE "*\\\\wlua.exe") OR ((TO_LOWER(process.command_line) LIKE "*.lua" OR TO_LOWER(process.command_line) LIKE "*.lua\"") AND NOT (((TO_LOWER(process.executable) LIKE "*\\\\program files\\\\*" OR TO_LOWER(process.executable) LIKE "*\\\\program files (x86)\\\\*" OR TO_LOWER(process.executable) LIKE "*\\\\windows\\\\system32\\\\*" OR TO_LOWER(process.executable) LIKE "*\\\\windows\\\\syswow64\\\\*") OR (TO_LOWER(process.executable) LIKE "*\\\\code.exe" OR TO_LOWER(process.executable) LIKE "*\\\\nvim.exe" OR TO_LOWER(process.executable) LIKE "*\\\\vim.exe" OR TO_LOWER(process.executable) LIKE "*\\\\sublime_text.exe" OR TO_LOWER(process.executable) LIKE "*\\\\notepad++.exe" OR TO_LOWER(process.executable) LIKE "*\\\\git.exe" OR TO_LOWER(process.executable) LIKE "*\\\\rg.exe" OR TO_LOWER(process.executable) LIKE "*\\\\findstr.exe" OR TO_LOWER(process.executable) LIKE "*\\\\7z.exe" OR TO_LOWER(process.executable) LIKE "*\\\\tar.exe" OR TO_LOWER(process.executable) LIKE "*\\\\robocopy.exe" OR TO_LOWER(process.executable) LIKE "*\\\\xcopy.exe")))))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <!-- 2 rules: the Sigma condition ORs across different fields,       which one rule cannot express. Any one matching is a hit. -->  <rule id="100000" level="3">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\lua\.exe$|\\lua5\.1\.exe$|\\lua5\.2\.exe$|\\lua5\.3\.exe$|\\lua5\.4\.exe$|\\lua51\.exe$|\\lua52\.exe$|\\lua53\.exe$|\\lua54\.exe$|\\luajit\.exe$|\\wlua\.exe$)</field>    <description>Lua interpreter executed or a .lua script passed to a binary (1/2)</description>    <mitre>      <id>T1059.011</id>    </mitre>  </rule>   <rule id="100001" level="3">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(\.lua$|\.lua&quot;$)</field>    <field name="Image" negate="yes" type="pcre2">(?i)(\\program files\\|\\program files \(x86\)\\|\\windows\\system32\\|\\windows\\syswow64\\)</field>    <field name="Image" negate="yes" type="pcre2">(?i)(\\code\.exe$|\\nvim\.exe$|\\vim\.exe$|\\sublime_text\.exe$|\\notepad\+\+\.exe$|\\git\.exe$|\\rg\.exe$|\\findstr\.exe$|\\7z\.exe$|\\tar\.exe$|\\robocopy\.exe$|\\xcopy\.exe$)</field>    <description>Lua interpreter executed or a .lua script passed to a binary (2/2)</description>    <mitre>      <id>T1059.011</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.

Log in to report a verdict.

Log in to join the discussion.

No comments yet. Someone who deploys this will have something to say about it.