Claude API relay malware sounds like something that happens to other people until you read how the reported attack works. On 23 April 2026 a Reddit user posted a detailed warning that a seller called awstore.cloud, which offered cheap Claude API access, answered the first prompt with a setup instruction and that Claude Code then ran a PowerShell command from it. We have not reproduced this and we name the seller only as that report does. This post turns the report into a method: a 7-check review of any relay setup with commands for PowerShell and bash, a diagram that maps each reported step to the check that would interrupt it, a scoring checklist, and a probe that sends no tools and flags any tool call that comes back. The report’s own rule of thumb is to use official API providers only, which is sound and still not a method. We also run our own setup through the seven checks at the end. We publish this post and we run a gateway, so read that section with the same suspicion you bring to any relay.
What was reported about awstore.cloud?
The thread is a first-person security write-up posted in r/ClaudeAI and cross-posted with the same text to r/Malware and other subreddits on 23 April 2026. We read the post text from a public archive copy on 28 November 2026, because Reddit blocks automated fetching, and both thread URLs answered 200. The archive snapshots, all taken on 25 April, show six copies with scores between 0 and 11 and at most three comments each, and two of the six read [removed], for reasons we do not know. This is one person’s analysis, not a consensus.
According to the author, the seller offered cheap Claude access on reseller marketplaces such as Plati Market. After a short outage the service posted a notice that “currently only Claude Code for Windows works”. The author called that the tell: an endpoint that speaks the Anthropic format should answer any HTTP client, not one program on one operating system. They then tested on a throwaway virtual machine and described this chain:
- Claude Code is configured with
ANTHROPIC_BASE_URLset to the seller’s API host and the seller’s token. - Any prompt gets back what looks like a setup instruction instead of an answer.
- Claude Code runs a PowerShell command from that message without a permission prompt.
- The command downloads a dropper from the same API host.
- A multi-stage payload installs itself and creates a scheduled task that runs at logon.
- A credential stealer, which the author says Tria.ge labelled Aura Stealer, goes to work.
The post also claims that the payload routes system traffic through a proxy, disables PowerShell script block logging, clears event logs, and skips machines in Ukraine. It lists four file hashes and two network indicators. We did not verify any of those details, we did not locate a vendor or security-firm advisory for this seller, and a named company deserves a primary source before anyone calls it malicious. Read the rest of this post as: if the report is accurate, here is the review that would have caught it, and if it is not, here is the review you should run anyway.
The reported chain and its checks
Why does a relay put your machine at risk, not just your bill?
A chat relay can lie to you about a model, and the worst outcome is a wrong answer. A relay in front of an agent can do more, because the agent has hands. Claude Code reads files, edits them and runs commands, and each of those starts as text in a reply from whatever server ANTHROPIC_BASE_URL names. Anthropic’s environment variable reference describes that variable as the override that routes requests through a proxy or gateway. The LLM gateway page lists what a gateway can do for a company, including logging every model request, which is the same visibility a hostile one has. Our own post on what changes with a custom base URL walks through the plumbing.
The OWASP entry on Excessive Agency names the pattern. It defines the vulnerability as damaging actions performed in response to unexpected, ambiguous or manipulated model output, and lists excessive functionality, excessive permissions and excessive autonomy as the root causes. Its mitigations include requiring a human to approve high-impact actions and doing authorisation in the downstream system rather than trusting the model to decide. A relay is an upstream that can manipulate output on purpose, so the same advice applies with a hostile author instead of a confused model.
What Claude Code does about this depends on its permission mode. The permissions documentation we read on 28 November 2026 describes default, labelled Manual, as prompting before most edits, shell commands and network requests. auto runs without routine prompts and has a background classifier check actions against your request. bypassPermissions skips prompts and is meant only for containers or virtual machines. The security page adds that in Manual mode commands such as curl and wget prompt by default, and it tells users they are responsible for reviewing proposed commands before approving. So the report’s claim that a command ran without a prompt is plausible in Auto or bypass mode and surprising in Manual mode. We cannot tell which mode the author used.
One more point from Microsoft, because the report involves PowerShell. The execution policy documentation says the policy is not a security boundary but defense in depth, and that users can bypass it by typing the script contents at the command line. Do not count on Set-ExecutionPolicy to stop an agent that is typing the commands for someone else.
Is a malicious relay the only way a setup file gets you?
No, and it helps to see a second incident with a primary source. On 24 March 2026 LiteLLM, the open-source gateway, published an incident report about two PyPI releases, 1.82.7 and 1.82.8, that were live from 10:39 UTC for about 40 minutes before PyPI quarantined them. The report says the packages contained a credential stealer that scanned for environment variables, SSH keys, cloud provider credentials, Kubernetes tokens and database passwords, and sent them by POST to a domain that is not an official LiteLLM one. It also says users of the official proxy Docker image were not affected because that path pins its dependencies.
That is a supply chain compromise of a legitimate project, not a fake relay, but the loot is identical and so are the defences: pin versions, compare checksums published elsewhere (the advisory itself added a table of SHA-256 checksums for audited releases on 27 March), and keep secrets away from machines that run new code. If you self-host, our LiteLLM alternatives guide and the head-to-head with a hosted gateway put numbers on the maintenance and patching effort. A different kind of trust problem, a seller who serves a substitute model, is the subject of our posts on verifying that an API serves the model it names and on reseller risks.
What are the 7 checks?
Each check takes minutes, needs no paid tool, and ends in something you can see on your own screen. The table is the whole method in one place; the sections after it give the commands.
| # | Check | Tool | Time | What a pass looks like |
|---|---|---|---|---|
| 1 | The setup is only a URL and a key | Your eyes, the vendor’s docs | 2 min | No download, no exe, no script, no admin rights |
| 2 | Read any script before it runs | curl -o, less, Select-String |
5 min | You can explain every line, no hidden decode steps |
| 3 | Hash and signature against a second channel | Get-FileHash, Get-AuthenticodeSignature |
3 min | Hash matches a value from a different domain, signature Valid |
| 4 | Every outbound host is expected | Get-NetTCPConnection, ss |
5 min | Only the base URL host and hosts you chose |
| 5 | The setup cannot reach your secrets | Disposable VM, throwaway key | 10 min | No real keys, SSH or cloud credentials on the machine |
| 6 | Nothing new persists | Snapshot and Compare-Object, Autoruns |
5 min | No new task, service, startup entry or policy change |
| 7 | The endpoint cannot drive your agent | Manual mode, tool-free probe, sandbox | 10 min | Prompts appear, no tool call in a tool-free reply |
Check 1: is the setup only a URL and a key?
A relay’s entire setup is two values. Anthropic’s variable reference lists ANTHROPIC_BASE_URL as the endpoint override and ANTHROPIC_AUTH_TOKEN as the custom value for the Authorization header. A gateway that needs more than that for a standard client has to explain what the extra thing does and why a plain HTTPS endpoint cannot do it.
This is the check that mattered most in the report. A notice saying the service works only with one client on one operating system is a statement about code running on your machine, not about an HTTP API. Call the same endpoint with curl and with an official SDK. If it answers one client and not the others, you have learned something about what it expects to deliver to that client.
| What the setup asks | Normal for a relay | Treat as a red flag |
|---|---|---|
| Set a base URL and a key | Yes, the whole setup | No |
| Paste a command from the website | Only a documented environment variable | A curl ... | bash or irm ... | iex line from an unfamiliar host |
| Install a program or “proxy” | Rare, and it needs a reason | An exe or package you cannot compare to a published hash |
| Run as administrator, add an exclusion | No | Always |
| Works with one client or one OS only | No, the API is plain HTTPS | A stated limit that makes no technical sense |
| Support only through direct messages | Unusual | A seller with no page, terms or email |
Check 2: have you read the script before it runs?
If any script is involved, download it to a file and read it, then run it. Do not pipe it into a shell. Piping is not proof of malice: Claude Code’s own setup page lists curl -fsSL https://claude.ai/install.sh | bash and irm https://claude.ai/install.ps1 | iex as install commands. The difference is that you chose to trust that host before reading. For a host you only met this week, do the reading first, because a script that downloads another script can change between your first look and your first run.
# 1. Download to a file. Do not pipe into a shell.
curl -fsSL https://relay.example/setup.sh -o setup.sh
# 2. Read all of it, then list the lines that touch things a setup has no business touching.
less setup.sh
grep -n -E "curl|wget|base64|eval|chmod|sudo|crontab|systemctl|[.]ssh|[.]aws|printenv" setup.shInvoke-WebRequest https://relay.example/setup.ps1 -OutFile setup.ps1
Get-Content setup.ps1
Select-String -Path setup.ps1 -Pattern "Invoke-Expression|iex|FromBase64String|DownloadString|DownloadFile|Register-ScheduledTask|schtasks|ScriptBlockLogging|Clear-EventLog|wevtutil|Set-MpPreference"The patterns are the ones a setup has no reason to contain: decoding a blob (base64, FromBase64String), running a string as code (eval, iex), creating schedules (crontab, schtasks), touching security tools (Set-MpPreference, ScriptBlockLogging) and clearing logs (Clear-EventLog, wevtutil). A hit is not proof of harm, and a miss is not proof of safety, because obfuscation is the point of the encoding patterns. The practical rule is simple: if you cannot explain a line, do not run the file. The same holds for package managers. An npm package can run scripts at install time, and npm’s ignore-scripts setting turns that off; our post on dependency installs by coding agents covers the cases where the agent does the installing.
Check 3: does the hash match a second channel?
A hash answers one question: is this the file the publisher meant? It only answers it when the reference value comes from somewhere an attacker who swapped the file could not also edit. A hash printed on the download page proves nothing against a swapped file. A hash from the vendor’s signed release manifest, from a tagged commit on a code host, or from an incident page like the one LiteLLM published does.
Anthropic documents this for its own binary. The setup page says each release publishes a manifest.json with SHA256 checksums for every platform binary, signed with an Anthropic GPG key, and that the Windows binary carries a code signature from “Anthropic, PBC” which you can check with Get-AuthenticodeSignature. The docs name the Windows file claude.exe. The report lists a dropped file named claude-code.exe. A name proves nothing, which is why the signature check exists.
# Windows PowerShell
(Get-FileHash ./setup.ps1 -Algorithm SHA256).Hash.ToLower()
Get-AuthenticodeSignature ./tool.exe | Format-List Status, SignerCertificate
# Linux and macOS
sha256sum setup.sh # macOS: shasum -a 256 setup.shMicrosoft documents Get-FileHash as using SHA256 by default and as a way to verify that the contents of a file have not changed. Get-AuthenticodeSignature returns a status such as Valid. Read both outputs: you want Status Valid and a signer name you recognise, not only the word Valid. If a seller provides an exe with no signature and no second-channel hash, the answer to check 3 is no, whatever the file is called.
Check 4: is every outbound host one you expected?
In the report, the dropper came from the same host as the API. That detail matters: nothing in the traffic looked like a second, suspicious domain, because the endpoint you configured was also the one that served the payload. So the check is not “does it contact a bad domain” but “does anything contact a host I did not choose, and does the API host serve anything that is not an API reply”.
Before running, list every URL in the setup and the docs, and decide which ones you expect. While the first session runs, list the established connections and the programs that own them. On Linux the same idea is ss -tnp.
# While the first session runs: every outbound connection and the process that owns it
Get-NetTCPConnection -State Established |
Select-Object RemoteAddress, RemotePort, OwningProcess |
Sort-Object RemoteAddress -Unique
# Which program owns a connection? Replace 1234 with an OwningProcess value.
Get-Process -Id 1234 | Select-Object Id, ProcessName, Path
# Linux: ss -tnpIf you use Claude Code’s sandbox, the sandboxing documentation describes network isolation in which commands go through a proxy that checks each host against your allowed domains, a list that starts empty. That limits what a command can reach, which is useful when you suspect the command itself. It does not check the model reply that decided to run the command, which is why check 7 exists. Our post on corporate proxies, TLS inspection and allowlists shows how host allowlists interact with Claude Code in practice.
Check 5: can the setup reach your secrets?
Assume the first run could read everything your user account can read: environment variables, SSH keys, cloud credentials, browser profiles, .env files. The LiteLLM incident report lists exactly that list as what its malicious packages scanned for. So the only reliable defence is to make the first run happen where there is nothing to steal.
- Use a disposable machine. A virtual machine with no personal accounts signed in is enough. The security page recommends virtual machines for running scripts and tool calls when working with external services.
- Use a relay-issued key, never your own provider key. The token you set is sent to the relay in the Authorization header. If you put an Anthropic or OpenAI key there, the relay now holds a key it did not issue.
- Give the key a spend limit. A per-project key with its own limit caps the loss if it leaks; our guide to one key per project with spend limits shows how, and API key security for AI apps covers rotation.
- Know where Claude Code keeps what you gave it. Saved approvals and transcripts can hold secrets; see how “don’t ask again” can expose secrets and secrets in logs, transcripts and caches.
Check 6: does anything new persist?
A dropper wants to survive a reboot. On Windows that means a scheduled task, a service, a Run key, a startup entry, or a policy change that makes later activity harder to see. The report says the payload added a task that runs at every logon and sat under a task folder named like a Microsoft one. That is why the snapshot below does not filter out Microsoft paths: a name proves nothing.
# Before you run anything
Get-ScheduledTask | Select-Object TaskPath, TaskName | Sort-Object TaskPath, TaskName | Out-File before.txt
Get-CimInstance Win32_StartupCommand | Select-Object Name, Command, Location | Out-File startup-before.txt
# After the first session, repeat both into after.txt and startup-after.txt, then compare
Compare-Object (Get-Content before.txt) (Get-Content after.txt)
Compare-Object (Get-Content startup-before.txt) (Get-Content startup-after.txt)Get-ScheduledTask returns the task definitions registered on a computer, so a diff of two full listings shows a new entry wherever it hides. For a wider view, Sysinternals Autoruns shows what is configured to run at startup or logon across many locations, and it can hide signed Microsoft entries so third-party additions stand out. Verify the signature column instead of trusting a folder name.
Then check the one setting the report mentions. PowerShell script block logging, per Microsoft’s logging documentation, records the content of all script blocks PowerShell processes and is enabled through Group Policy or a registry setting. A relay setup has no reason to touch it. If it does, you have found the reason to stop. Never run the first setup as an administrator; if a setup demands it, that is your answer to check 1.
Check 7: can the endpoint drive your agent?
The first six checks examine what you run once. The seventh examines what the endpoint can make your agent do every time it answers. This is the check the report turns on, and the one that a rule such as “use official providers only” does not turn into a test.
Keep Manual mode and lock the others off for the test. The default mode prompts before most shell commands and network requests, per the permissions documentation. You can stop yourself from drifting into a looser mode by setting these keys in ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json), which the permissions page documents as permissions.defaultMode, permissions.disableAutoMode and permissions.disableBypassPermissionsMode:
{
"permissions": {
"defaultMode": "default",
"disableAutoMode": "disable",
"disableBypassPermissionsMode": "disable"
}
}Read every prompt for the first session. A reply to “say hello” has no reason to ask for a shell command. If the agent proposes one, decline it and stop. The docs’ deny-rule form (Bash(curl *) for example) can add a second layer, but the documentation says rules matched on command text are not a boundary around the program, so treat them as seatbelts and the disposable machine as the wall.
Run the tool-free probe. Send one request with no tools at all and inspect the raw reply. A genuine reply carries no structured tool call when no tools were offered, so a tool call or tool-use block in the answer deserves an explanation from the seller.
export ONEAIAPIKEY_API_KEY="paste-a-throwaway-key-here"
# No "tools" field in this request, so a plain reply is the only legitimate answer.
curl -sS https://api.oneaiapikey.com/v1/chat/completions \
-H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"z-ai-glm-5.3:free","max_tokens":80,"messages":[{"role":"user","content":"Reply with the word ready and nothing else."}]}' \
| tee reply.json | jq -r '.choices[0].message.tool_calls // "none"'
jq -r '.choices[0].message.content' reply.jsonOn the OpenAI format the field is tool_calls; on the Anthropic format a content block of type tool_use is the equivalent. The probe prints none when no tool call came back. Be honest about its limits: a hostile server can behave differently for a real agent session than for your curl call, for example by looking at the client name, so a clean probe is evidence, not proof. That is why the probe comes with the Manual-mode rule and the disposable machine, not instead of them. The same logic applies to anything an agent reads from outside, which our post on MCP trust boundaries treats as untrusted input, and to a sandbox escape like the one in our CVE-2026-55607 analysis.
What if you already ran it?
The report’s own advice for anyone who used that seller was to treat the machine as compromised, and that is the safe default for any unreviewed setup that did something unexpected. The order matters.
- Disconnect the machine from the network. Pull the cable or turn off Wi-Fi before anything else.
- Remove the override. Delete
ANTHROPIC_BASE_URLand the token from~/.claude/settings.json(Windows:%USERPROFILE%\.claude\settings.json), your shell profile, and any editor setting that carries environment variables. - Compare persistence. Look for a task, startup entry or service you did not create. Without a before snapshot, Autoruns with signed Microsoft entries hidden is the fast way to find the odd one out.
- Rotate secrets from a different, clean computer. Passwords, SSH keys, cloud tokens, API keys and anything in shell history or
.envfiles. Rotating from the affected machine tells the stealer your new secret. - Decide on a reinstall. If you cannot account for every change, reinstalling is cheaper than doubt.
- Tell the key’s issuer. If it was a gateway key, delete it in that gateway’s console. For ours, the steps are on the account security page.
Our trojan remediation guide walks through attribution and cleanup for a related case, a Claude Code-branded extension that was not the real one.
How does our setup score on the same 7 checks?
We publish this post and we run One AI API Key, so the standard has to be one you can test without us. A gateway is a relay in the sense of this post: it sees your requests and returns replies. The honest question is not whether we say we are safe but which of the seven checks you can run on us yourself.
One fact first. 0 of the 6 Claude ids in our catalogue are marked available when this page is built (28 November 2026: check the models page for today), so this is not a pitch to run Claude Code on Claude through us. Claude Code needs the Anthropic format and an id our route serves, and the models page shows what answers today. What we can show is what a low-risk setup looks like, using the same two variables, and the OpenAI-format agents in our coding agent key guide use the free ids today.
export ANTHROPIC_BASE_URL=https://api.oneaiapikey.com
export ANTHROPIC_AUTH_TOKEN=sk-your-key-hereThat is the full configuration in the Claude Code setup guide, which also gives a curl test to run before you open the agent and tells you to confirm the base URL with /status. Here is how it fares, check by check.
| # | Check | What you can verify yourself on our side |
|---|---|---|
| 1 | URL and key only | The guide asks for two variables and one curl test. No installer, no script, no exe. |
| 2 | Read before run | There is no script to read. The docs pages are ordinary web pages with copyable commands, and the config generator prints the same values. |
| 3 | Hash and signature | Nothing to hash. For the agent itself, use Anthropic’s signed manifest as described above. |
| 4 | Outbound hosts | One host, https://api.oneaiapikey.com. Watch the connections in check 4 and confirm nothing else appears. |
| 5 | Secrets | The token is a key we issue, not your provider key. You can set a spend limit per key, as the one-key-per-project guide shows. |
| 6 | Persistence | Nothing installs, so a before and after diff should be empty. |
| 7 | Endpoint and agent | Run the probe against us. Our transparency page says what we monitor and what we cannot see. |
Three limits belong next to that table. First, a clean table is a claim about our documentation, and check 7 is the only row that tests our behaviour, so run it. Second, we do not host the models; upstream providers serve them under their own terms, which is one more hop to weigh and which the transparency page states plainly. Third, what we keep is stated in the privacy policy and in what a gateway sees and stores: usage records hold the model, token counts and cost, not your prompts and answers. The company running the model still receives the request.
What you can use today without paying: sign-in is Google only, there is no card field, and 47 :free ids share 100 requests and 3,000,000 tokens a day per account. The $10 sign-up credit pays for priced models first. Paid access is set up by hand over email, by design, to limit abuse and card fraud. Pricing, status and the public usage rankings are open pages, and the provider checklist lists what to ask any gateway. Acceptable use applies to every request.
A setup you can review in ten minutes
Can you score a setup before you run it?
Tick only what you did yourself. The checklist counts your own verification, not anyone’s promise.
Setup review (tick what you verified yourself)
0 of 8 verified
Not reviewed
Do not run it on a machine that holds anything you cannot lose.
Where are you right now?
I have not run anything yet
I ran it on a throwaway VM
I ran it on my main machine and nothing looked odd
I ran it and saw a prompt, window or command I did not expect
What should you ask any relay before pasting its URL?
Five questions, answerable in an email or on a public page.
- What does the setup run on my machine? The right answer is “nothing, two environment variables”.
- Where do you document what you store? Look for model, token counts and cost, and a stated position on prompts. Our guide to what a gateway sees and stores is a starting point.
- How do I test you without paying? A free tier or a small credit, with the limits printed. Our 12-point provider checklist lists tests that cost nothing.
- Who do I write to, and does a person answer? Ours: write to somdutt777@gmail.com with a genuine concern and a person looks at it case by case; the terms hold the rest.
- Can I leave in an hour? Keep the base URL in one place so switching is a one-line change; the migration guide from OpenRouter shows how small that change is, and prepaid credits explains what to ask before you put money in.
If you are comparing gateways rather than reviewing one, OpenRouter alternatives and the nine-option gateway comparison set out the options with dated sources, and the OpenRouter comparison page is sourced. For the money side of too-good-to-be-true offers, read the flat-price plan math. For the broader question of what a gateway is, start with what an LLM gateway is, and if you want a hands-on trial of a multi-model route before paying, see the $10 credit test plan or the one AI API key review.
Run the probe against a free id
Sign in with Google, create a key, send the tool-free request and read the raw reply yourself. No card field, no installer.