
Python 기반 도구로, MySQL 인스턴스에서 랜섬웨어 감염 및 악성 코드를 탐지합니다. 손상된 데이터베이스에 대한 정찰, 사용자 열거 및 심층 스캔을 수행합니다.


공격자들은 인터넷 상에서 악의적인 작업을 수행하기 위해 MySQL 인스턴스를 악용하고 있습니다. 사이버 범죄자들은 노출된 MySQL 인스턴스를 표적으로 삼아 대규모 감염을 유발하여 데이터를 빼내고, 데이터를 파괴하며, 랜섬을 통해 금전을 갈취하고 있습니다. 예를 들어 MySQL 배포판이 직면한 주요 위협 중 하나는 랜섬웨어입니다. 우리는 MySQL 인스턴스에서 잠재적인 감염을 탐지하기 위해 "MELEE"라는 도구를 제작했습니다. 이 도구는 보안 연구원, 침투 테스터, 위협 인텔리전스 전문가가 악성 코드를 실행하는 손상되거나 감염된 MySQL 인스턴스를 탐지할 수 있게 해줍니다. 또한 클라우드 데이터베이스를 표적으로 하는 악성코드 분야에서 효율적인 연구를 수행할 수 있도록 해줍니다. 이번 도구 릴리스에서는 다음 모듈이 지원됩니다:
$ 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_infection: 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
Aditya K Sood와 Rohit Bansal이 연구 및 개발함