agentsclimarketplace

Sec rx

Skill acardozzo/unity-suite/skills/sec-rx

Code-level security posture evaluation. Scans for OWASP Top 10 vulnerabilities, authentication flaws, injection vectors, authorization gaps, and data protection issues. Complements arch-rx D9 (architectural security) by inspecting actual source code patterns, dependencies, and security configurations. Produces a scored report across 8 dimensions with 32 sub-metrics mapped to OWASP ASVS and CWE references.From its SKILL.md

Install
npx -y skills add acardozzo/unity-suite --skill sec-rx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.5 KB, as published. Nobody here has run it

Prerequisites

Recommended: semgrep (brew install semgrep)

Check all dependencies: bash scripts/rx-deps.sh or bash scripts/rx-deps.sh --install

sec-rx — Code-Level Security Posture Evaluation

Evaluates source code for security vulnerabilities, misconfigurations, and missing protections. Maps findings to OWASP Top 10 2021, ASVS 4.0, and CWE entries.

Dimensions (8) and Sub-Metrics (32)

D1: Injection Prevention (15%)

Source: OWASP A03:2021, CWE-79/89/78

IDSub-MetricWhat to look for
M1.1SQL InjectionParameterized queries, no string concatenation in SQL, ORM usage
M1.2XSS PreventionOutput encoding, Content Security Policy, input sanitization, no innerHTML/dangerouslySetInnerHTML with user data
M1.3Command InjectionNo exec/spawn with unsanitized user input, command allowlisting
M1.4NoSQL InjectionQuery operator injection prevention, schema validation, input type checking

D2: Authentication & Session (15%)

Source: OWASP A07:2021, ASVS V2/V3

IDSub-MetricWhat to look for
M2.1Password Handlingbcrypt/argon2/scrypt usage, no plaintext storage, strength requirements enforced
M2.2Session ManagementSecure cookie flags (httpOnly, sameSite, secure), session expiry, regeneration on auth
M2.3JWT SecurityAlgorithm pinning (no none), expiry claims, refresh token rotation, secret strength
M2.4MFA SupportTOTP/WebAuthn implementation, recovery codes, enrollment flow

D3: Authorization & Access Control (15%)

Source: OWASP A01:2021, ASVS V4

IDSub-MetricWhat to look for
M3.1IDOR PreventionObject-level authorization checks on every data-access endpoint
M3.2Function-Level AccessRole/permission checks on admin and privileged functions
M3.3Data-Level AccessRow-level security, tenant isolation, query scoping
M3.4Privilege Escalation PreventionRole hierarchy enforcement, no self-role-assignment

D4: Security Headers & Transport (10%)

Source: OWASP Secure Headers Project, HSTS RFC 6797

IDSub-MetricWhat to look for
M4.1HTTPS EnforcementHSTS header, HTTP-to-HTTPS redirect, TLS 1.2+
M4.2Content Security PolicyCSP header present, restrictive directives, no unsafe-inline/unsafe-eval
M4.3CORS ConfigurationNot wildcard *, specific allowed origins, credentials handling
M4.4Additional HeadersX-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy

D5: Data Protection & Privacy (10%)

Source: OWASP A02:2021, GDPR Technical Measures

IDSub-MetricWhat to look for
M5.1Encryption at RestSensitive fields encrypted in DB, key management, no plaintext secrets
M5.2PII HandlingPII identified and minimized, consent tracking, erasure capability
M5.3Logging SanitizationNo PII, secrets, tokens, or passwords in log output
M5.4Data RetentionAutomated cleanup jobs, configurable retention periods, right-to-deletion support

D6: Dependency & Supply Chain (10%)

Source: OWASP A06:2021, SLSA Framework

IDSub-MetricWhat to look for
M6.1Vulnerability ScanningAutomated scanning in CI (npm audit, Snyk, Dependabot), not just periodic
M6.2Critical CVE ResponseSLA for patching critical vulnerabilities, documented process
M6.3Lockfile IntegrityLockfile committed and enforced, pinned versions, reviewed changes
M6.4SBOM & ProvenanceSoftware bill of materials generated, signed artifacts, audit trail

D7: CSRF & Request Security (10%)

Source: OWASP A05:2021, SameSite Cookies

IDSub-MetricWhat to look for
M7.1CSRF Token ValidationDouble-submit cookies or synchronizer token pattern on state-changing requests
M7.2Origin ValidationReferrer/Origin header checking middleware
M7.3Request Rate LimitingBrute-force protection, account lockout, API rate limits
M7.4File Upload SecurityMIME type validation, size limits, virus scanning, isolated storage

D8: Security Testing & Monitoring (15%)

Source: OWASP Testing Guide, SAST/DAST Best Practices

IDSub-MetricWhat to look for
M8.1SAST IntegrationStatic analysis in CI (semgrep, eslint-plugin-security, CodeQL)
M8.2DAST / Pen TestingOWASP ZAP, periodic penetration tests, documented findings
M8.3Security MonitoringFailed login tracking, anomaly detection, audit trail for sensitive ops
M8.4Incident Response ReadinessSECURITY.md / security contact, disclosure policy, response plan

Execution

# Run full scan
bash ~/.claude/skills/sec-rx/scripts/discover.sh /path/to/project

# Run single dimension
bash ~/.claude/skills/sec-rx/scripts/dimensions/d01_injection.sh /path/to/project

Scoring

Each sub-metric scores 0-5. Dimension score = weighted average of its sub-metrics. Final score = weighted sum of dimension scores using the percentages above. See references/grading-framework.md for full threshold tables.

Output

Results are written to sec-rx-report.md in the project root. See references/output-templates.md for format specification.

Auto-Plan Integration

After generating the scorecard and saving the report to docs/audits/:

  1. Save a copy of the report to docs/rx-plans/{this-skill-name}/{date}-report.md
  2. For each dimension scoring below 97, invoke the rx-plan skill to create or update the improvement plan at docs/rx-plans/{this-skill-name}/{dimension}/v{N}-{date}-plan.md
  3. Update docs/rx-plans/{this-skill-name}/summary.md with current scores
  4. Update docs/rx-plans/dashboard.md with overall progress

This happens automatically — the user does not need to run /rx-plan separately.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.