moai-ref-secops

Hardens CI/CD pipelines, containers, Kubernetes RBAC, and production APIs with defensive security controls.

Updated Aug 29, 2026
One-click install
npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-ref-secops-seung-zedd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-ref-secops
Source: https://github.com/Seung-zedd/secure-file-upload/tree/main/.claude/skills/moai-ref-secops
Command: npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-ref-secops-seung-zedd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Operational security gaps in pipelines, containers, and running APIs let a single misconfiguration cascade into a breach: a leaked pipeline secret, a privileged container, or an API endpoint without server-side authorization. This Skill provides a defensive reference that frames each operational layer as a trust boundary and specifies how to detect, prevent, and verify misconfigurations at each one. ## Core Features & Use Cases - DevSecOps hardening: CI/CD pipeline pinning, least-privilege tokens, ephemeral runners, secret scanning (pre-commit and CI), IaC misconfiguration detection before apply, and SAST/DAST integration. - Container and Kubernetes defense: image scanning and admission control, least-privilege RBAC, container-escape hardening (non-root, read-only root, seccomp, dropped capabilities), and runtime threat detection rules. - API operational defense: OWASP API Top 10 runtime controls including BOLA detection, rate limiting, WAF tuning, and GraphQL/REST depth and complexity limits. - Use Case: Before deploying a new service, use this Skill to audit the pipeline for secret exposure, verify the pod security context meets the hardened baseline, and confirm every API endpoint enforces server-side object-ownership checks. ## Quick Start Review my Kubernetes deployment manifests and CI pipeline configuration against the defensive hardening baselines and list any violations with severity levels.

Frequently Asked Questions about moai-ref-secops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I harden a CI/CD pipeline against secret leaks?▼

Run secret scanning as both a pre-commit hook and a CI step over the full git history, scope secrets per job, use short-lived federated credentials, and enable log redaction. A detected secret must be rotated, not just deleted, since it remains in history.

How to prevent container escape in Kubernetes?▼

Apply the hardened-pod baseline: run as non-root, use a read-only root filesystem, drop all Linux capabilities, enforce a seccomp profile, disable privileged mode and privilege escalation, and never mount host paths or the runtime socket. Enforce this at admission with PodSecurity restricted profile.

What is the difference between this Skill and moai-ref-owasp-checklist?▼

This Skill covers the operational runtime layer: detecting BOLA in production traffic, enforcing rate limits at the gateway, and tuning a WAF. moai-ref-owasp-checklist covers dev-time secure coding like parameterized queries, input validation, and security headers. The two are consulted together.

Does this Skill provide offensive security or penetration testing guidance?▼

No. It is strictly defensive: every section frames a misconfiguration, how to detect it, and how to prevent it. It explicitly excludes exploit execution, container-escape attack steps, privilege-escalation procedures, and attack tooling.

How do I defend an API against Broken Object Level Authorization?▼

Enforce a server-side ownership check on every object access; never trust a client-supplied object ID as proof of authorization. Operationally, monitor production traffic for one identity accessing another's object IDs, since frontend checks are not a control.

When should IaC scanning run in the deployment workflow?▼

IaC scanning must run as a CI gate before the apply stage, failing closed on high-severity findings like public buckets or wildcard IAM policies. A scan that runs after apply is detection, not prevention, and drift detection should reconcile live infrastructure against the versioned definition.