From corso
Security & Deployment domain context. Threat model injection, language-specific threat detection, supply chain auditing, and deploy gate enforcement. C0RS0 executes with corsoTools action guard (includes path-based scanning, formerly security_scan).
How this skill is triggered — by the user, by Claude, or both
Slash command
/corso:GUARDC0RS0The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Build Phase 4/7: AUDIT — Scan for threats after code is linted, before testing
Build Phase 4/7: AUDIT — Scan for threats after code is linted, before testing
Follows SNIFF (detect code issues) -> feeds into CHASE (verify fixes pass tests).
The primary security and deployment entry point for C0RS0. Loads threat modeling, vulnerability scanning, supply chain auditing, and deploy gate enforcement context into C0RS0, which then executes directly using security MCP tools.
Claude -> loads GUARD context -> C0RS0 executes with guard tool
Use mcp__C0RS0__corsoTools with action: "guard" for comprehensive security analysis (includes path-based scanning), applying all threat intelligence context below.
security.rs:infer_threat_model)Scan code for these patterns and assess threat level:
| Pattern | Keywords | Threats |
|---|---|---|
| Filesystem | fs::, File::, open(, Path | Path traversal, symlink attacks, TOCTOU |
| Network | http, tcp, socket, TcpListener | MITM, injection, DoS, SSRF |
| Unsafe | unsafe, transmute, from_raw | Memory corruption, UB, use-after-free |
| Command | Command::new, exec, system( | Command injection, privilege escalation |
| Deserialization | serde, Deserialize, from_str | Type confusion, denial of service |
| Cryptography | rand, hash, encrypt, sign | Weak algorithms, key exposure |
| Authentication | token, session, auth, password | Credential theft, session hijacking |
security.rs)Rust:
.unwrap() -> panic in production (DoS vector)checked_* requiredunsafe blocks -> must have // SAFETY: justificationtransmute -> almost always wrong, audit carefullyJavaScript:
innerHTML, document.write -> XSSeval(), Function() -> code injection__proto__, prototype -> prototype pollutionJSON.parse on untrusted input -> DoS via large payloadsPython:
eval(), exec() -> code injectionpickle.loads() -> arbitrary code executionos.system(), subprocess without shell=False -> command injectionGo:
defer in loops -> resource leaksunsafe.Pointer -> memory corruption| Check | Requirement | Blocking |
|---|---|---|
cargo audit | Zero critical/high CVEs | Yes |
| Dependency freshness | Updated within 12 months | Warning |
| License whitelist | MIT, Apache-2.0, BSD only | Yes |
| Lockfile committed | Cargo.lock in version control | Yes |
| Minimal deps | Prefer std library over crates | Advisory |
infrastructure.rs)CI/CD Pipeline Stages:
Container Security:
latest tag)Secrets Management:
corsoTools action: guard secrets mode| Violation | Severity | Rule |
|---|---|---|
.unwrap() in production | HIGH | no-unwrap |
.expect() in production | HIGH | no-expect |
panic!() macro | HIGH | no-panic |
unsafe without // SAFETY: | HIGH | unsafe-comment |
| Hardcoded secrets | CRITICAL | no-secrets |
| SQL string concatenation | CRITICAL | sql-injection |
eval() / exec() | CRITICAL | no-eval |
| Missing input validation | MEDIUM | input-validation |
| Unbounded loop | MEDIUM | bounded-loops |
| Missing error handling | MEDIUM | handle-errors |
| When | Skill Context | MCP Tools |
|---|---|---|
| Security findings need code fixes | SNIFF (review) / HUNT (generation) | corsoTools actions: code_review, sniff |
| Fixes need regression testing | CHASE | corsoTools action: chase |
| Researching CVEs, security advisories | FETCH | corsoTools action: fetch |
corsoTools Action | Purpose |
|---|---|
guard | Security analysis (4,997 vulnerability patterns) + path-based scanning |
npx claudepluginhub thelightarchitect/corsoCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.