
Strumento basato su Python per rilevare infezioni ransomware e codice malevolo nelle istanze MySQL. Esegue ricognizione, enumerazione degli utenti e scansioni approfondite per database compromessi.


Gli aggressori stanno abusando delle istanze MySQL per condurre operazioni nefaste su Internet. I criminali informatici prendono di mira le istanze MySQL esposte e innescano infezioni su larga scala per esfiltrare dati, distruggere dati ed estorcere denaro tramite riscatto. Ad esempio, una delle minacce significative che le distribuzioni MySQL affrontano è il ransomware. Abbiamo creato uno strumento chiamato "MELEE" per rilevare potenziali infezioni nelle istanze MySQL. Lo strumento consente a ricercatori di sicurezza, penetration tester ed esperti di threat intelligence di rilevare istanze MySQL compromesse e infette che eseguono codice dannoso. Lo strumento consente inoltre di condurre ricerche efficienti nel campo dei malware che prendono di mira i database cloud. In questa versione dello strumento, sono supportati i seguenti moduli:
$ python3 melee.py
--------------------------------------------------------------------
__ ___________ ____________
/ |/ / ____/ / / ____/ ____/
/ /|_/ / __/ / / / __/ / __/
/ / / / /___/ /___/ /___/ /___
/_/ /_/_____/_____/_____/_____/
MELEE (may-lay): A Tool to Detect Potential Infections in MySQL Deployments!
Authored by: Aditya K Sood {https://adityaksood.com}
--------------------------------------------------------------------
[*] { MELEE } Tool Usage:
[*] { MELEE } - MySQLDB Ransomware Infection Detector .....
[*] usage: melee.py <mysql host (local or remote)> <mysql service port> <mysql username> <mysql password> <module>
[*] MELEE supported modules:
- map_mysql_geoip: map the GeoIP presence of the MySQL host
- check_anonymous_access: verify if the remote MySQL host has anonymous access
- enum_mysql_db_names: enumerate all the available MySQL databases
- enum_mysql_db_tables: enumerate all the tables in active databases
- enum_mysql_db_users: enumerate all the user names related to MySQL database (MySQL user) only
- enum_active_users: enumerate all the logged-in users (information_schema.process list) only
- check_ransomware_injection: detect a potential ransomware infection
- deep_scan_ransomware_infection: launch a deep scan to extract infected resources and a ransom message
[*] example: melee.py 99.34.123.xxx 3306 root root check_ransomware_infection
[*] example: melee.py 89.34.451.xxx 3306 root "" deep_scan_ransomware_infection
[*] tool considerations:
- for ransom message analysis, the file is dumped to the local directory with <mysql_host>_ransom_message.txt
- for the anonymous access module, do not supply any password with a username
- for weak authentication credentials, use combinations such as <root:root>, or other combinations
Ricercato e sviluppato da Aditya K Sood e Rohit Bansal