Cloud Security & Container Hardening

Cloud Security & Container Hardening is a skill for Claude Code, Codex from Masriyan/Claude-Code-CyberSecurity-Skill. It costs 30 tokens per session (4,255 once invoked), scanned B, original, MIT.

A set of checks for securing cloud services, container images, Kubernetes systems, and infrastructure-as-code files. Infrastructure as code means configuration files that define systems such as cloud networks and servers.

In plain words
What is it for?
It is for reviewing AWS, Azure, and Google Cloud setups; hardening Docker and Kubernetes; scanning Terraform and similar files; and assessing compliance with security standards.
Why use it?
It helps find unsafe cloud settings, container weaknesses, and configuration problems before they become security issues or compliance findings.

Skill for Claude CodeCodex

Part of the cybersecurity plugin — 20 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/masriyan/claude-code-cybersecurity-skill/10-cloud-security
Any agent
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill 10-cloud-security
Clone the repo
git clone --depth 1 https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill

Made for: Claude Code, Codex.

Or install cybersecurity, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Cloud Security & Container Hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/10-cloud-security.svg)](https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/10-cloud-security)
Your own site
<a href="https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/10-cloud-security"><img src="https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/10-cloud-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.04255
Opus 5 $0.00015 $0.02128
Sonnet 5 $0.00006 $0.00851
Haiku 4.5 $0.00003 $0.00426

Measured 5d ago against content hash d1f0807d0be7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

Cloud Security & Container Hardening scanned grade B with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/cloud_auditor.py, scripts/iac_scanner.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

RUN chmod 777 /app # ← World-writable is dangerous

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

&& rm -rf /var/lib/apt/lists/* # Clean up after install

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RUN apt-get install -y curl # ← Install what you need during build
skills/10-cloud-security/SKILL.md · 474 lines

How it starts

The opening of the file, as written. The whole thing — 474 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud Security & Container Hardening

Purpose

Enable Claude to assist with cloud security assessments across AWS, Azure, and GCP, container and Kubernetes security hardening, Infrastructure as Code (Terraform, CloudFormation, Kubernetes manifests) scanning, and cloud compliance reporting against CIS Benchmarks and major frameworks.


Activation Triggers

This skill activates when the user asks about:

  • Auditing AWS IAM, S3, security groups, or cloud services
  • Reviewing Azure RBAC, storage, NSGs, or Key Vault configuration
  • Assessing GCP IAM, Cloud Storage, or GKE security
  • Scanning Terraform files, CloudFormation templates, or Kubernetes manifests
  • Hardening Docker containers or reviewing Dockerfiles
  • Kubernetes RBAC, pod security, or network policies
  • Cloud compliance (CIS, SOC2, PCI-DSS, HIPAA)
  • Container image vulnerability scanning
  • Cloud architecture security review
  • IaC security scanning (tfsec, Checkov, Terrascan)

Prerequisites

pip install pyyaml boto3 requests

Recommended cloud security tools:

  • AWS CLI — AWS auditing and management
  • ScoutSuite — Multi-cloud security audit
  • Prowler — AWS/Azure/GCP security assessment
  • Checkov — IaC static analysis
  • tfsec — Terraform security scanner
  • Trivy — Container and IaC vulnerability scanner
  • kube-bench — CIS Kubernetes Benchmark
  • Falco — Container runtime security

Core Capabilities

1. AWS Security Auditing

When the user asks to audit AWS security:

Quick AWS security checks using CLI:

# IAM: Find users without MFA
aws iam get-account-summary
aws iam list-users | jq '.Users[].UserName' | xargs -I{} aws iam list-mfa-devices --user-name {}

# Find overly permissive policies
aws iam list-policies --scope Local --only-attached | jq '.Policies[].PolicyName'

# S3: Find public buckets
aws s3api list-buckets --query 'Buckets[].Name' | xargs -I{} aws s3api get-bucket-acl --bucket {}
aws s3api list-buckets --query 'Buckets[].Name' | xargs -I{} aws s3api get-bucket-policy-status --bucket {}

# Security groups: Find wide-open rules
aws ec2 describe-security-groups --filters "Name=ip-permission.cidr,Values=0.0.0.0/0" \
  --query 'SecurityGroups[*].{ID:GroupId,Name:GroupName,Rules:IpPermissions}'

# CloudTrail: Verify logging
aws cloudtrail describe-trails
aws cloudtrail get-trail-status --name [trail-name]

# Root account check
aws iam get-account-summary --query 'SummaryMap.AccountMFAEnabled'

Read the full file on GitHub · 474 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 474 lines · 30 tokens per session scan B d1f0807d0be7

Subscribe to this mod's changes

Cloud Security & Container Hardening is a skill published in the GitHub repository Masriyan/Claude-Code-CyberSecurity-Skill (395 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 4,255 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.