Scanners went looking for forgotten copies of config files on our infrastructure, as sources asking for backups rose 53%
In the week of 9 November, the number of sources asking our infrastructure for backups, dumps and editor copies of files rose 53%, and scanners began asking for new copies of .env and configuration files. Debug pages, Spring Boot actuator endpoints and a 2021 Laravel flaw also drew more scanners.
291 Intercept is our weekly report on what automated scanners went after on our own infrastructure, so you can check your systems for the same things. Each edition covers a week that ended at least seven days earlier.
In the week of 9 November, the number of sources asking our internet-facing infrastructure for backup copies of files rose 53% against the average of the previous three weeks. About 110 sources went after backups, database dumps and editor copies, 17% of all the sources we saw and the highest share in six weeks. The overall number of sources barely moved, about 680 and down 3%. What changed was what they wanted.
It continues what we flagged before. Our 26 October edition noted more scanners asking for backups, debug pages and application internals, and last week's edition noted configuration backups and Spring Boot actuator endpoints climbing. All rose again: debug pages by 24%, application internals by 39% and known exploit attempts by 21%, each to its highest share of sources in six weeks.
The chart below shows the share of sources for six of the main targets over the past five weeks. Backups went from 8% in the week of 12 October to 17% this week.
Weeks starting 12 Oct, 19 Oct, 26 Oct, 2 Nov, 9 Nov. Share of all separate sources that went after each target, in percent. A source can go after several targets, so the shares add up to more than 100%.
| 12 Oct | 19 Oct | 26 Oct | 2 Nov | 9 Nov | |
|---|---|---|---|---|---|
| Backups and database dumps | 8% | 10% | 12% | 11% | 17% |
| Application management endpoints | 10% | 10% | 13% | 12% | 17% |
| Debug and diagnostic pages | 16% | 16% | 21% | 16% | 22% |
| Known exploit attempts | 11% | 11% | 14% | 12% | 16% |
| Secret and configuration files | 30% | 32% | 33% | 28% | 30% |
| Exposed source code (Git, SVN) | 24% | 37% | 29% | 21% | 26% |
Copies, not originals
The classic secret files held steady. Secret and configuration files such as /.env drew 30% of sources, down 6%, and source-code repositories such as /.git/config drew 26%, down 9%. The growth was in the copies people make of those files and then forget.
Three paths reached our infrastructure for the first time, each from about 20 sources: /.env.copy, /.env.production.backup and /configuration.php.old. Other copy names became much more frequent. The number of sources asking for /.env.orig was 19.8 times its previous weekly average, /wp-config.txt 13 times and /wp-config.php.save 6.9 times. Scanners also asked for /wp-config.php.bak, /wp-config.php.old and database dumps such as /database.sql and /dump.sql.
Why a forgotten copy gives a site away
A configuration file such as /wp-config.php holds the database name, user and password a site needs to run. Because its name ends in .php, a web server runs it as code and sends visitors only its output, which for a configuration file is nothing at all. The secrets stay on the server.
Then someone edits it. Their editor leaves /wp-config.php.save behind, or they keep a safety copy as /wp-config.php.bak, or save a plain-text version as /wp-config.txt. None of those names ends in .php, so the server treats the file as a document and hands over the whole thing, passwords included, to anyone who asks for that exact name. A database dump left in the web folder is worse: it is the data itself.
The same goes for .env files, which are never run as code in the first place, so every copy is as readable as the original. The CISA and FBI advisory on the Androxgh0st botnet says it requests /.env and many variants, such as /.env.production, to steal the credentials these files often hold for services like AWS, Office 365, SendGrid and Twilio.
The fix that covers every copy at once is to keep secret files out of the public folder entirely, as the diagram below shows.
- App folder
- Public web folder
index.html.env
- Public web folder
- App folder
.env- Public web folder
index.html
Other paths that climbed
- A Laravel flaw from 2021. The number of sources asking for
/_ignition/health-checkwas 33 times its previous weekly average, about 30 this week. Ignition is Laravel's error-page package; versions before 2.5.2 let unauthenticated attackers run code on sites running Laravel before 8.4.2 in debug mode (CVE-2021-3129). The flaw was disclosed in January 2021 and is still being scanned for. - Spring Boot settings.
/actuator/configpropsdrew 4.6 times its usual number of sources, alongside/actuator/env. These endpoints show an application's configuration, and Spring Boot keeps them off the web and hides their values by default, so a reachable one means someone changed those defaults. - Coding-assistant credentials. About 20 sources asked for
/.claude/.credentials.json, 8.7 times the previous average. That is where Claude Code keeps its login credentials on Linux. In July, Cyber Security News reported that SANS ISC analysts had seen requests for Claude credential files. - More secret files.
/client_secrets.jsonrose to 23 times its previous average,/credentials.yml19.5 times and/secrets.yaml6.5 times./.hg/requiresrose 12.3 times; an exposed .hg folder, like a Git folder, can hand over a site's source code and its full history.
Two shared lists
About 20 sources ran one shared list across /.env, /.git/config, /info.php, /config.json, /actuator/env and /server-status, most of them starting within about 29 hours of each other. It is a quick sweep for secrets, source code, debug pages and application settings in a single pass.
Another 20 or so sources ran a list similar to the one we described last week, when about 40 sources shared it: /xmlrpc.php and the same WordPress file under many folder names, such as /cms/wp-includes/wlwmanifest.xml and /2019/wp-includes/wlwmanifest.xml. WordPress probes overall came from 75% of sources, up from 73% last week and the highest share in six weeks.
Most sources sat on cloud and hosting networks, about 65%, with DigitalOcean and Google Cloud at 15% each, and 85% appeared on a single day only.
What to do
- Search your web folders for copies of configuration files, with names ending in .bak, .old, .save, .orig, .copy or .txt next to the real file, and for any .sql dumps. Delete them or move them out.
- Keep .env and other secret files one level above the public folder, so no copy of them can be fetched by name.
- Configure your web server to deny requests for backup extensions, dump files and hidden dot-folders, but keep the .well-known folder reachable. Certificate renewal and similar services depend on it, and blanket rules that block every dot-folder break sites.
- If a copy was ever reachable, change every password and key in it. Deleting the file does not undo a download.
- Run production Laravel sites with debug mode off and Ignition up to date, and expose Spring Boot actuator endpoints only on purpose.
- Never deploy files from a home directory, such as a coding assistant's credentials, to a web server.
What we reported
In the week of 9 November, 291 Heat Seeker One identified about 270 servers that probed our sites for secret and configuration files as well as WordPress, and we reported each one to the network it runs on: 52 providers in 22 countries, including Google Cloud, Microsoft Azure and DigitalOcean. Since we began reporting on 3 November, we have sent 359 abuse reports.
About these observations
This report is produced by 291 Heat Seeker One, 291 Group's security monitoring system, running on 291 Crossband, our proprietary security operations platform. It covers only traffic to 291 Group's own internet-facing infrastructure.
Figures are rounded, shares and changes are measured by the number of separate sources rather than requests, and only patterns seen from at least 20 separate sources are included. Countries are where the sources' servers are, not necessarily where the people running them are. Kinds of network come from who operates each network; only large, well-known providers are ever named.