Hackers run khunt post-exploitation toolkit from Oracle database

Hackers exploited a SQL injection vulnerability to install a post-exploitation toolkit directly inside an Oracle database that was used to breach a corporate network.

The attack was discovered by Huntress on July 27, 2026, after its security platform detected credential theft on a server hosting an Oracle database server.

Apache access logs showed that the attackers gained access through a vulnerable search engine endpoint in a public-facing Java application running Apache Tomcat.

The application failed to properly validate input submitted through an autocomplete search feature that allowed the attackers to issue SQL commands to the Oracle database.

Huntress traced the malicious requests to the IP address 178.162.151[.]229.

After exploiting the SQL injection flaw, the attackers installed a post-exploitation toolkit called khunt directly into the Oracle database as a Java object.

Oracle has an embedded Java Virtual Machine and the CREATE JAVA SOURCE statement, which allows Java source code to be stored and compiled as a database schema object.

These Java objects can then be executed via SQL commands, which if configured to do so, can execute commands on the host operating system.

The attackers abused this functionality to compile and store the khunt toolkit directly inside the Oracle database rather than deploying them as executable files on the server.

“The use of the technique in the wild has rarely been documented,” Huntress said.

The toolkit contained multiple Java components and PL/SQL wrappers that could execute commands, steal credentials, and manage files.

The attackers used KhuntCmd to run cmd.exe /c whoami, confirming that commands executed through the Oracle database had SYSTEM-level permissions on the Windows server.

They then used PowerShell and Windows utilities to copy the SAM, SECURITY, and SYSTEM registry hives, which can be used to recover password hashes for local Windows accounts.

The attackers also ran tasklist /svc to enumerate running services and saved the output to khunttasks.txt.

Huntress said the registry hives were likely exfiltrated for credential dumping, but the report does not confirm whether the files were successfully stolen.

As a general rule, organizations should sanitize all user supplied input validation and limit the privileges granted to application database accounts.

Huntress recommends that database accounts used in public-facing applications should not have high enough privileges to create Java sources, execute unnecessary stored procedures, or perform other administrative actions.

Security teams log 54% of successful attacks and alert on just 14%. The rest move through your environment unseen.

The Picus whitepaper shows how breach and attack simulation tests your SIEM and EDR rules so threats stop slipping by detection.

CISA orders feds to patch actively exploited Oracle flaw by Saturday

Over 900 Oracle E-Business instances exposed to ongoing attacks

Nissan discloses employee data breach linked to Oracle zero-day attacks

Hackers now exploit critical Oracle E-Business flaw in attacks

Oracle mitigates PeopleSoft zero-day exploited in data theft attacks

Hotel Wi-Fi attacks use custom malware to breach Microsoft 365 accounts

Massive ChainDrop npm supply-chain attack infects hundreds of packages

New Pass-ta-key attacks let malware hijack Google-synced passkeys

AI is a data-breach time bomb: Read the new report

Stay one step ahead of new threats in the new year. Join Huntress for the monthly Tradecraft Tuesday.

Webinar: Shadow AI in 2026 (and how attackers are taking advantage)

Explore ESET’s H1 2026 Threat Report to uncover the latest AI, phishing, and ransomware trends.

Spend four hours inside a fully-simulated underground with DARKROOM.

Terms of Use – Privacy Policy – Ethics Statement – Affiliate Disclosure

Read our posting guidelinese to learn what content is prohibited.