/exposed-files:exposed-files <site> [more sites] | --fleetfrom exposed-files
Scans Team51 WordPress sites for publicly accessible database dumps, backups, logs, and exports. Interprets scan results, explains severity, and guides cleanup using the team51 CLI.
Ships in exposed-files. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Team51 CLI finds the files; you interpret them. Never scan sites yourself over SSH or curl: the commands are the fixed, reviewed way to do it, and they handle credentials, both platforms and the edge cases below.
| Command | What it does | Writes to sites? |
|---|---|---|
team51 site:scan-exposed-files <site>... | Lists candidate files under the web root, rates each one's risk, and asks for one byte of each over HTTPS to see whether it is public. | No |
team51 site:quarantine-exposed-files <site>... | Downloads each public file, verifies the copy's SHA-256, deletes the file from the site, purges the edge cache and confirms it is gone. | Yes |
Both need the team51 CLI set up with 1Password unlocked. If a command stops with "1Password CLI timed out", ask the user to unlock 1Password and run it again. Connecting to a site rotates its SFTP password; that is normal for the CLI and does not affect anyone's access.
One or a few sites (the usual case). Ask for JSON so you can read it, and save it in a scratch folder, never in a repository:
team51 site:scan-exposed-files example.com --all --no-interaction \
--export=<scratch>/example-scan.json --export-format=json
--all includes files that aren't public and those known to be harmless, so you can say what was ruled out. The terminal output also shows a one-line summary per site. The JSON is a list of objects with Site ID, Site, Public, Risk, Type, Path, Size, Modified and Why.
The whole fleet (the regular sweep; takes a few hours). Give it a dated ledger and report so the next sweep can be compared:
team51 site:scan-exposed-files --sites=production \
--log=<scratch>/scan-YYYY-MM-ledger.jsonl --report=<scratch>/scan-YYYY-MM.csv --yes
If it stops, run the same command again: finished sites are skipped. The report has one row per site: status (exposed, unconfirmed, present, clean, failed), public, public_high, and the files in public_files and other_files, one per line as <risk> <type>:<path> (<size>, <date>, <state>). Sites to look at are also in scan-YYYY-MM-follow-up.csv.
To compare with the last sweep, match sites by id and report what is new: sites newly exposed, and public files that weren't in the previous report.
Public is yes (anyone can download it), no, unconfirmed (couldn't tell) or skipped (harmless, not checked). Only yes and unconfirmed need anything done.
Risk, as the command rates it from the path and type:
| Risk | What it usually is |
|---|---|
high | Database dumps (.sql.gz, .sql.zip), WordPress exports (XML: authors' and commenters' emails, IPs, drafts), backup and migration archives, plugin exports and imports (WP All Export/Import, WP Migrate DB, WebToffee, Duplicator, WPvivid, BackUpWordPress), copies of wp-config.php, files whose names suggest lists of people |
medium | Spreadsheets, files sent through forms (Gravity Forms and similar), renamed PHP files served as readable source |
low | Logs, other media library files, archives with unknown contents |
harmless | WP Rollback packages, demo content, Complianz vendor lists, Yoast sitemap copies, build logs |
The risk is a guess from the name. Say so when it matters: a "users" export may hold only ID numbers, and an innocently named CSV may hold a donor list. To know, see step 4.
Why explains special cases. Pass these on to the user:
old-site/wp-content/uploads/... that isn't really reachable. Not public.Lead with the answer: how many public files, how many high risk, and on which sites. Then a short table of the public files, high risk first, with what each one probably is and what to do. Leave out the harmless ones unless asked.
Paths can point at personal data, so don't paste them into public channels, GitHub issues or the CLI repository. Internal P2 posts and DMs to the people handling it are fine.
The quarantine command deletes files from live sites. Suggest it; never run it without the user saying so for those sites. Always preview first:
team51 site:quarantine-exposed-files example.com --dry-run
team51 site:quarantine-exposed-files example.com --backup-dir="$HOME/exposed-files-quarantine"
--risk=high or --risk=high,medium.--all --export=<scratch>/example-scan.csv --export-format=csv), keep only the rows to remove, and pass it with --files=<csv>. It needs the Site ID and Path columns. Risk is filtered by --risk, and rows whose Public is no or skipped are left alone. Don't pass the JSON export or a fleet report: neither is a list of files in this shape.--download-only copies without deleting, so the partner can decide first.--backup-dir on an encrypted disk and out of synced folders (iCloud, Dropbox, Google Drive). Every file is recorded in <backup-dir>/manifest.jsonl, and the run's report goes in the same folder.still-served after a delete usually means a cache. With "Cloudflare" in the message, the site has its own Cloudflare account: someone with access purges the URL, or it expires. Otherwise check again in a few minutes.To find out what a copy really holds, inspect the local copy in a new, empty folder with a short Python script run with python3 -I, using the standard library only. Print counts and column names, never values: rows, distinct emails, phone numbers, IP addresses, columns that look personal (name, email, phone, address, birth date, donation, payment), and, in user exports, user_pass values that look like password hashes ($P$, $wp$, $2y$). For zips and .gz, read the entries as streams rather than extracting them.
Tell the user to raise it with security, not just clean it up, when a public file held any of:
user_pass) or a wp-config.php copy;Give security the site, file type, what was in it (counts and kinds of data, no values), how long it was public (the Modified date) and that a copy was kept.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wordpress-security, exposed-files, site-scanning, team51-cli
Other plugins' skills for the same job
npx claudepluginhub a8cteam51/claude-code-plugins --plugin exposed-files