Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Great to see what Tom Cruise’s belly button looks like, but it’s the stuff he is never asked about that interests me | Marina Hyde

    September 22, 2026

    False claim cancer is ‘trying to heal’ shared online yet again – Full Fact

    September 22, 2026

    Trump defends actions in Iran and Venezuela in UN General Assembly address amid rising tensions with allies – live | Donald Trump

    September 22, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Great to see what Tom Cruise’s belly button looks like, but it’s the stuff he is never asked about that interests me | Marina Hyde
    • False claim cancer is ‘trying to heal’ shared online yet again – Full Fact
    • Trump defends actions in Iran and Venezuela in UN General Assembly address amid rising tensions with allies – live | Donald Trump
    • EU removes two Russian billionaires from sanctions list – POLITICO
    • Nick Clegg could make £30m windfall from datacentre startup Nscale flotation | IPOs
    • AI Models Built From Rat Brains Just Got Closer to Reality
    • EvilTokens PhaaS disrupted after compromising 12,000 Microsoft accounts
    • Coinbase US stock perpetuals await CFTC approval
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Tuesday, September 22
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Cybersecurity

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

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKAugust 6, 2026 Cybersecurity No Comments3 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Swati KhandelwalAug 06, 2026Database Security / Endpoint Security

    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, investigated after credential-theft detections fired on July 27, 2026, and traced the chain to SYSTEM-level code execution on the underlying Windows server.

    The flaw sat in the application, where an autocomplete search field passed unvalidated input to the database over a Java Database Connectivity (JDBC) connection. The account behind that connection had enough privilege to create Java objects.

    No Oracle patch closes either the application flaw or the account privilege behind it. Finding the toolkit means hunting: search the Oracle installation for object names beginning Khunt, and SQL logs for KHUNT%.

    A Java class compiled into a database schema object is not a process, a binary, or a file on the filesystem, and endpoint detection and response products do not generally inspect Oracle’s internals. As Huntress frames it, the database stops being something attackers query and becomes a beachhead they attack from.

    Cybersecurity

    Oracle ships an embedded Java Virtual Machine, and the CREATE JAVA SOURCE statement lets a user hand it Java code that the database compiles and stores as a schema object. In a user’s own schema, Oracle’s documentation puts the bar at a single system privilege, CREATE PROCEDURE. Spawning an operating-system process from that code runs through Runtime.exec, which needs its own file-execution permission, and Oracle says those are issued only by privileged administrators.

    Huntress does not say which grants the compromised account held, or whether the attackers had to add any. The chain succeeded, so it had enough for both.

    The technique is at least two decades old. Marco Ivaldi’s raptor_oraexec.sql, dated 2006, creates an Oracle source object with command-execution and file-read methods, then publishes them to SQL through PL/SQL wrappers. The khunt objects use the same basic architecture. “The use of the technique in the wild has rarely been documented,” Huntress said.

    Six Java objects and several khunt_* PL/SQL wrappers made up the toolkit:

    • KhuntCmd loaded cmd.exe and ran arbitrary operating-system commands passed in as SQL.
    • KhuntHash read usernames and password hashes from Oracle’s internal user table and wrote them to a file.
    • KhuntFS and KhuntFS2 listed, read, searched, and sized files.
    • KhuntT confirmed the toolkit was reachable, and KhuntUnzip unpacked archives.
    Cybersecurity

    Running cmd.exe /c whoami through KhuntCmd returned SYSTEM. The attackers then used PowerShell and reg.exe to copy the SECURITY and SYSTEM registry hives into F:Oracle, ran tasklist /svc into khunttasks.txt, and copied the SAM and SECURITY hives with esentutl.exe.

    Huntress observed the files being staged locally, but did not establish that they were exfiltrated. The firm named no threat actor and traced the malicious requests to 178.162.151[.]229.

    Those indicators are specific to this toolkit, so no search for Khunt or KHUNT% will surface the technique behind it. The fix is parameterized queries and input validation in the application, plus least privilege underneath: an account serving a public-facing app should not be able to author Java sources or run stored procedures it has no reason to touch.

    access Attackers Compile Injection khunt Oracle SQL System Turn Windows
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    EvilTokens PhaaS disrupted after compromising 12,000 Microsoft accounts

    Webinar tomorrow: Inside real-world Google Workspace breaches

    New Linux Kernel Flaw Gives ARM64 KVM Guests Read-Write Access to Host Memory

    DORA Year Two: Can Your SOC Actually See the Attack?

    Malicious npm Package indexed-btree Hid Its Loader in Runtime Code Before Removal

    The cyber AI parity window now has a deadline

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Great to see what Tom Cruise’s belly button looks like, but it’s the stuff he is never asked about that interests me | Marina Hyde

    September 22, 2026

    False claim cancer is ‘trying to heal’ shared online yet again – Full Fact

    September 22, 2026

    Trump defends actions in Iran and Venezuela in UN General Assembly address amid rising tensions with allies – live | Donald Trump

    September 22, 2026

    EU removes two Russian billionaires from sanctions list – POLITICO

    September 22, 2026
    Latest Posts

    COLDCARD security audit phishing attack installs remote access tool

    August 5, 2026

    Reddit aims to make ‘karma’ less important for first-time posters with shift to AI moderation tools

    August 5, 2026

    Right turn on green: is the Telegraph changing its tune on the climate? | Daily Telegraph

    August 5, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Great to see what Tom Cruise’s belly button looks like, but it’s the stuff he is never asked about that interests me | Marina Hyde

    September 22, 2026

    False claim cancer is ‘trying to heal’ shared online yet again – Full Fact

    September 22, 2026

    Trump defends actions in Iran and Venezuela in UN General Assembly address amid rising tensions with allies – live | Donald Trump

    September 22, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.