administering-linux
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
Reduces attack surface across OS, container, cloud, network, and database layers using CIS Benchmarks and zero-trust principles. Use when hardening production infrastructure, meeting compliance requirements, or implementing defense-in-depth security.
$ npx -y skills add ancoleman/ai-design-components --skill security-hardening --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/security-hardeningContext preview
The summary Claude sees to decide when to auto-load this skill.
Reduces attack surface across OS, container, cloud, network, and database layers using CIS Benchmarks and zero-trust principles. Use when hardening production infrastructure, meeting compliance requirements, or implementing defense-in-depth security.
name: security-hardening description: Reduces attack surface across OS, container, cloud, network, and database layers using CIS Benchmarks and zero-trust principles. Use when hardening production infrastructure, meeting compliance requirements, or implementing defense-in-depth security.
Proactive reduction of attack surface across infrastructure layers through systematic configuration hardening, least-privilege enforcement, and automated security controls. Applies industry-standard CIS Benchmarks and zero-trust principles to operating systems, containers, cloud configurations, networks, and databases.
Invoke this skill when:
Security hardening applies across five infrastructure layers:
Start with all access denied, explicitly permit only required operations. Apply default-deny firewall rules and network policies, then allow specific traffic.
Grant minimum permissions required for operation. Use RBAC, IAM policies with specific resources, and database roles with limited permissions (no DELETE or DDL unless required).
Implement multiple overlapping security controls: network firewalls, authentication, authorization, audit logging, and encryption working together.
Remove unnecessary components, services, and permissions. Use minimal container base images, disable unused services, and drop all Linux capabilities unless required.
On error or misconfiguration, default to secure state. Authentication failures deny access, missing configurations use restrictive defaults, and monitoring failures trigger immediate alerts.
Prioritize hardening efforts based on exposure and data sensitivity:
**Apply immediately:**
**Tools:** Trivy, Falco, ModSecurity, Cloudflare
**Apply before production:**
**Tools:** Checkov, Prowler, Lynis, OpenSCAP
**Apply systematically:**
**Tools:** Ansible, Puppet, kube-bench, docker-bench-security
CIS (Center for Internet Security) Benchmarks provide industry-standard hardening guidance.
**Docker CIS Benchmark:**
docker run --rm -it \ --net host \ --pid host \ --cap-add audit_control \ -v /var/lib:/var/lib:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -v /etc:/etc:ro \ docker/docker-bench-security
**Kubernetes CIS Benchmark:**
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml kubectl logs job/kube-bench
**Linux CIS Benchmark:**
# Using Lynis lynis audit system --quick # Using OpenSCAP oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis \ /usr/share/xml/scap/ssg/content/ssg-ubuntu2004-ds.xml
| CIS Control | Hardening Action | Layer | |-------------|------------------|-------| | 4.1 Secure Configuration | Apply hardening baselines | All layers | | 5.1 Account Management | Enforce least privilege, MFA | OS, Cloud | | 6.1 Access Control | RBAC, network policies | All layers | | 8.1 Audit Log Management | Enable comprehensive logging | All layers | | 13.1 Network Monitoring | Deploy IDS/IPS, flow logs | Network | | 3.1 Data Protection | Enable encryption at rest/transit | Cloud, Database |
For detailed CIS control mapping, see `references/cis-benchmark-mapping.md`.
Choose base images based on security requirements and compatibility needs:
| Use Case | Recommended Base | Size | CVEs | Trade-off | |----------|------------------|------|------|-----------| | **Produc
Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude
Repo: ancoleman/ai-design-components
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
Data pipelines, feature stores, and embedding generation for AI/ML systems. Use when building RAG pipelines, ML feature serving, or data transformations.…
Strategic guidance for designing modern data platforms, covering storage paradigms (data lake, warehouse, lakehouse), modeling approaches (dimensional,…
Design cloud network architectures with VPC patterns, subnet strategies, zero trust principles, and hybrid connectivity. Use when planning VPC topology,…
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and control frameworks (NIST CSF,…
Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated token integration, proper import…