BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root

Guides · ← All guides

Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root

Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read

By the Ingenious AI team

The short answer: Backups belong in private storage. When they land in the web root — backup.zip with your whole site, backup.sql with your whole database, config.php.bak with your credentials — they become the highest-value URLs on your server, downloadable by anyone who guesses the name. BreachHunter's sensitive-paths table devotes a whole family of rows to them (backups and SQL dumps at HIGH, .env backups at CRITICAL), because guessing the names is a solved problem: the scanner's list is the attacker's list.

Run a free BreachHunter assessment on your site →

Every backup file in a web root began as an act of care. Someone was about to change something risky and made a copy first — the professionalism is not in question. What failed is geography: the copy was made in place, in the one directory on the server whose entire job is giving files to strangers.

This guide walks the backup family in the scanner's table — archives, SQL dumps, config and .env variants — explains the server-behavior quirk that makes .bak files worse than the originals, and lays out the three-layer fix: remove, deny by pattern, and move the backup habit somewhere private by default.

Why backup files are worse than the files they copy

A config.php on a correctly configured server executes and reveals nothing. config.php.bak is served as a text download. A database behind authentication requires credentials; db.sql in the root requires a URL. The backup strips the protection the original enjoyed while keeping 100% of the content — the scanner's ratings encode exactly that: SQL dumps and backup archives at HIGH (8 points), .env backups at CRITICAL (10) because of what .env holds.

The names are not creative, which is the second problem. backup, site-backup, db, dump, old, copy, the site name plus .zip, dates appended — the union of “obvious” names is small enough to probe exhaustively, and both the scanner's DIR wordlist and its sensitive-path table do. “Nobody will guess that filename” fails against a list that was built from thousands of real guesses. Treat any backup in the root as published, because functionally it is.

Remove, deny, relocate: the three layers

Layer one is today's files: inventory the root for archives, dumps and editor backups (.bak, .old, .save, .zip, .tar.gz, .sql) and delete them — after rotating any credentials they contained, per the rule that exposure means assumption of copying. Layer two is the server deny rule for the patterns as a class, so tomorrow's in-place backup is unservable even while it exists: extensions and dotfiles denied at the web-server or CDN layer.

Layer three fixes the habit: backups go to private object storage or a backup service, triggered by the platform, retained on a schedule, and — the step everyone skips — restore-tested. The website keeps a runbook line instead of a file: where backups live and how to restore. Owners who implement only layer one re-fail this finding within a year; the finding is a workflow, and the workflow is what gets fixed.

Worked example: atlasmoving.example

Atlas Moving Co's site had been “backed up” before every redesign since 2021 — in place. The assessment's directory and sensitive-path phases between them reconstructed the whole archaeology:

Exposed backup files: atlasmoving.example
  /backup.zip        -> 200  212 MB  HIGH (-8)
  /site-old.zip      -> 200   96 MB  HIGH (-8)
  /db.sql            -> 200   41 MB  HIGH (-8)  full database dump
  /config.php.bak    -> 200         HIGH (-8)

The dumps contained the customer database — names, addresses, move dates (a burglar's calendar, as the owner put it) — so the response ran as an incident: files deleted, database credentials rotated, customers assessed for notification under the firm's obligations. The boring layers followed: extension deny rules at the server, real backups moved to private storage with a 35-day retention, and a note in the redesign checklist that made “backup in place” a fired-upon offense. Retest: every probed name 404.

The five actions to take

Clearing the backup family for good:

  1. Inventory the web root for .zip/.tar.gz/.sql/.bak/.old/.save files and anything named backup, dump or old — delete them all.
  2. Rotate every credential present in any exposed file, database passwords first.
  3. Add server rules denying backup extensions and dotfiles as a class, not name by name.
  4. Move backups to private storage with scheduled retention — and test a restore once.
  5. Re-scan and add the probe to your post-deploy checklist; redesigns and migrations are when these files are born.

Run a free BreachHunter assessment on your site →

Frequently asked questions

The backup is 200MB. Would anyone really download it?

Yes — bandwidth is cheap and the payoff is a complete site and database. Automated harvesters fetch first and examine later. File size is no protection; if anything, the biggest archives are the most complete prizes.

Is a password-protected zip in the root acceptable?

It is better and still wrong: the file's existence invites offline cracking at the attacker's leisure, and the passwords chosen for such archives are rarely strong. Private storage costs less than the risk meeting. Move it.

How do these files keep appearing if we deleted them?

Because the workflow that creates them survived: an admin backing up before an edit, a migration plugin writing to the root, a host panel's one-click backup. Layers two and three of the fix — deny rules and a real backup location — exist precisely for the recurrence.

What about backups in a subfolder like /old/?

Same exposure, plus the directory-listing risk if indexes are on. The scanner's directory discovery probes old, backup and similar names explicitly. A subfolder is not a hiding place; it is a label.

Does deleting the file end the incident?

Deletion ends future downloads. Anything the file contained — credentials especially — must be treated as copied: rotate. If the file held personal data, your notification obligations may apply; that assessment is part of the response, not an optional extra.

The deploy habit that stops this recurring

Deleting the file fixes the instance. The class returns because the process that created it is still running — a backup plugin writing into the web root, a developer zipping the site 'just for a minute', a host migration that copies everything including last year's archives. Fix the process and the finding stops regenerating.

Concretely: point backup tools at storage outside the web root, add the backup extensions (.bak, .old, .zip, .sql) to your deploy checklist as a pre-flight search, and keep the server-level deny rule as the safety net underneath. Three cheap habits, and the quarterly scan becomes a confirmation instead of a discovery.

Sources

Where this guide's claims come from, in citable form:

  • OWASP Web Security Testing Guide (2021) — its test case for old backup and unreferenced files is this exact finding.
  • CISA Known Exploited Vulnerabilities Catalog (2021–present) — why exposed source and data files get used, not just noticed.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close