Execution

T1059.011: Lua

Adversaries may abuse Lua commands and scripts for execution. Lua is a cross-platform scripting and programming language primarily designed for embedded use in applications. Lua can be executed on the...

T1059.011 · Sub-technique ·4 platforms

Description

Adversaries may abuse Lua commands and scripts for execution. Lua is a cross-platform scripting and programming language primarily designed for embedded use in applications. Lua can be executed on the command-line (through the stand-alone lua interpreter), via scripts (.lua), or from Lua-embedded programs (through the struct lua_State).(Citation: Lua main page)(Citation: Lua state)

Lua scripts may be executed by adversaries for malicious purposes. Adversaries may incorporate, abuse, or replace existing Lua interpreters to allow for malicious Lua command execution at runtime.(Citation: PoetRat Lua)(Citation: Lua Proofpoint Sunseed)(Citation: Cyphort EvilBunny)(Citation: Kaspersky Lua)

Reverse Shell Cheatsheet

Read our in-depth pentesting guide related to this technique

Platforms

LinuxNetwork DevicesWindowsmacOS

Mitigations (3)

Limit Software InstallationM1033

Prevent users from installing Lua where not required.

AuditM1047

Inventory systems for unauthorized Lua installations.

Execution PreventionM1038

Denylist Lua interpreters where appropriate.

Associated Software (5)

IDNameTypeContext
S0396EvilBunnyMalware[EvilBunny](https://attack.mitre.org/software/S0396) has used Lua scripts to execute payloads.(Citation: Cyphort EvilBunny)
S0125RemsecMalware[Remsec](https://attack.mitre.org/software/S0125) can use modules written in Lua for execution.(Citation: Kaspersky Lua)
S1240RedLine StealerMalware[RedLine Stealer](https://attack.mitre.org/software/S1240) malware has leveraged Lua bytecode to perform malicious behavior.(Citation: McAfee RedLine ...
S1188Line RunnerMalware[Line Runner](https://attack.mitre.org/software/S1188) utilizes Lua scripts for command execution.(Citation: Cisco ArcaneDoor 2024)(Citation: CCCS Arc...
S0428PoetRATMalware[PoetRAT](https://attack.mitre.org/software/S0428) has executed a Lua script through a Lua interpreter for Windows.(Citation: Talos PoetRAT October 20...

Related CWE Weaknesses

References

Frequently Asked Questions

What is T1059.011 (Lua)?

T1059.011 is a MITRE ATT&CK technique named 'Lua'. It belongs to the Execution tactic(s). Adversaries may abuse Lua commands and scripts for execution. Lua is a cross-platform scripting and programming language primarily designed for embedded use in applications. Lua can be executed on the...

How can T1059.011 be detected?

Detection of T1059.011 (Lua) typically involves monitoring system logs, network traffic, and endpoint telemetry. Use SIEM rules, EDR solutions, and behavioral analytics to identify suspicious activity associated with this technique.

What mitigations exist for T1059.011?

There are 3 documented mitigations for T1059.011. Key mitigations include: Limit Software Installation, Audit, Execution Prevention.

Which threat groups use T1059.011?

While specific threat group attribution may vary, this technique has been observed in various real-world attacks. Check the MITRE ATT&CK website for the latest threat intelligence.