devHọc Dev
EN
Bài học

Tuần 1 - Ngày 1: Tổng quan kỳ thi SCS-C03 và Domain 1 Detection

Tuần 1 – Ngày 1

Bài này gộp 3 chủ đề: Kỳ thi SCS-C03 và cách học nhanh, Monitoring, alerting và các dịch vụ phát hiện (GuardDuty, Security Hub, Macie, Config), Logging tập trung và troubleshoot log bị thiếu. Thời lượng ước tính: 3 giờ.

Mục tiêu học tập

  • Nắm đúng format SCS-C03: số câu, thời lượng, điểm đạt, 6 domain và trọng số
  • Biết chủ đề mới của SCS-C03 so với SCS-C02 và các dịch vụ đã ngừng nhận khách mới
  • Chọn đúng dịch vụ phát hiện theo tín hiệu đề: GuardDuty, Security Hub, Macie, Inspector, Config, Detective
  • Thiết kế logging tập trung cho organization: organization trail, Log Archive account, Security Lake
  • Chọn nguồn log đúng theo loại tấn công: CloudTrail, VPC Flow Logs, Route 53 Resolver query logs, WAF logs
  • Troubleshoot log/alert bị thiếu: quyền, bucket policy, key policy, agent, endpoint

Phần 1: Kỳ thi SCS-C03 và cách học nhanh

1. Format kỳ thi (theo exam guide chính thức)

MụcGiá trị
Mã đềSCS-C03 (dùng từ 2/12/2025, thay SCS-C02)
Số câu65 câu: 50 câu tính điểm + 15 câu không tính điểm (không biết câu nào)
Thời lượng170 phút (khoảng 2,6 phút/câu)
Điểm đạt750/1000 (scaled score), chấm bù trừ giữa các domain
Dạng câuMultiple choice (1 đúng / 4), multiple response (≥ 2 đúng / ≥ 5 phương án); exam guide còn liệt kê ordering và matching
Phí300 USD
Kinh nghiệm khuyến nghị3–5 năm bảo mật giải pháp cloud

Bỏ trống bị tính sai, không trừ điểm khi đoán: không bao giờ bỏ trống câu nào.

2. Sáu domain và trọng số

DomainTênTrọng sốSố câu ước tính (/65)
1Detection16%10
2Incident Response14%9
3Infrastructure Security18%12
4Identity and Access Management20%13
5Data Protection18%12
6Security Foundations and Governance14%9

So với SCS-C02: domain "Threat Detection and Incident Response" và "Security Logging and Monitoring" được tách lại thành Detection và Incident Response; IAM tăng từ 16% lên 20%; domain 6 đổi tên thành "Security Foundations and Governance".

3. Nội dung mới và nội dung bị bỏ

Thêm vào SCS-C03 (đề sẽ hỏi):

  • Validate finding của dịch vụ bảo mật để đánh giá phạm vi và tác động sự cố (2.2.3)
  • Tích hợp edge với bên thứ ba: ingest dữ liệu dạng OCSF, dùng WAF rule của bên thứ ba (3.1.4)
  • Bảo vệ ứng dụng GenAI: OWASP Top 10 for LLM Applications, guardrail (3.2.7)
  • Mã hoá in-transit giữa các node: EMR, EKS, SageMaker AI, Nitro encryption (5.1.3)
  • Khác biệt giữa imported key material và key material do AWS sinh (5.3.3)
  • Mask dữ liệu nhạy cảm: CloudWatch Logs data protection policy (5.3.4)
  • Quản lý key và certificate một hoặc nhiều Region: multi-Region KMS key, AWS Private CA (5.3.5)

Bỏ khỏi SCS-C03 (theo appendix của exam guide): ASFF, AWS Security Incident Response Guide, log format và thành phần của log (ví dụ CloudTrail), host-based security và host-based firewall, cách phân tích reachability (VPC Reachability Analyzer) và troubleshoot kết nối mạng, TCP/IP và OSI cơ bản, cấu trúc Principal/Action/Resource/Condition (đề coi như bạn đã biết), TLS concepts, thiết kế cross-Region networking bằng private VIF và public VIF, S3 static website hosting, tìm lỗ hổng bảo mật qua architectural review và cost analysis. Lưu ý: Inspector network reachability findings vẫn còn trong 3.3.5.

Trong scope nhưng hay bị quên: Fault Injection Service, Resilience Hub, Application Recovery Controller, Verified Access, Verified Permissions, IAM Roles Anywhere, Security Lake, Managed Grafana, User Notifications, Automated Forensics Orchestrator for Amazon EC2, Q Developer, Bedrock, SageMaker AI.

Ngoài scope: Amazon MWAA, AWS Payment Cryptography.

4. Dịch vụ đã ngừng nhận khách mới

Exam guide hiện hành vẫn nêu vài dịch vụ hoặc tính năng mà AWS đã chuyển sang maintenance: CodeGuru Security (3.2.6), S3 Glacier Vault Lock (5.2.2), SNS message data protection (5.3.4); Audit Manager, CloudTrail Lake và Q Business vẫn có trong danh sách dịch vụ in-scope.

  • Trong khoá này: quiz và đề thi thử không bao giờ lấy chúng làm đáp án đúng
  • Trên đề thật: nếu phương án duy nhất khớp chức năng đề hỏi là một dịch vụ trong bảng dưới thì chọn nó
Dịch vụ / tính năngMốc đã kiểm trên docs AWSThay bằng
AWS CloudTrail LakeKhông nhận khách mới từ 31/5/2026Athena trên log CloudTrail trong S3, Security Lake + Athena, CloudWatch Logs Insights
AWS Audit ManagerKhông thiết lập được ở account mới từ 30/4/2026Config conformance pack, Security Hub CSPM standards, AWS Artifact
SNS message data protectionKhông nhận khách mới từ 30/4/2026Mask ở tầng ứng dụng (Lambda + Bedrock Guardrails), CloudWatch Logs data protection cho log
Amazon S3 Glacier Direct (vault, Vault Lock)Ngày công bố 7/10/2025S3 Glacier storage classes + S3 Object Lock
Amazon CodeGuru SecurityNgừng hỗ trợ 20/11/2025Amazon Inspector code security, Amazon Q Developer
Amazon CodeGuru ReviewerKhông tạo repository association mới từ 7/11/2025Inspector code security, Q Developer
Systems Manager Incident ManagerKhông nhận khách mới từ 7/11/2025EventBridge + SNS/User Notifications, OpsCenter, Step Functions
Amazon Q BusinessNgày công bố 30/6/2026Amazon Quick, Bedrock (Knowledge Bases, Guardrails)
Directory Service – Simple ADNgày công bố 30/6/2026AWS Managed Microsoft AD, AD Connector
ARC – Readiness checkNgày công bố 31/3/2026ARC Region switch, routing control, zonal shift

"Ngày công bố" là ngày trên trang Services in Maintenance; trang hướng dẫn của dịch vụ đó không ghi ngày hiệu lực.

Ngoài ra, AWS Security Hub hiện có 2 sản phẩm: Security Hub mới (GA 12/2025, dùng OCSF, tương quan finding từ GuardDuty, Inspector, Macie, CSPM) và Security Hub CSPM (chính là Security Hub cũ: security standards, control, automation rule).

5. Cách học nhanh nhất cho người đã dùng AWS

  • Học theo tín hiệu đề → dịch vụ, không học từng dịch vụ từ đầu
  • Thuộc các bảng so sánh: SCP vs RCP vs permission boundary, SG vs NACL vs Network Firewall, Secrets Manager vs Parameter Store, KMS vs CloudHSM vs XKS
  • Mỗi tối làm 10–15 câu của quiz, đọc kỹ giải thích vì sao phương án gần nhất sai
  • Đề Specialty thường đưa 2 phương án đều "chạy được": chọn theo từ khoá ràng buộc (MOST secure, LEAST operational overhead, LEAST privilege, MOST cost-effective)
Từ khoáNghĩa trong đề bảo mật
LEAST operational overheadManaged service, tính năng có sẵn, tự động hoá; tránh Lambda tự viết, EC2 tự quản
MOST secureÍt credential dài hạn nhất, private connectivity, mã hoá + kiểm soát key, explicit deny
LEAST privilegeQuyền đúng action/resource/condition, có thời hạn, scoped bằng tag hoặc boundary
Centrally / across all accountsOrganizations + delegated administrator, organization trail, StackSets, Firewall Manager
Near real timeEventBridge rule, metric filter + alarm; không phải báo cáo theo lịch
PreventSCP/RCP, declarative policy, key policy, bucket policy deny; không phải Config rule (Config chỉ phát hiện)

Phần 2: Monitoring, alerting và dịch vụ phát hiện

1. Bản đồ dịch vụ phát hiện — câu hỏi số 1 của domain này

Dịch vụPhát hiện gìDữ liệu đầu vàoĐề hay nói
GuardDutyMối đe doạ đang diễn ra (credential bị lộ, crypto mining, C2, exfiltration)CloudTrail management events, VPC Flow Logs, DNS logs (tự lấy, không cần bật); thêm protection plan"unusual API calls", "instance liên lạc với IP độc hại", "credential dùng từ IP lạ"
InspectorLỗ hổng phần mềm (CVE), network exposure, lỗi codeEC2 (SSM agent hoặc agentless), ECR image, Lambda, repo code"vulnerability", "CVE", "software package"
MacieDữ liệu nhạy cảm (PII, credential) trong S3, chính sách bucket rủi roObject S3, cấu hình bucket"discover PII in S3", "sensitive data"
ConfigCấu hình không tuân thủ, lịch sử cấu hìnhConfiguration recorder"non-compliant resources", "configuration history", "drift"
Security Hub CSPMKiểm tra theo standard (AWS FSBP, CIS, PCI DSS, NIST 800-53) và gom findingConfig rules do Security Hub quản lý + finding từ dịch vụ khác"compliance score", "security standard", "single pane of glass"
Security Hub (mới)Tương quan và ưu tiên rủi ro, exposure findingGuardDuty, Inspector, Macie, CSPM"correlate", "prioritize risk", "attack path"
DetectiveĐiều tra nguyên nhân gốc, phạm vi ảnh hưởngBehavior graph từ CloudTrail, VPC Flow Logs, EKS audit, finding GuardDuty"root cause", "investigate", "visualize"
IAM Access AnalyzerTruy cập ngoài zone of trust, quyền không dùngResource policy, last accessed"shared externally", "unused permissions"
Trusted AdvisorCheck best practice (một số check bảo mật như MFA root, SG mở)Cấu hình tài khoản"best practice checks" (thường là phương án nhiễu)

Mẹo: GuardDuty = hành vi, Inspector = lỗ hổng, Macie = dữ liệu, Config = cấu hình, Detective = điều tra.

2. Amazon GuardDuty — những điểm đề hỏi

  • Bật GuardDuty là tự phân tích CloudTrail management events, VPC Flow Logs và DNS logs; không cần bật flow log hay trail riêng (đây là bẫy phổ biến)
  • Protection plans (bật thêm): S3 Protection (CloudTrail data events S3), EKS Protection (audit log), Runtime Monitoring (agent cho EKS, EC2, ECS/Fargate), Malware Protection for EC2 (quét EBS), Malware Protection for S3 (quét object mới upload, dùng được độc lập không cần bật GuardDuty), Malware Protection for AWS Backup, RDS Protection (login), Lambda Protection (network activity), AI Protection (Bedrock, AgentCore, SageMaker AI)
  • Extended Threat Detection: tự bật, miễn phí, ghép nhiều sự kiện riêng lẻ thành attack sequence finding (tấn công nhiều bước)
  • Multi-account: delegated administrator qua Organizations + auto-enable cho account mới
  • Đầu ra: finding → EventBridge (near real time) → Lambda/Step Functions/SNS; export finding sang S3 (cần KMS key)
  • Trusted IP list (không sinh finding cho IP này) và threat list (IP độc hại của bạn); suppression rule để ẩn finding đã biết là vô hại (vẫn sinh, chỉ tự archive)

3. Security Hub CSPM và Security Hub

  • Security Hub CSPM cần AWS Config bật recorder ở mọi account/Region để chạy control
  • Central configuration: delegated admin cấu hình standard và control cho cả organization từ một nơi; cross-Region aggregation về một home Region
  • Automation rules: tự sửa trường finding (severity, workflow status) khi khớp điều kiện, ví dụ hạ severity cho account sandbox
  • Custom action → EventBridge → Lambda/SSM Automation để remediation bán tự động
  • Security Hub mới: bật Security Hub sẽ bật luôn CSPM; finding dùng OCSF; automation rule cũ (ASFF) phải chuyển đổi

4. Amazon Macie

  • Automated sensitive data discovery: lấy mẫu liên tục toàn bộ bucket, chi phí thấp, cho bản đồ rủi ro
  • Sensitive data discovery job: quét sâu bucket chỉ định (một lần hoặc theo lịch)
  • Managed data identifier (PII, tài chính, credential) + custom data identifier (regex + keyword) + allow list (bỏ qua giá trị biết trước)
  • 2 loại finding: policy finding (bucket public, tắt mã hoá) và sensitive data finding
  • Object mã hoá SSE-KMS: role của Macie cần quyền kms:Decrypt trên key; SSE-C thì Macie không đọc được

5. AWS Config — phát hiện, không ngăn chặn

  • Rule: managed rule, custom Lambda rule, custom Guard rule (viết bằng CloudFormation Guard)
  • Conformance pack: bộ rule + remediation triển khai một lần, deploy được ra cả organization
  • Aggregator: gom kết quả nhiều account/Region về một account (organization aggregator)
  • Remediation: gắn SSM Automation runbook, bật automatic remediation (có retry)
  • Advanced query: truy vấn SQL trên cấu hình hiện tại toàn organization
  • Đề nói "chặn trước khi tạo" thì Config sai; chọn SCP, declarative policy, CloudFormation Hook hoặc Control Tower proactive control

6. Alerting theo thời gian thực

Yêu cầuCách làm
Báo ngay khi root user đăng nhậpOrganization trail → CloudWatch Logs + metric filter (userIdentity.type = Root, eventName = ConsoleLogin) + alarm; hoặc EventBridge rule ở cả us-east-1, us-east-2 và us-west-2 của mọi account → SNS
Báo khi có thay đổi security group/NACLEventBridge rule trên API call (AuthorizeSecurityGroupIngress...)
Báo finding mức HIGH của GuardDutyEventBridge pattern lọc severity → SNS/Chatbot/User Notifications
Dashboard metric bảo mậtCloudWatch dashboard, Amazon Managed Grafana (nhiều nguồn, nhiều account)
Đánh giá định kỳ trên instanceSystems Manager State Manager association chạy document theo lịch
Health check ứng dụngRoute 53 health check, ELB health check + CloudWatch alarm

Lưu ý Region của sự kiện (EventBridge chỉ nhận sự kiện CloudTrail ở đúng Region được ghi):

  • IAM, CloudFront: ghi ở us-east-1
  • STS: gọi qua global endpoint ghi ở us-east-1; qua regional endpoint ghi ở Region của endpoint đó
  • ConsoleLogin của root: ghi ở us-east-1, us-east-2 hoặc us-west-2; của IAM user thì tuỳ endpoint đăng nhập
  • Hệ quả: rule EventBridge chỉ đặt ở us-east-1 có thể bỏ sót đăng nhập root; dùng rule ở cả 3 Region (StackSets multi-Region) hoặc metric filter trên log group của trail multi-Region

Phần 3: Logging tập trung và troubleshoot

1. CloudTrail — điều phải thuộc

Loại eventMặc địnhGhi chú
Management eventsCó (Event history 90 ngày, không cần trail)Lưu lâu dài cần trail → S3
Data eventsKhôngS3 object-level, Lambda Invoke, DynamoDB item... tốn phí, bật bằng advanced event selector
Network activity eventsKhôngAPI đi qua VPC endpoint (có thể chỉ log accessDenied) — phát hiện truy cập từ ngoài data perimeter
Insights eventsKhôngPhát hiện bất thường về tần suất API call hoặc tỷ lệ lỗi
  • Organization trail: tạo từ management account hoặc delegated administrator; member account thấy nhưng không sửa/xoá được
  • Log file integrity validation: digest file SHA-256 ký số mỗi giờ; kiểm bằng aws cloudtrail validate-logs → chứng minh log không bị sửa/xoá
  • Mã hoá log bằng SSE-KMS: key policy phải cho cloudtrail.amazonaws.com kms:GenerateDataKey* (có điều kiện aws:SourceArn/encryption context của trail)
  • Bucket nhận log nằm ở Log Archive account, bật Object Lock (compliance) hoặc chặn xoá bằng SCP/bucket policy
  • Phân tích: Athena (CREATE TABLE với partition projection), CloudWatch Logs Insights (gửi trail vào CloudWatch Logs), Security Lake. CloudTrail Lake không nhận khách mới

2. Chọn nguồn log theo mối đe doạ

Câu hỏi điều traNguồn log
Ai gọi API gì, khi nào, từ IP nàoCloudTrail management events
Ai đọc/ghi object S3 nàoCloudTrail data events (hoặc S3 server access logs, rẻ hơn, best effort)
Instance nói chuyện với IP/port nào, bị reject ở đâuVPC Flow Logs (metadata, không có payload)
Lưu lượng giữa các VPC qua TGWTransit Gateway Flow Logs
Instance resolve domain nào (DNS exfiltration, C2)Route 53 Resolver query logs
Request HTTP bị WAF chặn, header, rule nào khớpAWS WAF logs (CloudWatch Logs, S3, Firehose; tên phải bắt đầu aws-waf-logs-)
Request vào ALB/NLBELB access logs (tắt mặc định, ghi S3)
Request vào CloudFrontStandard logs (S3, CloudWatch Logs, Firehose) hoặc real-time logs (Kinesis Data Streams)
Lệnh chạy trong Session ManagerSession logs → S3/CloudWatch Logs
Hoạt động trong cluster EKSEKS control plane logs (audit, authenticator)
Prompt và response của BedrockBedrock model invocation logging (CloudWatch Logs/S3)

VPC Flow Logs không ghi: DNS tới Route 53 Resolver (.2), DHCP, metadata 169.254.169.254, Amazon Time Sync, kích hoạt license Windows. Muốn thấy DNS phải bật Resolver query logs.

3. Kiến trúc log tập trung cho organization

Mọiaccount──(organizationtrail)──────────────►S3LogArchive(ObjectLock,SSE-KMS)Mọiaccount──(VPCFlowLogs/Resolverlogs)─────►S3LogArchivehoặcCloudWatchLogsMọiaccount──(GuardDuty,Inspector,Macie)─────►DelegatedadmintrongSecurityToolingaccount└─►SecurityHub(aggregationRegion)SecurityLake(delegatedadmin)──OCSF/Parquet─►subscriber:SIEMbênthứba,Athena,OpenSearch

Amazon Security Lake

  • Tự thu thập: CloudTrail (management, data events), VPC Flow Logs, Route 53 Resolver query logs, Security Hub finding, EKS audit logs, AWS WAF logs; thêm custom source (bên thứ ba) ở định dạng OCSF
  • Lưu S3 dạng OCSF + Parquet, quản lý quyền bằng Lake Formation; rollup Region gom dữ liệu nhiều Region
  • Subscriber: data access (nhận thông báo object mới qua SQS/HTTPS, đọc S3 trực tiếp — cho SIEM) và query access (truy vấn bảng Lake Formation bằng Athena); mỗi subscriber tối đa 10 source
  • Đề nói "normalize log nhiều nguồn sang schema chuẩn, chia sẻ cho SIEM" → Security Lake

Chuẩn hoá và phân tích log

  • OpenSearch Service (Security Analytics, dashboard), Lambda để parse/enrich, Managed Grafana để hiển thị
  • CloudWatch Logs subscription filter → Firehose/Lambda/OpenSearch; cross-account bằng CloudWatch Logs destination
  • CloudWatch cross-account observability để xem metric/log của nhiều account từ monitoring account

4. Troubleshoot log và alert bị thiếu — dạng câu rất hay ra

Triệu chứngNguyên nhân thường gặpSửa
CloudTrail không ghi được vào bucketBucket policy thiếu s3:PutObject cho cloudtrail.amazonaws.com (và s3:GetBucketAcl), hoặc sai prefix/aws:SourceArnSửa bucket policy; org trail cần prefix AWSLogs/<org-id>/
Trail bật SSE-KMS rồi ngừng ghiKey policy không cho CloudTrail dùng keyThêm statement cho service principal CloudTrail
EC2 không đẩy log lên CloudWatchAgent chưa chạy/sai file config, instance profile thiếu CloudWatchAgentServerPolicy, subnet private không có NAT hoặc interface endpoint logsSửa role, config (lưu trong Parameter Store), thêm endpoint
Log group mã hoá KMS không nhận logKey policy thiếu principal logs.<region>.amazonaws.comCập nhật key policy
Lambda không có logExecution role thiếu logs:CreateLogGroup, CreateLogStream, PutLogEventsGắn AWSLambdaBasicExecutionRole
API Gateway không có execution logChưa cấu hình CloudWatch role ARN ở cấp account của API GatewayTạo role, đặt trong API Gateway settings, bật logging ở stage
Không thấy event IAM/console login trong Region đang dùngIAM ghi ở us-east-1; root login ghi ở us-east-1, us-east-2 hoặc us-west-2Trail multi-Region; rule ở mọi Region liên quan hoặc metric filter trên log group của trail
GuardDuty không có finding S3 objectChưa bật S3 ProtectionBật protection plan
Security Hub control báo "no data"Config recorder chưa bậtBật Config ở mọi account/Region
Không có log cho bucket S3 khi đọc objectChỉ có management eventsBật data events hoặc server access logs

Câu hỏi ôn tập

  1. Vì sao không cần bật VPC Flow Logs để GuardDuty phân tích lưu lượng EC2?
  2. Đề yêu cầu "ngăn" tạo EBS volume không mã hoá. Config rule có đáp ứng không? Chọn gì?
  3. Khác nhau giữa CloudTrail data events, network activity events và Insights events?
  4. Muốn biết instance đã resolve domain nào trong 7 ngày qua, cần log nào?
  5. Security Lake subscriber dạng data access và query access khác nhau thế nào?
  6. EventBridge rule cho ConsoleLogin của root đặt ở Region nào, vì sao?
  7. Kể 3 nguyên nhân khiến CloudWatch agent không đẩy được log.

Bài tập thực hành

  • Tạo organization trail (hoặc trail multi-Region trong lab) bật log file integrity validation, chạy validate-logs
  • Bật GuardDuty, tạo sample findings, viết EventBridge rule lọc severity ≥ 7 gửi SNS
  • Bật Security Hub CSPM với AWS FSBP, xem control nào fail vì thiếu Config recorder
  • Bật Route 53 Resolver query logging cho một VPC, tìm query tới domain thử nghiệm
  • Viết truy vấn Athena đếm AccessDenied theo userIdentity.arn từ log CloudTrail

Tài liệu tham khảo


Bài tiếp theo →