/wbSecure — Live Demo ()
What /wbSecure would actually surface on wb-labs right now. The candidate targets and likely attack paths below are real for the current state.
1. Live target
| Field | Live value |
|---|---|
| Most-security-relevant code | core2/packages/wb-core/src/tierEnforcement.js (gates privileged ops) |
| Cross-package auth surface | wb-core (verifier) + hypothetical consumer in wb-dataviewer |
| Known live security finding | JWT alg-denylist gap in tierEnforcement.js (per /wbAudit --profile="security" simulation in earlier files) |
| Third-party / vendored code | None obvious in core2/; would refuse without -F if requested |
| Memory rules | feedback_no_git.md (no git ops), feedback_model_selection.md (the agent for complex/auth work) — declared the agent for /wbSecure runs |
The first row is the natural target. tierEnforcement.js is the highest-value file in the workspace from a security perspective — anything that bypasses it bypasses every tier check.
2. What each input form would resolve to today
| Input | Live resolution |
|---|---|
/wbSecure core2/packages/wb-core/src/tierEnforcement.js | Standard adversarial review. Would surface alg:"none" (Path 1) plus replay considerations (Path 3) plus tier-confusion check (Path 2: not exploitable as written). |
/wbSecure --focus="auth" | Cross-package; would warn about the multi-package scope, then run. |
/wbSecure --focus="payment" | Honest "no payment code found." Suggests /wbVision if exploring future payment work. |
/wbSecure node_modules/jsonwebtoken/ | Refuse — third-party; suggests -F only if user owns the fork. |
/wbSecure "the JWT thing" | Halt — too ambiguous; lists candidate files. |
/wbSecure core2/packages/wbc-ui2-cdn/ | Permitted but cautious — memory flags this package as parked. Would scan for security issues but NOT auto-promote findings to plan. |
3. Per-flag behavior, applied live
| Flag combination | Live result |
|---|---|
| (no flag, file target) | Standard adversarial review. |
--focus="auth" | Cross-package walk; warning about scope. |
-F alone, on a vendored target | Required override; recorded in report header. |
-F on a file with literal secrets | Override accepted; secrets quoted in the report (which is itself sensitive). |
--focus="" | Halt. |
4. Pipelines
/wbSecure core2/packages/wb-core/src/tierEnforcement.js> /wbSecure core2/packages/wb-core/src/tierEnforcement.js💠 Pipeline Adversarial review of tierEnforcement.js (the high-value target)
💠 Pipeline Cross-package focus
💠 Pipeline Refuse vendored review without -F
5. What would refuse today
| Trigger | Live response |
|---|---|
/wbSecure (no target) | Halt. |
/wbSecure "the JWT thing" | Halt with disambiguation. |
/wbSecure node_modules/... | Refuse without -F. |
/wbSecure file_with_literal_secret.js | Refuse without -F. |
/wbSecure core2/packages/wbc-ui2-cdn/ | Permitted but flagged "memory: parked package; findings will not auto-promote to plan." |
/wbSecure --force-past-security (no other args) | Halt — -F is an override for an existing target/refusal, not a target itself. |
/wbSecure --focus="payment" | Honest "no payment code in workspace." Suggests /wbVision for exploration. |
| Adversarial output that would constitute step-by-step exploit instructions | Default: high-level threat model only. -F permits step-by-step (for owned code). |
The pattern: /wbSecure is the offensive complement to /wbAudit --profile="security". It produces reasoning chains, not pattern matches; refuses third-party code by default; treats -F as a recorded override; and stays inside the workspace + memory (no external CVE lookups). Run both /wbAudit -p="security" and /wbSecure for high-value code — they'll overlap on known patterns, diverge on code-specific paths, and together cover more ground than either alone.
