5. Infrastructure Security

31 thẻ

Review deck này
Tất cả thẻ trong deck

Shield Advanced

SRT, cost protection, health-based detection, protection group

HTTP flood

WAF rate-based rule + Anti-DDoS managed rule group

Credential stuffing

WAF Fraud Control ATP (account takeover prevention)

WAF rate-based evaluation window

60, 120, 300 (mặc định) hoặc 600 giây

WAF rate limit tối thiểu

10 request trong evaluation window

WAF sau CDN/proxy

aggregation theo forwarded IP (`X-Forwarded-For`)

Bot đổi IP liên tục

JA4/JA3 fingerprint làm aggregation key hoặc điều kiện chặn

Chặn quốc gia cho một path

WAF geo match + điều kiện URI; CloudFront geo restriction áp cả distribution

S3 origin riêng tư

Origin Access Control (OAC), hỗ trợ SSE-KMS; OAI là cách cũ

ALB origin riêng tư

CloudFront VPC origins (ALB internal)

IoT Core một thiết bị một topic

policy variable `${iot:Connection.Thing.ThingName}`

IMDSv2

`HttpTokens=required`, hop limit 1 (container trên EC2 cần 2); chặn SSRF lấy credential

ECS task role vs task execution role

quyền của app vs quyền kéo image, đọc secret, ghi log

EKS quyền theo pod

EKS Pod Identity hoặc IRSA, không dùng role của node

Cấp quyền `kubectl` cho IAM principal

EKS access entries + access policy, thay ConfigMap `aws-auth`

Chặn AMI không duyệt

Allowed AMIs trong declarative policy

Truy cập admin không mở port

Session Manager (cần endpoint `ssm`, `ssmmessages` ở subnet private)

SSH tới instance private không public IP

EC2 Instance Connect Endpoint

Security group vs NACL

stateful chỉ Allow ở ENI vs stateless Allow/Deny ở subnet

NACL quên ephemeral port

phải mở 1024–65535 chiều về

Lọc egress theo domain

Network Firewall domain list (SNI/Host) hoặc DNS Firewall

Chặn domain độc hại đã biết

Route 53 Resolver DNS Firewall với AWS managed domain list, áp tập trung bằng Firewall Manager

Phát hiện mẫu DNS tunneling, DGA

DNS Firewall Advanced rules (managed domain list chỉ chứa domain đã biết)

Inspection VPC với TGW

bật appliance mode trên attachment để giữ đối xứng luồng

MACsec

dedicated connection 10/100/400 Gbps, không hỗ trợ hosted connection

MACsec `must_encrypt` vs `should_encrypt`

không truyền khi lỗi vs rơi về không mã hoá

Thay VPN cho từng ứng dụng

AWS Verified Access (HTTP và từ 2/2025 cả TCP, SSH, RDP)

Network Access Analyzer

tìm mọi đường mạng vi phạm access scope

Bedrock Guardrails filters

content (có Prompt Attack), denied topics, word, sensitive information, contextual grounding, Automated Reasoning

Bắt buộc guardrail

điều kiện `bedrock:GuardrailIdentifier` trong IAM policy hoặc SCP

Quét code trong pipeline

Inspector code security (SAST, SCA, IaC), Q Developer

5. Infrastructure Security – Flashcards – SCS-C03 | Học Dev