Skip to navigation

Threat reportThreat IntelligenceTL-2026-3220

AI Agent-Driven Intrusion Chains Exposed Tomcat Spring Batch Endpoint to GodPotato/PrintSpoofer SYSTEM Escalation on Windows

highACTIVE

ReliaQuest assessed with high confidence that LLM-driven agents performed substantial portions of an intrusion that took an unauthenticated Apache Tomcat Spring Batch job-submission endpoint to full administrative control of a Windows server in under 24 hours. No new malware or zero-day was used; the chain relied on Nashorn JavaScript execution, plaintext configuration credentials, SQL Server xp_cmdshell and the public GodPotato/PrintSpoofer tools.

Key facts

IdentifiersTL-2026-3220
SeverityHIGH
Affected productsApache Software Foundation Apache Tomcat hosting a Spring Batch application with an exposed job-submission endpoint (misconfiguration, not a product vulnerability); Microsoft Windows Server / SQL Server (abused via SeImpersonatePrivilege and xp_cmdshell; configuration weakness)
Weaknesses (CWE)CWE-306
ToolsCairn, GodPotato, PrintSpoofer, certutil - S0160
MITRE ATT&CK techniquesT1003.002 Security Account Manager, T1003.004 LSA Secrets, T1027.013 Encrypted/Encoded File, T1059.007 JavaScript, T1134.001 Token Impersonation/Theft, T1136.001 Local Account, T1140 Deobfuscate/Decode Files or Information, T1190 Exploit Public-Facing Application, T1505.001 SQL Stored Procedures, T1552.001 Credentials In Files, T1564.001 Hidden Files and Directories, T1588.002 Tool
MotivationUNKNOWN
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-10-10, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3220 across Splunk SPL, Microsoft KQL and Sigma, covering 13 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Tomcat/Java Application Server Spawning Shell or Recon Utility (Spring Batch Nashorn Execution)

Detects Apache Tomcat (service wrapper or java.exe running Catalina) spawning a command interpreter or recon/staging utility. In the reported intrusion, jobs submitted to an unauthenticated Spring Batch endpoint ran Nashorn JavaScript in-process and shelled out to run commands (~6s median cadence) as the application account. A web application server spawning cmd/powershell/certutil/whoami is anomalous on almost any host.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1059.007
  • Data sources: sysmon, microsoft_defender_endpoint, windows_security_4688
  • Severity: high
  • Confidence: high

Splunk SPL

``` TL-2026-3220: Tomcat/Java spawning shell or recon utility (Nashorn in-process execution via Spring Batch) ```
index=windows sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
(ParentImage="*tomcat*.exe" OR ((ParentImage="*java.exe" OR ParentImage="*javaw.exe") ParentCommandLine="*catalina*"))
(Image="*cmd.exe" OR Image="*powershell.exe" OR Image="*pwsh.exe" OR Image="*certutil.exe" OR Image="*whoami.exe" OR Image="*net.exe" OR Image="*net1.exe")
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as commands by host, User, ParentImage, Image
| convert ctime(first_seen) ctime(last_seen)
| sort - count

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where (InitiatingProcessFileName startswith 'tomcat' and InitiatingProcessFileName endswith '.exe')
    or (InitiatingProcessFileName in~ ('java.exe', 'javaw.exe') and InitiatingProcessCommandLine has 'catalina')
| where FileName in~ ('cmd.exe', 'powershell.exe', 'pwsh.exe', 'certutil.exe', 'whoami.exe', 'net.exe', 'net1.exe')
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by Timestamp desc

Sigma

title: Tomcat or Java Application Server Spawning Shell or Recon Utility
id: 7c1d2f3a-5b8e-4a61-9d3c-1e2f4a6b8c01
status: experimental
description: Detects Apache Tomcat or a Catalina-hosting java.exe spawning a command interpreter or recon utility, as seen when attacker Nashorn JavaScript submitted through an unauthenticated Spring Batch job endpoint executes OS commands in-process (TL-2026-3220).
references:
    - https://gbhackers.com/hackers-use-ai-agents-and-godpotato-exploit/
    - https://cyberpress.org/hackers-deploy-ai-agents-to-automate-server/
author: Threadlinqs Team
date: 2026/10/10
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.007
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent_java:
        ParentImage|endswith:
            - '\java.exe'
            - '\javaw.exe'
        ParentCommandLine|contains: 'catalina'
    selection_parent_service:
        ParentImage|endswith:
            - '\tomcat7.exe'
            - '\tomcat8.exe'
            - '\tomcat9.exe'
            - '\tomcat10.exe'
            - '\tomcat11.exe'
    selection_child:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\certutil.exe'
            - '\whoami.exe'
            - '\net.exe'
            - '\net1.exe'
    condition: 1 of selection_parent_* and selection_child
falsepositives:
    - Tomcat-hosted deployment or maintenance scripts that legitimately shell out
level: high

Known false positives:

  • Tomcat-hosted admin or deployment scripts and scheduled maintenance jobs that legitimately invoke cmd.exe or powershell.exe
  • Monitoring agents that run whoami/net commands under the Tomcat service account

Tuning notes: Baseline legitimate Tomcat child processes per host and allow-list by exact CommandLine. Pair with a hunt of Tomcat catalina logs for jdk.nashorn / ScriptException stack traces and for 1,800-byte error-message output chunks returned to external clients. Escalate severity when the child runs as SYSTEM or the host is internet-facing.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • certutil Base64 Decode of Staged Tool Fragments (ps.b64 / gp.b64) · unlock with TL Creds
  • GodPotato / PrintSpoofer SeImpersonatePrivilege Escalation to SYSTEM · unlock with TL Creds
  • SAM, SYSTEM and SECURITY Registry Hive Dump via reg.exe · unlock with TL Creds
  • Linux Attacker Staging Artifacts - [indicator], [indicator] and /tmp/out_ Job Output · unlock with TL Creds
  • Local Administrator Account Creation via net.exe or Security Events 4720/4732 · unlock with TL Creds
  • Java/Tomcat Process Reading Application Configuration Files for Plaintext Credentials · unlock with TL Creds
  • SQL Server xp_cmdshell Abuse - sqlservr.exe Child Process or xp_cmdshell Enablement · unlock with TL Creds
  • Network Contact with Reported Attacker Infrastructure (Cairn Operator, Recon and Job-Output IPs) · unlock with TL Creds

Indicators of compromise

As of 2026-10-10, Threadlinqs Intelligence tracks 13 indicators of compromise for TL-2026-3220.

Sample indicators (3 of 13)

  • IP address: 204.194.55[.]189
  • IP address: 204.194.54[.]240
  • IP address: 94.177.131[.]113

Defanged, TLP:CLEAR. Full set of 13 indicators: unlock with TL Creds.

13 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

A live Cairn (open-source agent orchestration) dashboard on the attacker's IP was the strongest evidence of AI involvement.

ReliaQuest researchers Austin Ritchie and Daxton Wirth (research published 2026-10-07, covered by GBHackers and CyberPress on 2026-10-10) documented an intrusion in which an internet-facing Apache Tomcat application using Spring Batch exposed a job-submission feature that accepted task definitions without authentication. The attacker submitted jobs that invoked Nashorn, the JavaScript engine available in the application's Java environment, so attacker code ran in-process with the privileges of the application account. Command output was returned through application-level error messages in fixed 1,800-byte chunks, and jobs carried sequential, programmatically generated identifiers that preserved execution state across requests. On the Linux side of the application host, artifacts included /tmp/out_<jobname>.txt output files, a dot-prefixed staging directory /var/tmp/.x/ holding shell scripts, and a scanning/reconnaissance binary at /var/tmp/kvragent.

The operator read plaintext credentials from application configuration files and recovered a SQL Server sysadmin account, then used SQL Server xp_cmdshell to execute commands as the database service account on the Windows server. Public privilege escalation tools PrintSpoofer and GodPotato, both abusing SeImpersonatePrivilege, were delivered as base64 fragments through the command channel, reassembled with certutil (C:\Windows\Temp\ps.b64 -> ps.exe; C:\Windows\Temp\gp.b64 -> C:\Users\Public\g.exe) and used to obtain SYSTEM. The attacker then dumped the SAM, SYSTEM and SECURITY registry hives for offline password-hash recovery and created a local administrator account.

Evidence of LLM involvement: hundreds of commands at a median gap of roughly six seconds, programmatically generated identifiers, structured output, repeated corrections addressing preceding errors (feedback-driven adaptation rather than a predetermined script), and a live Cairn orchestration dashboard displaying agent findings and next-step planning hosted on 204.194.55.189, the same IP that submitted the malicious jobs. Cairn (by Oritera, AGPL-3.0, first released 2026-04-19) is a legitimate open-source blackboard-style state-space search engine validated on autonomous penetration testing, with Claude, Codex and Pi backends. ReliaQuest cautioned that these behaviors alone do not prove LLM involvement and that the number of agents, the underlying model and the degree of human approval could not be determined. No threat actor is attributed, no CVE is assigned, and product versions were not disclosed. The primary ReliaQuest report was not retrievable during this research; facts here derive from two secondary articles, the search-result summary of the ReliaQuest research, and the public Cairn project page.

MITRE ATT&CK techniques by tactic:

Credential Access

T1003.002 Security Account Manager; T1003.004 LSA Secrets; T1552.001 Credentials In Files

Defense Evasion

T1027.013 Encrypted/Encoded File; T1140 Deobfuscate/Decode Files or Information; T1564.001 Hidden Files and Directories

Execution

T1059.007 JavaScript

Privilege Escalation

T1134.001 Token Impersonation/Theft

Persistence

T1136.001 Local Account; T1505.001 SQL Stored Procedures

Initial Access

T1190 Exploit Public-Facing Application

Resource Development

T1588.002 Tool

Remediation

Immediate actions

  • Require authentication and authorization on Spring Batch job-submission and other management endpoints; remove them from internet exposure
  • Block and hunt for 204.194.55.189, 204.194.54.240 and 94.177.131.113 in proxy, firewall and web logs
  • Hunt for ps.exe/g.exe, ps.b64/gp.b64 in C:\Windows\Temp and C:\Users\Public, and /var/tmp/.x/ and /var/tmp/kvragent on Linux hosts
  • Audit for newly created local administrator accounts and rotate credentials stored in application configuration files and SQL Server sysadmin accounts

Workarounds

  • Restrict network access to the Tomcat management/job endpoints to trusted administrative networks
  • Disable xp_cmdshell and restrict certutil use by service accounts

Longer-term hardening

  • Move credentials out of plaintext configuration into protected secrets storage
  • Reduce service-account privileges; remove SeImpersonatePrivilege where not required and disable xp_cmdshell
  • Retain Spring Batch job histories and correlate application exceptions with system telemetry
  • Implement automated containment for malicious in-process code execution (e.g. Nashorn script invocation from web application processes)

Affected and fixed versions

  • Apache Software Foundation — Apache Tomcat hosting a Spring Batch application with an exposed job-submission endpoint (misconfiguration, not a product vulnerability)
  • Microsoft — Windows Server / SQL Server (abused via SeImpersonatePrivilege and xp_cmdshell; configuration weakness)

Timeline

  • Oritera releases the open-source Cairn agent orchestration / autonomous penetration-testing platform (AGPL-3.0), later observed on attacker infrastructure
  • As reported, base64-fragmented PrintSpoofer and GodPotato are reassembled with certutil and abuse SeImpersonatePrivilege to reach SYSTEM; SAM/SYSTEM/SECURITY hives dumped and a local admin created (date of activity undisclosed; report date used)
  • As reported, attacker reads plaintext application config credentials, obtains a SQL Server sysadmin account and runs commands via xp_cmdshell (date of activity undisclosed; report date used)
  • As reported, jobs submitted from locked-ioc-7 to the unauthenticated Spring Batch endpoint invoke Nashorn JavaScript for in-process execution; output returned via error messages in 1,800-byte chunks (date of activity undisclosed; report date used)
  • ReliaQuest publishes research (Austin Ritchie, Daxton Wirth) on an intrusion where an unauthenticated Tomcat Spring Batch endpoint led to full admin control in under 24 hours; exact intrusion dates are not disclosed
  • GBHackers and CyberPress publish coverage of the ReliaQuest findings, including IOCs and the Cairn dashboard evidence

Sources cited

Previous and next in threat intel

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats