Techniques
Sample rules
MySQL User-Defined Function Injection
- source: elastic
- technicques:
- T1505
Description
Identifies MySQL statements that create a user-defined function backed by a shared library. Adversaries with sufficient database privileges can place a malicious library in the MySQL plugin directory and register it with “CREATE FUNCTION … SONAME”, establishing a database-resident primitive for operating-system command execution.
Detection logic
any where data_stream.dataset == "network_traffic.mysql" and
network_traffic.mysql.query like~ "*create*function*soname*"