[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AF1QXQB3H12C1MVJ18BH61":3,"skill-same:01M6AF1QXQB3H12C1MVJ18BH61":111},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":70,"commitSha":71,"skillDirectory":72,"forksCount":73,"repositoryHtmlUrl":74,"repositoryHomepageUrl":75,"ownerHtmlUrl":76,"ownerBlogUrl":77,"ownerDescription":78,"updatedAt":79,"install":80,"resources":93},"01M6AF1QXQB3H12C1MVJ18BH61","implementing-cloud-trail-log-analysis","AWS CloudTrail 日志分析","Implementing AWS CloudTrail log analysis for security monitoring, threat detection, and forensic investigation using Athena, CloudWatch Logs Insights, and SIEM integration to identify unauthorized access, privilege escalation, and suspicious API activity.","实施 AWS CloudTrail 日志分析，用于安全监控、威胁检测和取证调查，通过 Athena、CloudWatch Logs Insights 和 SIEM 集成识别未经授权的访问、权限提升和可疑 API 活动。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-cloud-trail-log-analysis\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"implementing cloud trail log analysis","cloud","forensics","t1078","detection","escalation","aws","log-analysis","threat-detection","cloudtrail","cloud-security","suspicious","monitoring","logs","integration","pr","siem","cybersecurity","security","2026-11-10 10:12:30",false,"---\nname: implementing-cloud-trail-log-analysis\ndescription: 'Implementing AWS CloudTrail log analysis for security monitoring, threat\n  detection, and forensic investigation using Athena, CloudWatch Logs Insights, and\n  SIEM integration to identify unauthorized access, privilege escalation, and suspicious\n  API activity.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- aws\n- cloudtrail\n- log-analysis\n- threat-detection\n- forensics\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1530\n- T1537\n- T1580\n- T1068\n---\n\n# Implementing CloudTrail Log Analysis\n\n## When to Use\n\n- When building security monitoring pipelines for AWS API activity\n- When investigating security incidents to trace attacker actions across AWS services\n- When compliance requires audit logging of all administrative and data access operations\n- When creating detection rules for known attack patterns in AWS environments\n- When establishing baseline API behavior for anomaly detection\n\n**Do not use** for real-time threat detection (use GuardDuty which already analyzes CloudTrail), for application-level logging (use CloudWatch Application Logs), or for network traffic analysis (use VPC Flow Logs).\n\n## Prerequisites\n\n- CloudTrail enabled with management events and optionally data events across all accounts\n- S3 bucket configured as CloudTrail delivery channel with appropriate retention policies\n- Amazon Athena configured with CloudTrail log table for ad-hoc queries\n- CloudWatch Logs subscription for real-time analysis with Logs Insights\n- SIEM integration (Splunk, Elastic, or Security Lake) for production monitoring\n\n## Workflow\n\n### Step 1: Configure CloudTrail for Comprehensive Logging\n\nEnsure CloudTrail captures all relevant event types across the organization.\n\n```bash\n# Create an organization trail (captures all accounts)\naws cloudtrail create-trail \\\n  --name org-security-trail \\\n  --s3-bucket-name cloudtrail-logs-org-ACCOUNT \\\n  --is-organization-trail \\\n  --is-multi-region-trail \\\n  --include-global-service-events \\\n  --enable-log-file-validation \\\n  --kms-key-id alias\u002Fcloudtrail-key \\\n  --cloud-watch-logs-log-group-arn arn:aws:logs:us-east-1:ACCOUNT:log-group:cloudtrail-org:* \\\n  --cloud-watch-logs-role-arn arn:aws:iam::ACCOUNT:role\u002FCloudTrailCloudWatchRole\n\n# Start logging\naws cloudtrail start-logging --name org-security-trail\n\n# Enable data events for S3 and Lambda\naws cloudtrail put-event-selectors \\\n  --trail-name org-security-trail \\\n  --advanced-event-selectors '[\n    {\n      \"Name\": \"S3DataEvents\",\n      \"FieldSelectors\": [\n        {\"Field\": \"eventCategory\", \"Equals\": [\"Data\"]},\n        {\"Field\": \"resources.type\", \"Equals\": [\"AWS::S3::Object\"]}\n      ]\n    },\n    {\n      \"Name\": \"LambdaDataEvents\",\n      \"FieldSelectors\": [\n        {\"Field\": \"eventCategory\", \"Equals\": [\"Data\"]},\n        {\"Field\": \"resources.type\", \"Equals\": [\"AWS::Lambda::Function\"]}\n      ]\n    }\n  ]'\n\n# Verify trail configuration\naws cloudtrail describe-trails --trail-name-list org-security-trail\n```\n\n### Step 2: Set Up Athena for CloudTrail Query Analysis\n\nCreate an Athena table for querying CloudTrail logs with SQL.\n\n```sql\n-- Create CloudTrail Athena table\nCREATE EXTERNAL TABLE cloudtrail_logs (\n  eventVersion STRING,\n  userIdentity STRUCT\u003C\n    type:STRING, principalId:STRING, arn:STRING,\n    accountId:STRING, invokedBy:STRING,\n    accessKeyId:STRING, userName:STRING,\n    sessionContext:STRUCT\u003C\n      attributes:STRUCT\u003CmfaAuthenticated:STRING, creationDate:STRING>,\n      sessionIssuer:STRUCT\u003Ctype:STRING, principalId:STRING, arn:STRING, accountId:STRING, userName:STRING>\n    >\n  >,\n  eventTime STRING,\n  eventSource STRING,\n  eventName STRING,\n  awsRegion STRING,\n  sourceIPAddress STRING,\n  userAgent STRING,\n  errorCode STRING,\n  errorMessage STRING,\n  requestParameters STRING,\n  responseElements STRING,\n  additionalEventData STRING,\n  requestId STRING,\n  eventId STRING,\n  readOnly STRING,\n  resources ARRAY\u003CSTRUCT\u003Carn:STRING, accountId:STRING, type:STRING>>,\n  eventType STRING,\n  apiVersion STRING,\n  recipientAccountId STRING,\n  sharedEventId STRING,\n  vpcEndpointId STRING\n)\nPARTITIONED BY (region STRING, year STRING, month STRING, day STRING)\nROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'\nLOCATION 's3:\u002F\u002Fcloudtrail-logs-org-ACCOUNT\u002FAWSLogs\u002FORG_ID\u002F';\n\n-- Add partitions for recent data\nALTER TABLE cloudtrail_logs ADD\n  PARTITION (region='us-east-1', year='2026', month='02', day='23')\n  LOCATION 's3:\u002F\u002Fcloudtrail-logs-org-ACCOUNT\u002FAWSLogs\u002FORG_ID\u002FACCOUNT\u002FCloudTrail\u002Fus-east-1\u002F2026\u002F02\u002F23\u002F';\n```\n\n### Step 3: Run Security-Focused Athena Queries\n\nExecute queries to detect common attack patterns and suspicious activity.\n\n```sql\n-- Detect console logins without MFA\nSELECT eventtime, useridentity.username, sourceipaddress, useridentity.arn\nFROM cloudtrail_logs\nWHERE eventname = 'ConsoleLogin'\n  AND additionalEventData LIKE '%\"MFAUsed\":\"No\"%'\n  AND errorcode IS NULL\nORDER BY eventtime DESC;\n\n-- Find IAM privilege escalation attempts\nSELECT eventtime, useridentity.arn, eventname, errorcode, sourceipaddress\nFROM cloudtrail_logs\nWHERE eventname IN (\n  'CreatePolicyVersion', 'SetDefaultPolicyVersion', 'AttachUserPolicy',\n  'AttachRolePolicy', 'PutUserPolicy', 'PutRolePolicy',\n  'CreateAccessKey', 'CreateLoginProfile', 'UpdateLoginProfile',\n  'PassRole', 'AssumeRole'\n)\nORDER BY eventtime DESC\nLIMIT 100;\n\n-- Detect CloudTrail tampering\nSELECT eventtime, useridentity.arn, eventname, requestparameters, sourceipaddress\nFROM cloudtrail_logs\nWHERE eventname IN ('StopLogging', 'DeleteTrail', 'UpdateTrail', 'PutEventSelectors')\nORDER BY eventtime DESC;\n\n-- Find API calls from Tor exit nodes or unusual IPs\nSELECT eventtime, useridentity.arn, eventname, sourceipaddress, awsregion\nFROM cloudtrail_logs\nWHERE sourceipaddress NOT LIKE '10.%'\n  AND sourceipaddress NOT LIKE '172.%'\n  AND sourceipaddress NOT LIKE '192.168.%'\n  AND useridentity.type = 'IAMUser'\n  AND errorcode IS NULL\nGROUP BY eventtime, useridentity.arn, eventname, sourceipaddress, awsregion\nORDER BY eventtime DESC\nLIMIT 200;\n\n-- Detect unauthorized API calls (AccessDenied patterns)\nSELECT useridentity.arn, eventname, COUNT(*) as denied_count\nFROM cloudtrail_logs\nWHERE errorcode IN ('AccessDenied', 'UnauthorizedAccess', 'Client.UnauthorizedAccess')\n  AND eventtime > date_format(date_add('day', -7, now()), '%Y-%m-%dT%H:%i:%sZ')\nGROUP BY useridentity.arn, eventname\nHAVING COUNT(*) > 10\nORDER BY denied_count DESC;\n```\n\n### Step 4: Build Real-Time Detection with CloudWatch Logs Insights\n\nCreate real-time queries for active security monitoring.\n\n```bash\n# Detect root account usage\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, eventName, sourceIPAddress, userAgent\n    | filter userIdentity.type = \"Root\"\n    | sort @timestamp desc\n  '\n\n# Detect security group changes\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, userIdentity.arn, eventName, requestParameters.groupId, sourceIPAddress\n    | filter eventName in [\"AuthorizeSecurityGroupIngress\", \"AuthorizeSecurityGroupEgress\", \"RevokeSecurityGroupIngress\", \"CreateSecurityGroup\"]\n    | sort @timestamp desc\n  '\n\n# Detect new IAM users or access keys created\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, userIdentity.arn, eventName, requestParameters.userName, sourceIPAddress\n    | filter eventName in [\"CreateUser\", \"CreateAccessKey\", \"CreateLoginProfile\"]\n    | sort @timestamp desc\n  '\n```\n\n### Step 5: Create CloudWatch Metric Filters and Alarms\n\nSet up automated alerting for critical security events based on CIS Benchmark recommendations.\n\n```bash\n# CIS 3.1: Unauthorized API calls alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name unauthorized-api-calls \\\n  --filter-pattern '{($.errorCode = \"*UnauthorizedAccess\") || ($.errorCode = \"AccessDenied*\")}' \\\n  --metric-transformations '[{\"metricName\":\"UnauthorizedAPICalls\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\naws cloudwatch put-metric-alarm \\\n  --alarm-name cis-unauthorized-api-calls \\\n  --metric-name UnauthorizedAPICalls --namespace CISBenchmark \\\n  --statistic Sum --period 300 --threshold 10 \\\n  --comparison-operator GreaterThanThreshold --evaluation-periods 1 \\\n  --alarm-actions arn:aws:sns:us-east-1:ACCOUNT:security-alerts\n\n# CIS 3.3: Root account usage alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name root-account-usage \\\n  --filter-pattern '{$.userIdentity.type = \"Root\" && $.userIdentity.invokedBy NOT EXISTS && $.eventType != \"AwsServiceEvent\"}' \\\n  --metric-transformations '[{\"metricName\":\"RootAccountUsage\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\n# CIS 3.4: IAM policy changes alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name iam-policy-changes \\\n  --filter-pattern '{($.eventName=CreatePolicy) || ($.eventName=DeletePolicy) || ($.eventName=AttachRolePolicy) || ($.eventName=DetachRolePolicy) || ($.eventName=AttachUserPolicy) || ($.eventName=DetachUserPolicy)}' \\\n  --metric-transformations '[{\"metricName\":\"IAMPolicyChanges\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\n# CIS 3.5: CloudTrail configuration changes alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name cloudtrail-changes \\\n  --filter-pattern '{($.eventName = StopLogging) || ($.eventName = DeleteTrail) || ($.eventName = UpdateTrail)}' \\\n  --metric-transformations '[{\"metricName\":\"CloudTrailChanges\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| CloudTrail | AWS service that records API calls made to AWS services, providing an audit trail of actions taken by users, roles, and services |\n| Management Events | CloudTrail events for control plane operations like creating resources, modifying IAM, and configuring services |\n| Data Events | CloudTrail events for data plane operations like S3 object access and Lambda function invocations, providing granular activity logging |\n| Log File Validation | CloudTrail feature that creates a digest file for verifying that log files have not been tampered with after delivery |\n| CloudTrail Lake | Managed data lake for CloudTrail events enabling SQL-based queries without managing Athena tables or S3 data |\n| Organization Trail | Single trail that captures API activity across all accounts in an AWS Organization to a central S3 bucket |\n\n## Tools & Systems\n\n- **Amazon Athena**: Serverless SQL query engine for analyzing CloudTrail logs stored in S3 at scale\n- **CloudWatch Logs Insights**: Real-time log query service for interactive CloudTrail analysis within the last 30 days\n- **CloudTrail Lake**: Managed event data lake with built-in SQL query capabilities and 7-year retention\n- **Amazon Security Lake**: Centralized security data lake that normalizes CloudTrail data into OCSF format for SIEM consumption\n- **AWS CloudTrail**: Core audit logging service capturing all API activity across AWS accounts and services\n\n## Common Scenarios\n\n### Scenario: Investigating an IAM Credential Compromise Through CloudTrail\n\n**Context**: GuardDuty alerts on `UnauthorizedAccess:IAMUser\u002FMaliciousIPCaller` for a developer's access key. The security team needs to trace all actions taken by the compromised credential.\n\n**Approach**:\n1. Query CloudTrail for all events by the compromised AccessKeyId across all regions\n2. Build a timeline of API calls to understand the attack sequence\n3. Identify the initial access point (when did the key first appear from a malicious IP)\n4. Map all resources created, modified, or accessed by the attacker\n5. Check for persistence mechanisms (new users, access keys, Lambda functions, EC2 instances)\n6. Verify CloudTrail was not tampered with (check for StopLogging or UpdateTrail events)\n7. Document the full attack chain and scope of impact for the incident response report\n\n**Pitfalls**: CloudTrail events can take up to 15 minutes to appear in S3 and CloudWatch Logs. For real-time visibility during active incidents, use CloudTrail Lake or CloudWatch Logs Insights rather than Athena queries against S3. Cross-region attacks require querying multiple region partitions in Athena.\n\n## Output Format\n\n```\nCloudTrail Security Analysis Report\n======================================\nAccount: 123456789012\nAnalysis Period: 2026-02-16 to 2026-02-23\nTrail: org-security-trail (organization-wide)\n\nSECURITY EVENTS DETECTED:\n  Root account logins:                  2\n  Console logins without MFA:           7\n  Privilege escalation attempts:       12\n  CloudTrail configuration changes:     0\n  Security group modifications:        34\n  Unauthorized API calls:             156\n\nHIGH-PRIORITY FINDINGS:\n[CT-001] Console Login Without MFA\n  User: admin-user\n  Time: 2026-02-22T14:30:00Z\n  IP: 203.0.113.50\n  Action Required: Enforce MFA via IAM policy\n\n[CT-002] IAM Privilege Escalation\n  User: dev-user\n  Time: 2026-02-23T03:15:00Z\n  Events: CreatePolicyVersion -> AttachRolePolicy\n  IP: 185.x.x.x (suspicious)\n  Action Required: Investigate credential compromise\n\nALERTING STATUS:\n  CIS metric filters configured: 14 \u002F 14\n  CloudWatch alarms active: 14 \u002F 14\n  Alerts fired (last 7 days): 8\n```\n","# Implementing CloudTrail Log Analysis\n\n## When to Use\n\n- When building security monitoring pipelines for AWS API activity\n- When investigating security incidents to trace attacker actions across AWS services\n- When compliance requires audit logging of all administrative and data access operations\n- When creating detection rules for known attack patterns in AWS environments\n- When establishing baseline API behavior for anomaly detection\n\n**Do not use** for real-time threat detection (use GuardDuty which already analyzes CloudTrail), for application-level logging (use CloudWatch Application Logs), or for network traffic analysis (use VPC Flow Logs).\n\n## Prerequisites\n\n- CloudTrail enabled with management events and optionally data events across all accounts\n- S3 bucket configured as CloudTrail delivery channel with appropriate retention policies\n- Amazon Athena configured with CloudTrail log table for ad-hoc queries\n- CloudWatch Logs subscription for real-time analysis with Logs Insights\n- SIEM integration (Splunk, Elastic, or Security Lake) for production monitoring\n\n## Workflow\n\n### Step 1: Configure CloudTrail for Comprehensive Logging\n\nEnsure CloudTrail captures all relevant event types across the organization.\n\n```bash\n# Create an organization trail (captures all accounts)\naws cloudtrail create-trail \\\n  --name org-security-trail \\\n  --s3-bucket-name cloudtrail-logs-org-ACCOUNT \\\n  --is-organization-trail \\\n  --is-multi-region-trail \\\n  --include-global-service-events \\\n  --enable-log-file-validation \\\n  --kms-key-id alias\u002Fcloudtrail-key \\\n  --cloud-watch-logs-log-group-arn arn:aws:logs:us-east-1:ACCOUNT:log-group:cloudtrail-org:* \\\n  --cloud-watch-logs-role-arn arn:aws:iam::ACCOUNT:role\u002FCloudTrailCloudWatchRole\n\n# Start logging\naws cloudtrail start-logging --name org-security-trail\n\n# Enable data events for S3 and Lambda\naws cloudtrail put-event-selectors \\\n  --trail-name org-security-trail \\\n  --advanced-event-selectors '[\n    {\n      \"Name\": \"S3DataEvents\",\n      \"FieldSelectors\": [\n        {\"Field\": \"eventCategory\", \"Equals\": [\"Data\"]},\n        {\"Field\": \"resources.type\", \"Equals\": [\"AWS::S3::Object\"]}\n      ]\n    },\n    {\n      \"Name\": \"LambdaDataEvents\",\n      \"FieldSelectors\": [\n        {\"Field\": \"eventCategory\", \"Equals\": [\"Data\"]},\n        {\"Field\": \"resources.type\", \"Equals\": [\"AWS::Lambda::Function\"]}\n      ]\n    }\n  ]'\n\n# Verify trail configuration\naws cloudtrail describe-trails --trail-name-list org-security-trail\n```\n\n### Step 2: Set Up Athena for CloudTrail Query Analysis\n\nCreate an Athena table for querying CloudTrail logs with SQL.\n\n```sql\n-- Create CloudTrail Athena table\nCREATE EXTERNAL TABLE cloudtrail_logs (\n  eventVersion STRING,\n  userIdentity STRUCT\u003C\n    type:STRING, principalId:STRING, arn:STRING,\n    accountId:STRING, invokedBy:STRING,\n    accessKeyId:STRING, userName:STRING,\n    sessionContext:STRUCT\u003C\n      attributes:STRUCT\u003CmfaAuthenticated:STRING, creationDate:STRING>,\n      sessionIssuer:STRUCT\u003Ctype:STRING, principalId:STRING, arn:STRING, accountId:STRING, userName:STRING>\n    >\n  >,\n  eventTime STRING,\n  eventSource STRING,\n  eventName STRING,\n  awsRegion STRING,\n  sourceIPAddress STRING,\n  userAgent STRING,\n  errorCode STRING,\n  errorMessage STRING,\n  requestParameters STRING,\n  responseElements STRING,\n  additionalEventData STRING,\n  requestId STRING,\n  eventId STRING,\n  readOnly STRING,\n  resources ARRAY\u003CSTRUCT\u003Carn:STRING, accountId:STRING, type:STRING>>,\n  eventType STRING,\n  apiVersion STRING,\n  recipientAccountId STRING,\n  sharedEventId STRING,\n  vpcEndpointId STRING\n)\nPARTITIONED BY (region STRING, year STRING, month STRING, day STRING)\nROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'\nLOCATION 's3:\u002F\u002Fcloudtrail-logs-org-ACCOUNT\u002FAWSLogs\u002FORG_ID\u002F';\n\n-- Add partitions for recent data\nALTER TABLE cloudtrail_logs ADD\n  PARTITION (region='us-east-1', year='2026', month='02', day='23')\n  LOCATION 's3:\u002F\u002Fcloudtrail-logs-org-ACCOUNT\u002FAWSLogs\u002FORG_ID\u002FACCOUNT\u002FCloudTrail\u002Fus-east-1\u002F2026\u002F02\u002F23\u002F';\n```\n\n### Step 3: Run Security-Focused Athena Queries\n\nExecute queries to detect common attack patterns and suspicious activity.\n\n```sql\n-- Detect console logins without MFA\nSELECT eventtime, useridentity.username, sourceipaddress, useridentity.arn\nFROM cloudtrail_logs\nWHERE eventname = 'ConsoleLogin'\n  AND additionalEventData LIKE '%\"MFAUsed\":\"No\"%'\n  AND errorcode IS NULL\nORDER BY eventtime DESC;\n\n-- Find IAM privilege escalation attempts\nSELECT eventtime, useridentity.arn, eventname, errorcode, sourceipaddress\nFROM cloudtrail_logs\nWHERE eventname IN (\n  'CreatePolicyVersion', 'SetDefaultPolicyVersion', 'AttachUserPolicy',\n  'AttachRolePolicy', 'PutUserPolicy', 'PutRolePolicy',\n  'CreateAccessKey', 'CreateLoginProfile', 'UpdateLoginProfile',\n  'PassRole', 'AssumeRole'\n)\nORDER BY eventtime DESC\nLIMIT 100;\n\n-- Detect CloudTrail tampering\nSELECT eventtime, useridentity.arn, eventname, requestparameters, sourceipaddress\nFROM cloudtrail_logs\nWHERE eventname IN ('StopLogging', 'DeleteTrail', 'UpdateTrail', 'PutEventSelectors')\nORDER BY eventtime DESC;\n\n-- Find API calls from Tor exit nodes or unusual IPs\nSELECT eventtime, useridentity.arn, eventname, sourceipaddress, awsregion\nFROM cloudtrail_logs\nWHERE sourceipaddress NOT LIKE '10.%'\n  AND sourceipaddress NOT LIKE '172.%'\n  AND sourceipaddress NOT LIKE '192.168.%'\n  AND useridentity.type = 'IAMUser'\n  AND errorcode IS NULL\nGROUP BY eventtime, useridentity.arn, eventname, sourceipaddress, awsregion\nORDER BY eventtime DESC\nLIMIT 200;\n\n-- Detect unauthorized API calls (AccessDenied patterns)\nSELECT useridentity.arn, eventname, COUNT(*) as denied_count\nFROM cloudtrail_logs\nWHERE errorcode IN ('AccessDenied', 'UnauthorizedAccess', 'Client.UnauthorizedAccess')\n  AND eventtime > date_format(date_add('day', -7, now()), '%Y-%m-%dT%H:%i:%sZ')\nGROUP BY useridentity.arn, eventname\nHAVING COUNT(*) > 10\nORDER BY denied_count DESC;\n```\n\n### Step 4: Build Real-Time Detection with CloudWatch Logs Insights\n\nCreate real-time queries for active security monitoring.\n\n```bash\n# Detect root account usage\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, eventName, sourceIPAddress, userAgent\n    | filter userIdentity.type = \"Root\"\n    | sort @timestamp desc\n  '\n\n# Detect security group changes\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, userIdentity.arn, eventName, requestParameters.groupId, sourceIPAddress\n    | filter eventName in [\"AuthorizeSecurityGroupIngress\", \"AuthorizeSecurityGroupEgress\", \"RevokeSecurityGroupIngress\", \"CreateSecurityGroup\"]\n    | sort @timestamp desc\n  '\n\n# Detect new IAM users or access keys created\naws logs start-query \\\n  --log-group-name cloudtrail-org \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, userIdentity.arn, eventName, requestParameters.userName, sourceIPAddress\n    | filter eventName in [\"CreateUser\", \"CreateAccessKey\", \"CreateLoginProfile\"]\n    | sort @timestamp desc\n  '\n```\n\n### Step 5: Create CloudWatch Metric Filters and Alarms\n\nSet up automated alerting for critical security events based on CIS Benchmark recommendations.\n\n```bash\n# CIS 3.1: Unauthorized API calls alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name unauthorized-api-calls \\\n  --filter-pattern '{($.errorCode = \"*UnauthorizedAccess\") || ($.errorCode = \"AccessDenied*\")}' \\\n  --metric-transformations '[{\"metricName\":\"UnauthorizedAPICalls\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\naws cloudwatch put-metric-alarm \\\n  --alarm-name cis-unauthorized-api-calls \\\n  --metric-name UnauthorizedAPICalls --namespace CISBenchmark \\\n  --statistic Sum --period 300 --threshold 10 \\\n  --comparison-operator GreaterThanThreshold --evaluation-periods 1 \\\n  --alarm-actions arn:aws:sns:us-east-1:ACCOUNT:security-alerts\n\n# CIS 3.3: Root account usage alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name root-account-usage \\\n  --filter-pattern '{$.userIdentity.type = \"Root\" && $.userIdentity.invokedBy NOT EXISTS && $.eventType != \"AwsServiceEvent\"}' \\\n  --metric-transformations '[{\"metricName\":\"RootAccountUsage\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\n# CIS 3.4: IAM policy changes alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name iam-policy-changes \\\n  --filter-pattern '{($.eventName=CreatePolicy) || ($.eventName=DeletePolicy) || ($.eventName=AttachRolePolicy) || ($.eventName=DetachRolePolicy) || ($.eventName=AttachUserPolicy) || ($.eventName=DetachUserPolicy)}' \\\n  --metric-transformations '[{\"metricName\":\"IAMPolicyChanges\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n\n# CIS 3.5: CloudTrail configuration changes alarm\naws logs put-metric-filter \\\n  --log-group-name cloudtrail-org \\\n  --filter-name cloudtrail-changes \\\n  --filter-pattern '{($.eventName = StopLogging) || ($.eventName = DeleteTrail) || ($.eventName = UpdateTrail)}' \\\n  --metric-transformations '[{\"metricName\":\"CloudTrailChanges\",\"metricNamespace\":\"CISBenchmark\",\"metricValue\":\"1\"}]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| CloudTrail | AWS service that records API calls made to AWS services, providing an audit trail of actions taken by users, roles, and services |\n| Management Events | CloudTrail events for control plane operations like creating resources, modifying IAM, and configuring services |\n| Data Events | CloudTrail events for data plane operations like S3 object access and Lambda function invocations, providing granular activity logging |\n| Log File Validation | CloudTrail feature that creates a digest file for verifying that log files have not been tampered with after delivery |\n| CloudTrail Lake | Managed data lake for CloudTrail events enabling SQL-based queries without managing Athena tables or S3 data |\n| Organization Trail | Single trail that captures API activity across all accounts in an AWS Organization to a central S3 bucket |\n\n## Tools & Systems\n\n- **Amazon Athena**: Serverless SQL query engine for analyzing CloudTrail logs stored in S3 at scale\n- **CloudWatch Logs Insights**: Real-time log query service for interactive CloudTrail analysis within the last 30 days\n- **CloudTrail Lake**: Managed event data lake with built-in SQL query capabilities and 7-year retention\n- **Amazon Security Lake**: Centralized security data lake that normalizes CloudTrail data into OCSF format for SIEM consumption\n- **AWS CloudTrail**: Core audit logging service capturing all API activity across AWS accounts and services\n\n## Common Scenarios\n\n### Scenario: Investigating an IAM Credential Compromise Through CloudTrail\n\n**Context**: GuardDuty alerts on `UnauthorizedAccess:IAMUser\u002FMaliciousIPCaller` for a developer's access key. The security team needs to trace all actions taken by the compromised credential.\n\n**Approach**:\n1. Query CloudTrail for all events by the compromised AccessKeyId across all regions\n2. Build a timeline of API calls to understand the attack sequence\n3. Identify the initial access point (when did the key first appear from a malicious IP)\n4. Map all resources created, modified, or accessed by the attacker\n5. Check for persistence mechanisms (new users, access keys, Lambda functions, EC2 instances)\n6. Verify CloudTrail was not tampered with (check for StopLogging or UpdateTrail events)\n7. Document the full attack chain and scope of impact for the incident response report\n\n**Pitfalls**: CloudTrail events can take up to 15 minutes to appear in S3 and CloudWatch Logs. For real-time visibility during active incidents, use CloudTrail Lake or CloudWatch Logs Insights rather than Athena queries against S3. Cross-region attacks require querying multiple region partitions in Athena.\n\n## Output Format\n\n```\nCloudTrail Security Analysis Report\n======================================\nAccount: 123456789012\nAnalysis Period: 2026-02-16 to 2026-02-23\nTrail: org-security-trail (organization-wide)\n\nSECURITY EVENTS DETECTED:\n  Root account logins:                  2\n  Console logins without MFA:           7\n  Privilege escalation attempts:       12\n  CloudTrail configuration changes:     0\n  Security group modifications:        34\n  Unauthorized API calls:             156\n\nHIGH-PRIORITY FINDINGS:\n[CT-001] Console Login Without MFA\n  User: admin-user\n  Time: 2026-02-22T14:30:00Z\n  IP: 203.0.113.50\n  Action Required: Enforce MFA via IAM policy\n\n[CT-002] IAM Privilege Escalation\n  User: dev-user\n  Time: 2026-02-23T03:15:00Z\n  Events: CreatePolicyVersion -> AttachRolePolicy\n  IP: 185.x.x.x (suspicious)\n  Action Required: Investigate credential compromise\n\nALERTING STATUS:\n  CIS metric filters configured: 14 \u002F 14\n  CloudWatch alarms active: 14 \u002F 14\n  Alerts fired (last 7 days): 8\n```\n",{"name":5,"tags":55,"author":56,"domain":48,"license":16,"version":57,"nist_csf":58,"subdomain":41,"description":63,"mitre_attack":64},[41,37,40,38,39,33],"mahipal","1.0",[59,60,61,62],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Implementing AWS CloudTrail log analysis for security monitoring, threat detection, and forensic investigation using Athena, CloudWatch Logs Insights, and SIEM integration to identify unauthorized access, privilege escalation, and suspicious API activity.\n",[65,66,67,68,69],"T1078.004","T1530","T1537","T1580","T1068","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fimplementing-cloud-trail-log-analysis",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":81,"prompt":91,"zipAvailable":92},[82,85,88],{"tool":83,"command":84},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-cloud-trail-log-analysis",{"tool":86,"command":87},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-cloud-trail-log-analysis",{"tool":89,"command":90},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-cloud-trail-log-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-cloud-trail-log-analysis\u002FSKILL.md",true,[94,99,105],{"path":95,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-cloud-trail-log-analysis\u002FLICENSE",{"path":100,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fapi-reference.md","REFERENCE","参考文档",2244,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-cloud-trail-log-analysis\u002Freferences\u002Fapi-reference.md",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fagent.py","SCRIPT","脚本",7527,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-cloud-trail-log-analysis\u002Fscripts\u002Fagent.py",[112,142,171,201,231,263],{"skillNo":113,"name":114,"nameZh":115,"description":116,"descriptionZh":117,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":124,"publishedAt":50},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[120,121],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":122,"categoryName":123,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[125,126,127,128,49,48,129,130,46,131,132,133,134,135,136,137,138,139,140,141],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":50},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[150,151],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":152,"categoryName":153,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[155,138,156,157,49,158,48,46,159,160,161,162,163,164,165,166,167,168,169,170],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":172,"name":173,"nameZh":174,"description":175,"descriptionZh":176,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":177,"categories":178,"keywords":185,"publishedAt":50},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[179,182],{"categoryNo":180,"categoryName":181,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":183,"categoryName":184,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[165,186,187,188,189,48,190,191,159,192,193,194,195,196,35,34,197,198,199,200],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":207,"categories":208,"keywords":213,"publishedAt":50},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[209,210],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":211,"categoryName":212,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[214,215,216,48,217,218,44,219,220,221,222,223,224,225,226,227,162,228,229,230],"windows","kape","triaging windows with kape","registry","browser","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":232,"name":233,"nameZh":234,"description":235,"descriptionZh":236,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":237,"categories":238,"keywords":243,"publishedAt":50},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[239,242],{"categoryNo":240,"categoryName":241,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[244,245,246,48,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":264,"name":265,"nameZh":266,"description":267,"descriptionZh":268,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":269,"categories":270,"keywords":275,"publishedAt":50},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[271,272],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":273,"categoryName":274,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[49,276,48,47,277,278,279,280,281,282,283,34,284,197,285,286,287,288,289,290],"triaging security incident","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]