
UpTrajectory Review
Huntress has uncovered an intrusion in which attackers used a SQL injection flaw not merely to run commands but to turn an Oracle database into the malware host itself. The firm describes a custom Java toolkit, Khunt, stored as a database object through Oracle's CREATE JAVA SOURCE feature and executed via the embedded Java Virtual Machine. Because Oracle ships with this capability for legitimate business applications, the malicious code blended into normal database activity. The entry point was unglamorous: an autocomplete search field on a public-facing application that reached PL/SQL and then the operating system. No zero-day, no exotic exploit chain. The attackers simply walked through a door the application left open.
For a small-business operator running Oracle-backed applications, this case strips away a comforting assumption. Many owners treat the database as a sealed vault and focus security on the web layer. Huntress shows the vault can become the intruder's workshop. If your business relies on a vendor-built application with an Oracle backend, you likely do not control the code or the database configuration. You do, however, control the vendor relationship and the questions you ask. This breach is a prompt to ask whether your application vendor tests for SQL injection, patches promptly, and monitors database activity for anomalies.
The genuinely new element is not the SQL injection; it is the use of Oracle's own Java machinery as a stealthy persistence mechanism. Traditional defenses often scan the filesystem or network for malware. Khunt lives inside the database schema, compiled and invoked through SQL statements. That makes it harder to spot with standard endpoint tools. Huntress deserves credit for documenting the technique clearly. We remain skeptical of one implicit framing: that this required deep Oracle expertise. The attackers used documented features. The barrier was knowledge, not sophistication. That lowers the cost of imitation.
The second-order effects fall unevenly. Large enterprises with dedicated database administrators and security teams may already audit Java permissions and watch for CREATE JAVA SOURCE activity. Small businesses rarely have that visibility. They depend on managed service providers or application vendors who may prioritize uptime over forensic logging. The cost of tightening controls, such as restricting Java in the database or enabling detailed audit trails, can slow performance and complicate upgrades. Vendors may resist. Meanwhile, attackers gain a template: find a SQL injection flaw, hide the payload in the database, and mine credentials at leisure.
Watch for two developments. First, whether Oracle or security vendors publish detection rules for Java-based persistence inside the database. Second, whether application vendors that bundle Oracle begin issuing hardening guidance or patches. In the meantime, operators should ask their vendors three questions: Have you tested for SQL injection in every public input field? Do you monitor Oracle audit logs for unexpected Java creation? Who responds if the database itself shows signs of compromise? If the answers are vague, treat that as a finding. The breach began with a basic flaw. Basic diligence can catch it.
“There was no need for a novel vulnerability because the autocomplete search feature in the public-facing application was enough to reach PL/SQL and then the operating system.” — CSO Online
Takeaway: Ask your application vendor how they test for SQL injection and whether they monitor Oracle's Java features for hidden malware.
Excerpt from the original — CSO Online
Huntress has documented a case where the Oracle database itself became the malware host.
The security firm disclosed a campaign in which threat actors exploited a SQL injection vulnerability to store a custom post-exploitation toolkit, dubbed Khunt, inside an Oracle database using the platform’s built-in Java capabilities.
Huntress became aware of the intrusion after investigating a credential theft activity on a server running Oracle Database. The researchers learned that rather than simply executing commands through SQL injection, the attackers had leveraged Oracle’s embedded Java Virtual Machine (OJVM) to upload, compile, and execute malicious Java code directly from within the database.
The approach reportedly allowed the attackers to blend into legitimate database functionality while maintaining a persistent foothold on the compromised server.
“The attackers managed to …