/wbSecure — Command Hub
/wbSecure performs adversarial security analysis on code, dependencies, and configurations. It takes an attacker's perspective, looking specifically for exploitable weaknesses: known CVEs in dependencies, injection risks in application code, and hardcoded secrets. Unlike /wbAudit which evaluates general code quality, /wbSecure answers one question: "can this be exploited?"
🎯 Strategic Position
Security is not quality assurance. /wbSecure is the cheap layer of security work — a scanner's checklist — not the complete one. A SAFE result means no obvious findings under that checklist. It does not mean nothing is wrong. Real-world security still requires human judgment, threat modeling, and ongoing pentests.
- Before
/wbDeploy— mandatory if the app handles user input. - Before
/wbPublish— for any package that handles untrusted input. - After dependency updates —
npm updatecan introduce vulnerable transitive deps. - Periodically (monthly) on production apps.
- After any security-adjacent code change — auth, sessions, input handling.
🛠️ Operating Modes
| Mode | Trigger | Output |
|---|---|---|
| Full scan | /wbSecure <target> | All vulnerability checks across code, deps, and config |
| Focused | /wbSecure <target> --focus="<area>" | Narrowed to auth, xss, deps, or another domain |
✅ What a useful security report contains
- Findings categorized as 🔴 CRITICAL, 🟡 WARNING, or 🟢 SAFE.
- Immediate action items for CRITICAL findings (revoke this token, sanitize this v-html).
- CVE references from dependency audits.
- A "what this scan did NOT check" section — server-side logic, zero-days, supply chain.
- Integration with
/wbDeploy— CRITICAL findings block deployment automatically.
🚫 What it cannot do
| Not this | Use instead |
|---|---|
| Server-side vulnerability detection | Threat modeling, backend pentest |
| Supply-chain attack detection | npm audit directly |
| Authentication design review | Human security review |
| Generic code quality | /wbAudit |
| Licensing compliance | /wbLicense |
| Dead code removal | /wbClean |
It names these limits in every report's "did NOT check" section.
📚 Reading Order
- ELI5 — the one-paragraph mental model.
- Practical — step-by-step on a real project.
- Expert — architecture, edge cases, and when NOT to use.
- Examples · Part 1 · Part 2 — annotated transcripts.
- Exhaustive simulation · Live demo.
🔗 Related
wbSecure.md— the command reference this hub orients you around./wbDeploy— reads the latest security report and refuses on CRITICAL./wbAudit— general code quality (not adversarial)./wbLicense— compliance and tier-gate checks.
Quick Reference
/wbSecure <target> # full security scan
/wbSecure <target> --focus="auth" # narrowed to authentication
/wbSecure <target> --focus="deps" # dependency-only scan
/wbSecure <target> --focus="xss" # cross-site scripting← Home · Commands · Install | wb-flow on npm · flow.wbc-ui.com · wi-bg.com
