agentsclimarketplace

Security

Skill iceflower/agent-skills/security

Agent Skills 오픈 표준 기반 AI 코딩 에이전트용 스킬 컬렉션 (Java, Kotlin, Spring, NestJS, K8s, Terraform, GraphQL, gRPC, OpenTelemetry, a11y, i18n 등 60개)

Install
npx -y skills add iceflower/agent-skills --skill security

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

One thing to look at

  • 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.

What its author says it does

Copied from the file, not written here

Framework-agnostic security rules including input validation, auth principles, CORS, API headers, rate limiting, secret management, authentication patterns (JWT, OAuth2, session, MFA), web protection (CSRF, XSS, injection defense, TLS), container security, and software supply chain security (SBOM, Cosign, Sigstore, SLSA). Use when implementing security-related code.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

8.3 KB, as published. Nobody here has run it

Security Rules

1. Input Validation Principles

RulePurpose
Validate at API boundaryReject bad input early
Whitelist over blacklistAllow known-good, reject everything else
Validate type, length, range, formatPrevent injection and overflow
Sanitize output, not just inputPrevent XSS in responses
Never trust client-side validationAlways re-validate server-side

2. Authentication and Authorization Principles

  • Apply least privilege — grant minimum permissions needed
  • Use role-based access control (RBAC) at endpoint level
  • Apply defense in depth — check authorization in service layer, not just URL
  • Use method-level security for fine-grained control
  • Log all authentication failures and authorization denials
  • Never rely on URL-based security alone

3. CORS Principles

  • Never use wildcard (*) origins in production
  • Explicitly list allowed origins, methods, and headers
  • Set maxAge to reduce preflight requests
  • Separate CORS config per environment (dev may be more permissive)

4. API Security Headers

HeaderValuePurpose
X-Content-Type-OptionsnosniffPrevent MIME sniffing
X-Frame-OptionsDENYPrevent clickjacking
Strict-Transport-Securitymax-age=31536000; includeSubDomainsForce HTTPS
Cache-Controlno-storePrevent sensitive caching
X-XSS-Protection0Disable (use CSP instead)

5. Rate Limiting Guidelines

Recommended Limits

Endpoint TypeLimitWindow
Public API100 reqPer minute
Authenticated API1000 reqPer minute
Login/Auth10 reqPer minute
File upload10 reqPer hour

Response Headers

  • X-RateLimit-Limit: Maximum requests allowed in window
  • X-RateLimit-Remaining: Requests remaining in current window
  • X-RateLimit-Reset: Timestamp when the window resets

6. Sensitive Data in Responses

Never Expose

  • Password hashes
  • Internal IDs when external IDs exist
  • Stack traces or internal error details
  • Database column names in error messages
  • Server version or framework information

Response Filtering

  • Use dedicated response DTOs — never return entities directly
  • Exclude internal fields (password, internal flags, audit metadata)
  • Map entities to response objects at the API boundary

7. Secret Management Principles

  • Store secrets in environment variables or secret manager (Vault, AWS SSM, etc.)
  • Never commit secrets to version control
  • Rotate secrets periodically (at least every 90 days)
  • Use different secrets per environment
  • Revoke and rotate immediately if any secret is exposed
  • Never provide default values for secrets in configuration files

8. Anti-Patterns

  • Hardcoding secrets in source code or config files
  • Returning entities directly from API endpoints
  • Using wildcard CORS in production
  • Missing rate limiting on authentication endpoints
  • Logging sensitive data (passwords, tokens, PII)
  • Trusting client-side validation without server-side checks
  • Exposing detailed error internals in API responses
  • Security by Obscurity: Relying solely on hiding for security. Design systems to be secure even when exposed
  • Rolling Your Own Crypto: Using unverified custom encryption algorithms. Use standard libraries (AES, RSA, bcrypt)
  • Excessive Permissions: Violating the principle of least privilege. Grant only the minimum required permissions
  • Delayed Security Updates: Postponing known CVE patches increases attack exposure. Apply patches immediately

9. OWASP Top 10 Awareness

OWASP (Open Worldwide Application Security Project) publishes the industry-standard list of the most critical web application security risks. The OWASP Top 10 is updated every 3-4 years (latest: 2021) and serves as the de facto security baseline for code reviews, audits, and compliance.

When writing code, be vigilant against all 10 categories:

#VulnerabilityPrevention
A01Broken Access ControlCheck authorization at service layer; deny by default
A02Cryptographic FailuresEncrypt at rest and in transit; use strong algorithms
A03Injection (SQL, Cmd, LDAP, XSS)Use parameterized queries; never concatenate user input
A04Insecure DesignApply threat modeling; use secure design patterns
A05Security MisconfigurationNo default credentials; disable debug in production
A06Vulnerable and Outdated ComponentsKeep dependencies updated; monitor CVE databases
A07Identification and Authentication FailuresUse established auth libraries; enforce MFA
A08Software and Data Integrity FailuresVerify integrity of updates; use digital signatures
A09Security Logging and Monitoring FailuresLog security events; ensure logs are tamper-resistant
A10Server-Side Request Forgery (SSRF)Validate and whitelist outbound URLs

10. Container and Supply Chain Security

Securing containers and the software supply chain is essential for modern cloud-native deployments. For detailed patterns, see references/container-supply-chain.md.

Key Rules

  • Use minimal base images (distroless, Alpine) — reduce attack surface
  • Run containers as non-root user — set USER directive in Dockerfile
  • Generate and attest SBOMs (Software Bill of Materials) with Syft or Trivy
  • Sign container images with Cosign (Sigstore keyless signing)
  • Enforce admission policies (OPA/Gatekeeper, Kyverno) in Kubernetes clusters
  • Target SLSA Build Level 2+ for production workloads — provenance attestation required

Supply Chain Controls

ControlToolPurpose
Image scanningTrivy, GrypeVulnerability detection
Image signingCosign (Sigstore)Authenticity and integrity
SBOM generationSyftDependency inventory
Policy enforcementKyverno, OPAAdmission control
ProvenanceSLSABuild process attestation

Related Skills

  • For secret lifecycle management (rotation, storage, detection), see secrets-management skill
  • For Kubernetes security (RBAC, NetworkPolicy, Pod Security), see k8s-workflow skill

Additional References

Keep looking

Skills are one crate of 328,083. 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.