Thursday, December 3, 2026

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain

  • Cisco Talos analyzed 6,360 files from an exposed UAT-10147 server. The files included target lists, exploit scripts, password dictionaries, execution logs, and web shells. 
  • The data included target lists and scanning activity associated with more than 650,000 internet-facing systems worldwide, with much of the activity focused on the Asia-Pacific region. The logs documented extensive scanning, but evidence of successful compromise and persistence was more limited. 
  • Talos reconstructed an operation against a Vietnamese government server, tracing the actor’s reconnaissance, credential attacks, and attempts to exploit web applications and ArcGIS services. 
  • We used scripts to organize about 15GB of data, then used a forensic workflow in combination with large language models (LLMs) to help correlate the results and allow researchers to check the findings against the original files and logs. 
  • We also present a real-world case showing the limits of AI-assisted attacks and how the threat actor used AI to support multi-stage intrusion attempts and large-scale scanning.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain

In August 2026, Cisco Talos reported on UAT-10147’s use of AI-assisted tools against web servers. This follow-up examines files from the actor’s exposed server to reconstruct how the group selected targets, tested exploits, and changed its approach. The files document successful actions alongside attempts for which we found no confirmed result. The exposed server stored reconnaissance lists, exploit scripts, public proofs-of-concept, password dictionaries, execution logs, packet captures, web shells, and privilege escalation tools.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 1. Open directory command-and-control (C2) infrastructure.

The extensive historical logs and files allowed us to reconstruct the UAT-10147’s timeline across each phase of its operations. To analyze this large, open directory C2 infrastructure efficiently, we used LLMs to support the forensic process. We assessed the provenance of 6,360 files and identified more than 200 with strong indications of AI-assisted creation; the remaining files displayed mixed, inconclusive, or potentially AI-assisted characteristics. 
 

Category 

Count/Scope 

Total files 

6,360 

AI-assessed created files 

209 

Total network targets 

656,857 

UAT-10147 high-interest targets 

20,427 

 

LLMs helped us summarize scripts, link tools to their output logs, and build timelines. Researchers then checked those links against the original evidence. This post focuses on the clearest examples such as large-scale vulnerability testing, WordPress intrusion attempts, an ArcGIS operation, and an unsuccessful RSA key recovery attempt. Given the large volume of files and exploit code, this blog focuses only on the highest-confidence, highest-value attack chains and their most significant findings.

Forensic analysis of artifacts with LLM agent 

Talos analyzed the exposed directory using a hybrid workflow that combined deterministic forensic extraction with AI-assisted semantic analysis and applied the methodology proposed by researchers at Universidade Federal de Campina Grande to help us automate data analysis. We divided the investigation into descriptive, diagnostic, predictive, and prescriptive tasks of increasing complexity. Before submitting evidence to the LLM, we used deterministic preprocessing to inventory files, calculate hashes, normalize timestamps, deduplicate network indicators, identify proof-of-concept script to output logs relationships, and separate confirmed events from scanner-generated claims. These steps produced a structured summary of about 1MB from roughly 15GB of source data. The summary guided the LLM analysis and the original files remained the reference for validation. 

The LLM performed particularly well on descriptive and diagnostic tasks, including summarizing attack coverage, correlating scripts with execution logs, reconstructing timelines, and explaining failures such as unsuccessful authentication, missing callbacks, and incomplete RSA factorization. Predictive and prescriptive conclusions (including assessments of the actor’s intent, probable next actions, AI-assisted authorship, and remediation priorities) required substantially greater human review because they introduced a higher risk of unsupported inference. Following the paper evaluation model, we executed the generated analysis code separately, and assessed each output as correct, incorrect, warning producing, or interrupted. The application demonstrates that an LLM-based workflow can make a large and heterogeneous cybercrime investigation more manageable and reproducible, but its principal benefit lies in accelerating structured description and evidence-based diagnosis, not in replacing forensic validation or independently establishing compromise and attribution.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 2. Data analyst open directory workflow.

AI-assisted authorship assessment 

The following is Talos' assessment strategy for indicators of AI-generated or AI-assisted code. It distinguishes direct provenance evidence from indirect code-level indicators. Prior academic studies, including Bukhari et al. (2023), Li et al. (2023), Xu et al. (2024), and Nirob et al. (2026), on automated program comprehension have explored multiple complementary methodologies to differentiate machine synthesized code from human authored implementations under controlled laboratory conditions: 

  • Lexical and syntactic indicators: Token frequency analysis, n-gram distributions, rigid indentation uniformity, and an overreliance on textbook variable naming conventions (e.g., highly descriptive, camel case, or snake case identifiers where a human threat actor would typically use concise or obfuscated abbreviations). 
  • Syntactic and structural patterns: Abstract Syntax Trees (AST) parsing representations designed to identify structural over regularity, standard algorithmic boilerplate, and predictable module-level organization characteristic of instruction-tuned LLMs.

While these linguistic and structural metrics provide valuable statistical signals in the synthetic evaluation of benchmarks, their utility degrades rapidly when applied to live cybercrime operations. Our empirical analysis highlights three critical limitations:  

  1. Lack of generalization across contexts: Probabilistic classifiers frequently misclassify code when exposed to diverse programming languages, modern language features, specialized exploit libraries, or proprietary domain-specific logic. 
  2. Fails under human refactoring: Adversaries rarely deploy raw LLM outputs without modification. Even minimal human involvement (e.g., renaming variables, stripping comments, restructuring execution loops, or integrating generated snippets into legacy codebases) drastically alter token distributions and invalidates AST-based anomaly scores. 
  3. High sensitivity to prompt variations: Commercial and open-source AI code detectors have high variance and error rates when subjected to minor prompt perturbations or non-standard system instructions, making them insufficient as conclusive, standalone forensic proof. 

We assessed possible AI assistance in the tools using a provenance-first evidence hierarchy. Rather than evaluating isolated code fragments out of context, this approach synthesizes multi-turn prompt logs, active LLM session tokens, precise filesystem timestamps, and fine-grained differential code edits into a unified developmental timeline. 

We grouped the observed indicators into the evidence tiers below. These tiers express the strength of evidence for AI assistance.

Indicator 

Description 

Evidence strength 

LLM-specific comments or response formats 

Residual prompts or model-like explanations in the code 

High 

Model outputs or conversation logs 

Can directly link the tools to the LLM 

High 

Rapid script iteration and repeated code scaffolding 

Indicates automated generation or modification 

Medium 

Lengthy comments or template-based error handling 

May originate from AI, but cannot serve as conclusive evidence on its own 

Low 

The findings that follow result from our combined forensic and LLM-assisted methodology. By correlating file metadata, timestamps, target lists, Python scripts, retained logs, and artifacts, we reconstructed UAT-10147’s activity as an operational sequence rather than a collection of isolated tools. This analysis revealed a progression from Asia Pacific (APJC), internet-scale service discovery to more selective testing of known vulnerabilities and specific platforms. It also traced separate WordPress campaigns and a multi-phase operation against a Vietnamese government server. The following sections present these connected findings and show how earlier reconnaissance shaped subsequent attack attempts.

Internet-scale vulnerability exploitation 

Analysis of the logs reveals two distinct patterns in UAT-10147’s operations. Broad exposure discovery and opportunistic exploitation campaigns achieved extensive coverage but produced relatively few verified compromises. By contrast, campaigns targeting recently disclosed n-day vulnerabilities resulted in a substantially higher proportion of code execution and post exploitation activity. These findings suggest that an LLM primarily expanded the actor’s capacity to identify and test targets at scale, while successful intrusions remained concentrated around well-understood vulnerabilities with reliable exploitation paths. However, these results do not establish a general limit on LLM capabilities because their effectiveness across other stages of the attack chain may depend on the attacker’s expertise and the quality of the offensive capabilities integrated into the workflow.

UAT-10147's targeting strategy relies on a broad web exploitation surface, and actively seeking vulnerabilities across diverse environments. The tools covered products including WordPress, ThinkPHP, Redis, Webmin, CyberPanel and cPanel, and WHM. While the data we observed indicates the deployment of global mass scanning utilities, UAT-10147  maintains highly strategic objectives for infiltrating public-facing web servers. In addition, the threat actor also uses Shodan to identify servers affected by known n-day vulnerabilities, prioritize specific regions or IP ranges, and conduct automated exploitation. For instance, the threat actor leverages automated scanners for specific vulnerabilities such as the CVE-2019-15107 and CVE-2022-0824 to indiscriminately identify vulnerable infrastructure worldwide while simultaneously pursuing focused operational goals. 

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 3. Global mass scanning utilities.

UAT-10147 executes extensive mass scanning operations geographically concentrated in the APJC region, with a notable focus on China, Vietnam, Malaysia, Taiwan, Japan, Pakistan, India, Australia, and the broader Southeast Asian region.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 4. Mass scanning hundreds of Chinese hosting servers. 

Broad exposure scanning and opportunistic exploitation with limited confirmed outcomes 

This campaign covered legacy ThinkPHP and Drupal RCE flaws, exposing environment files and Git repositories, Spring Boot Actuator endpoints, unauthenticated Redis instances, Remote Desktop Protocol (RDP) password guessing, Log4j testing, SMB credential capture infrastructure, SMTP based password reset interception, and the historical PHPStudy backdoor. The threat actor obtained convincing code execution responses from a limited subset of ThinkPHP and Drupal systems and collected sensitive configuration or source code information from exposed web resources, while unauthenticated Redis access was confirmed across a wider set of hosts without corresponding proof that subsequent web shell, SSH key, or scheduled task persistence succeeded.

The RDP password guessing was persistent but produced no verified credentials, and the Log4j, SMB, and SMTP artifacts mainly demonstrated prepared listeners and exploitation intent rather than successful callbacks, captured hashes, intercepted messages, or account takeover. Likewise, the PHPStudy operation reached a geographically broad pool of systems and identified exposed PHP diagnostic pages, but did not confirm execution through the targeted backdoor.

Overall, AI appears to have increased the actor’s operational breadth and speed, allowing one attacker to probe many unrelated technologies and continually regenerate tooling. Our observations suggest that AI-assisted attacks may be particularly effective in supporting reconnaissance, exposure discovery, and information collection through large scale scanning and service exploitation. By contrast, their success in achieving authenticated access, establishing persistence, or fully compromising systems remains limited.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 5. Observed discovery vs. verified compromise.

Focused n-day exploitation with more actionable outcomes  

CVE-2024-51567 (CyberPanel) 

The actor used cyberpanel_exploit.py to test CVE-2024-51567 against 13,028 IP addresses from a Masscan list with TCP port 8090 open. The script identified candidate CyberPanel installations, retrieved CSRF tokens, and sent command injection payloads in HTTP PUT requests. It also tried POST requests and requests without a token. Finally, the script tested 13,028 endpoints and verified command execution on 24 hosts.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 6. CyberPanel CVE-2024-51567 exploit record.

CVE-2024-4577 (PHP-CGI argument injection)  

The actor used “php_cgi_scan.py” to test 200,000 records selected from 486,677 Masscan results associated with a Chinese hosting provider. All listed systems had TCP port 80 open. The script targeted CVE-2024-4577 in Windows PHP-CGI deployments, using a soft hyphen to inject PHP options and submit a payload in the request body. It tested multiple HTTP and HTTPS paths with 100 concurrent workers. The output file, “php_cgi_output.txt”, recorded 18 systems that returned a randomized marker and php_uname() output, supporting successful PHP code execution.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 7. PHP-CGI argument injection CVE-2024-4577, AI-generated hallmark.

CVE-2026-41940 (cPanel and WHM authentication bypass) 

UAT-10147 downloaded a recently active exploit from GitHub and used AI to modify the proof-of-concept script for mass scanning and assembling a four-stage exploit chain. The modified exploit established a pre-authentication session, attempted to inject privileged attributes into the session data, propagated those attributes to the session cache, and then used the resulting session token to access the protected WHM “/json-api/version” endpoint. Talos also identified multiple execution logs generated by the threat actor during different phases of the operation. These logs cover distinct target sets and post-experiment activities. Collectively, the evidence indicates a structured operational workflow: broad scanning, follow up scanning, targeting specific network segments, and iterative testing and exploitation.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 8. Multiple scan output log files.

We used the output logs to confirm the exploit success confirmation and victimology. The output logs are different. An initial scan run tested 930 unique WHM endpoints with 30 concurrent workers and completed without a positive result. This is likely a satisfaction for the exploit code and its four stages of attack chain. The threat actor subsequently expanded to much larger target populations.

The first mass exploitation log originated from a list of 31,639 unique endpoints and preserved 7,299 unique exploit starts before the recording ended. Eleven endpoints passed the tool's Stage 4 test, each returning HTTP 200 and a response containing a version property from the protected WHM API and a separate retry log recorded 50 completed runs against the same 11 host set and producing 550 exploit executions.

The second mass exploitation log performed a 24,527 host from remaining hosts from the same list and preserved another 2,951 starts. It recorded eight additional confirmations then transitioned from broad discovery to focused exploitation. The actor generated 2,040 address targets set by expanding eight contiguous “/24” networks and including “.1” through “.255” from each network. A command action runs preserved activity against 646 of those addresses and reconfirmed six endpoints are able to be exploited for remote command execution and unauthorized password changing actions.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 9. Exploit output log files. 

Targeted WordPress intrusion attempts: Credential and n-day attacks 

Targeting Japanese e-commerce WordPress site 

Talos observed UAT-10147 using multiple n-day exploits or AI-driven Python scripts to  massively target WordPress in Asia. First, they focused on attacks against Japanese e-commerce sites running WordPress. Rather than relying on one vulnerability, the threat actor moved through several access strategies such as password guessing, XML-RPC multiple call abuse, WAF evasion attempts, REST API authorization testing, WordPress Pingback SSRF, administrative endpoint discovery, and unauthenticated upload experiments.

The threat actor initially attacked the public storefront over HTTPS. After repeated rate limiting and HTTP 406 responses, the activity shifted toward a separate CMS backend hostname accessed directly over HTTP. Subsequent scripts treated the backend as an alternate route to the same WordPress environment and tested whether it exposed weaker controls than the public site.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 10. Two stages in the threat actor's workflow. 

Targeting Vietnamese WordPress site 

In a separate attack, UAT-10147 targeted numerous WordPress domains, with a particular focus on Vietnamese websites, by exploiting known n-day vulnerabilities. The observed exploits are detailed below. The threat actor used ”exploit_lscache.py” and “exploit_noauth.py” to identify and compromise vulnerable sites. The workflow began with the actor using RapidDNS to enumerate domains hosted on a single IP address. These discovered domains were then added to a list of hardcoded target domains. Subsequently, the actor assessed each site for exploitable vulnerabilities to identify opportunities for uploading web shells. Its workflow began with a set of hardcoded target domains.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 11. “Exploit_lscache.py” script and target list. 

The actor’s Python scripts used public plugin “readme.txt” files and selected WordPress paths as a reconnaissance check list to determine whether the targeted WordPress sites were potentially affected by any of the 12 vulnerabilities covered by the scripts. For five of the listed CVEs, the scripts also contained follow-on exploitation attempts targeting administrative access, file uploading, code execution, and SQL injection. The table below distinguishes the initial checks from the vulnerabilities for which the scripts included attack logic.

Reconnaissance item 

CVE 

Follow-on exploit 

LiteSpeed Cache Role Simulation 

CVE-2024-28000, LiteSpeed Cache ≤6.3.0.1 

Yes 

Really Simple Security 2FA authentication bypass 

CVE-2024-10924, versions 9.0.0–9.1.1.1 

Yes 

Starter Templates 

No CVE mapped in this analysis 

Not observed 

GiveWP PHP object injection 

CVE-2024-5932, GiveWP ≤3.14.1 

Not observed 

Elementor Pro authentication bypass 

No CVE mapped in this analysis 

Not observed 

Ultimate Member privilege escalation 

CVE-2023-3460, Ultimate Member <2.6.7, intended mapping only 

Not observed 

Open WordPress registration 

Configuration or exposure check 

Not observed 

Accessible WordPress cron 

Exposure check 

Not observed 

LiteSpeed debug-log exposure 

CVE-2024-44000, LiteSpeed Cache <6.5.0.1 

Not observed 

Backup Migration unauthenticated RCE 

CVE-2023-6553, Backup Migration ≤1.3.7 

Yes 

Essential Addons for Elementor privilege escalation 

CVE-2023-32243, versions < 5.7.2 

Not observed 

WP Automatic SQL injection 

CVE-2024-27956, WP Automatic ≤3.92.0 

Not observed 

WP Unauthenticated file upload or RCE 

CVE-2020-25213, versions <6.9 

Yes 

WP Unauthenticated SQL injection 

CVE-2023-6063, versions <1.2.2 

Yes 

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 12. LiteSpeed Cache vulnerability check.
Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 13. CVE-2023-6063 SQL injection exploit code.

Vietnam government host with deep attack chain

Talos observed the threat actor executing a structured, multi-phase attack against the aforementioned Vietnamese government server. The targeted system hosted ArcGIS Server, Esri’s software for delivering geographic information system (GIS) resources over the web. ArcGIS Server enables organizations to publish maps, geographic datasets, and spatial analysis tools as services that users can access through web applications, desktop software, and mobile devices. It can operate independently or integrate with an ArcGIS Enterprise portal to support the sharing and management of geospatial content.

The operation commenced with targeted reconnaissance. The first phase is the threat actor mapping the external attack surface using a comprehensive Nmap scan, which revealed open ports for IIS (80 and 443), MSMQ (1801), RPC (2103/2105/2107), and a relocated RDP service (33899).

The following provides a timeline summary of the four-stage intrusion process targeting the ArcGIS platform.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 14. Timeline for UAT-10147 targeting ArcGIS platform.

Leveraging this reconnaissance data to identify exploitable services, UAT-10147 cloned a public proof of concept targeting MSMQ QueueJumper for CVE-2023-21554 and modified the target IP address. Notably, artifacts indicate with high confidence that an LLM was used to interpret the proof of concept and assist in producing the Python scripts, ultimately transmitting three weaponized binary packets to the MSMQ service on TCP port 1801. Following this exploitation attempt, the actor initiated a targeted RDP brute force campaign driven by a custom generated password dictionary. In parallel, Talos observed the threat actor deploying an SMB capture server designed to intercept NTLM hashes from SSRF triggered connections. However, because this specific attack vector failed to successfully compromise the target server, UAT-10147 ultimately abandoned this operational path.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 15. One of the operational Python scripts. 

In the second phase of the campaign, UAT-10147 systematically targeted the victim's web interface infrastructure, specifically focusing on the exam, management, and main entry portals. Recognizing that these interfaces relied on disparate underlying web applications, the threat actor deployed highly tailored attack vectors to achieve compromise or remote shell access: 

  • Exam Portal: The actor executed a targeted brute force attack against the OAuth2 “/api/oauth/token endpoint”, iterating through 22 organization specific passwords across four administrative accounts. Notably, they utilized AI to dynamically generate 13 distinct rate limiting strategies designed to bypass existing CAPTCHA mechanisms. 
  • Management API Portal: UAT-10147 launched a sophisticated barrage of application layer attacks against this interface. Observed tactics, techniques, and procedures (TTPs) included the evaluation covered several JWT related attacks, including brute forcing testing of 800 candidate secrets against HS256 tokens and signature forgery using the “alg:none” header. It also included SMTP configuration hijacking to intercept password reset tokens and mass assignment attempts to inject “Roles=['Admin']”. Finally, the evaluation included MSSQL xp_cmdshell injections, Newtonsoft.Json TypeNameHandling deserialization attacks, and XML External Entity(XXE) attacks targeting local file disclosure, such as access to “file[:]///c[:]/windows/win[.]ini”. 
  • Main Entry Portal: To compromise the primary interface, the actor conducted static analysis of Angular bundles to uncover hardcoded secrets and extracted source maps to recover the underlying TypeScript source code. Following this client-side reconnaissance, they attempted to establish persistent server access by uploading an ASPX web shell via the “/api/file/UploadFile” endpoint.

In the third phase of the attack, the threat actor shifted their focus to the ArcGIS platform. By analyzing file creation times, file names, and script behaviors, we successfully mapped out this AI-assisted attack chain. Forensic evidence from the intrusion window reveals a rapid sequence of events. Four related Python scripts were created or deployed within 15 minutes. The timing, structural similarities, and rapid target specific modifications are consistent with automation or AI-assisted development, although timing evidence alone cannot establish AI involvement.

The first surveyed Portal and Server, the second concentrated on an apparently permissive FeatureServer upload endpoint, the third downloaded two Service Definition packages while testing ways to process uploaded archives, and the fourth reused intelligence exposed by those packages to target named users, workstations, and administrative functions.

Stage 1: Mapping the ArcGIS attack surface (arcgis_attack.py) 

The script “arcgis_attack.py” is the broadest of the four programs and, based on the file name, we have high confidence this is the first stage attack file. It disables TLS certificate verification and wraps requests with a browser like “User-Agent”. The main routine executes administrative credential checks, Portal content reconnaissance, Services Directory enumeration, account lockout checks, PrintingTools SSRF probes, direct file access tests, Zip Slip uploads, and a collection of additional Portal, DataStore, proxy, and FeatureServer requests. 

The code reflects the discovery of the first workflow. Portal sharing APIs are used to enumerate users and content, while Server REST endpoints reveal services and folders. Default or organization of themed credentials are tested against ArcGIS token interfaces. The direct access module requests configuration and directory paths that might disclose internal server state. The other module expands into PublishingTools, DataStore ports, proxy behavior, Portal content uploads, and FeatureServer administration. 

The most technically coherent test in this stage targets the PrintingTools geoprocessing service. ArcGIS PrintingTools accepts Web Map JSON and may retrieve the operational layers and basemaps referenced in that document before rendering an image. The script replaces legitimate layer URLs with three paths on ATTACKER_CALLBACK_HOST, then submits the same basic payload through both synchronous execute and asynchronous “submitJob” interfaces. A separate payload references the server's loopback ArcGIS REST interface, testing whether the print worker can cross the public to internal trust boundary.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 16. PrintingTools SSRF payload code. 

Stage 2: Concentrating on one hosted feature service (arcgis_zipslip_deep.py) 

The second Python script, “arcgis_zipslip_deep.py”, was created three minutes and 14 seconds later and narrows the vulnerability disclosure to:

/server/rest/services/Hosted/[Marked]/FeatureServer

The program first uploads a benign marker archive and non-ZIP files to determine accepted formats and collect an ArcGIS upload itemID. It then generates 15 traversal variants aimed at likely Windows and ArcGIS locations, including IIS wwwroot, Tomcat web applications, arcgisoutput, arcgisjobs, arcgiscache, arcgissystem, and temporary directories. Every embedded ASPX or JSP file returns to a unique runtime marker. After uploading, the script requests nine candidate public paths and classifies a web shell only if the marker is present in the response.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 17. Zip Slip upload function. 

The remainder of the script broadens around the same service. First, it checks service administration methods exposed without authorization. Second, it lists ArcGIS services, Feature Service items, and owners to check any other additional GIS assets and users are available. It also probes common ArcGIS administration and data ports on GIS_BACKEND_IP to check any backing ArcGIS infrastructure directly reachable. Last but not least, it sends attacker URLs to importData and analyze in order to check the portal to retrieve a remote source or process supplied spatial content.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 18. Checking service administration methods. 
Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 19. Lists ArcGIS services. 
Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 20. DataStore direct access. 
Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 21. Content importing and using it. 

Stage 3: Confirmed package acquisition amid unconfirmed exploitation (arcgis_phase3.py) 

The third Python script combines nine independent probes. Although they run sequentially, they are not a fully connected exploit chain. A token returned by the credential routine is not passed to later functions,OAuth results are not reused by PublishingTools, and downloaded ArcGIS Service Definition (SD) packages are not programmatically parsed into Stage 4 inputs. The threat actor appears to have reviewed the output manually and created the next script from the findings. 

The first function targets two known Portal items. For each item, the script retrieves Portal metadata, requests “/content/items/{itemID}/data”, writes any HTTP 200 response larger than 100 bytes to “/tmp/sd_<prefix>.sd”, and then requests the item's thumbnail, metadata, and iteminfo.xml. The two files were created 15 and 21 seconds after the script timestamp, with filenames matching the hardcoded item identifiers.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 22. Service Definition acquisition. 

The larger SD archive contains over 150 individual files. Forensic analysis of a separately extracted directory containing the extracted SD contents confirms that the attacker extracted this archive byte-for-byte, leaving only standard operating system metadata and directory indexes behind. This package exposed a wealth of sensitive internal information, which provided the attacker with valuable intelligence. The exposed data includes: 

  • User and system details: Windows usernames, workstation names, and publisher information 
  • Infrastructure data: Portal URLs, ArcGIS service metadata, and local file paths (including the user's ArcGIS Pro staging directory) 
  • GIS assets: Geodatabase and feature class names, database schemas, map documents, and the actual GIS content

The second function uploads a minimal Shapefile ZIP. If ArcGIS returns an “itemID”, the program calls layer 0's applyEdits method to add a point and associate the upload with an existing parent object. The function then uploads a second archive containing data.txt and a traversal entry aimed at IIS wwwroot. It sends the returned item ID to four guessed processing operations: commit, register, publish, and addToDefinition.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 23. Upload, then register chain. 

The third function is a legacy interface enumeration. It will request the configured REST directory names arcgisoutput, arcgisjobs, arcgiscache, arcgissystem, and arcgisuploads, then test output directories associated with named services. This reconnaissance supports the earlier Zip Slip hypothesis by identifying potentially web-accessible landing locations.

The fourth function is named soap_exploitation() and retrieves the server WSDL, checks for GetServiceDescriptions, submits a basic SOAP call for that operation, and requests WSDL documents for three named services. There is no XXE, unsafe deserialization, or state changing SOAP payload in the routine.

The fifth and sixth functions are admin brute force, and OAuth and token manipulation. The credential routine performs low-delay password guessing against Server token endpoints using siteadmin, admin, arcgis, and publisher, with organization-themed and common passwords. The OAuth routine guesses common ArcGIS OAuth client IDs and supplies an attacker-controlled callback URL as the redirect destination, apparently testing whether Portal would accept an unauthorized redirect URI.

The final function requests “System/PublishingTools/GPServer” through raw, encoded, and double-encoded relative paths derived from the hosted FeatureServer URL, and also tests an empty token= parameter.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 24. PublishingTools exploit function. 

Stage 4: Applying intelligence from the SD package (arcgis_phase4.py) 

The fourth Python script shows that the threat actor converted package-derived intelligence into target specific hypotheses rather than continuing with a generic dictionary alone. The script adds “GIS_USER” and “PUBLISHER” to Server and Portal password spraying lists, alongside organization themed, service themed and publisher account patterns. Password candidates combine organization names, publication years, account names, and common defaults.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 25. Credential brute force with new usernames and password. 

We also observed the threat actor actively weaponizing the intelligence gathered from the SD files. Using the extracted usernames and enumerated passwords, the attacker attempted to reset account passwords and upload attachments to the system. Beyond credential abuse, the scripts aggressively probed the environment for further weaknesses. Specifically, the tools were designed to test multiple attack vectors, including known n-day exploits, internal access exploits, and FeatureServer Data URL SSRF attacks.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 26. Stage 4 main function. 

RSA-512 factorization and key recovery attempt 

Talos also observed UAT-10147 attempting to recover a private key in this campaign. The factorization artifacts indicate a deliberate effort to derive the private key associated with a 512-bit RSA public modulus, rather than an unrelated collection of mathematical tools. The workflow progressed from a custom Python pre-testing script to established factorization software, culminating in a long-running CADO-NFS General Number Field Sieve (GNFS) operation. The objective was clear:

  • “factor_rsa.py” defines the same modulus with public exponent e=65537, and on success it would compute p, q, phi(n), and the private exponent d.
Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 27. A custom Python pre-testing script “factor_rsa.py”. 

Forensic evidence points to a unified, escalating attack chain. Key indicators include the consistent use of the same decimal or hexadecimal modulus across all major tools, alongside tightly correlated execution timestamps. Notably, the automated progression was interrupted when the YAFU tool failed due to the siever binary lacking execute permissions. Together, these artifacts provide medium confidence that the threat actor is utilizing AI to automate this operational chain. The work chain is shown below.

RSA public parameters: n, e=65537 

  • factor_rsa.py 
    • Custom Pollard p-1 and ECM-like pre-tests 
    • Success path computes p, q, phi(n), d 
  • GMP-ECM 
    • P-1, P+1, and 100 ECM curves at high bounds 
  • Msieve 
    • Quadratic sieve started from worktodo.ini 
    • 1,917 relation records observed, incomplete 
  • YAFU/GNFS 
    • Pretests and polynomial selection 
    • Stopped because the siever lacked execute permission 
  • CADO-NFS 
    • Main GNFS effort with resumable database, parameter snapshot, and client logs

While the initial custom script serves as evidence of the threat actor's intent, it lacks the reliability of a mature factoring implementation. Its Pollard's $p-1$ stage 2 and Elliptic Curve Method (ECM)-like logic are suboptimal compared to established standards. To compensate for these deficiencies, the operator transitioned to GMP-ECM; however, execution of $P-1$, $P+1$, and 100 ECM curves concluded without successfully recovering a factor. Subsequent attempts utilizing Msieve yielded only a small, incomplete relation set, and the YAFU tool progressed to the General Number Field Sieve (GNFS) setup phase before terminating due to a missing execute bit on the gnfs-lasieve4I14e binary.

The core of the operation relied on CADO-NFS, which executed for nearly ten days and successfully reached the lattice sieving stage. However, the process failed to advance to the subsequent phases of filtering, merging, linear algebra, square root calculation, or factor recovery.

The exact point of failure is well documented: On May 9, 2026, at 02:31:21, the last lattice sieving subprocess (handling the $q$-range of 12,420,000 to 12,440,000) terminated with exit code “-9”, failing to generate the expected output file. This triggered a FileNotFoundError, leading to a local client crash and subsequent server shutdown. While exit code “-9” strongly indicates a SIGKILL signal, available forensic evidence is insufficient to determine whether this was triggered by the Out-Of-Memory (OOM) killer, manual intervention, or another operating system level mechanism.

Countering AI with AI: Reconstructing UAT-10147’s observed operational attack chain
Figure 28. Factor recovery failure log. 

From an impact perspective, all observed attack attempts were initiated by the threat actor through instructions to the LLM. None succeeded within the scope of the observed dataset; no prime factors, private exponents, private keys, forged signatures, or decrypted materials were recovered. Nevertheless, the residual artifacts including the CADO-NFS database, parameter snapshots, relation files, and client logs constitute a fully resumable attack state.

Coverage 

The following SNORT® rules (SIDs) detect and block this threat: 

Snort2:

22063, 22064, 22097, 30790–30793, 50137, 51486–51489, 52123, 55778, 56200–56203, 57241–57246, 57872, 57906–57909, 57931, 57983, 58093, 58094, 58722–58744, 58801, 59298, 59299, 59388, 59416, 59925–59934, 59941, 59947, 59948, 60241, 60242, 60637–60642, 60670–60678, 61042, 61194, 61195, 61501, 61502, 61940, 61941, 62109, 62110, 62241, 62242, 62342, 62496–62501, 62506, 62507, 62623, 62629, 62640, 62834–62836, 62844, 62869–62871, 63403–63406, 63598, 63836, 63940, 63941, 64374, 66532.

Snort3:

22063, 22064, 22097, 30790–30793, 50137, 51486–51489, 52123, 55778, 56200–56203, 57241–57246, 57872, 57906–57909, 57931, 57983, 58093, 58094, 58801, 59298, 59299, 59388, 59416, 59925–59934, 59941, 59947, 59948, 60241, 60242, 60637–60642, 60670–60678, 61042, 61194, 61501, 61502, 61940, 61941, 62109, 62110, 62241, 62242, 62342, 62496, 62497, 62500, 62501, 62506, 62507, 62623, 62629, 62640, 62834–62836, 62844, 62869, 63598, 63836, 63940, 63941, 64374, 66532, 300055–300058, 300061, 300376–300378, 300724, 300803, 300903, 300904.

Indicators of compromise (IOCs)   

The IOCs can also be found in our GitHub repository here. 



from Cisco Talos Blog https://ift.tt/uS3iOCX
via IFTTT

Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies

Artificial intelligence (AI) company Perplexity has disclosed that its infrastructure was the target of an unsuccessful attack conducted by an autonomous large language model (LLM)-driven agent in late October and early November 2026 with an aim to harvest cloud and AI-service credentials.

"In attempting to breach our systems, the malicious agent rotated through disposable accounts and proxies, tested server-side URL fetching endpoints for SSRF, swept object storage and API paths, and attempted privilege escalation," Perplexity said.

The intrusion was ultimately unsuccessful, with the attacker failing to gain access to internal services, private customer data, or platform secrets despite two weeks of activity. The incident was first flagged by Perplexity Computer, its agent platform, on November 2, 2026.

The suspicious activity involved a "wave of brand-new accounts" that engaged in systematic sweeping of its APIs, sending about 48,000 requests in 13 minutes and over 200 requests per second at its peak.

It also switched to a fresh signup every time per-account rate limits kicked in. In all, the operator cycled through over 40 disposable accounts and roughly 290 residential and cloud proxies. The campaign was orchestrated such that no single account showed the full extent of the probing. The initial set of accounts was created some time between October 24 and 28, 2026.

According to its CEO Aravind Srinivas, these requests spanned 28,000 guessed API routes, tried 3,681 Amazon S3 lookups hunting for files like .env.production and .aws/credentials, and tested its link-fetching features for server-side request forgery (SSRF) flaws that could trick the server into fetching an internal address, such as the Amazon Web Services metadata endpoint (169.254.169[.]254) that hands out cloud credentials.

"When direct internal IPs were blocked, it tried hex and decimal IP encodings, redirect chains, and DNS rebinding (using a domain that resolves to a safe public IP during the initial check, then flips to an internal IP right when the actual request happens)," Srinivas said. "Because our outbound validator resolves and checks the IP at connection time, every attempt failed."

The attacker has also been observed searching object storage to guess common secrets and configuration files, and probing organization and administrative permission endpoints.

Further investigation has uncovered an exposed server ("185.87.121[.]140)") holding live campaign workspaces designed to obtain Amazon Bedrock access to frontier models and target two other companies, whose names were not disclosed. The workspaces held more than 10,000 files, including probing scripts, receiver logs, and extracted assets.

The entire operation was powered by CAIRN, an open-source agent harness and penetration testing tool, allowing the agent to run almost entirely on its own and work toward the objective of gaining AWS credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock.

Notably, the agent conducted host and web asset discovery; scanned public repositories, Gists, commit history, and unreachable git objects; unpacked published npm and PyPI releases; and searched connectors, MCP interfaces, secret stores, and compute workloads for cloud credentials.

Some of the specific actions taken by the agent are listed below -

  • When curl commands were blocked, the agent switched to Playwright/Chromium to fetch JavaScript bundles and OpenAPI schemas and used mitmproxy to inspect client runtime traffic.
  • After some tasks were marked as a "dead end" (e.g., a GitHub code search that required authentication), the agent opened three parallel tasks within 25 minutes, one to find a token and two to mine alternative public sources, and looped back to the original search once it found a token.

"None of the campaigns reached that goal," Srinivas said. "Against Perplexity, the agent came away with nothing. At the other two companies, it did get deeper footholds via a live customer OAuth credential left in deleted git history at one, and an exposed management API on a demo environment at the other."

Against one of the companies, the attacker found a live customer OAuth credential in deleted git history, took administrative control of that customer's workspace, and ran code on managed compute.

"From there, it reached internal endpoints behind IP allowlists, captured a stored Git token, and obtained short-lived AWS workload credentials that lacked permissions to invoke Bedrock," Perplexity said.

In the campaign targeting the second company, the agent logged into an exposed management API on a demo environment and deployed a persistent command runner, ultimately leveraging the foothold to collect local password stores, Kubernetes secrets, and EC2 instance-role credentials. Attempts to invoke models through the company's Bedrock proxy were rejected.

The findings once again demonstrate how agentic attacks can be resilient, tireless, and adaptive in the face of failures in their single-minded pursuit of the end goals.

"One prompt can turn into hundreds of parallel tasks that route around failed checks on their own," Srinivas said. "Strong baseline security is still what decides day-one outcomes: connection-time URL validation, strict authorization, and cleaning up deleted git history or exposed demo environments."



from The Hacker News https://ift.tt/CB5afvT
via IFTTT

Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication

JetBrains on Wednesday disclosed a critical security flaw impacting on-premises versions of TeamCity that could be exploited to bypass authentication and take over authorized build agents.

The vulnerability, tracked as CVE-2026-136858, carries a CVSS score of 9.1 out of a maximum of 10.0.

"If exploited, this vulnerability may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent," JetBrains said in an alert. "An attacker could intercept builds, access build secrets, and tamper with build results and artifacts."

"A successful exploitation could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent. An attacker could also falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could execute attacker-supplied code."

The attacker does not require authentication or a TeamCity user account, the company said.

All TeamCity On-Premises versions are vulnerable to the flaw. It has been patched in versions 2026.1.7, 2026.2.3, and 2026.3.

Customers are recommended to update their servers to one of the patched versions. JetBrains has also made a security patch plugin available for those who are unable to apply the update without restarting the TeamCity server. The plugin is available for TeamCity 2021.2 or later. No action is required for TeamCity Cloud users.

As additional mitigation, the company is advising that users configure their reverse proxy to allow requests to /app/agents and its subpaths only from IP addresses where they expect legitimate build agents to originate. "Include the outbound addresses used by cloud agents and any NAT gateways they connect through," it noted.

JetBrains also noted that there is no evidence of active exploitation of the flaw. It credited security researcher Jiawei Guo for responsibly disclosing the issue on November 24, 2026.

The disclosure comes nearly four months after another critical vulnerability in the same product (CVE-2026-63077, CVSS score: 9.8), was weaponized in real-world attacks, according to the U.S. Cybersecurity and Infrastructure Security Agency (CISA).



from The Hacker News https://ift.tt/eILolHC
via IFTTT

Iran-Linked Hackers Escalate Campaign Targeting U.S. and U.K. Water and Energy Systems

A pro-Iranian group has been linked to a "sustained campaign" targeting internet-exposed industrial control systems (ICS) spanning water, wastewater, and energy organizations in the U.S. and the U.K.

The activity has been attributed to a temporary state-backed threat cluster Palo Alto Networks Unit 42 tracks as TGR-STA-1128, which is also known as Bauxite, Cyber Av3ngers, GreenJuliett, Hydro Kitten, Shahid Kaveh Group, and UNC5691. The hacking group has a history of targeting critical infrastructure organizations since 2023.

"Unlike earlier TGR-STA-1128 operations, recent threat activity marks a significant escalation from late-2023 opportunistic attacks that posted splash-screen defacements of OT systems with an ideological message," the cybersecurity company said.

"The actor now employs a methodical, multi-vendor campaign targeting internet-exposed devices across major manufacturers."

The Shahid Kaveh Cyber Group, according to DomainTools Investigations (DTI), is an elite offensive cyber unit that operates under Iran's Islamic Revolutionary Guard Corps (IRGC), with Intelligence Group 13 serving as the "operational spearhead" that's centered around disrupting critical infrastructure and engaging in psychological warfare through covert digital operations.

Cyber Aveng3rs functions as this psychological warfare and influence operations extension, publicizing and amplifying the impact of the Intelligence Group 13's operations through social media accounts and Telegram channels.

"Cyber Aveng3rs publishes defacement screenshots, malware control panel captures, and operational taunts directed at Western and Israeli infrastructure targets," DTI said. "These narratives are often laced with religious-nationalist motifs, martyr quotes, and anti-Zionist rhetoric, reinforcing the IRGC's ideological messaging."

Rather being merely reactive, the group also issues pre-attack warnings, disseminates screenshots and leaks, and threatens future campaigns.

As recently as October 2026, the threat actor has been implicated for its attacks on hundreds of supermarkets in France, manipulating poorly secured refrigeration controllers to tamper with temperature controls and force units into continuous heating and defrost cycles with an aim to damage food inventories.

"Separate Iranian-language commentary portrayed the incident as evidence of European infrastructure vulnerability and warned of potential attacks against European infrastructure in the event of direct or indirect participation in military action against Iran," DTI said.

The latest analysis from Unit 42 shows that TGR-STA-1128 has transitioned from a single vendor into multi-vendor industrial control system tooling over an 18-month period from February 2025 to August 2026. The attacks have been primarily found to connect to exposed programmable logic controllers (PLCs) using legitimate industrial communication protocols to fly under the radar.

Once connected to the PLCs, the actor can perform a wide range of malicious activities, such as extracting device project files; modifying and deleting the project logic, including add-on instructions (AOIs); and manipulating the values presented on human-machine interfaces (HMIs) as well as supervisory control and data acquisition (SCADA) displays.

"TGR-STA-1128 activity reveals a structured, multi-tier infrastructure footprint across servers leased from European VPS providers," Unit 42 said.

"The adversary uses leased European VPS hosting to stage operations while directing multi-protocol scanning, enumeration and interference. They run this against critical infrastructure, government and academic networks in North America, Europe and the Asia-Pacific region."

Over time, the threat actor is said to have conducted wide-scale network scanning and active Common Industrial Protocol (CIP) transactions against real-world infrastructure, specifically focusing on U .S. state and local government, healthcare and higher education sectors.

Between March and July 2026, TGR-STA-1128 has also been found to set up a dedicated engineering workstation ("141.11.164[.]153") on which it progressively deployed industrial capabilities, including an OPC Foundation discovery server, a commercially available administration console; and EtherNet/IP stack, and a SCADA gateway.

"This group's systematic capability expansion demonstrates a strategic effort to target critical infrastructure regardless of the underlying vendor ecosystem," Unit 42 concluded. "Their operational strategy includes automated disk-image cloning, pre-positioning replacement VPS clusters months in advance and misusing legitimate vendor software to bypass traditional endpoint security."

The disclosure comes as Recorded Future Insikt Group revealed that GreenJuliett has begun incorporating artificial intelligence (AI) into its operational technology (OT) attack chain, adding that infrastructure linked to the adversary has carried out scanning, or attempted exploitation of, Fortinet FortiGate firewalls in Bahrain, Israel, Jordan, Kuwait, Saudi Arabia, and Qatar.

GreenJuliett is assessed to use AI as an assistant, mainly leaning on the technology to find exposed devices, test credentials, and write scripts. Furthermore, infrastructure believed to be used by GreenJuliett-linked operators has been used to host a LiteLLM configuration, while also communicating with servers hosting Anthropic's Claude via an anonymization network.

"Our network data suggests the group is also working to add internet-of-things (IoT) and CCTV devices to its list," Recorded Future said. "AI shortens the time it takes to identify vulnerable device types and write targeting scripts, and GreenJuliett has moved it from individual accounts into its operating environment."



from The Hacker News https://ift.tt/wejsUfu
via IFTTT

Wednesday, December 2, 2026

Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor

As of November 9, 2026, Microsoft Threat Intelligence investigated a software supply chain compromise affecting Q-Dir and DesktopOK, applications developed by SoftwareOK. Microsoft identified that threat actors tampered with installers and updaters for these two third-party utilities on the vendor’s official SoftwareOK download and update channel, so users who followed normal, trusted update practices were exposed.

The altered files launch the legitimate application as cover while silently installing DeviceSync, a Python-based remote access trojan (RAT). Microsoft Defender investigations identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for system discovery and searches for AI and machine-learning software. On some devices, attackers also deployed a separate native backdoor that maintained its own C2 connections and supported plugin execution, extending the intrusion beyond the Python agent.

Organizations should remove affected packages from deployment paths, isolate devices on which the backdoor ran, remove the persistence mechanisms, and investigate the later native payload separately. Closing or replacing the utility does not remove the threat, due to persistence techniques allowing the backdoor to relaunch during Windows sign-in. Effective recovery requires removing the RAT and its startup entry, checking for the second backdoor, and replacing tampered packages in any software distribution system that could reinstall them.

Activity Overview

How the utilities reach Windows devices

SoftwareOK distributes Windows utilities, including Q-Dir, a file manager, and DesktopOK, which saves and restores desktop icon layouts. Users can run the utilities from downloaded installers or portable packages. Organizations also distribute them through package managers and software-deployment systems; existing Q-Dir installations have their own update path.

The attack added another execution path to the utility package. The outer installer launched a separate runtime and backdoor while the expected application remained available to the user. The application and installer are distinct files: a publisher signature on an embedded utility does not authenticate the surrounding installer or the components it downloads.

Initial access through tampered software packages

Microsoft observed execution after a package-manager updates to Q-Dir 12.83.0. An older Q-Dir installation also launched an updater that retrieved the tampered build. Portable copies ran from synchronized folders, repositories, and file shares, extending distribution beyond the original download location.

The same tampered Q-Dir binary appeared under several filenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across deployment locations by file hash, and check the signature of the file that actually runs instead of trusting its name or displayed publisher.

In the managed-deployment path, the package ran silently without an additional user prompt. These observations establish installer execution as the endpoint entry point; they do not establish separate compromises of the package manager, deployment service, or storage provider. The observed distribution is consistent with a compromised software-supply path; the specific upstream modification mechanism remains unconfirmed.

Attribution

Microsoft has not attributed this activity to a named threat actor. This assessment is based on the malware, infrastructure, and operator behavior observed in this campaign.

Attack chain overview

Figure 1. The installer opens the genuine utility and deploys a Python RAT. Startup entries restart the agent at sign-in. On some devices, operators deploy a separate backdoor that connects to its own command server and runs native plugins.

Technical analysis

Stage 1: The installer sets up a separate backdoor

The installer copied itself to the public user profile and could launch the genuine utility. A dedicated setup component retrieved 7zr.exe, a legitimate reduced command-line extractor from the 7-Zip project, and a .7z archive containing a 64-bit Python 3.9 runtime and the backdoor scripts. The download logic used an IP-based location and a domain-based fallback.

Setup extracted the package under C:\ProgramData\Microsoft\DeviceSync\b2. The b2 package started py_client_b2_dll.py with python.exe; the later dsv2 package used pythonw.exe to start py_client_dsv2.py without a console window. Both packages carried the same primary agent code. Including the interpreter made installation independent of the device’s existing Python environment.

The recovered installer logic also handled incomplete downloads and upgrades. It supported resumable archive transfers, stopped older Python instances associated with the installation directory, and checked a client startup log after launch. These routines supported replacing an existing agent as well as installing a new one.

Persistence was established outside the utility. Campaign activity included a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged interpreter at sign-in, so closing or removing Q-Dir or DesktopOK did not remove the Python RAT.

Stage 2: The Python RAT gives operators a shell

The Python RAT launched from the extracted DeviceSync package identifies itself as VmBaseTool 5.17.6. Microsoft observed operators use the agent for system discovery and to launch a separate native backdoor. Analysis of the recovered client also identified support for file operations, screenshots, Python extensions, and network relays. The presence of those functions in the code does not establish that operators used them.

Registering the device and receiving commands

The client first sends its version, authentication data, and a device record containing operating-system information, account and computer names, the local IP address, and the running interpreter. A stored installation identifier lets the server recognize the client after a restart. The server returns a token, which the client uses to authenticate a second connection for commands and replies.

The client connected to a WebSocket endpoint on Transmission Control Protocol (TCP) port 9876 using ws://. The recovered code applied Advanced Encryption Standard in Galois/Counter Mode (AES-GCM) to application messages, but the transport itself was not protected by Transport Layer Security (TLS). Microsoft also observed TCP connections to 8[.]210[.]69[.]51:9092, including events with the /ws path. The receive loop decrypts incoming messages and routes command requests separately from interactive-terminal and tunnel traffic. Microsoft also observed TCP connections on port 9092.

Figure 2. Through its authenticated command session, the Python client decrypts incoming requests, selects a handler, and returns results. Relay requests also open a connection from the affected device to an operator-selected destination.

Each command contains an operation name, arguments, and a request identifier. The dispatcher maps names such as terminal.exec, plugin.exec, and screen.shot to their handlers. Replies carry the same identifier, allowing the server to associate results with the request.

Executing shell commands and additional Python

The terminal.exec handler passes a server-supplied command to cmd.exe, captures standard output and error output, and returns the result through the command channel. Windows startup flags suppress the child process’s console window. A separate task interface supports longer-running commands: it assigns a task ID, buffers output, records the exit code, and lets the operator retrieve status and output later.

Figure 3. Selected Python excerpts show the request fields, handler dispatch, and shell execution. The shell handler captures command output and uses the client’s hidden-window startup settings.

The plugin.exec handler accepts Python source and parameters from the server. In the recovered script-based package, it starts a child Python interpreter, supplies the requested source through standard input, and captures the child’s output. A related asynchronous handler tracks longer-running Python tasks. This lets operators run additional code without replacing the installed client.

Figure 4. The Python extension handler accepts source and parameters, builds the child-interpreter request, and captures its output. The runner shown is the script-based execution path. These excerpts are separate from the native plugin mechanism used in stage 3.

Accessing files, the desktop, and network services

File handlers browse directories, read selected files, write supplied content, and delete files or folders. Chunked transfers accept a path, offset, and length, allowing the operator to retrieve or update a file in portions. Another handler downloads content from a URL supplied with the command and writes it to a selected local path.

For screenshots, the client copies desktop pixels through Windows graphics APIs, encodes the image as JPEG, and returns it in a command reply. File contents and images are base64-encoded for transport inside the encrypted messages; base64 itself is not encryption.

Figure 5. The file handler reads a requested byte range, while the screenshot handler returns a JPEG in its response. Both package the collected bytes as base64 within the client’s command-response channel.

The relay handler connects to a host and TCP or User Datagram Protocol (UDP) port specified by the operator. It forwards data between that connection and the command channel, using a session identifier to distinguish relay traffic. The destination connection originates from the affected device; the recovered capability does not, by itself, establish lateral movement.

The client also supports file and directory transfers through the MinIO object-storage library. Requests supply the storage endpoint, bucket, credentials, and local path. A separate security-product discovery handler matches running process names against an embedded list; it inventories products rather than disabling them. Microsoft observed both DeviceSync agent variants listening on 127.0.0.1:3660. This was a local health-check listener, not an external command server. When investigating a listener event, verify that the initiating Python process ran from the staged DeviceSync directory.

Observed reconnaissance and the handoff to another backdoor

After DeviceSync agent registration, Microsoft observed commands that queried the Windows version, user and group context, desktop location, and network configuration. Endpoint telemetry showed the bundled DeviceSync Python runtime launch cmd.exe with commands including ver, whoami /groups, and ipconfig /all. A process-list check searched for ToDesk after the Python shell was already available; this was discovery of a remote-desktop application, not evidence that ToDesk provided initial access.

A subsequent PowerShell task searched Python’s site-packages directories for AI and machine-learning tools. Search terms included ollama and vllm for model runtimes, langchain and llama_index for application frameworks, and mlflow for machine-learning workflows. The command inventoried installed software; it does not establish collection of models or training data.

Stage 3: A separate backdoor runs native plugins

After the Python RAT was active, Microsoft observed PowerShell launch C:\Temp\winhost.exe. The executable connected to 8[.]210[.]203[.]136:443 from multiple devices over several days.

A separate native payload, C:\Users\Public\backgroundTask.exe, connected to the campaign C2 at 47[.]239[.]64[.]37 on TCP ports 7006 and 7007 and to 8[.]210[.]20[.]147:443. Both native payloads made network connections independently of the DeviceSync Python agent. Microsoft observed activity from the native payloads over multiple days.

PowerShell tasking checked the new process ID and whether a native payload was still running. Microsoft also observed C:\Users\Public\backgroundTaskHost.exe being created on disk.

The recovered winhost.exe and backgroundTask.exe samples resolve Windows APIs at runtime, copy an embedded buffer into allocated memory, and mark that memory executable. Each launcher then runs the embedded payload in a thread within its own process.

Separating command and control from plugin execution

The main backdoor process holds the command-server connection. To run a native plugin, it starts a short-lived child whose name begins with KKKD.PluginHost. The parent and child exchange modules, commands, and results over a named pipe, a local communication channel between processes. The child loads the supplied module into its own memory and returns the result to the parent.

Figure 6. The native backdoor maintains the external command connection and delegates plugin execution to a child process. Modules, commands, and results pass through a local named pipe, rather than the Python extension interface.

The worker implements a loader for Windows executable images. It maps the image into memory, resolves imports, initializes the module, and locates plugin interface functions such as Plugin_Execute. When a command arrives, the worker invokes that function with the input buffer and copies the returned output into its response.

Figure 7. Reconstructed native pseudocode shows a worker locating a loaded plugin’s execution entry, passing command input, and copying the returned output.

plugin-1001: public-IP discovery

Microsoft observed plugin-1001 launch cmd.exe, which in turn ran curl.exe and nslookup.exe to determine the device’s public IPv4 address. The shell used the marker __KKKD_PUBIP__.

plugin-1009: worker and named-pipe activity

Both winhost.exe and backgroundTask.exe repeatedly launched workers with the group argument master#plugin-1009. Each observed launch specified a dynamically named pipe, and pipe-open events for some instances confirmed that the worker opened the pipe as a client.

Mitigation and protection guidance

Prioritize stopping redistribution, containing active access, and removing both payload stages. Apply the following actions to affected packages and devices.

Prevent redistribution and unapproved execution

  • Withdraw affected installers and portable packages from deployment shares, internal mirrors, package-manager caches, synchronized folders, and update workflows. Validate replacement packages against a separately trusted release before resuming distribution. Check the outer file that will run, not only the utility extracted from it.
  • Use App Control for Business to restrict unapproved installers and interpreters, including portable runtimes in writable locations. Test the policy against legitimate deployment and development workflows. Allowing a Python interpreter does not, by itself, restrict the scripts it runs; App Control does not directly enforce script policy inside unenlightened third-party Python hosts.
  • Keep Microsoft Defender Antivirus security intelligence current and enable cloud-delivered protection and tamper protection. Where a non-Microsoft antivirus product is primary, evaluate endpoint detection and response (EDR) in block mode for eligible devices with Defender Antivirus available and cloud protection enabled.

Detect and contain established access

  • Use the hunting queries below to identify the packaged interpreter, its startup entries, connections to campaign infrastructure, and native plugin workers. Investigate related process trees and alerts even when the installer itself was prevented or quarantined.
  • Isolate devices with confirmed backdoor execution using Microsoft Defender for Endpoint or an equivalent containment control. Preserve the installer hash, process lineage, task definition, Run-value data, and process-attributed connections for scoping. Block confirmed malicious files and destinations through the appropriate endpoint and network controls.

Remove persistence and verify recovery

  • Remediate the Python package and its associated Run value or scheduled task. Investigate and remove the native backdoor and plugin workers separately; reinstalling Q-Dir or DesktopOK does not remove either malicious component. Rebuild affected devices from a trusted image when their integrity cannot be established.
  • Scope credentials and sessions accessible to the compromised identity. Where exposure is established, revoke sessions and rotate affected credentials from a clean system, then review the corresponding service activity.
  • Before releasing containment, verify that both backdoors and their startup entries have been removed. During a controlled restart or sign-in under incident-response supervision, check for renewed interpreter launches, plugin workers, and command-server connections. Restore software distribution only from validated replacement packages.

Microsoft Defender XDR detections

Microsoft Defender Antivirus and Microsoft Defender for Endpoint may generate the detections and alerts listed below when associated files or behaviors are observed. Detection availability can vary by product configuration, platform, and security-intelligence version. Investigate alerts together with process lineage, persistence, and network telemetry.

TacticObserved activityMicrosoft Defender coverage
Initial access / ExecutionAn update or download delivers a trojanized Q-Dir or DesktopOK installer.Microsoft Defender Antivirus
– Trojan:Win64/GlassWorm.DB!MTB

Microsoft Defender for Endpoint
– Possible initial access from an emerging threat
ExecutionThe installer retrieves an archive containing the Python runtime and backdoor script.Microsoft Defender Antivirus
– Trojan:Python/VmBaseTool.MA!MTB
– Trojan:Python/Multiverze!rfn
– Trojan:Win64/GlassWorm.DC!MTB
– Trojan:Win64/GlassWorm.DD!MTB

Microsoft Defender for Endpoint
– Possible remote access tool activity
PersistenceA Run value or scheduled task starts the packaged Python interpreter at sign-in.Microsoft Defender for Endpoint
– Anomaly detected in Auto-Start Extensibility Point (ASEP) registry
– Suspicious scheduled task
– Suspicious Task Scheduler activity
– Suspicious Scheduled Task Process Launched
Defense evasionFiles use system-like names or appear in a Run key.Microsoft Defender for Endpoint
– ‘MasqueradingFile’ malware was prevented
Command and controlA later-stage backdoor connects to its own command server. The detection listed here applies to the executable.Microsoft Defender for Endpoint
– Command and Control behavior was blocked
– Network Protection blocked a potential C2 connection

Advanced hunting queries

Run each query separately in Microsoft Defender XDR advanced hunting. These examples use Defender for Endpoint tables and a 30-day lookback; adjust the time range to the investigation and available retention. Interpret results alongside the device timeline and related alerts.

Find the Python RAT running from its bundled interpreter

Matches the known installation path and agent script, including console and windowless Python launches. A result identifies agent execution; inspect child processes and subsequent connections to determine what followed.

DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName in~ ("python.exe", "pythonw.exe") 
| where FolderPath contains @"\DeviceSync\b2\py39" 
| where ProcessCommandLine contains "py_client_b2_dll.py" 
    or ProcessCommandLine contains "py_client_dsv2.py" 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, ReportId

Find the backdoor’s Run value or scheduled task

Finds the two documented persistence paths in one query. Review the stored command or task action and the writing process. Registration identifies a startup mechanism; correlate it with process events to establish whether it ran.

union DeviceRegistryEvents, DeviceEvents 
| where Timestamp > ago(30d) 
| where (ActionType == "RegistryValueSet" 
    and RegistryKey endswith @"\Software\Microsoft\Windows\CurrentVersion\Run" 
    and RegistryValueName =~ "DeviceSyncUpdate_b2") 
    or (ActionType in ("ScheduledTaskCreated", "ScheduledTaskUpdated") 
    and AdditionalFields contains "MicrosoftEdge_dcntel") 
| project Timestamp, DeviceId, DeviceName, ActionType, RegistryValueData, 
          AdditionalFields, InitiatingProcessFileName, ReportId

Find AI-software discovery from the staged interpreter

Finds readable package searches in command shells or PowerShell launched by the bundled Python runtime. Including cmd.exe captures a shell that invokes PowerShell. Review the full command and descendants; the search is a reconnaissance signal, not proof of data collection.

DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") 
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe") 
| where InitiatingProcessFolderPath contains @"\DeviceSync\b2" 
| where ProcessCommandLine contains "site-packages" 
| where ProcessCommandLine has_any 
    ("ollama", "vllm", "langchain", "llama_index", "mlflow") 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, InitiatingProcessFolderPath, ReportId

Find successful connections to campaign command servers

Matches documented destinations and ports, including IPv4-mapped IPv6 addresses. Use the initiating process, path, hash, and timestamp to distinguish installer activity from Python and native backdoor connections. If the event is attributed to a proxy or intermediary, corroborate the original process before assigning it to the campaign. A successful connection alone doesn’t establish command execution or data transfer.

DeviceNetworkEvents 
| where Timestamp > ago(30d) and ActionType == "ConnectionSuccess" 
| where (RemoteIP == "8.210.69.51" and RemotePort in (9876, 9092)) 
    or (RemoteIP == "47.238.130.37" and RemotePort == 443) 
    or (RemoteIP == "8.210.203.136" and RemotePort == 443) 
    or (RemoteIP == "47.239.64.37" and RemotePort in (7006, 7007)) 
    or (RemoteIP == "8.210.20.147" and RemotePort == 443) 
| project Timestamp, DeviceId, DeviceName, InitiatingProcessFileName, 
          InitiatingProcessFolderPath, RemoteIP, RemotePort, ReportId

Find native plugin workers and their parent processes

Matches the worker-name prefix and plugin-host arguments without depending on changing process IDs in the filename. Pivot to the parent process and its network activity. A worker launch identifies plugin execution infrastructure, not the purpose of an unidentified plugin.

DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName startswith "KKKD.PluginHost." 
| where ProcessCommandLine contains "--plugin-host" 
    and ProcessCommandLine contains "--pipe" 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, InitiatingProcessId, ReportId

MITRE ATT&CK techniques observed

TacticObserved technique and campaign example
Initial accessT1195.002 – Compromise Software Supply Chain: tampered utilities reached devices through normal distribution and update paths.
ExecutionT1059.006 / .001 / .003 – Python, PowerShell, and Windows Command Shell: the bundled agent and its operator-launched children.
PersistenceT1547.001 / T1053.005 – Registry Run Keys and Scheduled Task: two observed ways to relaunch the client.
DiscoveryT1518 / T1057 – Software Discovery and Process Discovery: AI/ML package inventory and the ToDesk process check.
Command and controlT1071.001 / T1105 – Web Protocols and Ingress Tool Transfer: the agent’s command channel and the downloaded components.
Inter-process communicationT1559 – Inter-Process Communication: native KKKD controllers and named-pipe workers.

Indicators of compromise

Network indicators are defanged below.

RoleIndicator and context
Delivery URLshxxps[:]//mail[.]c1a2[.]top/dl/7zr[.]exe hxxps[:]//mail[.]c1a2[.]top/dl/dsv2_py39_agent[.]7z
Python agent8[.]210[.]69[.]51:9876 (TCP) – Primary Python command channel. The address also served downloads. TCP 9092 was observed;
Command server47[.]238[.]130[.]37:443 (TCP) – Campaign C2.
Later-stage command server8[.]210[.]203[.]136:443 (TCP) – winhost.exe.
Later-stage command server47[.]239[.]64[.]37:7006 and 47[.]239[.]64[.]37:7007 (TCP) – backgroundTask.exe.
Later-stage command server8[.]210[.]20[.]147:443 (TCP) – backgroundTask.exe.
Other associated servers47[.]238[.]75[.]255 and 47[.]238[.]204[.]139 – Associated with the Python RAT infrastructure.
Domainsmail[.]c1a2[.]top under c1a2[.]top (staging); cloudfronts[.]top (associated infrastructure).

File indicators: trojanized utilities

These SHA-256 values identify the tampered utilities.

UtilitySHA-256
Q-Dir434b67dd403c74752b336fbb4fc94ee3a6fb615168e3fd31baea71d1a356ecd8
Q-Dir8ac6901a941788ab9675a9ec9bebdbc00074cb76f19a7d84c2e1b0ddbcee4f48
Q-Dircf9e2433540d0b8ae8c9f4c9d5f11770343d413c1cfb201c5edae7155f88585a
Q-Dird1a2cf8882c254156848f4a12b6c6837a3cf0e460f876c6f8b00d32a1560640a
Q-Dir7afa1e77c115eaa7798237039fde67c8a69686e7d9a4034a8df54aff2d1a126d
Q-Dir1b7b7947527a05f0fae268b16894440549c2dd512d421a06960e27b5fb1d5fa0
Q-Dirc41bd9eefd7a63fa329b24144a3483abac012ebc11bd5606b6c8295251d46422
Q-Dir551e5744b24019f016f9ee8dd3a2c00429da587b20321abaef55c18c0a655a5d
Q-Dir7524fcf3ffc44fc2e9a53af761c2a308edac31d02df3dfb1a4b57504243aec48
Q-Dirb45ba4a1d9a25116b94e95ef48d63fffda7d77bd358d17d74c7575ce39986b84
DesktopOKee782d990bdeb1d8dd12ad36f1202f8810c63be92a56ad382ba8f117a5c05be3
DesktopOKc12651f2988bb5e05afd1f4b1e6bce618111a4703f1aadc006bfacc6ac7e1d90
DesktopOKf96cab94d9f0e0000dfef8b9fce16bcefd23679443cc8ba8f7811a55ea5799ec
DesktopOK8c172c421129bda890b504e89d1bb72af477be9896b22a576920c050442b4a04
DesktopOK5b43284e48edee4acbab49bc5a68eb21d3a369a058d859689b6a5dd2042a5e2a
DesktopOKbdbbe28cde3dee061536e524bc2a14316015db0c958cad83023790d32a4f8d99
DesktopOK393d2f9f05affa88aaa19f29f041d28fe5c3e1fc2fd84c76d1e2f1aa6da74a83
DesktopOKff4ec1cca4746e33d1205ed434e1e2ac9cee71fec477b032f56d3bde577626d2

File indicators: runtime installers, archives, and backdoors

File / roleSHA-256
dsv2 runtime installer1e94b4d50d9d10e20b509d4606c7ca0b35d35c6d7f0bf24242c4050c238e054d
dsv2 console installerb64997b57f3b9459fef2ba8d5ab5826a72b1532937c8f9104d63c9f5d5266924
b2 agent archiveca512d73d5b91f415342e8dfd98aaacb8125cbd448ef95e784af64ab45705ff6
dsv2 agent archive2035d4fd9474e8f765ea23b16b748018c0001cdd82e68991b768d7d4b654ce55
VmBaseTool Python agent2d382bd5998d06dc6a7ab111c077e4468c6d7694af94933f869976115f8e139c
winhost.exe288ec3ce9379e2f29f246d2fb1286bdf95c4dade99d6b037ead18db35b2a859c
backgroundTask.exebe30ca3f9298487611dd1d689d963665d8a74e494ad22006b6257518acf8ca44
backgroundTaskHost.exe7b4d5c4ab6db6ccdd0a0ad40d4177c85e7c1daa7c58b691303ff9608e8397b6c
KKKD worker / winhostefff67d3ac9fc5f70710c3d915f58c1e9a35ad86a3bc9f716ba72533f13ee1a1
KKKD worker / backgroundTask4b2097d8cbec7d29068111628a7689941c047fcf5478ab0796b9638979c2a535

References

Learn more

For the latest security research from the Microsoft Threat Intelligence community, check out the Microsoft Threat Intelligence Blog.

To get notified about new publications and to join discussions on social media, follow us on LinkedIn, X (formerly Twitter), and Bluesky.

To hear stories and insights from the Microsoft Threat Intelligence community about the ever-evolving threat landscape, listen to the Microsoft Threat Intelligence podcast.

Review our documentation to learn more about our real-time protection capabilities and see how to enable them within your organization.  

The post Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor appeared first on Microsoft Security Blog.



from Microsoft Security Blog https://ift.tt/X4PzkHw
via IFTTT