Return to Threats

Attackers Compile khunt Inside Oracle to Turn SQL Injection Into Windows SYSTEM Access

thehackernews.com 2026-08-06 AI supply chain High

What Happened

Attackers broke into an organization's Oracle database through a SQL injection flaw in a public-facing web application, then installed a post-exploitation toolkit without writing an executable to disk. They fed Java source code to the database, let Oracle compile it into stored schema objects, and ran commands from inside the database engine. Huntress, which tracks the toolkit as khunt,

Why It Matters

The article reports that attackers exploited a SQL injection flaw in a public-facing Java/Tomcat application to compromise an Oracle database and install the khunt post-exploitation toolkit as Java and PL/SQL schema objects compiled inside the database engine, then used it to execute Windows SYSTEM-level commands without dropping traditional executables to disk.[1][2][3][8] Huntress documents that components like KhuntCmd, KhuntHash, and KhuntFS were used to run cmd.exe, extract Oracle user data, and manage files directly from within the database, taking advantage of Oracle’s embedded JVM and overly privileged database accounts.[1][2][3] From a RealGround perspective, this demonstrates how complex, embedded runtime environments (like Java inside databases) and misconfigured privileges in core infrastructure form a critical part of the AI and software supply chain that can be abused to achieve stealthy, high-privilege code execution. Organizations should treat database engines, embedded VMs, and application service identities as supply-chain components, applying SBOM-style inventory to Java/PL/SQL objects and restricting runtime execution permissions and OS credentials to reduce bla

Healthcare Fintech SaaS SMB AI startups

RealGround Analysis

This signal maps to AI supply chain. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.

Recommended Actions

  • Restrict AI agent tool permissions and production write paths.
  • Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
  • Add human approval workflows for high-impact or state-changing actions.
  • Run prompt injection and indirect prompt injection tests against affected workflows.
  • Document the owner, control gap, and remediation deadline for this risk class.

Source

https://thehackernews.com/2026/08/attackers-compile-khunt-inside-oracle.html

Talk to AI CISO