Attackers breached an organization's Oracle database by exploiting a SQL injection vulnerability found in an autocomplete search field of a public-facing web application. This flaw allowed unvalidated input to be passed to the database via a Java Database Connectivity (JDBC) connection. The compromised account used for this connection possessed sufficient privileges to create Java objects within the database.
Instead of deploying traditional executables, the attackers fed Java source code directly to the Oracle database. The database's embedded Java Virtual Machine compiled this code into stored schema objects, forming a post-exploitation toolkit tracked as 'khunt' by Huntress. This method allowed attackers to run commands from within the database engine itself, ultimately achieving SYSTEM-level code execution on the underlying Windows server.
The 'khunt' toolkit, consisting of Java objects and PL/SQL wrappers, is not a process, binary, or file on the filesystem in the conventional sense. This characteristic enables it to bypass most endpoint detection and response (EDR) products, which typically do not inspect Oracle's internal components. Huntress noted that this transforms the database from a query target into an attack launchpad.
This technique of compiling and executing code within Oracle databases is not new, with similar methods documented as far back as 2006. The 'khunt' objects utilize the same basic architecture as older tools like Marco Ivaldi's raptor_oraexec.sql. Despite its age, the use of this specific technique in real-world attacks has been rarely documented until now.
The 'khunt' toolkit included six Java objects and several PL/SQL wrappers. For example, 'KhuntCmd' allowed arbitrary operating-system commands to be run by loading cmd.exe and passing commands as SQL. Detection involves searching Oracle installations for object names beginning with 'Khunt' and SQL logs for 'KHUNT%'. The underlying application flaw and the account's excessive privileges remain unpatched by Oracle.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Attackers exploited a SQL injection vulnerability in a public-facing web application to gain access to an Oracle database, then compiled and ran a post-exploitation toolkit named 'khunt' directly within the database engine. This technique allowed them to achieve SYSTEM-level code execution on the underlying Windows server without writing executables to disk, bypassing typical endpoint detection and response systems.