AWS Security Architecture Skill
Context
This skill applies when:
- Designing AWS cloud architecture
- Implementing AWS Control Tower objectives
- Following AWS Well-Architected Framework
- Configuring VPC endpoints and private connectivity
- Setting up AWS GuardDuty, Security Hub, CloudTrail
- Implementing high availability and disaster recovery
- Conducting chaos engineering with AWS FIS
This skill enforces Hack23 Secure Development Policy AWS sections for AWS-native security services.
Rules
1. AWS Control Tower Objectives (Policy Section 🎯)
- CO.1: Establish identity and access management (IAM)
- CO.2: Establish network security (VPC, security groups)
- CO.3: Establish data protection (encryption, backups)
- CO.4: Establish detective controls (CloudTrail, GuardDuty)
- CO.5-15: Operational excellence, cost optimization, performance
2. AWS Well-Architected Framework (Policy Section 🏛️)
- Security Pillar: Identity, detective controls, infrastructure protection, data protection, incident response
- Reliability Pillar: Foundations, workload architecture, change management, failure management
- Operational Excellence: Organization, prepare, operate, evolve
- Performance Efficiency: Selection, review, monitoring, tradeoffs
- Cost Optimization: Practice Cloud Financial Management, expenditure awareness
- Sustainability: Region selection, user behavior patterns, software patterns, data patterns, hardware patterns
3. Network Security (Policy Section 🌐)
- Zero Trust Architecture: Never trust, always verify
- VPC Endpoints: Private connectivity for AWS services
- Security Groups: Least privilege network access
- NACLs: Network layer protection
- VPC Flow Logs: Network traffic monitoring
4. Security Monitoring (Policy Section 🔍)
- AWS GuardDuty: Threat detection and continuous monitoring
- AWS Security Hub: Centralized security findings
- AWS CloudTrail: API activity logging and auditing
- AWS Config: Configuration change tracking
- Amazon CloudWatch: Metrics and log aggregation
Examples
✅ Good Pattern: AWS Control Tower Objectives Implementation
/**
* AWS Control Tower Objective CO.1: Identity and Access Management
*
* ISMS Policy: Secure Development Policy Section 🎯
* Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#aws-control-tower-objective-mapping
*/
// IAM Policy for Lambda function - Least Privilege
const lambdaExecutionPolicy = {
Version: '2012-10-17',
Statement: [
{
Sid: 'LoggingPermissions',
Effect: 'Allow',
Action: [
'logs:CreateLogGroup',
'logs:CreateLogStream',
'logs:PutLogEvents'
],
Resource: 'arn:aws:logs:*:*:log-group:/aws/lambda/european-parliament-mcp-*'
},
{
Sid: 'SecretsManagerAccess',
Effect: 'Allow',
Action: [
'secretsmanager:GetSecretValue'
],
Resource: 'arn:aws:secretsmanager:*:*:secret:ep-api-credentials-*'
},
{
Sid: 'DynamoDBReadWrite',
Effect: 'Allow',
Action: [
'dynamodb:GetItem',
'dynamodb:PutItem',
'dynamodb:Query',
'dynamodb:UpdateItem'
],
Resource: 'arn:aws:dynamodb:*:*:table/ep-cache'
}
]
};
/**
* AWS Control Tower Objective CO.2: Network Security
*/
// Security Group - Restrict inbound to Application Load Balancer only
const apiSecurityGroup = {
ingress: [
{
description: 'HTTPS from ALB',
from_port: 443,
to_port: 443,
protocol: 'tcp',
security_groups: ['sg-alb-12345'] // Only from ALB
}
],
egress: [
{
description: 'HTTPS to European Parliament API',
from_port: 443,
to_port: 443,
protocol: 'tcp',
cidr_blocks: ['0.0.0.0/0'] // Outbound to internet
}
]
};
/**
* AWS Control Tower Objective CO.3: Data Protection
*/
// S3 Bucket Encryption
const s3BucketEncryption = {
bucket: 'ep-mcp-data',
rule: {
apply_server_side_encryption_by_default: {
sse_algorithm: 'aws:kms',
kms_master_key_id: 'arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012'
}
}
};
// DynamoDB Encryption at Rest
const dynamoDBEncryption = {
table_name: 'ep-cache',
server_side_encryption: {
enabled: true,
kms_key_id: 'arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012'
}
};
/**
* AWS Control Tower Objective CO.4: Detective Controls
*/
// Enable CloudTrail for API logging
const cloudTrailConfig = {
name: 'ep-mcp-trail',
s3_bucket_name: 'ep-mcp-cloudtrail-logs',
enable_logging: true,
include_global_service_events: true,
is_multi_region_trail: true,
enable_log_file_validation: true, // Integrity checking
event_selectors: [
{
read_write_type: 'All',
include_management_events: true
}
]
};
// Enable GuardDuty
const guardDutyConfig = {
enable: true,
finding_publishing_frequency: 'FIFTEEN_MINUTES',
datasources: {
s3_logs: { enable: true },
kubernetes: { audit_logs: { enable: true } },
malware_protection: { scan_ec2_instance_with_findings: { ebs_volumes: { enable: true } } }
}
};
Evidence: CIA AWS Architecture
✅ Good Pattern: VPC Endpoints for Private Connectivity
/**
* VPC Endpoints - Policy Section 🔌
* Provides private connectivity to AWS services without internet gateway
*
* ISMS Policy: Secure Development Policy Section 🔌
* Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#vpc-endpoints--private-connectivity
*/
// VPC Endpoint for DynamoDB (Gateway Endpoint)
const dynamoDBEndpoint = {
vpc_id: 'vpc-12345678',
service_name: 'com.amazonaws.us-east-1.dynamodb',
vpc_endpoint_type: 'Gateway',
route_table_ids: ['rtb-12345678', 'rtb-87654321']
};
// VPC Endpoint for Secrets Manager (Interface Endpoint)
const secretsManagerEndpoint = {
vpc_id: 'vpc-12345678',
service_name: 'com.amazonaws.us-east-1.secretsmanager',
vpc_endpoint_type: 'Interface',
subnet_ids: ['subnet-12345678', 'subnet-87654321'],
security_group_ids: ['sg-12345678'],
private_dns_enabled: true
};
// VPC Endpoint for S3 (Gateway Endpoint)
const s3Endpoint = {
vpc_id: 'vpc-12345678',
service_name: 'com.amazonaws.us-east-1.s3',
vpc_endpoint_type: 'Gateway',
route_table_ids: ['rtb-12345678', 'rtb-87654321'],
policy: JSON.stringify({
Version: '2012-10-17',
Statement: [
{
Effect: 'Allow',
Principal: '*',
Action: ['s3:GetObject', 's3:PutObject'],
Resource: 'arn:aws:s3:::ep-mcp-data/*'
}
]
})
};
Policy Reference: Secure Development Policy Section 🔌
✅ Good Pattern: High Availability Architecture
graph TB
subgraph "Region: us-east-1"
subgraph "AZ-1a"
ALB1[Application Load Balancer]
Lambda1a[Lambda Function]
DDB1a[DynamoDB<br/>Auto-Replicated]
end
subgraph "AZ-1b"
Lambda1b[Lambda Function]
DDB1b[DynamoDB<br/>Auto-Replicated]
end
subgraph "AZ-1c"
Lambda1c[Lambda Function]
DDB1c[DynamoDB<br/>Auto-Replicated]
end
end
User[Users] --> R53[Route 53<br/>Health Checks]
R53 --> ALB1
ALB1 --> Lambda1a
ALB1 --> Lambda1b
ALB1 --> Lambda1c
Lambda1a --> DDB1a
Lambda1b --> DDB1b
Lambda1c --> DDB1c
style ALB1 fill:#ff9900
style Lambda1a fill:#ff9900
style Lambda1b fill:#ff9900
style Lambda1c fill:#ff9900
style DDB1a fill:#527fff
style DDB1b fill:#527fff
style DDB1c fill:#527fff
RTO/RPO:
- RTO (Recovery Time Objective): 5 minutes
- RPO (Recovery Point Objective): 0 (real-time replication)
Evidence: Black Trigram HA Architecture
✅ Good Pattern: AWS Resilience Hub Assessment
/**
* AWS Resilience Hub Integration
*
* ISMS Policy: Secure Development Policy Section ⚡
* Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#resilience--operational-readiness-framework
*/
const resilienceAssessment = {
applicationName: 'european-parliament-mcp-server',
resiliencyPolicy: {
tier: 'MissionCritical', // Or: Important, CoreServices, NonCritical
rto: 300, // 5 minutes
rpo: 0, // Real-time
},
assessmentSchedule: 'Daily',
recommendations: [
'Enable multi-AZ deployment',
'Configure DynamoDB global tables for cross-region',
'Implement automated failover with Route 53',
'Add chaos engineering tests with AWS FIS'
]
};
// Chaos Engineering with AWS Fault Injection Simulator (FIS)
const fisExperiment = {
description: 'Test Lambda function resilience to AZ failure',
actions: {
'stop-az-instances': {
actionId: 'aws:ec2:stop-instances',
parameters: {
availabilityZoneIdentifier: 'us-east-1a',
duration: 'PT5M' // 5 minutes
},
targets: {
instances: 'lambda-execution-environment'
}
}
},
stopConditions: [
{
source: 'aws:cloudwatch:alarm',
value: 'arn:aws:cloudwatch:us-east-1:123456789012:alarm:HighErrorRate'
}
],
roleArn: 'arn:aws:iam::123456789012:role/FISExperimentRole'
};
Policy Reference: Secure Development Policy Section ⚡
✅ Good Pattern: Data Protection & Backup Strategy
/**
* Centralized Backup Management with AWS Backup
*
* ISMS Policy: Secure Development Policy Section 💾
* Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#data-protection--backup-strategy
*/
const backupPlan = {
plan_name: 'ep-mcp-backup-plan',
rules: [
{
rule_name: 'daily-backup',
target_vault_name: 'ep-mcp-backup-vault',
schedule: 'cron(0 2 * * ? *)', // 2 AM UTC daily
lifecycle: {
delete_after: 90, // 90 days retention
move_to_cold_storage_after: 30 // Archive after 30 days
},
recovery_point_tags: {
Environment: 'production',
Application: 'european-parliament-mcp-server'
}
}
],
selections: [
{
name: 'dynamodb-backup-selection',
resources: ['arn:aws:dynamodb:*:*:table/ep-cache']
},
{
name: 's3-backup-selection',
resources: ['arn:aws:s3:::ep-mcp-data']
}
]
};
// Service-native backup for DynamoDB
const dynamoDBBackup = {
table_name: 'ep-cache',
point_in_time_recovery: {
enabled: true // Continuous backups, 35-day retention
}
};
Anti-Patterns
❌ Bad: Public S3 Bucket
const badS3Bucket = {
bucket: 'ep-data',
acl: 'public-read' // NEVER! Violates AWS best practices
};
❌ Bad: Overly Permissive IAM Policy
const badIAMPolicy = {
Effect: 'Allow',
Action: '*', // NEVER! Violates least privilege
Resource: '*'
};
Evidence Portfolio
Reference Implementations
Citizen Intelligence Agency (CIA)
Black Trigram Game
CIA Compliance Manager
Policy Documents
ISMS Compliance
This skill enforces:
- SD-AWS-001: AWS Control Tower objectives
- SD-AWS-002: Well-Architected Framework alignment
- SD-AWS-003: VPC security and private connectivity
- SD-AWS-004: Security monitoring with GuardDuty/Security Hub
- SD-AWS-005: High availability and resilience
Policy Reference: Hack23 Secure Development Policy AWS Sections
1---2name: aws-security-architecture3description: AWS Control Tower, Well-Architected Framework, VPC security, GuardDuty, CloudTrail, high availability, and resilience per Hack23 Secure Development Policy4license: MIT5metadata:6 source: https://skillmd.com/skills/hack23/aws-security-architecture7---89# AWS Security Architecture Skill1011## Context1213This skill applies when:14- Designing AWS cloud architecture15- Implementing AWS Control Tower objectives16- Following AWS Well-Architected Framework17- Configuring VPC endpoints and private connectivity18- Setting up AWS GuardDuty, Security Hub, CloudTrail19- Implementing high availability and disaster recovery20- Conducting chaos engineering with AWS FIS2122This skill enforces **[Hack23 Secure Development Policy AWS sections](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#aws-control-tower-objective-mapping)** for AWS-native security services.2324## Rules2526### 1. AWS Control Tower Objectives (Policy Section 🎯)27281. **CO.1**: Establish identity and access management (IAM)292. **CO.2**: Establish network security (VPC, security groups)303. **CO.3**: Establish data protection (encryption, backups)314. **CO.4**: Establish detective controls (CloudTrail, GuardDuty)325. **CO.5-15**: Operational excellence, cost optimization, performance3334### 2. AWS Well-Architected Framework (Policy Section 🏛️)35366. **Security Pillar**: Identity, detective controls, infrastructure protection, data protection, incident response377. **Reliability Pillar**: Foundations, workload architecture, change management, failure management388. **Operational Excellence**: Organization, prepare, operate, evolve399. **Performance Efficiency**: Selection, review, monitoring, tradeoffs4010. **Cost Optimization**: Practice Cloud Financial Management, expenditure awareness4111. **Sustainability**: Region selection, user behavior patterns, software patterns, data patterns, hardware patterns4243### 3. Network Security (Policy Section 🌐)444512. **Zero Trust Architecture**: Never trust, always verify4613. **VPC Endpoints**: Private connectivity for AWS services4714. **Security Groups**: Least privilege network access4815. **NACLs**: Network layer protection4916. **VPC Flow Logs**: Network traffic monitoring5051### 4. Security Monitoring (Policy Section 🔍)525317. **AWS GuardDuty**: Threat detection and continuous monitoring5418. **AWS Security Hub**: Centralized security findings5519. **AWS CloudTrail**: API activity logging and auditing5620. **AWS Config**: Configuration change tracking5721. **Amazon CloudWatch**: Metrics and log aggregation5859## Examples6061### ✅ Good Pattern: AWS Control Tower Objectives Implementation6263```typescript64/**65 * AWS Control Tower Objective CO.1: Identity and Access Management66 * 67 * ISMS Policy: Secure Development Policy Section 🎯68 * Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#aws-control-tower-objective-mapping69 */7071// IAM Policy for Lambda function - Least Privilege72const lambdaExecutionPolicy = {73 Version: '2012-10-17',74 Statement: [75 {76 Sid: 'LoggingPermissions',77 Effect: 'Allow',78 Action: [79 'logs:CreateLogGroup',80 'logs:CreateLogStream',81 'logs:PutLogEvents'82 ],83 Resource: 'arn:aws:logs:*:*:log-group:/aws/lambda/european-parliament-mcp-*'84 },85 {86 Sid: 'SecretsManagerAccess',87 Effect: 'Allow',88 Action: [89 'secretsmanager:GetSecretValue'90 ],91 Resource: 'arn:aws:secretsmanager:*:*:secret:ep-api-credentials-*'92 },93 {94 Sid: 'DynamoDBReadWrite',95 Effect: 'Allow',96 Action: [97 'dynamodb:GetItem',98 'dynamodb:PutItem',99 'dynamodb:Query',100 'dynamodb:UpdateItem'101 ],102 Resource: 'arn:aws:dynamodb:*:*:table/ep-cache'103 }104 ]105};106107/**108 * AWS Control Tower Objective CO.2: Network Security109 */110111// Security Group - Restrict inbound to Application Load Balancer only112const apiSecurityGroup = {113 ingress: [114 {115 description: 'HTTPS from ALB',116 from_port: 443,117 to_port: 443,118 protocol: 'tcp',119 security_groups: ['sg-alb-12345'] // Only from ALB120 }121 ],122 egress: [123 {124 description: 'HTTPS to European Parliament API',125 from_port: 443,126 to_port: 443,127 protocol: 'tcp',128 cidr_blocks: ['0.0.0.0/0'] // Outbound to internet129 }130 ]131};132133/**134 * AWS Control Tower Objective CO.3: Data Protection135 */136137// S3 Bucket Encryption138const s3BucketEncryption = {139 bucket: 'ep-mcp-data',140 rule: {141 apply_server_side_encryption_by_default: {142 sse_algorithm: 'aws:kms',143 kms_master_key_id: 'arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012'144 }145 }146};147148// DynamoDB Encryption at Rest149const dynamoDBEncryption = {150 table_name: 'ep-cache',151 server_side_encryption: {152 enabled: true,153 kms_key_id: 'arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012'154 }155};156157/**158 * AWS Control Tower Objective CO.4: Detective Controls159 */160161// Enable CloudTrail for API logging162const cloudTrailConfig = {163 name: 'ep-mcp-trail',164 s3_bucket_name: 'ep-mcp-cloudtrail-logs',165 enable_logging: true,166 include_global_service_events: true,167 is_multi_region_trail: true,168 enable_log_file_validation: true, // Integrity checking169 event_selectors: [170 {171 read_write_type: 'All',172 include_management_events: true173 }174 ]175};176177// Enable GuardDuty178const guardDutyConfig = {179 enable: true,180 finding_publishing_frequency: 'FIFTEEN_MINUTES',181 datasources: {182 s3_logs: { enable: true },183 kubernetes: { audit_logs: { enable: true } },184 malware_protection: { scan_ec2_instance_with_findings: { ebs_volumes: { enable: true } } }185 }186};187```188189**Evidence**: [CIA AWS Architecture](https://github.com/Hack23/cia/blob/master/AWS_ARCHITECTURE.md)190191### ✅ Good Pattern: VPC Endpoints for Private Connectivity192193```typescript194/**195 * VPC Endpoints - Policy Section 🔌196 * Provides private connectivity to AWS services without internet gateway197 * 198 * ISMS Policy: Secure Development Policy Section 🔌199 * Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#vpc-endpoints--private-connectivity200 */201202// VPC Endpoint for DynamoDB (Gateway Endpoint)203const dynamoDBEndpoint = {204 vpc_id: 'vpc-12345678',205 service_name: 'com.amazonaws.us-east-1.dynamodb',206 vpc_endpoint_type: 'Gateway',207 route_table_ids: ['rtb-12345678', 'rtb-87654321']208};209210// VPC Endpoint for Secrets Manager (Interface Endpoint)211const secretsManagerEndpoint = {212 vpc_id: 'vpc-12345678',213 service_name: 'com.amazonaws.us-east-1.secretsmanager',214 vpc_endpoint_type: 'Interface',215 subnet_ids: ['subnet-12345678', 'subnet-87654321'],216 security_group_ids: ['sg-12345678'],217 private_dns_enabled: true218};219220// VPC Endpoint for S3 (Gateway Endpoint)221const s3Endpoint = {222 vpc_id: 'vpc-12345678',223 service_name: 'com.amazonaws.us-east-1.s3',224 vpc_endpoint_type: 'Gateway',225 route_table_ids: ['rtb-12345678', 'rtb-87654321'],226 policy: JSON.stringify({227 Version: '2012-10-17',228 Statement: [229 {230 Effect: 'Allow',231 Principal: '*',232 Action: ['s3:GetObject', 's3:PutObject'],233 Resource: 'arn:aws:s3:::ep-mcp-data/*'234 }235 ]236 })237};238```239240**Policy Reference**: [Secure Development Policy Section 🔌](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#vpc-endpoints--private-connectivity)241242### ✅ Good Pattern: High Availability Architecture243244```mermaid245graph TB246 subgraph "Region: us-east-1"247 subgraph "AZ-1a"248 ALB1[Application Load Balancer]249 Lambda1a[Lambda Function]250 DDB1a[DynamoDB<br/>Auto-Replicated]251 end252 253 subgraph "AZ-1b"254 Lambda1b[Lambda Function]255 DDB1b[DynamoDB<br/>Auto-Replicated]256 end257 258 subgraph "AZ-1c"259 Lambda1c[Lambda Function]260 DDB1c[DynamoDB<br/>Auto-Replicated]261 end262 end263 264 User[Users] --> R53[Route 53<br/>Health Checks]265 R53 --> ALB1266 ALB1 --> Lambda1a267 ALB1 --> Lambda1b268 ALB1 --> Lambda1c269 270 Lambda1a --> DDB1a271 Lambda1b --> DDB1b272 Lambda1c --> DDB1c273 274 style ALB1 fill:#ff9900275 style Lambda1a fill:#ff9900276 style Lambda1b fill:#ff9900277 style Lambda1c fill:#ff9900278 style DDB1a fill:#527fff279 style DDB1b fill:#527fff280 style DDB1c fill:#527fff281```282283**RTO/RPO**:284- RTO (Recovery Time Objective): 5 minutes285- RPO (Recovery Point Objective): 0 (real-time replication)286287**Evidence**: [Black Trigram HA Architecture](https://github.com/Hack23/blacktrigram/blob/main/HA_ARCHITECTURE.md)288289### ✅ Good Pattern: AWS Resilience Hub Assessment290291```typescript292/**293 * AWS Resilience Hub Integration294 * 295 * ISMS Policy: Secure Development Policy Section ⚡296 * Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#resilience--operational-readiness-framework297 */298299const resilienceAssessment = {300 applicationName: 'european-parliament-mcp-server',301 resiliencyPolicy: {302 tier: 'MissionCritical', // Or: Important, CoreServices, NonCritical303 rto: 300, // 5 minutes304 rpo: 0, // Real-time305 },306 assessmentSchedule: 'Daily',307 recommendations: [308 'Enable multi-AZ deployment',309 'Configure DynamoDB global tables for cross-region',310 'Implement automated failover with Route 53',311 'Add chaos engineering tests with AWS FIS'312 ]313};314315// Chaos Engineering with AWS Fault Injection Simulator (FIS)316const fisExperiment = {317 description: 'Test Lambda function resilience to AZ failure',318 actions: {319 'stop-az-instances': {320 actionId: 'aws:ec2:stop-instances',321 parameters: {322 availabilityZoneIdentifier: 'us-east-1a',323 duration: 'PT5M' // 5 minutes324 },325 targets: {326 instances: 'lambda-execution-environment'327 }328 }329 },330 stopConditions: [331 {332 source: 'aws:cloudwatch:alarm',333 value: 'arn:aws:cloudwatch:us-east-1:123456789012:alarm:HighErrorRate'334 }335 ],336 roleArn: 'arn:aws:iam::123456789012:role/FISExperimentRole'337};338```339340**Policy Reference**: [Secure Development Policy Section ⚡](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#resilience--operational-readiness-framework)341342### ✅ Good Pattern: Data Protection & Backup Strategy343344```typescript345/**346 * Centralized Backup Management with AWS Backup347 * 348 * ISMS Policy: Secure Development Policy Section 💾349 * Evidence: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#data-protection--backup-strategy350 */351352const backupPlan = {353 plan_name: 'ep-mcp-backup-plan',354 rules: [355 {356 rule_name: 'daily-backup',357 target_vault_name: 'ep-mcp-backup-vault',358 schedule: 'cron(0 2 * * ? *)', // 2 AM UTC daily359 lifecycle: {360 delete_after: 90, // 90 days retention361 move_to_cold_storage_after: 30 // Archive after 30 days362 },363 recovery_point_tags: {364 Environment: 'production',365 Application: 'european-parliament-mcp-server'366 }367 }368 ],369 selections: [370 {371 name: 'dynamodb-backup-selection',372 resources: ['arn:aws:dynamodb:*:*:table/ep-cache']373 },374 {375 name: 's3-backup-selection',376 resources: ['arn:aws:s3:::ep-mcp-data']377 }378 ]379};380381// Service-native backup for DynamoDB382const dynamoDBBackup = {383 table_name: 'ep-cache',384 point_in_time_recovery: {385 enabled: true // Continuous backups, 35-day retention386 }387};388```389390## Anti-Patterns391392### ❌ Bad: Public S3 Bucket393394```typescript395const badS3Bucket = {396 bucket: 'ep-data',397 acl: 'public-read' // NEVER! Violates AWS best practices398};399```400401### ❌ Bad: Overly Permissive IAM Policy402403```typescript404const badIAMPolicy = {405 Effect: 'Allow',406 Action: '*', // NEVER! Violates least privilege407 Resource: '*'408};409```410411## Evidence Portfolio412413### Reference Implementations4144151. **Citizen Intelligence Agency (CIA)**416 - AWS Architecture: https://github.com/Hack23/cia/blob/master/AWS_ARCHITECTURE.md417 - Terraform: https://github.com/Hack23/cia/tree/master/terraform4184192. **Black Trigram Game**420 - HA Architecture: https://github.com/Hack23/blacktrigram/blob/main/HA_ARCHITECTURE.md421 - AWS CDK: https://github.com/Hack23/blacktrigram/tree/main/cdk4224233. **CIA Compliance Manager**424 - Compliance AWS Setup: https://github.com/Hack23/cia-compliance-manager/blob/main/AWS_SETUP.md425426### Policy Documents427428- **Secure Development Policy AWS Sections**: https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#aws-control-tower-objective-mapping429- **AWS Well-Architected Framework**: https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html430431## ISMS Compliance432433This skill enforces:434- **SD-AWS-001**: AWS Control Tower objectives435- **SD-AWS-002**: Well-Architected Framework alignment436- **SD-AWS-003**: VPC security and private connectivity437- **SD-AWS-004**: Security monitoring with GuardDuty/Security Hub438- **SD-AWS-005**: High availability and resilience439440**Policy Reference**: [Hack23 Secure Development Policy AWS Sections](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md#aws-control-tower-objective-mapping)