← All stories
● Covered by 1 source · 1 reportMedium impact1 negative

Attackers use SQL injection to compile and run 'khunt' toolkit within Oracle databases for SYSTEM access

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • SQL injection led to Oracle database compromise.
  • Attackers compiled Java source code into Oracle schema objects.
  • 'khunt' toolkit enabled SYSTEM-level access on Windows server.
  • Technique bypasses standard endpoint detection methods.

SQL Injection Leads to Database Compromise

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.

In-Database Toolkit Compilation and Execution

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.

Bypassing Traditional Security Measures

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.

Historical Technique Resurfaces

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.

Toolkit Components and Detection

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 15

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

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.