mcpField
S
security

security

github.com/iankikuSecurity1842 installsUpdated 13w ago
Repository

About security

A security skill for developers reviewing or building software, covering stack-aware recommendations, security defaults, compliance guidance, and a code review checklist. It combines general controls with HIPAA and SOC 2 references.

Key features

  1. 01Stack-specific implementation guidance
  2. 02Authentication and web security defaults
  3. 03OWASP vulnerability prevention
  4. 04HIPAA and SOC 2 guidance
  5. 05Security review checklist

Use cases

  1. 01Choosing security libraries for a project stack
  2. 02Reviewing endpoints, inputs, and data access
  3. 03Planning controls for health-tech PHI
  4. 04Preparing baseline SOC 2 controls

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/iankiku/forwward-teams --skill security

After installing, type/securityin Claude Code to confirm it loaded.

Details

From the project README

Security — Compliance & Protection

Assume breach. Defense in depth. Least privilege everywhere.

Step 0: Detect the Stack

Before advising on specific implementations, identify the project's stack (check package.json, go.mod, Gemfile, pyproject.toml, pom.xml, Cargo.toml). Security principles are universal — the libraries that implement them vary. Always recommend the idiomatic solution for the stack in use, not a JavaScript-specific one.

Security Defaults

Every project ships with:

ControlWhat to implement
AuthOAuth 2.0 / OIDC via the standard library for your stack
SessionsHTTP-only, Secure, SameSite=Strict cookies
Passwordsbcrypt or argon2, min 12 chars, no max limit
API authBearer tokens with expiry, refresh token rotation
CORSExplicit allowlist, never * in production
HTTPSEverywhere. No exceptions. HSTS headers.
CSPContent-Security-Policy header on all pages
Rate limitingAuth endpoints: 5/min. API: 100/min. Adjust per use.

OWASP Top 10 Quick Reference

VulnerabilityPrevention
Injection (SQL, NoSQL, OS)Parameterized queries, ORMs, never string concat
Broken AuthMFA, session timeouts, account lockout
Sensitive Data ExposureEncrypt at rest + transit, minimize data collection
XXEDisable external entity processing
Broken Access ControlCheck permissions server-side on every request
Security MisconfigurationDefaults off, hardened configs, no debug in prod
XSSOutput encoding, CSP headers, sanitize HTML
Insecure DeserializationValidate and type-check all serialized data
Known VulnerabilitiesDependency audit tool for your stack (npm audit, pip audit, go mod tidy, bundle audit, etc.) + automated updates
Insufficient LoggingLog auth events, access denied, input validation failures

HIPAA Compliance (Health-Tech)

Required if handling PHI (Protected Health Information):

RequirementImplementation
Encryption at restAES-256 for databases and file storage
Encryption in transitTLS 1.2+ everywhere
Access controlsRole-based, audit-logged, least privilege
Audit trailEvery PHI access logged with who, what, when
BAABusiness Associate Agreement with every vendor touching PHI
Data minimizationCollect only what's clinically necessary
Breach notification60-day notification requirement — have a plan
Employee trainingAnnual security awareness training

PHI includes: Names, dates, phone numbers, emails, SSN, medical record numbers, device IDs, biometric data, photos, and any data that could identify a patient.

Vendor checklist:

  • Does your cloud provider sign BAAs? (AWS, GCP, Azure: yes. Many others: no.)
  • Does your analytics tool see PHI? If yes, need BAA or strip PHI first.
  • Does your error tracking capture PHI in stack traces? Strip it.

SOC 2 Basics

Trust PrincipleWhat to Implement
SecurityAccess controls, encryption, firewalls, IDS
AvailabilityUptime monitoring, incident response, backups
Processing IntegrityInput validation, error handling, QA
ConfidentialityEncryption, access logging, data classification
PrivacyConsent, data retention, deletion, privacy policy

Start with: Security + Availability. Add others when customers require it.

Security Review Checklist

When reviewing code for security:

  1. Auth on every endpoint? — Not just the route, but the data query too
  2. Input validated at boundary? — Use the schema/validation library for your stack before any processing
  3. Secrets in env vars? — Never in code, git, or client bundles
  4. Queries parameterized? — No string concatenation, no interpolation into SQL or commands
  5. Error messages safe? — No stack traces, no internal paths to users
  6. Deps up to date? — Run your stack's dependency audit tool
  7. Logging sufficient? — Auth events, permission failures, anomalies
  8. Data minimized? — Only collecting what's needed, only retaining as long as required

Comments

Markdown supported