How a Stealer Arrives on Your PC Through an AI API Key
Right now every other person on the forum is using AI.
Everyone is used to defending against viruses the standard way — don't download sketchy .exe files, stay away from dubious archives etc...
It turns out you can pick up a hard stealer without downloading any software at all — it's enough to change one text line in the settings of an official program. In this thread I'll lay out the whole under-the-hood of this scheme.
Everyone is used to defending against viruses the standard way — don't download sketchy .exe files, stay away from dubious archives etc...
It turns out you can pick up a hard stealer without downloading any software at all — it's enough to change one text line in the settings of an official program. In this thread I'll lay out the whole under-the-hood of this scheme.
Why the deception is genius:
You buy cheap access keys from sellers, download the official console and work straight from the terminal.
Often AI key sellers will get you to do one simple thing: "Bro, just go into the config and replace the standard server address (Base URL) with our mirror / reverse proxy".
An ordinary user thinks it's just a harmless tunnel address that forwards text. But in reality, by changing that line you give the remote server the right to send any responses and commands to your machine. When the software makes its first test request to the AI, the scammers' server returns malicious code instead of a normal model reply. The program runs through the console, often with admin rights, so the hidden virus executes instantly — with no warning from Windows at all.
Often AI key sellers will get you to do one simple thing: "Bro, just go into the config and replace the standard server address (Base URL) with our mirror / reverse proxy".
An ordinary user thinks it's just a harmless tunnel address that forwards text. But in reality, by changing that line you give the remote server the right to send any responses and commands to your machine. When the software makes its first test request to the AI, the scammers' server returns malicious code instead of a normal model reply. The program runs through the console, often with admin rights, so the hidden virus executes instantly — with no warning from Windows at all.
Timeline of the warm-up:
The scammers play a very long game.
On other markets, cheap access to the Claude API was sold for over a month under one brand. The reviews were perfect, everything was fast, the customer base grew, and people completely lost their guard.
Then the domain abruptly changed , and the admins posted: "We're doing maintenance, the Chinese are DDoSing us".
As soon as the service "came back", malware delivery was built straight into it. On the very first API call, a hard multi-stage script flew onto people's computers.
When complaints started arriving, the markets administration, instead of warning people about the stealer, simply deleted the product page quietly to protect its reputation.
The attackers themselves have already changed their shoes: they renamed the old channel to "scam" and launched a new project, with absolutely the same description.
The most important thing: by the same analogy, a fake proxy can be wrapped around absolutely any API — whether ChatGPT or Midjourney.
On other markets, cheap access to the Claude API was sold for over a month under one brand. The reviews were perfect, everything was fast, the customer base grew, and people completely lost their guard.
Then the domain abruptly changed , and the admins posted: "We're doing maintenance, the Chinese are DDoSing us".
As soon as the service "came back", malware delivery was built straight into it. On the very first API call, a hard multi-stage script flew onto people's computers.
When complaints started arriving, the markets administration, instead of warning people about the stealer, simply deleted the product page quietly to protect its reputation.
The attackers themselves have already changed their shoes: they renamed the old channel to "scam" and launched a new project, with absolutely the same description.
The most important thing: by the same analogy, a fake proxy can be wrapped around absolutely any API — whether ChatGPT or Midjourney.
What the virus does to the system under the hood:
This isn't just a small stealer that grabbed files once and closed. It's a full-blown spy that sits completely on your network traffic.
Stage 1: GEO check. The malicious script downloads a hidden ZIP archive (4.2 MB) into a system folder and checks your IP through a third-party service.
Stage 2: The first reboot. So that the built-in Windows Defender doesn't raise alerts when network routes change, replacing everything with en-US. The PC goes into a forced reboot. You'll write it off as a system glitch — but at that moment you're already being broken into.
Stage 3: Total network interception. The computer boots and the virus launches the tun2socks utility. It creates a virtual network adapter and routes ALL internet traffic from your PC through a hacker SOCKS5 proxy. IPv6 is disabled so traffic can't go around it.
What does that mean? Absolutely everything you do online — passwords you type, browser cookie files (logging into accounts without a password), Telegram sessions, Discord tokens, crypto wallet keys and server access — flows to the scammers' panel in real time.
Stage 4: Covering tracks. So that you don't suspect anything, the script completely wipes the command history in the console (Wipe PSReadLine), clears the Windows event logs and disables logging for the future. The PC reboots a second time. Outwardly the system looks clean, but your internet is fully controlled by the hacker.
Stage 1: GEO check. The malicious script downloads a hidden ZIP archive (4.2 MB) into a system folder and checks your IP through a third-party service.
Stage 2: The first reboot. So that the built-in Windows Defender doesn't raise alerts when network routes change, replacing everything with en-US. The PC goes into a forced reboot. You'll write it off as a system glitch — but at that moment you're already being broken into.
Stage 3: Total network interception. The computer boots and the virus launches the tun2socks utility. It creates a virtual network adapter and routes ALL internet traffic from your PC through a hacker SOCKS5 proxy. IPv6 is disabled so traffic can't go around it.
What does that mean? Absolutely everything you do online — passwords you type, browser cookie files (logging into accounts without a password), Telegram sessions, Discord tokens, crypto wallet keys and server access — flows to the scammers' panel in real time.
Stage 4: Covering tracks. So that you don't suspect anything, the script completely wipes the command history in the console (Wipe PSReadLine), clears the Windows event logs and disables logging for the future. The PC reboots a second time. Outwardly the system looks clean, but your internet is fully controlled by the hacker.
How to check, clean and cure the system:
Mac users weren't affected by this attack at all, since the scripts are written strictly for Windows and PowerShell. But if you're on Windows and have been playing with custom API addresses, urgently check your system with this guide.
Open PowerShell as administrator, copy and run this whole block of code. It checks the system against every infection marker and gives a clear verdict: INFECTED or Clean.
Manual check.
If the automatic check came back Clean but you still have doubts, you can check the network and files manually with these two commands:
Full malware removal script.
If the check shows an infection, run this code as administrator. It force-kills the hacker processes, resets the network settings, clears the task scheduler and deletes the virus's hidden files.
Open PowerShell as administrator, copy and run this whole block of code. It checks the system against every infection marker and gives a clear verdict: INFECTED or Clean.
Code:
#Requires -RunAsAdministrator
Write-Host "`n=== AWSTORE MALWARE IOC SCAN ===" -ForegroundColor Cyan
$infected = $false
# 1. Install directory
Write-Host "[1/12] SngCache install dir..." -NoNewline
if (Test-Path "$env:LOCALAPPDATA\Microsoft\SngCache") {
Write-Host " INFECTED!" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 2. Scheduled Tasks (persistence)
Write-Host "[2/12] Scheduled Tasks..." -NoNewline
$tasks = Get-ScheduledTask -TaskPath '\Microsoft\Windows\Maintenance\' -EA SilentlyContinue |
Where-Object { $_.TaskName -in @('StartupOptimizer','CodeAssist') }
if ($tasks) {
Write-Host " INFECTED: $($tasks.TaskName -join ', ')" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 3. Malicious processes
Write-Host "[3/12] Malware processes..." -NoNewline
$procs = Get-Process -Name claude-code,awproxy,proxy,tun2socks -EA SilentlyContinue
if ($procs) {
Write-Host " RUNNING: $($procs.ProcessName -join ', ')" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 4. Claude settings.json (swapped config)
Write-Host "[4/12] Claude settings.json..." -NoNewline
$cfg = "$env:USERPROFILE\.claude\settings.json"
if ((Test-Path $cfg) -and (Select-String -Path $cfg -Pattern 'awstore' -Quiet)) {
Write-Host " COMPROMISED (awstore in config)" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 5. ScriptBlock Logging (disabled by malware)
Write-Host "[5/12] ScriptBlock Logging..." -NoNewline
$sbl = Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging' -EA SilentlyContinue
if ($sbl -and $sbl.EnableScriptBlockLogging -eq 0) {
Write-Host " DISABLED by malware!" -ForegroundColor Red; $infected = $true
} else { Write-Host " OK" -ForegroundColor Green }
# 6. TUN adapter (tun2socks proxy)
Write-Host "[6/12] TUN adapter (tun0)..." -NoNewline
$tun = Get-NetAdapter | Where-Object { $_.Name -eq 'tun0' -or $_.InterfaceDescription -like '*WinTun*' }
if ($tun) {
Write-Host " FOUND (proxy active!)" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 7. Route hijack (0.0.0.0/1 + 128.0.0.0/1)
Write-Host "[7/12] Route hijack..." -NoNewline
$rh = Get-NetRoute -DestinationPrefix '0.0.0.0/1' -EA SilentlyContinue
if ($rh) {
Write-Host " HIJACKED!" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 8. Active connection to the SOCKS5 proxy
Write-Host "[8/12] SOCKS5 connection 2.27.43.246..." -NoNewline
$sx = Get-NetTCPConnection -EA SilentlyContinue | Where-Object { $_.RemoteAddress -eq '2.27.43.246' }
if ($sx) {
Write-Host " ACTIVE CONNECTION!" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 9. wintun.dll in System32
Write-Host "[9/12] wintun.dll in System32..." -NoNewline
if (Test-Path "$env:SystemRoot\System32\wintun.dll") {
Write-Host " FOUND (installed by malware)" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
# 10. Environment variables
Write-Host "[10/12] Environment variables..." -NoNewline
$envHit = $false
foreach ($scope in @('User','Machine')) {
[Environment]::GetEnvironmentVariables($scope).GetEnumerator() |
Where-Object { $_.Value -match 'awstore' } |
ForEach-Object { Write-Host " $scope`: $($_.Key)=$($_.Value)" -ForegroundColor Red; $envHit = $true }
}
if (-not $envHit) { Write-Host " Clean" -ForegroundColor Green }else { $infected = $true }
# 11. PSReadLine history (wiped by malware)
Write-Host "[11/12] PSReadLine history..." -NoNewline
$hPath = (Get-PSReadLineOption -EA SilentlyContinue).HistorySavePath
if ($hPath -and (Test-Path $hPath)) {
Write-Host " Exists ($((Get-Item $hPath).Length) bytes)" -ForegroundColor Green
} else { Write-Host " MISSING (may have been wiped!)" -ForegroundColor Red }
# 12. RealTime priority processes (malware sets RealTime)
Write-Host "[12/12] RealTime priority processes..." -NoNewline
$rt = Get-Process -EA SilentlyContinue | Where-Object {
try { $_.PriorityClass -eq 'RealTime' } catch { $false }
}
if ($rt) {
Write-Host " FOUND: $($rt.ProcessName -join ', ')" -ForegroundColor Red; $infected = $true
} else { Write-Host " Clean" -ForegroundColor Green }
Write-Host ""
if ($infected) {
Write-Host " !!! INFECTION DETECTED - proceed to Cleanup !!!" -ForegroundColor Red
} else {
Write-Host " System appears CLEAN." -ForegroundColor Green
}Manual check.
If the automatic check came back Clean but you still have doubts, you can check the network and files manually with these two commands:
Code:
# Look for any text files and configs where the scam domain is sitting
Get-ChildItem $env:USERPROFILE, $env:LOCALAPPDATA, $env:APPDATA -Recurse `
-Include *.json,*.txt,*.ps1,*.cfg,*.ini,*.config,*.yaml,*.env `
-Force -EA SilentlyContinue |
Where-Object { $_.Length -lt 1MB } |
Select-String -Pattern 'awstore' -List |
Select-Object -ExpandProperty Path
# Check the routing table for rogue hidden tunnels
Get-NetRoute | Where-Object {
$_.DestinationPrefix -in @('0.0.0.0/1', '128.0.0.0/1') -or
$_.NextHop -eq '198.18.0.1'
} | Format-Table -AutoSizeFull malware removal script.
If the check shows an infection, run this code as administrator. It force-kills the hacker processes, resets the network settings, clears the task scheduler and deletes the virus's hidden files.
Code:
#Requires -RunAsAdministrator
$ErrorActionPreference = 'SilentlyContinue'
Write-Host "`n=== AWSTORE MALWARE REMOVAL ===" -ForegroundColor Cyan
# -- 1. Stopping processes --
Write-Host "[1/10] Stopping malware processes..." -ForegroundColor Yellow
'claude-code','awproxy','proxy','tun2socks' | ForEach-Object {
$p = Get-Process -Name $_ -EA SilentlyContinue
if ($p) { Stop-Process -Name $_ -Force; Write-Host " Killed: $_" -ForegroundColor Green }
}
Start-Sleep -Seconds 2
# -- 2. Removing the route hijack --
Write-Host "[2/10] Removing route hijack..." -ForegroundColor Yellow
Remove-NetRoute -DestinationPrefix '0.0.0.0/1' -Confirm:$false -EA SilentlyContinue
Remove-NetRoute -DestinationPrefix '128.0.0.0/1' -Confirm:$false -EA SilentlyContinue
Remove-NetRoute -DestinationPrefix '2.27.43.246/32' -Confirm:$false -EA SilentlyContinue
# -- 3. Removing the TUN adapter --
Write-Host "[3/10] Removing TUN adapter..." -ForegroundColor Yellow
Get-NetAdapter | Where-Object {
$_.Name -eq 'tun0' -or $_.InterfaceDescription -like '*WinTun*'
} | ForEach-Object {
Remove-NetIPAddress -InterfaceIndex $_.ifIndex -Confirm:$false -EA SilentlyContinue
Disable-NetAdapter -Name $_.Name -Confirm:$false -EA SilentlyContinue
}
# -- 4. Restoring IPv6 --
Write-Host "[4/10] Re-enabling IPv6..." -ForegroundColor Yellow
Get-NetAdapter | Where-Object { $_.Status -eq 'Up' } | ForEach-Object {
Enable-NetAdapterBinding -Name $_.Name -ComponentID ms_tcpip6 -EA SilentlyContinue
}
# -- 5. Resetting DNS --
Write-Host "[5/10] Resetting DNS..." -ForegroundColor Yellow
Get-NetAdapter | Where-Object { $_.Status -eq 'Up' } | ForEach-Object {
Set-DnsClientServerAddress -InterfaceIndex $_.ifIndex -ResetServerAddresses -EA SilentlyContinue
}
ipconfig /flushdns | Out-Null
# -- 6. Removing scheduled tasks --
Write-Host "[6/10] Removing scheduled tasks..." -ForegroundColor Yellow
@('StartupOptimizer','CodeAssist') | ForEach-Object {
Unregister-ScheduledTask -TaskPath '\Microsoft\Windows\Maintenance\' `
-TaskName $_ -Confirm:$false -EA SilentlyContinue
Write-Host " Removed task: $_"
}
# -- 7. Removing malware files --
Write-Host "[7/10] Removing malware files..." -ForegroundColor Yellow
$sngCache = "$env:LOCALAPPDATA\Microsoft\SngCache"
if (Test-Path $sngCache) {
Remove-Item $sngCache -Recurse -Force
Write-Host " Removed: $sngCache" -ForegroundColor Green
}
$wintunSys = "$env:SystemRoot\System32\wintun.dll"
if (Test-Path $wintunSys) {
Remove-Item $wintunSys -Force
Write-Host " Removed: $wintunSys" -ForegroundColor Green
}
# -- 8. Removing the swapped configs --
Write-Host "[8/10] Removing compromised configs..." -ForegroundColor Yellow
$cfgFile = "$env:USERPROFILE\.claude\settings.json"
if ((Test-Path $cfgFile) -and (Select-String -Path $cfgFile -Pattern 'awstore' -Quiet)) {
Remove-Item $cfgFile -Force
Write-Host " Removed: $cfgFile" -ForegroundColor Green
}
# -- 9. Restoring ScriptBlock Logging --
Write-Host "[9/10] Restoring ScriptBlock Logging..." -ForegroundColor Yellow
$sblPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging'
if (Test-Path $sblPath) {
Set-ItemProperty -Path $sblPath -Name 'EnableScriptBlockLogging' -Value 1 -Force
Write-Host " ScriptBlock Logging re-enabled" -ForegroundColor Green
}
# -- 10. Removing environment variables --
Write-Host "[10/10] Cleaning environment variables..." -ForegroundColor Yellow
foreach ($scope in @('User','Machine')) {
[Environment]::GetEnvironmentVariables($scope).GetEnumerator() |
Where-Object { $_.Value -match 'awstore' } |
ForEach-Object {
[Environment]::SetEnvironmentVariable($_.Key, $null, $scope)
Write-Host " Removed $scope env: $($_.Key)" -ForegroundColor Green
}
}
Write-Host "`n=== REMOVAL COMPLETE ===" -ForegroundColor Green
Write-Host "A reboot is recommended to fully reset the network state.`n" -ForegroundColor Yellow What to do after cleaning (an important note):
Since your traffic was intercepted in real time, the hackers already know your active sessions. So, STRICTLY FROM A DIFFERENT DEVICE (for example a clean phone), log into all your critical accounts — Google, Telegram, Discord, GitHub, Steam and crypto exchanges. Terminate all active sessions on other devices and change your passwords completely.
For prevention in the future, use local firewalls with outbound connection control based on a whitelist (for example SimpleWall). It physically won't let hidden processes change the system's global routes and create rogue network interfaces without your knowledge.
For prevention in the future, use local firewalls with outbound connection control based on a whitelist (for example SimpleWall). It physically won't let hidden processes change the system's global routes and create rogue network interfaces without your knowledge.
I hope this breakdown helped you understand the anatomy of the new threat and protect your PC.
Reply




![[Image: signature.webp]](https://i.ibb.co/8gncw40C/signature.webp)