Files
MBCProject-mbc-markdown/anti-static-analysis/exe-code-optimize.md
T
Desiree Beck 2cca7af5ae initial commit
2019-08-01 13:56:04 -04:00

1.4 KiB

ID M0034
Objective(s) Anti-Static Analysis
Related ATT&CK Technique(s) None

Executable Code Optimization

Code is optimized, making it harder to statically analyze.

Methods

  • Jump/Call Absolute Address: Relative operands of jumps and calls into are made absolute (better compression). May confuse some basic block detection algorithms.
  • Minification: Minification is 'the process of removing all unnecessary characters from source code without changing its functionality.' [1] A simple example is when all the unecessary whitespace and comments are removed. Minification is distinguished from compression in that it neither adds to nor changes the code seen by the interpreter. Minification is often used for malware written in interpreted languages, such as JavaScript, PHP, or Python. Legitimate code that is transmitted many times a second, such as JavaScript on websites, often uses minification to simply reduce the number of bytes transmitted.

Malware Examples

Name Date Description

References

[1] https://en.wikipedia.org/wiki/Minification_(programming)