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:
| Platform | Group | Checks |
|---|---|---|
| Heroku and Railway | heroku | 23 |
| Vercel | vercel | 9 |
| Netlify | netlify | 3 |
| Fly.io | flyio | 4 |
| Supabase, Firebase data, Cloudflare D1 / KV / R2, Neon, PlanetScale, Turso | database | 17 (of the group's 81) |
| Firebase projects and hosting | gcp | 2 (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 type | Checked as | Label |
|---|---|---|
heroku run CMD -a APP (one quoted line or several words, flags before or after) | CMD | remote=heroku:APP |
heroku pg:psql -a APP --command SQL (also -c) | SQL | remote=heroku:APP |
fly ssh console -a APP -C CMD (also flyctl, --command) | CMD | remote=fly:APP |
render ssh SERVICE -- CMD | CMD | remote=render:SERVICE |
wrangler d1 execute DB --remote --command SQL | SQL | |
railway run CMD | CMD (like any runner) |
shellfirm check -c 'heroku run "rails db:drop" -a shop-prod'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 HIGHThe 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'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 id | Severity | What it catches | Safe alternative |
|---|---|---|---|
heroku:restart_app_dynos | Medium | This restarts the app's dynos. | |
heroku:stop_app_dynos | High | This stops the app's dynos. | |
heroku:kill_app_dynos | High | This kills the app's dynos. | |
heroku:enable_maintenance_mode | High | This puts the app into maintenance mode. | |
heroku:remove_member | High | This removes a user from the team. | |
heroku:disable_app_feature | Medium | This disables an app feature. | |
heroku:remove_app_container | High | This removes a process type from the app. | |
heroku:unset_environment_variable | Medium | This removes config vars from the app. | |
heroku:destroy_client | High | This deletes an OAuth client. | |
heroku:rotate_oauth_client | Medium | This rotates the OAuth client secret. | |
heroku:update_oauth_client | Medium | This updates an OAuth client. | |
heroku:destroy_app | Critical | This permanently destroys the app. | |
heroku:remove_yourself_from_app | Medium | This removes you from a team app. | |
heroku:rename_app_name | Medium | This renames the app and breaks its existing URLs. | |
heroku:destroy_addons | High | This permanently destroys an add-on. | |
heroku:detach_addon | Medium | This detaches an add-on from the app. | |
heroku:remove_user_access | High | This removes users from a team app. | |
heroku:update_collaborators_access | Medium | This changes collaborator permissions on a team app. | |
heroku:reset_repo | High | This resets the Heroku git repository. | |
heroku:pg_reset | Critical | This deletes all data in the Heroku Postgres database. | |
heroku:railway_down | High | railway down removes the most recent deployment of the service, which takes it offline. | railway status |
heroku:railway_delete | Critical | railway delete deletes the Railway project with its services, databases and volumes. | railway status |
heroku:railway_resource_delete | High | This 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 id | Severity | What it catches |
|---|---|---|
vercel:remove | Critical | Removing a Vercel deployment or project takes it offline permanently. |
vercel:project_remove | Critical | Removing a Vercel project deletes it and all its deployments. |
vercel:env_remove | High | Removing an environment variable can break deployments that depend on it. |
vercel:domain_remove | High | Removing a domain disconnects it from your deployment. |
vercel:alias_remove | High | Removing an alias takes the deployment off that domain: visitors of the domain get no site. |
vercel:dns_remove | High | Removing a DNS record can take a domain, its email or another service offline. |
vercel:blob_delete | High | This permanently deletes files from Vercel Blob storage. |
vercel:team_remove | High | This removes a Vercel team, with its projects, deployments and members. |
vercel:integration_remove | High | This 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 id | Severity | What it catches |
|---|---|---|
netlify:sites_delete | Critical | Deleting a Netlify site permanently removes it and all its deployments. |
netlify:env_unset | High | Removing an environment variable can break builds and deployments. |
netlify:env_clone | High | Cloning environment variables overwrites the target site's variables. |
Fly.io
shellfirm check -c 'fly apps destroy web'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 id | Severity | What it catches |
|---|---|---|
flyio:apps_destroy | Critical | Destroying a Fly.io app permanently removes it and all its resources. |
flyio:secrets_unset | High | Removing secrets can break running applications that depend on them. |
flyio:volumes_destroy | High | Destroying a volume permanently deletes all data stored on it. |
flyio:postgres_destroy | Critical | Destroying 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:
[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 id | Severity | What it catches | Safe alternative |
|---|---|---|---|
database:supabase_db_push_remote | Medium | supabase 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_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. | supabase db dump --linked -f backup.sql |
database:supabase_db_reset | Medium | supabase db reset drops the local database and re-runs the migrations and seed: local data is lost. | supabase migration list |
database:supabase_projects_delete | Critical | supabase projects delete deletes the Supabase project with its database, storage and auth users. | supabase projects list |
database:supabase_remote_delete | High | This 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 id | Severity | What it catches | Safe alternative |
|---|---|---|---|
database:firebase_firestore_delete_all | Critical | firebase firestore:delete --all-collections deletes every document of every collection in the Firestore database. | gcloud firestore export gs://<bucket>/backup |
database:firebase_firestore_delete | High | firebase firestore:delete deletes Firestore documents (with -r, every document under the path). | gcloud firestore export gs://<bucket>/backup |
database:firebase_database_remove_root | Critical | firebase database:remove / deletes the whole Realtime Database. | firebase database:get / -o backup.json |
database:firebase_database_remove | High | firebase 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'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 id | Severity | What it catches | Safe alternative |
|---|---|---|---|
database:wrangler_d1_delete | Critical | wrangler d1 delete deletes the Cloudflare D1 database with all of its data. | wrangler d1 export <database> --remote --output backup.sql |
database:wrangler_kv_namespace_delete | Critical | wrangler kv namespace delete deletes the Workers KV namespace and every key in it. | wrangler kv namespace list |
database:wrangler_r2_bucket_delete | High | wrangler 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 id | Severity | What it catches | Safe alternative |
|---|---|---|---|
database:neon_project_delete | Critical | neonctl projects delete deletes the Neon project with all of its branches and databases. | neonctl projects list |
database:neon_branch_delete | High | neonctl branches delete deletes the Neon branch and the data written on it. | neonctl branches list |
database:pscale_database_delete | Critical | pscale database delete deletes the PlanetScale database with all of its branches and data. | pscale database list |
database:pscale_branch_delete | High | pscale branch delete deletes the PlanetScale branch and its data. | pscale branch list <database> |
database:turso_db_destroy | Critical | turso 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.