aws avatar

Securing S3 Buckets

This one walks you through the full S3 security checklist: creating buckets with default-deny policies, auditing existing configurations against AWS best practices, and fixing specific findings like missing encryption or public access. It enforces some opinionated constraints (customer-managed KMS keys only, mandatory HTTPS-only policies, bucket key enablement) and includes safety rails around put-bucket-policy so you don't accidentally wipe existing statements. The audit workflow checks versioning, encryption, logging, public access blocks, and Object Lock, then reports each as pass/fail with severity. It's detailed enough that you could hand it to someone unfamiliar with S3 security and they'd get a properly locked-down bucket, but experienced users might find the guardrails restrictive.

skills.sh installs
7.4K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill securing-s3-buckets --agent claude-code

Installs into .claude/skills of the current project.

Files

Overview

Implements layered S3 security controls across five workflows: securing new buckets, auditing existing configurations, remediating findings, configuring encryption, and enabling monitoring. Follows AWS Well-Architected security best practices.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to AWS CLI or shell otherwise.

Common Tasks

0. Verify Dependencies

Check for required tools before starting.

Constraints:

  • You MUST inform the user if required tools are missing
  • You SHOULD confirm credentials with aws sts get-caller-identity

See references/iam-permissions.md for IAM permissions by workflow.

1. Classify the Request

User intentWorkflow
Secure a new bucketA: Secure New Bucket
Audit / review existing bucketB: Audit Existing Bucket
Fix a specific findingC: Remediate Issue
Configure encryptionD: Configure Encryption
Enable logging / monitoringE: Enable Monitoring

Constraints:

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Security, DevOps & CI/CD, AI & Agent Building, Debugging, Cloud & Infrastructure
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 56

Recommended

More Security
1aws avatarcreating-secrets-using-best-practicesaws/agent-toolkit-for-awsCreates and manages secrets in AWS Secrets Manager following security best practices. Always use this skill when creating secrets — it sets up dedicated KMS enc7.2Kskills.sh installs
2trailofbits avataragentic-actions-auditortrailofbits/skillsAudits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Infe7.1Kskills.sh installs
3aws avatarconnecting-lambda-to-api-gatewayaws/agent-toolkit-for-awsConnects an existing AWS Lambda function to Amazon API Gateway by creating a REST or HTTP API with resource/method setup, Lambda proxy integration, permissions,7Kskills.sh installs
4jeffallan avatarcode-reviewerjeffallan/claude-skillsAnalyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues6.9Kskills.sh installs
5jeffallan avatarjava-architectjeffallan/claude-skillsUse when building, configuring, or debugging enterprise Java applications with Spring Boot 3.x, microservices, or reactive programming. Invoke to implement WebF6.2Kskills.sh installs
6affaan-m avatarfastapi-patternsaffaan-m/eccFastAPI best practices covering project structure, Pydantic v2 schemas, dependency injection, async handlers, authentication, authorization, transactional servi6Kskills.sh installs