Aller au contenu
Skillpedia
Sécurité29k · #9492

cloud-security

Ce qu’il fait

Cette compétence fait examiner par l'agent les réglages de votre compte cloud, à la recherche d'erreurs qui pourraient laisser entrer des attaquants. Elle s'adresse aux équipes qui exécutent des applications sur AWS, Azure ou Google Cloud et veulent détecter les risques tôt.

Quand l’utiliser

  • ✓Quand vous voulez vérifier votre compte cloud pour détecter des buckets de stockage publics.
  • ✓Quand vous soupçonnez que certains utilisateurs ou services ont plus d'accès que nécessaire.
  • ✓Quand vous voulez relire votre code d'infrastructure avant de le déployer.

Lien du skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/cloud-security/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/cloud-security/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Vérifie notre compte AWS pour détecter les stockages publics et les groupes de sécurité ouverts, et explique ce qu'il faut corriger.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent examine les permissions, l'exposition du stockage, les règles réseau et le code d'infrastructure. Il rattache ensuite les constats au référentiel MITRE ATT&CK et propose des corrections.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Cloud Security

Cloud security posture assessment skill for detecting IAM privilege escalation, public storage exposure, network configuration risks, and infrastructure-as-code misconfigurations. This is NOT incident response for active cloud compromise (see incident-response) or application vulnerability scanning (see security-pen-testing) — this is about systematic cloud configuration analysis to prevent exploitation.


Table of Contents


Overview

What This Skill Does

This skill provides the methodology and tooling for cloud security posture management (CSPM) — systematically checking cloud configurations for misconfigurations that create exploitable attack surface. It covers IAM privilege escalation paths, storage public exposure, network over-permissioning, and infrastructure code security.

Distinction from Other Security Skills

Skill Focus Approach
cloud-security (this) Cloud configuration risk Preventive — assess before exploitation
incident-response Active cloud incidents Reactive — triage confirmed cloud compromise
threat-detection Behavioral anomalies Proactive — hunt for attacker activity in cloud logs
security-pen-testing Application vulnerabilities Offensive — actively exploit found weaknesses

Prerequisites

Read access to IAM policy documents, S3 bucket configurations, and security group rules in JSON format. For continuous monitoring, integrate with cloud provider APIs (AWS Config, Azure Policy, GCP Security Command Center).


Cloud Posture Check Tool

The cloud_posture_check.py tool runs three types of checks: iam (privilege escalation), s3 (public access), and sg (network exposure). It auto-detects the check type from the config file structure or accepts explicit --check flags.

# Analyze an IAM policy for privilege escalation paths
python3 scripts/cloud_posture_check.py policy.json --check iam --json

# Assess S3 bucket configuration for public access
python3 scripts/cloud_posture_check.py bucket_config.json --check s3 --json

# Check security group rules for open admin ports
python3 scripts/cloud_posture_check.py sg.json --check sg --json

# Run all checks with internet-facing severity bump
python3 scripts/cloud_posture_check.py config.json --check all \
  --provider aws --severity-modifier internet-facing --json

# Regulated data context (bumps severity by one level for all findings)
python3 scripts/cloud_posture_check.py config.json --check all \
  --severity-modifier regulated-data --json

# Pipe IAM policy from AWS CLI
aws iam get-policy-version --policy-arn arn:aws:iam::123456789012:policy/MyPolicy \
  --version-id v1 | jq '.PolicyVersion.Document' | \
  python3 scripts/cloud_posture_check.py - --check iam --json

Exit Codes

Code Meaning Required Action
0 No high/critical findings No action required
1 High-severity findings Remediate within 24 hours
2 Critical findings Remediate immediately — escalate to incident-response if active

IAM Policy Analysis

IAM analysis detects privilege escalation paths, overprivileged grants, public principal exposure, and data exfiltration risk.

Privilege Escalation Patterns

Pattern Severity Key Action Combination MITRE
Lambda PassRole escalation Critical iam:PassRole + lambda:CreateFunction T1078.004
EC2 instance profile abuse Critical iam:PassRole + ec2:RunInstances T1078.004
CloudFormation PassRole Critical iam:PassRole + cloudformation:CreateStack T1078.004
Self-attach policy escalation Critical iam:AttachUserPolicy + sts:GetCallerIdentity T1484.001
Inline policy self-escalation Critical iam:PutUserPolicy + sts:GetCallerIdentity T1484.001
Policy version backdoor Critical iam:CreatePolicyVersion + iam:ListPolicies T1484.001
Credential harvesting High iam:CreateAccessK
Questions fréquentes

Sert-elle à répondre à une attaque en cours ?

Non. Elle sert à repérer les mauvaises configurations avant que les attaquants ne les exploitent, et non à gérer une intrusion active.

Quels fournisseurs cloud couvre-t-elle ?

AWS, Azure et GCP.

Vérifie-t-elle aussi le code d'infrastructure ?

Oui. Elle examine les fichiers d'infrastructure as code à la recherche de failles de sécurité.

Détails

Description originale de l’auteur

Use when checking AWS, Azure or GCP for security misconfigurations: IAM privilege escalation, public buckets, open security groups, IaC gaps. Runs cloud_posture_check.py and maps findings to MITRE ATT&CK.

repo: alirezarezvani/claude-skills

Popularité

Étoiles GitHub
29k
Position au classement
#9492
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires