Skip to content
Back to skills

Cloud Security Audit

ASecurity

Cloud audit: posture, public storage, logging gaps, keys

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
securitybashrailsawsgcpazuretestingapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add blackfoxxx/kestrel --skill cloud-security-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud Security Audit?

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

Security grade badge for Cloud Security Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blackfoxxx-cloud-security-audit/badge)](https://www.skillsdirectory.com/skills/blackfoxxx-cloud-security-audit)

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: cloud-security-audit
description: "Cloud audit: posture, public storage, logging gaps, keys"
version: 1.0.0
---

# Cloud Security Audit

## Overview

Cloud security auditing is a critical step in assessing the security of cloud environments. This skill provides methods, tools, and best practices for cloud security auditing, covering major cloud platforms such as AWS, Azure, and GCP.

## Audit Scope

### 1. Identity and Access Management

**Items to check:**
- IAM policy configuration
- User permissions
- Role permissions
- Access key management

### 2. Network Security

**Items to check:**
- Security group configuration
- Network ACLs
- VPC configuration
- Traffic encryption

### 3. Data Security

**Items to check:**
- Data encryption
- Key management
- Backup strategy
- Data classification

### 4. Compliance

**Items to check:**
- Compliance frameworks
- Audit logs
- Monitoring and alerting
- Incident response

## AWS Security Audit

### IAM Audit

**Checking IAM policies:**
```bash
# List all IAM users
aws iam list-users

# List all IAM policies
aws iam list-policies

# Check user permissions
aws iam list-user-policies --user-name username
aws iam list-attached-user-policies --user-name username

# Check role permissions
aws iam list-role-policies --role-name rolename
```

**Common issues:**
- Excessive permissions
- Unused access keys
- Weak password policy
- MFA not enabled

### S3 Security Audit

**Checking S3 buckets:**
```bash
# List all buckets
aws s3 ls

# Check bucket policy
aws s3api get-bucket-policy --bucket bucketname

# Check bucket ACL
aws s3api get-bucket-acl --bucket bucketname

# Check bucket encryption
aws s3api get-bucket-encryption --bucket bucketname
```

**Common issues:**
- Public access
- No encryption
- Versioning not enabled
- Logging not enabled

### Security Group Audit

**Checking security groups:**
```bash
# List all security groups
aws ec2 describe-security-groups

# Check open ports
aws ec2 describe-security-groups --group-ids sg-xxx
```

**Common issues:**
- 0.0.0.0/0 open
- Unnecessary open ports
- Overly permissive rules

### CloudTrail Audit

**Checking audit logs:**
```bash
# List all trails
aws cloudtrail describe-trails

# Check log file integrity
aws cloudtrail get-trail-status --name trailname
```

## Azure Security Audit

### Subscriptions and Resource Groups

**Checking subscriptions:**
```bash
# List all subscriptions
az account list

# Check resource groups
az group list
```

### Network Security Groups

**Checking NSGs:**
```bash
# List all NSGs
az network nsg list

# Check NSG rules
az network nsg rule list --nsg-name nsgname --resource-group rgname
```

### Storage Accounts

**Checking storage accounts:**
```bash
# List all storage accounts
az storage account list

# Check access policy
az storage account show --name accountname --resource-group rgname
```

## GCP Security Audit

### Projects and Organizations

**Checking projects:**
```bash
# List all projects
gcloud projects list

# Check IAM policy
gcloud projects get-iam-policy project-id
```

### Compute Engine

**Checking instances:**
```bash
# List all instances
gcloud compute instances list

# Check firewall rules
gcloud compute firewall-rules list
```

### Storage

**Checking buckets:**
```bash
# List all buckets
gsutil ls

# Check bucket permissions
gsutil iam get gs://bucketname
```

## Automation Tools

### Scout Suite

```bash
# AWS audit
scout aws

# Azure audit
scout azure

# GCP audit
scout gcp
```

### Prowler

```bash
# AWS security audit
prowler -c check11,check12,check13

# Full audit
prowler
```

### CloudSploit

```bash
# Scan an AWS account
cloudsploit scan aws

# Scan an Azure subscription
cloudsploit scan azure
```

### Pacu

```bash
# AWS penetration testing framework
pacu
```

## Audit Checklist

### IAM Security
- [ ] Check user permissions
- [ ] Check role permissions
- [ ] Check access keys
- [ ] Check password policy
- [ ] Check MFA enablement

### Network Security
- [ ] Check security group / NSG rules
- [ ] Check VPC configuration
- [ ] Check network ACLs
- [ ] Check traffic encryption

### Data Security
- [ ] Check data encryption
- [ ] Check key management
- [ ] Check backup strategy
- [ ] Check data classification

### Compliance
- [ ] Check audit logs
- [ ] Check monitoring and alerting
- [ ] Check incident response
- [ ] Check compliance frameworks

## Common Security Issues

### 1. Excessive Permissions

**Problem:**
- IAM policies too permissive
- Users holding administrator privileges
- Roles with excessive permissions

**Fix:**
- Principle of least privilege
- Regularly review permissions
- Use IAM policy simulation

### 2. Public Resources

**Problem:**
- Public S3 buckets
- Security groups open to 0.0.0.0/0
- Publicly accessible databases

**Fix:**
- Restrict access scope
- Use private networks
- Enable access controls

### 3. Unencrypted Data

**Problem:**
- Unencrypted storage
- Unencrypted transmission
- Improper key management

**Fix:**
- Enable encryption
- Use TLS/SSL
- Use a key management service

### 4. Missing Logs

**Problem:**
- Audit logging not enabled
- Logs not retained
- Logs not monitored

**Fix:**
- Enable CloudTrail / Azure Monitor
- Set log retention policies
- Configure monitoring and alerting

## Best Practices

### 1. Least Privilege

- Grant only the necessary permissions
- Regularly review permissions
- Use IAM policy simulation

### 2. Defense in Depth

- Network-layer protection
- Application-layer protection
- Data-layer protection

### 3. Monitoring and Alerting

- Enable audit logging
- Configure monitoring and alerting
- Establish an incident response process

### 4. Compliance

- Follow compliance frameworks
- Conduct regular security audits
- Document security policies

## Notes

- Only perform audits in authorized environments
- Avoid impacting production environments
- Be mindful of differences between cloud platforms
- Conduct security audits regularly

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 security →

Comments

Loading comments…

Newsletter

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