mcpField
C
code-security

code-security

github.com/rade-nugrohoSecurity1255 installsUpdated 23w ago
Repository

About code-security

A security skill for writing and reviewing application code and infrastructure configuration, covering common vulnerability classes with CWE/OWASP labels and remediation guidance. It is for engineers who want security checks integrated into coding or code review.

Key features

  1. 01Check injection, XSS, authentication, and SSRF
  2. 02Review secrets, sessions, and transport security
  3. 03Assess Terraform, Kubernetes, and related configuration
  4. 04Map findings to CWE/OWASP
  5. 05Suggest secure alternatives and fixes

Use cases

  1. 01Review code handling user input or external requests
  2. 02Inspect authentication, secrets, and session logic
  3. 03Review container and cloud infrastructure configuration

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rade-nugroho/agentic-enteprises-skill --skill code-security

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

Bundled files

References and scripts installed along with SKILL.md.

references/
code_security_scope_and_workflow.md
crypto_auth_and_session.md
deserialization_ssrf_xxe.md
infrastructure_as_code_security.md
injection_and_input_validation.md
review_checklist_and_owasp_mapping.md

Details

From the project README

Code Security

When to Use

  • Write or review application code for common vulnerability classes (injection, XSS, auth, crypto, SSRF, XXE, deserialization)
  • Review secrets handling, session/JWT patterns, and transport security in code
  • Review Terraform, Kubernetes manifests, Dockerfiles, or GitHub Actions for security misconfigurations
  • Proactively harden code that accepts user input, performs I/O, queries databases, or calls external URLs
  • Map findings to CWE/OWASP categories and suggest concrete secure patterns

When NOT to Use

  • Plan or execute authorized penetration tests, exploit chains, or red-team campaigns → ai-redteam, cybersecurity, penetration-tester, red-team-specialist
  • Map controls to SOC 2, ISO 27001, or build audit evidence packages → compliance-engineer, compliance-specialist
  • Deploy SIEM, IdP, KMS, WAF, or operate security tooling → information-security-engineer
  • Configure CI/CD scanners, SBOM, OIDC, or pipeline gates without secure-coding review → devsecops
  • Author YARA or malware detection rules → yara-rule-authoring
  • General feature design, RFCs, or refactoring without a security lens → senior-software-engineer

Related skills

NeedSkill
Security program strategy, policies, IRcybersecurity
Control implementation, IdP, KMS, SIEMinformation-security-engineer
CI/CD security gates, SBOM, pipeline OIDCdevsecops
Audit evidence and framework mappingcompliance-engineer
LLM/agent red team and prompt injectionai-redteam
Code review, RFCs, reliability (non-security)senior-software-engineer
Cloud account guardrails and CSPMcloud-security-engineer
Cryptographic primitive/protocol designcryptographer-specialist
Pentest findings reproductionpenetration-tester, web-pentester

How to work

Modes
  • Proactive — When writing or touching security-sensitive code (input, auth, files, DB, HTTP clients, crypto, IaC), check relevant categories without waiting for an explicit security ask.
  • Reactive — When the user requests a security review, follow the review workflow in references/review_checklist_and_owasp_mapping.md.
Workflow
  1. Identify language/stack and what the code does (input? DB? shell? XML? outbound HTTP? secrets? IaC?).
  2. Load the matching reference(s) below; prioritize Critical then High impact.
  3. Flag vulnerable patterns with CWE/OWASP labels; propose secure alternatives from references (language-specific examples live there).
  4. For reviews, produce severity-ordered findings with file/line context and fix guidance.
Language priority (first checks)
Language / stackPriority topics
PythonSQL/command injection, path traversal, code injection, SSRF, insecure crypto, deserialization
JavaScript/TypeScriptXSS, prototype pollution, code injection, CSRF, insecure transport
JavaSQL injection, XXE, insecure deserialization, SSRF, insecure crypto
GoSQL/command injection, path traversal, SSRF, insecure transport
C/C++Memory safety, unsafe functions, command injection, path traversal
Ruby / PHPSQL/command injection, XSS, deserialization (Ruby), code injection
HCL / YAMLTerraform (AWS/Azure/GCP), Kubernetes, Docker, GitHub Actions

When to load references

Detailed vulnerable/secure patterns and multi-language examples are in references/ (condensed from 28 upstream rule categories). Do not expect per-language copies of every rule in SKILL.md.

TopicReference
Scope, modes, language prioritiesreferences/code_security_scope_and_workflow.md
SQL, command, XSS, path traversal, code injectionreferences/injection_and_input_validation.md
Secrets, JWT, CSRF, crypto, TLSreferences/crypto_auth_and_session.md
XXE, deserialization, SSRFreferences/deserialization_ssrf_xxe.md
Terraform, K8s, Docker, GitHub Actionsreferences/infrastructure_as_code_security.md
Review checklist, CWE/OWASP map, medium/lowreferences/review_checklist_and_owasp_mapping.md

Quick prevention reference

VulnerabilityKey prevention
SQL injectionParameterized queries / prepared statements
XSSContext-aware output encoding; CSP where appropriate
Command injectionAvoid shell; use APIs with argument lists
Path traversalCanonicalize paths; allowlist base directories
SSRFURL allowlists; block metadata/link-local ranges
SecretsEnv vars / secret managers; never commit credentials
Weak cryptoSHA-256+, AES-256-GCM; avoid MD5/SHA1/DES/ECB
XXEDisable DTD/external entities in XML parsers
DeserializationDo not deserialize untrusted data

Comments

Markdown supported