Skip to content
Back to skills

Infrastructure Hardening

ASecurity

Infrastructure and container hardening — minimal images, non-root, read-only filesystems, capabilities dropping, seccomp/AppArmor, pod security standards, network policies, host CIS benchmarks, patch cadence, image scanning and runtime detection. Use to harden hosts, containers or clusters (hardening, container security, CIS benchmark, pod security, patching).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoshellsecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill infrastructure-hardening --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Infrastructure Hardening?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Infrastructure Hardening
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-infrastructure-hardening/badge)](https://www.skillsdirectory.com/skills/vectora-os-infrastructure-hardening)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: infrastructure-hardening
description: Infrastructure and container hardening — minimal images, non-root, read-only filesystems, capabilities dropping, seccomp/AppArmor, pod security standards, network policies, host CIS benchmarks, patch cadence, image scanning and runtime detection. Use to harden hosts, containers or clusters (hardening, container security, CIS benchmark, pod security, patching).
metadata:
  category: security
---

# Infrastructure hardening

## Purpose

Reduce the attack surface of infrastructure and keep it patched.

**Use when:** hardening reviews and baseline setup.

**Not for:** application code security.

## Inputs

- Images, manifests, hosts, scan results.

## Outputs

- Hardening changes and patch report.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "infrastructure hardening"` for prior decisions, patterns and anti-patterns.
- [Security standard](../../../standards/security.md)

## Steps

1. **Baseline.** Assess against CIS / pod security restricted.
   Done when gaps listed.
2. **Images.** Minimal, non-root, no shells where possible.
   Done when scan clean of criticals.
3. **Runtime.** Drop capabilities, read-only FS, seccomp default.
   Done when policies enforced.
4. **Patch.** Cadence and SLA by severity.
   Done when patch status reported.

## Best practices

- Enforce with admission policies.
- Rebuild images regularly, not only on code change.

## Common mistakes

- Privileged containers.
- Host path mounts.

## Example

Restricted pod security enforced; 3 workloads fixed (root user, host path, added capabilities).

## Reusable prompt

```text
Apply the Infrastructure hardening skill (.agents/skills/infrastructure-hardening/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Assess against the baseline and propose hardening changes and patch cadence.
Return: Hardening changes and patch report..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.