Skip to content
$ shellfirm

Hosting platforms

Heroku, Railway, Vercel, Netlify and Fly.io, plus Supabase, Firebase, Cloudflare, Neon, PlanetScale, Turso and Render, including commands run remotely on them.

Platform-as-a-service CLIs can delete an app, its database or its environment in one line. shellfirm covers them in these groups:

PlatformGroupChecks
Heroku and Railwayheroku23
Vercelvercel9
Netlifynetlify3
Fly.ioflyio4
Supabase, Firebase data, Cloudflare D1 / KV / R2, Neon, PlanetScale, Tursodatabase17 (of the group's 81)
Firebase projects and hostinggcp2 (see Azure and GCP)

The hosted-database checks live in the database group because they delete data: disabling database turns them off with the other database checks.

npm package runners are followed, so npx firebase-tools …, npx -y firebase-tools@latest …, npx supabase@latest …, npx vercel@latest …, npx netlify-cli …, pnpm dlx and bunx are checked like the CLI itself.

Commands run on the platform

A command run on the platform is read like ssh host CMD: the command or the SQL is checked, it is labelled with where it runs, and an app name with a production word (such as shop-prod) escalates like a production host.

You typeChecked asLabel
heroku run CMD -a APP (one quoted line or several words, flags before or after)CMDremote=heroku:APP
heroku pg:psql -a APP --command SQL (also -c)SQLremote=heroku:APP
fly ssh console -a APP -C CMD (also flyctl, --command)CMDremote=fly:APP
render ssh SERVICE -- CMDCMDremote=render:SERVICE
wrangler d1 execute DB --remote --command SQLSQL
railway run CMDCMD (like any runner)
shellfirm check -c 'heroku run "rails db:drop" -a shop-prod'
Output
1 risky pattern(s) matched:

  [database:rails_db_drop] [CRITICAL] This Rails task drops or wipes the database (db:drop / db:reset / db:purge / db:migrate:reset / db:truncate_all): all data is lost.
    Blast radius: [RESOURCE] — Runs on another host or in a container; its impact is not measured locally
    > Safe alternative: rails db:migrate:status (Check the migration state first; to undo the last migration use `rails db:rollback`, and back the database up before dropping it.)

  Context: Critical (remote=heroku:shop-prod)

  Shell (you, in a terminal): would challenge (Yes, escalated from Math: severity CRITICAL, runs on production host `heroku:shop-prod`)
  AI agent (hooks, MCP): deny (blocked)
    why: Severity CRITICAL meets or exceeds agent auto-deny threshold HIGH

The impact of a remote command is not measured locally, and the banner says so.

Heroku and Railway

shellfirm check -c 'heroku pg:reset DATABASE_URL -a shop-prod'
Output
1 risky pattern(s) matched:

  [heroku:pg_reset] [CRITICAL] This deletes all data in the Heroku Postgres database.

  Shell (you, in a terminal): would challenge (Yes, escalated from Math: severity CRITICAL)
  AI agent (hooks, MCP): deny (blocked)
    why: Severity CRITICAL meets or exceeds agent auto-deny threshold HIGH
Check idSeverityWhat it catchesSafe alternative
heroku:restart_app_dynosMediumThis restarts the app's dynos.
heroku:stop_app_dynosHighThis stops the app's dynos.
heroku:kill_app_dynosHighThis kills the app's dynos.
heroku:enable_maintenance_modeHighThis puts the app into maintenance mode.
heroku:remove_memberHighThis removes a user from the team.
heroku:disable_app_featureMediumThis disables an app feature.
heroku:remove_app_containerHighThis removes a process type from the app.
heroku:unset_environment_variableMediumThis removes config vars from the app.
heroku:destroy_clientHighThis deletes an OAuth client.
heroku:rotate_oauth_clientMediumThis rotates the OAuth client secret.
heroku:update_oauth_clientMediumThis updates an OAuth client.
heroku:destroy_appCriticalThis permanently destroys the app.
heroku:remove_yourself_from_appMediumThis removes you from a team app.
heroku:rename_app_nameMediumThis renames the app and breaks its existing URLs.
heroku:destroy_addonsHighThis permanently destroys an add-on.
heroku:detach_addonMediumThis detaches an add-on from the app.
heroku:remove_user_accessHighThis removes users from a team app.
heroku:update_collaborators_accessMediumThis changes collaborator permissions on a team app.
heroku:reset_repoHighThis resets the Heroku git repository.
heroku:pg_resetCriticalThis deletes all data in the Heroku Postgres database.
heroku:railway_downHighrailway down removes the most recent deployment of the service, which takes it offline.railway status
heroku:railway_deleteCriticalrailway delete deletes the Railway project with its services, databases and volumes.railway status
heroku:railway_resource_deleteHighThis deletes a Railway environment, service, volume, domain or variable: what runs on it, or reads it, stops working.railway status

heroku:railway_delete matches only railway delete / railway project delete. Deleting a single variable, environment or service (railway variables delete, railway environment delete) is heroku:railway_resource_delete.

Vercel

Check idSeverityWhat it catches
vercel:removeCriticalRemoving a Vercel deployment or project takes it offline permanently.
vercel:project_removeCriticalRemoving a Vercel project deletes it and all its deployments.
vercel:env_removeHighRemoving an environment variable can break deployments that depend on it.
vercel:domain_removeHighRemoving a domain disconnects it from your deployment.
vercel:alias_removeHighRemoving an alias takes the deployment off that domain: visitors of the domain get no site.
vercel:dns_removeHighRemoving a DNS record can take a domain, its email or another service offline.
vercel:blob_deleteHighThis permanently deletes files from Vercel Blob storage.
vercel:team_removeHighThis removes a Vercel team, with its projects, deployments and members.
vercel:integration_removeHighThis removes a Vercel integration: the resources it provisioned (a database, storage) and the environment variables it set can go with it.

vercel alias rm, vercel dns rm, vercel blob del, vercel teams rm and vercel integration remove are High.

Netlify

Check idSeverityWhat it catches
netlify:sites_deleteCriticalDeleting a Netlify site permanently removes it and all its deployments.
netlify:env_unsetHighRemoving an environment variable can break builds and deployments.
netlify:env_cloneHighCloning environment variables overwrites the target site's variables.

Fly.io

shellfirm check -c 'fly apps destroy web'
Output
1 risky pattern(s) matched:

  [flyio:apps_destroy] [CRITICAL] Destroying a Fly.io app permanently removes it and all its resources.

  Shell (you, in a terminal): would challenge (Yes, escalated from Math: severity CRITICAL)
  AI agent (hooks, MCP): deny (blocked)
    why: Severity CRITICAL meets or exceeds agent auto-deny threshold HIGH
Check idSeverityWhat it catches
flyio:apps_destroyCriticalDestroying a Fly.io app permanently removes it and all its resources.
flyio:secrets_unsetHighRemoving secrets can break running applications that depend on them.
flyio:volumes_destroyHighDestroying a volume permanently deletes all data stored on it.
flyio:postgres_destroyCriticalDestroying a Fly Postgres cluster permanently deletes the database and all its data.

Supabase

supabase db reset on your local database is Medium. With --linked or --db-url it resets a remote project, often production, and is Critical:

Output
  [database:supabase_db_reset_remote] [CRITICAL] supabase db reset --linked resets the database of the linked remote project (often production): every table is dropped and the migrations and seed re-run.
    > Safe alternative: supabase db dump --linked -f backup.sql (Back the remote database up first. To reset only your local database, run `supabase db reset` without --linked.)
Check idSeverityWhat it catchesSafe alternative
database:supabase_db_push_remoteMediumsupabase db push applies pending migrations to the linked remote database (often production); a migration that drops or alters tables changes live data.supabase db push --dry-run
database:supabase_db_reset_remoteCriticalsupabase db reset --linked resets the database of the linked remote project (often production): every table is dropped and the migrations and seed re-run.supabase db dump --linked -f backup.sql
database:supabase_db_resetMediumsupabase db reset drops the local database and re-runs the migrations and seed: local data is lost.supabase migration list
database:supabase_projects_deleteCriticalsupabase projects delete deletes the Supabase project with its database, storage and auth users.supabase projects list
database:supabase_remote_deleteHighThis deletes an edge function, a secret or storage objects of the Supabase project: whatever uses them breaks, and deleted files cannot be restored.supabase functions list

supabase functions delete, supabase secrets unset and supabase storage rm are High (database:supabase_remote_delete). supabase db push to the linked project or a database URL is Medium (database:supabase_db_push_remote); --local and --dry-run are not matched.

Firebase

Check idSeverityWhat it catchesSafe alternative
database:firebase_firestore_delete_allCriticalfirebase firestore:delete --all-collections deletes every document of every collection in the Firestore database.gcloud firestore export gs://<bucket>/backup
database:firebase_firestore_deleteHighfirebase firestore:delete deletes Firestore documents (with -r, every document under the path).gcloud firestore export gs://<bucket>/backup
database:firebase_database_remove_rootCriticalfirebase database:remove / deletes the whole Realtime Database.firebase database:get / -o backup.json
database:firebase_database_removeHighfirebase database:remove deletes the data at the given path of the Realtime Database, with everything under it.firebase database:get <path> -o backup.json

firebase projects:delete (High) and firebase hosting:disable (Medium) are in the gcp group. See Azure and GCP.

Cloudflare

shellfirm check -c 'wrangler d1 delete prod-db'
Output
1 risky pattern(s) matched:

  [database:wrangler_d1_delete] [CRITICAL] wrangler d1 delete deletes the Cloudflare D1 database with all of its data.
    > Safe alternative: wrangler d1 export <database> --remote --output backup.sql (Export the database first; `wrangler d1 list` shows which database the name refers to.)

  Shell (you, in a terminal): would challenge (Yes, escalated from Math: severity CRITICAL)
  AI agent (hooks, MCP): deny (blocked)
    why: Severity CRITICAL meets or exceeds agent auto-deny threshold HIGH
Check idSeverityWhat it catchesSafe alternative
database:wrangler_d1_deleteCriticalwrangler d1 delete deletes the Cloudflare D1 database with all of its data.wrangler d1 export <database> --remote --output backup.sql
database:wrangler_kv_namespace_deleteCriticalwrangler kv namespace delete deletes the Workers KV namespace and every key in it.wrangler kv namespace list
database:wrangler_r2_bucket_deleteHighwrangler r2 bucket delete deletes the Cloudflare R2 bucket.wrangler r2 bucket list

SQL sent with wrangler d1 execute --remote --command is checked as SQL, so DELETE FROM users there is database:delete_all_rows (Critical).

Neon, PlanetScale and Turso

Check idSeverityWhat it catchesSafe alternative
database:neon_project_deleteCriticalneonctl projects delete deletes the Neon project with all of its branches and databases.neonctl projects list
database:neon_branch_deleteHighneonctl branches delete deletes the Neon branch and the data written on it.neonctl branches list
database:pscale_database_deleteCriticalpscale database delete deletes the PlanetScale database with all of its branches and data.pscale database list
database:pscale_branch_deleteHighpscale branch delete deletes the PlanetScale branch and its data.pscale branch list <database>
database:turso_db_destroyCriticalturso db destroy deletes the Turso database (group destroy: every database in the group).turso db shell <database> .dump > backup.sql

Render

Render has no group of its own. render ssh SERVICE -- CMD is followed, so the remote command gets the checks that match it (for example the filesystem checks for rm -rf), labelled remote=render:SERVICE.

Login files and service variables

Reading the login file of a hosting CLI (Railway ~/.railway/config.json, Supabase ~/.supabase/access-token, Vercel auth.json, Netlify config.json, Fly.io ~/.fly/config.yml) is Medium, like other credential files (exfil:read_secret_file). Printing every variable of a service (railway variables, railway run env, vercel env pull --environment=production) is Medium (exfil:print_token). An AI agent is asked first. shellfirm sandbox denies sandboxed commands these login files too. See Remote scripts and exfiltration.