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 descriptionShow less
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
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"$)</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.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo 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.