Skip to content

/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 update can introduce vulnerable transitive deps.
  • Periodically (monthly) on production apps.
  • After any security-adjacent code change — auth, sessions, input handling.

🛠️ Operating Modes ​

ModeTriggerOutput
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 ​

  1. Findings categorized as 🔴 CRITICAL, 🟡 WARNING, or 🟢 SAFE.
  2. Immediate action items for CRITICAL findings (revoke this token, sanitize this v-html).
  3. CVE references from dependency audits.
  4. A "what this scan did NOT check" section — server-side logic, zero-days, supply chain.
  5. Integration with /wbDeploy — CRITICAL findings block deployment automatically.

🚫 What it cannot do ​

Not thisUse instead
Server-side vulnerability detectionThreat modeling, backend pentest
Supply-chain attack detectionnpm audit directly
Authentication design reviewHuman 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 ​

  1. ELI5 — the one-paragraph mental model.
  2. Practical — step-by-step on a real project.
  3. Expert — architecture, edge cases, and when NOT to use.
  4. Examples · Part 1 · Part 2 — annotated transcripts.
  5. Exhaustive simulation · Live demo.
  • 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 ​

bash
/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