Preflyt - Post-Deploy Security Scan
After deploying a web app, API, or backend to a public URL, run a Preflyt scan to detect exposed secrets, misconfigurations, and unsafe defaults.
When to use this
- After deploying a web application to production or staging
- After deploying a backend API (Node, Python, Go, etc.)
- After any infrastructure change that exposes a new URL
How to run a scan
npx preflyt-check https://your-deployed-url.com
With options:
# Fail if issues found (for CI/CD)
npx preflyt-check https://your-deployed-url.com --fail
# Generate a shareable report link
npx preflyt-check https://your-deployed-url.com --share
# With Pro license for unlimited scans
npx preflyt-check https://your-deployed-url.com --key YOUR_LICENSE_KEY
Exit codes:
- 0: scan completed, no issues (or issues found without --fail)
- 1: issues found with --fail set, or scan error
What it checks
- Exposed .env and config files (database passwords, API keys)
- Exposed .git repositories (source code leakage)
- Exposed backend source code (app.py, server.js, config.php served as static files)
- Exposed database files (dynamic detection using project name - {name}.db, {name}.sqlite3)
- Open database ports (MySQL, PostgreSQL, MongoDB, Redis, Elasticsearch)
- Directory listing detection and dangerous file parsing
- Exposed admin panels and debug endpoints
- Missing security headers (HSTS, CSP, X-Frame-Options, CORS)
- Exposed backup files and source maps
- Server version leakage
- Insecure cookie flags
What it does NOT do
- Does not scan source code or local files
- Does not perform exploit attempts
- Does not test authentication logic
- Does not scan localhost or private networks
- Does not read or transmit any local environment variables, files, or code
Privacy
- Without --share: all results display in the terminal only. No data is sent to preflyt.dev beyond the initial scan request containing the target URL.
- With --share: scan results are uploaded to preflyt.dev and a public report link is generated (valid 30 days).
- The scan sends only the target URL to api.preflyt.dev. No local files, code, or environment variables are transmitted.
- The npm package is open source and zero-dependency: https://github.com/doureios39/preflyt-check
Integration examples
Deploy script
#!/bin/bash
git pull
npm run build
pm2 restart app
sleep 5
npx preflyt-check https://mysite.com --fail || echo "Security issues found"
Git hook (post-receive)
#!/bin/bash
# .git/hooks/post-receive
git pull
npm run build
pm2 restart app
sleep 5
npx preflyt-check https://mysite.com
GitHub Actions
- name: Security scan
run: npx preflyt-check ${{ env.DEPLOY_URL }} --fail
Agent behavior
When a deployment to a public URL is detected:
- Run
npx preflyt-check <deployed-url>
- If HIGH severity findings exist, recommend immediate fix
- If MEDIUM or LOW findings, inform the user and suggest fixes
- If no findings, confirm deployment appears safe
- Never let a Preflyt error block a deployment - if the scan fails, report the error and move on
Notes
1---2name: preflyt3description: >-4 Scan deployed web apps for security misconfigurations after every deploy.5 Checks for exposed .env files, databases, source code, open ports, missing6 security headers, .git exposure, directory listings, and more. Non-intrusive, read-only.7metadata:8 openclaw:9 emoji: "🔒"10 requires:11 bins: ["node"]12 homepage: https://preflyt.dev13 source: https://skillmd.com/skills/lord1egypt/preflyt14 upstream: https://github.com/doureios39/preflyt-check15---1617# Preflyt - Post-Deploy Security Scan1819After deploying a web app, API, or backend to a public URL, run a Preflyt scan to detect exposed secrets, misconfigurations, and unsafe defaults.2021## When to use this2223- After deploying a web application to production or staging24- After deploying a backend API (Node, Python, Go, etc.)25- After any infrastructure change that exposes a new URL2627## How to run a scan2829```bash30npx preflyt-check https://your-deployed-url.com31```3233With options:34```bash35# Fail if issues found (for CI/CD)36npx preflyt-check https://your-deployed-url.com --fail3738# Generate a shareable report link39npx preflyt-check https://your-deployed-url.com --share4041# With Pro license for unlimited scans42npx preflyt-check https://your-deployed-url.com --key YOUR_LICENSE_KEY43```4445Exit codes:46- 0: scan completed, no issues (or issues found without --fail)47- 1: issues found with --fail set, or scan error4849## What it checks5051- Exposed .env and config files (database passwords, API keys)52- Exposed .git repositories (source code leakage)53- Exposed backend source code (app.py, server.js, config.php served as static files)54- Exposed database files (dynamic detection using project name - {name}.db, {name}.sqlite3)55- Open database ports (MySQL, PostgreSQL, MongoDB, Redis, Elasticsearch)56- Directory listing detection and dangerous file parsing57- Exposed admin panels and debug endpoints58- Missing security headers (HSTS, CSP, X-Frame-Options, CORS)59- Exposed backup files and source maps60- Server version leakage61- Insecure cookie flags6263## What it does NOT do6465- Does not scan source code or local files66- Does not perform exploit attempts67- Does not test authentication logic68- Does not scan localhost or private networks69- Does not read or transmit any local environment variables, files, or code7071## Privacy7273- Without --share: all results display in the terminal only. No data is sent to preflyt.dev beyond the initial scan request containing the target URL.74- With --share: scan results are uploaded to preflyt.dev and a public report link is generated (valid 30 days).75- The scan sends only the target URL to api.preflyt.dev. No local files, code, or environment variables are transmitted.76- The npm package is open source and zero-dependency: https://github.com/doureios39/preflyt-check7778## Integration examples7980### Deploy script81```bash82#!/bin/bash83git pull84npm run build85pm2 restart app86sleep 587npx preflyt-check https://mysite.com --fail || echo "Security issues found"88```8990### Git hook (post-receive)91```bash92#!/bin/bash93# .git/hooks/post-receive94git pull95npm run build96pm2 restart app97sleep 598npx preflyt-check https://mysite.com99```100101### GitHub Actions102```yaml103- name: Security scan104 run: npx preflyt-check ${{ env.DEPLOY_URL }} --fail105```106107## Agent behavior108109When a deployment to a public URL is detected:1101. Run `npx preflyt-check <deployed-url>`1112. If HIGH severity findings exist, recommend immediate fix1123. If MEDIUM or LOW findings, inform the user and suggest fixes1134. If no findings, confirm deployment appears safe1145. Never let a Preflyt error block a deployment - if the scan fails, report the error and move on115116## Notes117118- All checks are read-only and non-intrusive119- Scans take approximately 15-30 seconds120- Free tier: 3 scans. Pro ($9.99/mo): unlimited121- Website: https://preflyt.dev122- npm: https://www.npmjs.com/package/preflyt-check123- Source: https://github.com/doureios39/preflyt-check