Security round complete and pushed (8291260): 1113 tests pass / 0 fail (31 new), typecheck clean on core and apps, smoke 9/9. I verified end-to-end that the sandbox actually runs a real Node PoC and the skills gate correctly (29 loaded on a security prompt, 0 on an unrelated one).
What the security agent gained
The cybersecurity skills, curated. The upstream repo has 800+ skills spanning red-team, OT/ICS, forensics, and cloud — most irrelevant to a coding agent and far too heavy to bundle. I vendored a focused defensive subset of 29: the injection classes (SQL/NoSQL/SSTI/deserialization/prototype pollution/type juggling), broken auth and access control, JWT/OAuth, secrets management, SAST (Semgrep, gitleaks), dependency and supply-chain analysis, threat modeling, remediation SLAs, and web-pentest methodology. They live in bundled-skills/cybersec/ with the upstream Apache-2.0 LICENSE preserved and credit in both CREDITS.md files. The vendor script gained a per-pack skillAllowlist so regeneration reproduces exactly this curated set. The pack is gated behind skillPacks.security and only loads when the prompt shows security intent (audit, vulnerability, CVE, injection, harden, pentest, OWASP…) or the model calls reveal_skills pack=security — so ordinary feature work isn't crowded with pentest guidance.
Repro sandbox tools — the capability you asked for. Four always-available tools let the agent prove a vulnerability or verify a fix without running proof-of-concept code against the real repo: create_repro_sandbox makes a throwaway temp directory outside the workspace, write_repro_file writes PoC files into it (path-traversal-guarded so they can't escape), run_in_sandbox runs commands there with cwd/HOME/user2 pinned to the sandbox, NAXIL_SANDBOX=1, a hard SIGKILL timeout, and capped output, and cleanup_repro_sandbox tears it down. Isolation and blast-radius control for the agent's own experiments.
A real deterministic scanner. The old scanSecurity was 9 loose regexes. It's now security-patterns.ts with 23 CWE-tagged rules built from the pack's vulnerability taxonomy — injection, weak crypto, insecure randomness, unsafe deserialization, SSRF, path traversal, XXE, JWT none/unverified decode, disabled TLS, prototype pollution, wildcard CORS, open redirect, and more. It's high-recall on request-derived sinks (req.*, concatenation, ${…}) and quiet on static/safe forms, and every finding carries a CWE id and a one-line fix. It runs in the verify orchestrator before any LLM reviewer.
Rounding it out: a security_discipline prompt that injects on security turns (map input→sinks, confirm in a sandbox before claiming, fix at the right layer, verify by re-running the repro, report with class/CWE/location/impact/fix/evidence, defensive scope only), a Settings toggle, reveal_skills pack=security, and docs/naxil/security.md. Lessons captured in .cursorrules (the toggle-wiring checklist, the curated-vendoring pattern, and the sandbox isolation recipe). All on cursor/hf-massive-stage-49dd, PR #7.