Site Security
Estimated reading time: 7 min read

Fake AI Crawlers Are Hunting for Your .env Files

Ben Marshall Ben Marshall Full-stack Developer & Engineering Manager
Robot outline over a network pattern, illustrating fake AI crawlers scanning websites for secret files
On this page
A scanner posing as 32 AI bots hunted websites for .env files, cloud keys and SSH keys. Why a bot's name proves nothing, and 6 steps to check your own site.

Fake AI crawlers are bots that call themselves GPTBot, ClaudeBot or another AI company’s crawler so websites let them in. On October 28, 2026, Cequence reported a scanner that posed as about 32 AI bots to hunt for passwords, cloud keys and SSH keys on company websites.[1]

Many sites now wave AI crawlers through, or at least treat them gently. Attackers have noticed. Here is what the research found, why a bot’s name proves nothing, and six steps to check your own site.

What happened

From at least late September to late October, Cequence’s researchers watched one actor cycle through about 32 AI bot identities, including ChatGPT, Claude and Perplexity, with crawlers and assistants from OpenAI, Anthropic, Meta and others.[1] It ignored normal pages. Instead it asked for about 90 file paths that commonly hold secrets: .env configuration files, cloud credential files and private SSH keys.[1]

It moved fast. Each address sent 50 to 190 requests in about eight seconds, then moved on. The actor used more than 300 cloud addresses in one day and nearly 400 in a week.[1] On one day in October it reached 48% of the Cequence-protected organizations that saw any AI bot traffic.[1] Targets included financial services, retail, telecoms, energy and software companies.[1] At several organizations, it made up more than 80% of the traffic labeled as AI bots.[1]

The giveaways were in its behavior. It claimed to be several different AI companies within seconds, and its fake Claude identities even used Anthropic’s crawler contact address.[1] Cequence says nearly all of its requests were blocked or failed.[1]

“a bot’s self-reported identity no longer proves anything.”

Will Glazier, Cequence [1]

It isn’t a one-off

Fastly reported the same pattern on October 13. In one day of its logs, about 6.3 million requests falsely claimed to be AI crawlers or fetchers, from nearly 10,200 IP addresses.[2] Most came from one campaign on a single public cloud provider that used about a dozen AI bot identities and reached more than 100,000 sites.[2] The /.env path alone was probed by nearly 1,800 different addresses, alongside Git metadata and other credential files.[2]

Why it matters for your site

  • The name in your logs is just a label. The user agent is whatever the sender types. Fastly’s first piece of advice is simply not to trust it.[2]
  • Friendly rules become an open door. If you allowlist AI crawlers or give them looser rate limits, an impostor gets the same pass. Fastly warns against giving unverified traffic that lenient treatment.[2] If you changed AI bot rules in Cloudflare, as in our guide to Cloudflare’s AI bot settings, check what those rules actually match.[7]
  • The prize is your secrets. A readable .env file or cloud credential file can hand over the keys to your database, email service or cloud account. That is exactly what these scanners asked for.[1][2]
  • Blocklists lag behind. Threat feeds flagged many of the scanner’s addresses only after it had moved on. Cequence expects IP blocklists to go stale within days.[1]

This sits on top of a broader rise in bad bots, which we covered in our takeaways from DataDome’s 2026 bot report.[8]

How to spot fake AI crawlers: verify the real ones

The big AI companies publish the addresses their crawlers use. A request that claims to be one of their bots is only genuine if it comes from one of those addresses, or carries a valid signature.

CompanyBotsHow to verify
OpenAIGPTBot, OAI-SearchBot, ChatGPT-User, OAI-AdsBotPublished IP lists for each bot, such as openai.com/gptbot.json.[3]
AnthropicClaudeBot, Claude-User, Claude-SearchBotOne published IP list at claude.com/crawling/bots.json.[4]
GoogleGooglebot and other Google crawlersA reverse DNS lookup, or IP lists such as common-crawlers.json.[5]
Bots verified by CloudflareVariesWeb Bot Auth, which signs each request with a cryptographic key.[6]

Two details matter if you manage real AI traffic. OpenAI says robots.txt rules may not apply to ChatGPT-User, because a person triggers those visits.[3] Anthropic says blocking its IP addresses may not reliably opt you out, because it can stop Anthropic reading your robots.txt. It recommends robots.txt instead.[4] So use the lists to verify bots, and robots.txt to opt real ones out.

What to do: 6 steps

  1. Check what an impostor would find. Request your own .env, .git/config and cloud credential paths from outside your network, using the commands below. Anything other than a 403 or 404 is urgent: move the file out of your web folder and change every password and key in it. Check staging and admin sites too, as Cequence advises.[1]
  2. Refuse hidden files at the server. Add a rule that blocks files starting with a dot, while keeping /.well-known/ working for certificates. On managed hosting, ask your host whether this is already in place.
  3. Stop trusting the name. If a plugin, firewall or CDN rule lets “GPTBot” or “ClaudeBot” through by user agent alone, make it check the source address too.[1][2]
  4. Verify against published lists. Compare the address with the company’s IP list, or use Google’s reverse DNS check.[3][4][5] Services such as Fastly mark requests that pass this check, and Cloudflare also accepts signed requests from verified bots.[2][6]
  5. Block impostors that ask for secrets. Fastly’s rule is simple: a request that claims an AI bot identity, fails verification and asks for a sensitive file gets blocked. It keeps working even when attackers rotate addresses.[2]
  6. Watch behavior, not just addresses. An “AI assistant” asking for SSH keys is not an AI assistant. Cequence recommends judging bots by what they do, because address blocklists age quickly.[1]

The commands

Step 1, from any computer with a terminal. Replace example.com with your domain. The last two lines follow Google’s method: look up the address, then look up the name it returns and confirm it points back to the same address.[5]

# Expect 403 or 404 for each path
for p in .env .git/config .aws/credentials; do
  curl -s -o /dev/null -w "$p %{http_code}\n" \
    "https://example.com/$p"
done
# Is a "Googlebot" address really Google?
host 66.249.66.1
host crawl-66-249-66-1.googlebot.com

Step 2, for servers you run yourself. The rule refuses any path with a hidden file or folder in it, except /.well-known/.

# Nginx, inside the server block
location ~ /\.(?!well-known/) {
    deny all;
}
# Apache, in .htaccess
RedirectMatch 404 /\.(?!well-known/)

Where Zero Spam fits

The free Zero Spam WordPress plugin blocks known spam bots and bad IPs before they reach your forms and sign-ups. It doesn’t verify AI crawler identities or protect files outside WordPress, so steps 1 and 2 are server work. If you want the plugin’s extra protection, you can start on the free Explorer plan.

FAQ

Frequently Asked Questions

What are fake AI crawlers?

Bots that claim to be AI crawlers such as GPTBot or ClaudeBot but come from someone else. The ones Cequence and Fastly tracked were hunting for secret files such as .env files and keys.[1][2]

How can I tell if GPTBot in my logs is real?

Check the request’s IP address against OpenAI’s published list for GPTBot. OpenAI publishes separate lists for its other bots too.[3]

Should I block AI crawlers by IP address?

Not to opt out. Anthropic says IP blocking may not reliably opt you out and recommends robots.txt instead. Use the IP lists to tell real crawlers from impostors.[4]

Which files were the fake AI crawlers looking for?

Mostly .env configuration files, cloud credential files, private SSH keys and Git metadata. Cequence counted about 90 paths in one campaign.[1][2]

Sources & References