Skip to content

Commit aab3b34

Browse files
authored
Merge pull request #2157 from CybercentreCanada/lua_ident
Add identification for Lua
2 parents 9b88962 + e87bef1 commit aab3b34

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

assemblyline/common/custom.yara

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,3 +1519,18 @@ rule text_rdp {
15191519
// Add two optionals, to reduce false positives.
15201520
and 2 of ($optional*)
15211521
}
1522+
1523+
rule code_lua {
1524+
1525+
meta:
1526+
type = "code/lua"
1527+
1528+
strings:
1529+
$local = "local" fullword
1530+
$nil = "nil" fullword
1531+
$end = "end" fullword
1532+
$then = "then" fullword
1533+
1534+
condition:
1535+
all of them
1536+
}

assemblyline/common/identify_defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"code/java": ".java",
5252
"code/javascript": ".js",
5353
"code/jscript": ".js",
54+
"code/lua": ".lua",
5455
"code/pdfjs": ".js",
5556
"code/perl": ".pl",
5657
"code/php": ".php",

0 commit comments

Comments
 (0)