This is a comprehensive infrastructure hardening guide that walks you through reducing attack surface across OS, container, cloud, network, and database layers. It's built around CIS Benchmarks and zero-trust principles, giving you concrete commands for tools like Trivy, kube-bench, and docker-bench-security. The layered approach makes sense: start with internet-facing systems, then sensitive data stores, then internal infrastructure. What stands out is the practical hardening priority framework and the specific base image recommendations (Chainguard for production, Alpine for dev). Use this when preparing for security audits, meeting compliance requirements like SOC 2 or PCI-DSS, or setting up automated security baselines in your CI/CD pipeline.

skills.sh installs
180
GitHub stars
530
last updated
Aug 21, 2026

Install

$ npx -y skills add ancoleman/ai-design-components --skill security-hardening --agent claude-code

Installs into .claude/skills of the current project.

Files

Security Hardening

Purpose

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.

When to Use This Skill

Invoke this skill when:

  • Hardening production infrastructure before deployment
  • Meeting compliance requirements (SOC 2, PCI-DSS, HIPAA, FedRAMP)
  • Implementing zero-trust security architecture
  • Reducing container or cloud misconfiguration risks
  • Preparing for security audits or penetration tests
  • Automating security baseline enforcement
  • Responding to vulnerability scan findings

Hardening Layers

Security hardening applies across five infrastructure layers:

Layer 1: Operating System (Linux)

  • Kernel parameter tuning (sysctl)
  • SSH configuration hardening
  • User and group management
  • File system permissions and mount options
  • Service minimization
  • SELinux/AppArmor enforcement

Sponsors

Details

Repository
github.com/ancoleman/ai-design-components
Categories
Backend & APIs, Security, AI & Agent Building, Cloud & Infrastructure, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from ancoleman/ai-design-components

All 4
1charleswiltgen avataraxiom-vision-refcharleswiltgen/axiomUse when needing Vision framework API details for hand/body pose, segmentation, text recognition, barcode detection, document scanning, or Visual Intelligence i180skills.sh installs
2cinience avataralicloud-network-esacinience/alicloud-skillsManage Alibaba Cloud ESA — deploy HTML/static sites via Pages, manage Edge Routines (ER) for serverless edge functions, use Edge KV for distributed key-value st180skills.sh installs
3iii-hq avatariii-state-managementiii-hq/iiiCreates scoped key-value stores, reads and writes state entries, lists keys, and performs partial updates across functions. Use when persisting data between inv180skills.sh installs
4samhvw8 avatarmise-expertsamhvw8/dotfilesMise development environment manager (asdf + direnv + make replacement). Capabilities: tool version management (node, python, go, ruby, rust), environment varia180skills.sh installs
5bitget-wallet-ai-lab avatarbitget-walletbitget-wallet-ai-lab/bitget-wallet-skillInteract with Bitget Wallet API for crypto market data, token info, swap quotes, RWA (real-world asset) stock trading, and security audits. Use when the user as178skills.sh installs
6josiahsiegel avatardocker-2025-featuresjosiahsiegel/claude-plugin-marketplaceLatest Docker features (2025-2026) including Docker AI, Enhanced Container Isolation, BuildKit improvements, and Moby. PROACTIVELY activate for: (1) Docker AI /178skills.sh installs