Attackers Use Oracle Database as Malware Launchpad via 'khunt' Toolkit
Threat actors are bypassing traditional EDR by hosting post-exploitation tools directly within the Oracle database engine.
Threat actors have deployed a post-exploitation toolkit named 'khunt' directly within Oracle databases to establish persistent network beachheads. This approach allows attackers to execute malicious code from within the database engine, effectively bypassing traditional file-system security monitors.
The breach begins with a SQL injection vulnerability in a corporate network, which attackers leverage to achieve full OS-level Remote Code Execution (RCE). Once inside, the actors abuse Oracle's Java Source functionality to upload, compile, and execute the khunt toolkit as a Java object stored internally within the database. This specific method of executing code via the database is referred to as 'oraexec,' according to IT Security Guru.
The Persistence Gap
SQL injection remains a prevalent vulnerability despite being a well-understood flaw. In this instance, however, the attackers moved beyond simple data exfiltration. By utilizing the built-in Java Virtual Machine (JVM) within the Oracle Database, the actors transformed the database into a hosting environment for their malware.
Because the khunt toolkit resides in the database's internal storage rather than the operating system's file system, it avoids the scrutiny of standard Endpoint Detection and Response (EDR) tools. These tools typically monitor for suspicious binaries or executable files appearing on the disk, but they are often blind to malicious Java objects stored within a database's proprietary tables.
A Shift in Tactics
This attack signals a tactical shift where the database is no longer just a target for data theft, but a launchpad for wider network compromise. Huntress noted that this "shifts the database from being something that attackers query for data into a beachhead from which threat actors can launch attacks."
By operating from the database layer, attackers maintain a stealthy presence and launch further attacks on the internal network without deploying traditional executable files to the server. This makes detection significantly more difficult, as it necessitates deep database-level auditing and specialized security monitoring rather than relying on OS-level alerts.
Future Outlook
Security teams are now urged to implement more rigorous monitoring of database internal objects and Java execution permissions. Huntress stated that the use of this specific technique in the wild has rarely been documented, suggesting that other similar, undetected beachheads may exist in corporate environments. Organizations should prioritize patching SQL injection flaws and auditing the use of Java Source within their Oracle environments to prevent similar infiltrations.