[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EVQDVSP54YVEY5135GJCDG":3,"skill-same:01M6EVQDVSP54YVEY5135GJCDG":118},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":75,"commitSha":76,"skillDirectory":77,"forksCount":14,"repositoryHtmlUrl":78,"repositoryHomepageUrl":79,"ownerHtmlUrl":80,"ownerBlogUrl":6,"ownerDescription":81,"updatedAt":82,"install":83,"resources":96},"01M6EVQDVSP54YVEY5135GJCDG","performing-cloud-log-forensics-with-athena",null,"Uses AWS Athena to query CloudTrail, VPC Flow Logs, S3 access logs, and ALB logs for forensic investigation. Covers CREATE TABLE DDL with partition projection, forensic SQL queries for detecting unauthorized access, data exfiltration, lateral movement, and privilege escalation. Use when investigating AWS security incidents or building cloud-native forensic workflows at scale.","henriquescastilho\u002Fmy-claude","henriquescastilho","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153296945?v=4","01M6ESH7EXPXTH9CVQ4K16SRG8","Henrique Scheer","01M6ESH7JHEK2PTNNH4HEH787Z",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"with","cloud","forensics","log","athena","performing cloud log forensics with athena","detecting","cybersecurity","native","query","cm","partition","aws security","access","vpc","t1078","exfiltration","logs","create","workflows","2026-11-10 10:12:30",false,"---\nname: performing-cloud-log-forensics-with-athena\ndescription: 'Uses AWS Athena to query CloudTrail, VPC Flow Logs, S3 access logs,\n  and ALB logs for forensic investigation. Covers CREATE TABLE DDL with partition\n  projection, forensic SQL queries for detecting unauthorized access, data exfiltration,\n  lateral movement, and privilege escalation. Use when investigating AWS security\n  incidents or building cloud-native forensic workflows at scale.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud\n- forensics\n- athena\n- aws\n- cloudtrail\n- vpc-flow-logs\n- s3\n- alb\nversion: '1.0'\nauthor: mukul975\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- T1021\n---\n\n# Performing Cloud Log Forensics with AWS Athena\n\n## When to Use\n\n- When investigating AWS security incidents that require querying massive volumes of cloud logs\n- When performing forensic analysis across CloudTrail, VPC Flow Logs, S3 access logs, and ALB logs\n- When building reusable Athena tables with partition projection for ongoing incident response\n- When hunting for indicators of compromise across multiple AWS log sources simultaneously\n- When creating evidence-grade SQL queries for compliance audits or legal proceedings\n\n## Prerequisites\n\n- AWS account with Athena, S3, and Glue permissions\n- CloudTrail configured to deliver logs to an S3 bucket\n- VPC Flow Logs enabled and publishing to S3\n- S3 server access logging enabled on target buckets\n- ALB access logging enabled and publishing to S3\n- Python 3.8+ with boto3 installed\n- Appropriate IAM permissions for Athena queries and S3 access\n\n## Instructions\n\n### Phase 1: Create Athena Database and CloudTrail Table\n\nCreate a dedicated forensics database and CloudTrail table using partition projection\nto automatically discover partitions without manual ALTER TABLE statements.\n\n```sql\nCREATE DATABASE IF NOT EXISTS cloud_forensics;\n\nCREATE EXTERNAL TABLE cloud_forensics.cloudtrail_logs (\n    eventVersion STRING,\n    userIdentity STRUCT\u003C\n        type: STRING,\n        principalId: STRING,\n        arn: STRING,\n        accountId: STRING,\n        invokedBy: STRING,\n        accessKeyId: STRING,\n        userName: STRING,\n        sessionContext: STRUCT\u003C\n            attributes: STRUCT\u003C\n                mfaAuthenticated: STRING,\n                creationDate: STRING>,\n            sessionIssuer: STRUCT\u003C\n                type: STRING,\n                principalId: STRING,\n                arn: STRING,\n                accountId: STRING,\n                userName: STRING>,\n            ec2RoleDelivery: STRING,\n            webIdFederationData: STRUCT\u003C\n                federatedProvider: STRING,\n                attributes: MAP\u003CSTRING, STRING>>>>,\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\u003C\n        arn: STRING,\n        accountId: STRING,\n        type: STRING>>,\n    eventType STRING,\n    apiVersion STRING,\n    recipientAccountId STRING,\n    serviceEventDetails STRING,\n    sharedEventID STRING,\n    vpcEndpointId STRING,\n    tlsDetails STRUCT\u003C\n        tlsVersion: STRING,\n        cipherSuite: STRING,\n        clientProvidedHostHeader: STRING>\n)\nCOMMENT 'CloudTrail logs with partition projection for forensic analysis'\nPARTITIONED BY (\n    `account` STRING,\n    `region` STRING,\n    `timestamp` STRING\n)\nROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'\nSTORED AS INPUTFORMAT 'com.amazon.emr.cloudtrail.CloudTrailInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-CLOUDTRAIL-BUCKET\u002FAWSLogs\u002F'\nTBLPROPERTIES (\n    'projection.enabled' = 'true',\n    'projection.account.type' = 'enum',\n    'projection.account.values' = 'YOUR_ACCOUNT_ID',\n    'projection.region.type' = 'enum',\n    'projection.region.values' = 'us-east-1,us-west-2,eu-west-1',\n    'projection.timestamp.type' = 'date',\n    'projection.timestamp.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.timestamp.range' = '2023\u002F01\u002F01,NOW',\n    'projection.timestamp.interval' = '1',\n    'projection.timestamp.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-CLOUDTRAIL-BUCKET\u002FAWSLogs\u002F${account}\u002FCloudTrail\u002F${region}\u002F${timestamp}'\n);\n```\n\n### Phase 2: Create VPC Flow Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.vpc_flow_logs (\n    version INT,\n    account_id STRING,\n    interface_id STRING,\n    srcaddr STRING,\n    dstaddr STRING,\n    srcport INT,\n    dstport INT,\n    protocol BIGINT,\n    packets BIGINT,\n    bytes BIGINT,\n    start BIGINT,\n    `end` BIGINT,\n    action STRING,\n    log_status STRING,\n    vpc_id STRING,\n    subnet_id STRING,\n    az_id STRING,\n    sublocation_type STRING,\n    sublocation_id STRING,\n    pkt_srcaddr STRING,\n    pkt_dstaddr STRING,\n    region STRING,\n    pkt_src_aws_service STRING,\n    pkt_dst_aws_service STRING,\n    flow_direction STRING,\n    traffic_path INT\n)\nPARTITIONED BY (\n    `date` STRING\n)\nROW FORMAT DELIMITED\nFIELDS TERMINATED BY ' '\nLOCATION 's3:\u002F\u002FYOUR-VPC-FLOW-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Fvpcflowlogs\u002F'\nTBLPROPERTIES (\n    'skip.header.line.count' = '1',\n    'projection.enabled' = 'true',\n    'projection.date.type' = 'date',\n    'projection.date.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.date.range' = '2023\u002F01\u002F01,NOW',\n    'projection.date.interval' = '1',\n    'projection.date.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-VPC-FLOW-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Fvpcflowlogs\u002Fus-east-1\u002F${date}'\n);\n```\n\n### Phase 3: Create S3 Access Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.s3_access_logs (\n    bucket_owner STRING,\n    bucket_name STRING,\n    request_datetime STRING,\n    remote_ip STRING,\n    requester STRING,\n    request_id STRING,\n    operation STRING,\n    key STRING,\n    request_uri STRING,\n    http_status INT,\n    error_code STRING,\n    bytes_sent BIGINT,\n    object_size BIGINT,\n    total_time INT,\n    turn_around_time INT,\n    referrer STRING,\n    user_agent STRING,\n    version_id STRING,\n    host_id STRING,\n    signature_version STRING,\n    cipher_suite STRING,\n    authentication_type STRING,\n    host_header STRING,\n    tls_version STRING,\n    access_point_arn STRING,\n    acl_required STRING\n)\nROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'\nWITH SERDEPROPERTIES (\n    'serialization.format' = '1',\n    'input.regex' = '([^ ]*) ([^ ]*) \\\\[(.*?)\\\\] ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\\\"[^\\\"]*\\\"|-) (-|[0-9]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\\\"[^\\\"]*\\\"|-) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*)'\n)\nSTORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-S3-ACCESS-LOGS-BUCKET\u002Flogs\u002F';\n```\n\n### Phase 4: Create ALB Access Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.alb_access_logs (\n    type STRING,\n    time STRING,\n    elb STRING,\n    client_ip STRING,\n    client_port INT,\n    target_ip STRING,\n    target_port INT,\n    request_processing_time DOUBLE,\n    target_processing_time DOUBLE,\n    response_processing_time DOUBLE,\n    elb_status_code INT,\n    target_status_code STRING,\n    received_bytes BIGINT,\n    sent_bytes BIGINT,\n    request_verb STRING,\n    request_url STRING,\n    request_proto STRING,\n    user_agent STRING,\n    ssl_cipher STRING,\n    ssl_protocol STRING,\n    target_group_arn STRING,\n    trace_id STRING,\n    domain_name STRING,\n    chosen_cert_arn STRING,\n    matched_rule_priority STRING,\n    request_creation_time STRING,\n    actions_executed STRING,\n    redirect_url STRING,\n    lambda_error_reason STRING,\n    target_port_list STRING,\n    target_status_code_list STRING,\n    classification STRING,\n    classification_reason STRING,\n    conn_trace_id STRING\n)\nPARTITIONED BY (\n    `day` STRING\n)\nROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'\nWITH SERDEPROPERTIES (\n    'serialization.format' = '1',\n    'input.regex' = '([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*):([0-9]*) ([^ ]*)[:-]([0-9]*) ([-.0-9]*) ([-.0-9]*) ([-.0-9]*) (|[0-9]*) (-|[0-9]*) ([-0-9]*) ([-0-9]*) \\\"([^ ]*) (.*) (- |[^ ]*)\\\" \\\"([^\\\"]*)\\\" ([A-Z0-9-_]+) ([A-Za-z0-9.-]*) ([^ ]*) \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" ([-.0-9]*) ([^ ]*) \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^ ]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^ ]*)\\\" \\\"([^ ]*)\\\" \\\"([^ ]*)\\\"'\n)\nSTORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-ALB-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Felasticloadbalancing\u002Fus-east-1\u002F'\nTBLPROPERTIES (\n    'projection.enabled' = 'true',\n    'projection.day.type' = 'date',\n    'projection.day.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.day.range' = '2023\u002F01\u002F01,NOW',\n    'projection.day.interval' = '1',\n    'projection.day.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-ALB-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Felasticloadbalancing\u002Fus-east-1\u002F${day}'\n);\n```\n\n### Phase 5: Forensic Investigation Queries\n\n#### Detect Unauthorized API Calls\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS caller_arn,\n    useridentity.accountid AS account,\n    eventsource,\n    eventname,\n    errorcode,\n    errormessage,\n    sourceipaddress,\n    useragent\nFROM cloud_forensics.cloudtrail_logs\nWHERE errorcode IN ('AccessDenied', 'UnauthorizedAccess', 'Client.UnauthorizedAccess')\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC\nLIMIT 1000;\n```\n\n#### Detect Privilege Escalation Attempts\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS actor,\n    eventname,\n    eventsource,\n    json_extract_scalar(requestparameters, '$.policyArn') AS policy_arn,\n    json_extract_scalar(requestparameters, '$.roleName') AS role_name,\n    json_extract_scalar(requestparameters, '$.userName') AS target_user,\n    sourceipaddress\nFROM cloud_forensics.cloudtrail_logs\nWHERE eventname IN (\n    'AttachUserPolicy', 'AttachRolePolicy', 'AttachGroupPolicy',\n    'PutUserPolicy', 'PutRolePolicy', 'PutGroupPolicy',\n    'CreatePolicyVersion', 'SetDefaultPolicyVersion',\n    'AddUserToGroup', 'UpdateAssumeRolePolicy',\n    'CreateAccessKey', 'CreateLoginProfile',\n    'UpdateLoginProfile', 'AssumeRole'\n)\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC;\n```\n\n#### Detect Data Exfiltration via S3\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS actor,\n    eventname,\n    json_extract_scalar(requestparameters, '$.bucketName') AS bucket,\n    json_extract_scalar(requestparameters, '$.key') AS object_key,\n    sourceipaddress,\n    useragent\nFROM cloud_forensics.cloudtrail_logs\nWHERE eventsource = 's3.amazonaws.com'\n    AND eventname IN ('GetObject', 'CopyObject', 'PutBucketPolicy',\n                      'PutBucketAcl', 'PutObjectAcl', 'SelectObjectContent')\n    AND sourceipaddress NOT LIKE '10.%'\n    AND sourceipaddress NOT LIKE '172.%'\n    AND sourceipaddress NOT LIKE '192.168.%'\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC;\n```\n\n#### Detect Lateral Movement via VPC Flow Logs\n\n```sql\nSELECT\n    srcaddr,\n    dstaddr,\n    dstport,\n    protocol,\n    SUM(packets) AS total_packets,\n    SUM(bytes) AS total_bytes,\n    COUNT(*) AS connection_count,\n    MIN(from_unixtime(start)) AS first_seen,\n    MAX(from_unixtime(\"end\")) AS last_seen\nFROM cloud_forensics.vpc_flow_logs\nWHERE action = 'ACCEPT'\n    AND srcaddr LIKE '10.%'\n    AND dstport IN (22, 3389, 5985, 5986, 445, 135, 139)\n    AND date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY srcaddr, dstaddr, dstport, protocol\nHAVING COUNT(*) > 100\nORDER BY connection_count DESC;\n```\n\n#### Detect Port Scanning Activity\n\n```sql\nSELECT\n    srcaddr,\n    COUNT(DISTINCT dstport) AS unique_ports_scanned,\n    COUNT(DISTINCT dstaddr) AS unique_targets,\n    SUM(packets) AS total_packets,\n    MIN(from_unixtime(start)) AS first_seen,\n    MAX(from_unixtime(\"end\")) AS last_seen\nFROM cloud_forensics.vpc_flow_logs\nWHERE action = 'REJECT'\n    AND date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY srcaddr\nHAVING COUNT(DISTINCT dstport) > 25\nORDER BY unique_ports_scanned DESC;\n```\n\n#### Detect Suspicious S3 Bulk Downloads\n\n```sql\nSELECT\n    remote_ip,\n    requester,\n    bucket_name,\n    COUNT(*) AS request_count,\n    SUM(bytes_sent) AS total_bytes_downloaded,\n    COUNT(DISTINCT key) AS unique_objects,\n    MIN(request_datetime) AS first_request,\n    MAX(request_datetime) AS last_request\nFROM cloud_forensics.s3_access_logs\nWHERE operation LIKE '%GET%'\n    AND http_status = 200\nGROUP BY remote_ip, requester, bucket_name\nHAVING COUNT(*) > 500\nORDER BY total_bytes_downloaded DESC;\n```\n\n#### Detect ALB-Level Injection Attempts\n\n```sql\nSELECT\n    time,\n    client_ip,\n    request_verb,\n    request_url,\n    elb_status_code,\n    target_status_code,\n    user_agent\nFROM cloud_forensics.alb_access_logs\nWHERE (\n    request_url LIKE '%UNION%SELECT%'\n    OR request_url LIKE '%\u003Cscript%'\n    OR request_url LIKE '%..\u002F..\u002F..\u002F%'\n    OR request_url LIKE '%\u002Fetc\u002Fpasswd%'\n    OR request_url LIKE '%cmd.exe%'\n    OR request_url LIKE '%\u002Fproc\u002Fself%'\n    OR request_url LIKE '%SLEEP(%'\n    OR request_url LIKE '%WAITFOR%'\n)\n    AND day BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nORDER BY time DESC;\n```\n\n### Phase 6: Cross-Log Correlation\n\nCorrelate findings across log sources for comprehensive incident timelines.\n\n```sql\n-- Correlate suspicious CloudTrail actor with VPC Flow Logs\nWITH suspicious_ips AS (\n    SELECT DISTINCT sourceipaddress AS ip\n    FROM cloud_forensics.cloudtrail_logs\n    WHERE errorcode = 'AccessDenied'\n        AND timestamp BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\n)\nSELECT\n    v.srcaddr,\n    v.dstaddr,\n    v.dstport,\n    v.protocol,\n    SUM(v.bytes) AS total_bytes,\n    COUNT(*) AS flow_count\nFROM cloud_forensics.vpc_flow_logs v\nJOIN suspicious_ips s ON v.srcaddr = s.ip\nWHERE v.date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY v.srcaddr, v.dstaddr, v.dstport, v.protocol\nORDER BY total_bytes DESC;\n```\n\n## Examples\n\n```python\n# Quick-start: run the forensics agent for a full investigation\npython agent.py \\\n    --action full_investigation \\\n    --database cloud_forensics \\\n    --start-date 2024-06-01 \\\n    --end-date 2024-06-30 \\\n    --output forensics_report.json\n\n# Run specific queries only\npython agent.py \\\n    --action privilege_escalation \\\n    --database cloud_forensics \\\n    --start-date 2024-06-15 \\\n    --end-date 2024-06-16\n\n# Create all forensic tables from scratch\npython agent.py \\\n    --action setup_tables \\\n    --cloudtrail-bucket my-cloudtrail-logs \\\n    --vpc-flow-bucket my-vpc-flow-logs \\\n    --s3-access-bucket my-s3-access-logs \\\n    --alb-bucket my-alb-logs \\\n    --account-id 123456789012 \\\n    --regions us-east-1,us-west-2\n```\n","# Performing Cloud Log Forensics with AWS Athena\n\n## When to Use\n\n- When investigating AWS security incidents that require querying massive volumes of cloud logs\n- When performing forensic analysis across CloudTrail, VPC Flow Logs, S3 access logs, and ALB logs\n- When building reusable Athena tables with partition projection for ongoing incident response\n- When hunting for indicators of compromise across multiple AWS log sources simultaneously\n- When creating evidence-grade SQL queries for compliance audits or legal proceedings\n\n## Prerequisites\n\n- AWS account with Athena, S3, and Glue permissions\n- CloudTrail configured to deliver logs to an S3 bucket\n- VPC Flow Logs enabled and publishing to S3\n- S3 server access logging enabled on target buckets\n- ALB access logging enabled and publishing to S3\n- Python 3.8+ with boto3 installed\n- Appropriate IAM permissions for Athena queries and S3 access\n\n## Instructions\n\n### Phase 1: Create Athena Database and CloudTrail Table\n\nCreate a dedicated forensics database and CloudTrail table using partition projection\nto automatically discover partitions without manual ALTER TABLE statements.\n\n```sql\nCREATE DATABASE IF NOT EXISTS cloud_forensics;\n\nCREATE EXTERNAL TABLE cloud_forensics.cloudtrail_logs (\n    eventVersion STRING,\n    userIdentity STRUCT\u003C\n        type: STRING,\n        principalId: STRING,\n        arn: STRING,\n        accountId: STRING,\n        invokedBy: STRING,\n        accessKeyId: STRING,\n        userName: STRING,\n        sessionContext: STRUCT\u003C\n            attributes: STRUCT\u003C\n                mfaAuthenticated: STRING,\n                creationDate: STRING>,\n            sessionIssuer: STRUCT\u003C\n                type: STRING,\n                principalId: STRING,\n                arn: STRING,\n                accountId: STRING,\n                userName: STRING>,\n            ec2RoleDelivery: STRING,\n            webIdFederationData: STRUCT\u003C\n                federatedProvider: STRING,\n                attributes: MAP\u003CSTRING, STRING>>>>,\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\u003C\n        arn: STRING,\n        accountId: STRING,\n        type: STRING>>,\n    eventType STRING,\n    apiVersion STRING,\n    recipientAccountId STRING,\n    serviceEventDetails STRING,\n    sharedEventID STRING,\n    vpcEndpointId STRING,\n    tlsDetails STRUCT\u003C\n        tlsVersion: STRING,\n        cipherSuite: STRING,\n        clientProvidedHostHeader: STRING>\n)\nCOMMENT 'CloudTrail logs with partition projection for forensic analysis'\nPARTITIONED BY (\n    `account` STRING,\n    `region` STRING,\n    `timestamp` STRING\n)\nROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'\nSTORED AS INPUTFORMAT 'com.amazon.emr.cloudtrail.CloudTrailInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-CLOUDTRAIL-BUCKET\u002FAWSLogs\u002F'\nTBLPROPERTIES (\n    'projection.enabled' = 'true',\n    'projection.account.type' = 'enum',\n    'projection.account.values' = 'YOUR_ACCOUNT_ID',\n    'projection.region.type' = 'enum',\n    'projection.region.values' = 'us-east-1,us-west-2,eu-west-1',\n    'projection.timestamp.type' = 'date',\n    'projection.timestamp.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.timestamp.range' = '2023\u002F01\u002F01,NOW',\n    'projection.timestamp.interval' = '1',\n    'projection.timestamp.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-CLOUDTRAIL-BUCKET\u002FAWSLogs\u002F${account}\u002FCloudTrail\u002F${region}\u002F${timestamp}'\n);\n```\n\n### Phase 2: Create VPC Flow Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.vpc_flow_logs (\n    version INT,\n    account_id STRING,\n    interface_id STRING,\n    srcaddr STRING,\n    dstaddr STRING,\n    srcport INT,\n    dstport INT,\n    protocol BIGINT,\n    packets BIGINT,\n    bytes BIGINT,\n    start BIGINT,\n    `end` BIGINT,\n    action STRING,\n    log_status STRING,\n    vpc_id STRING,\n    subnet_id STRING,\n    az_id STRING,\n    sublocation_type STRING,\n    sublocation_id STRING,\n    pkt_srcaddr STRING,\n    pkt_dstaddr STRING,\n    region STRING,\n    pkt_src_aws_service STRING,\n    pkt_dst_aws_service STRING,\n    flow_direction STRING,\n    traffic_path INT\n)\nPARTITIONED BY (\n    `date` STRING\n)\nROW FORMAT DELIMITED\nFIELDS TERMINATED BY ' '\nLOCATION 's3:\u002F\u002FYOUR-VPC-FLOW-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Fvpcflowlogs\u002F'\nTBLPROPERTIES (\n    'skip.header.line.count' = '1',\n    'projection.enabled' = 'true',\n    'projection.date.type' = 'date',\n    'projection.date.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.date.range' = '2023\u002F01\u002F01,NOW',\n    'projection.date.interval' = '1',\n    'projection.date.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-VPC-FLOW-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Fvpcflowlogs\u002Fus-east-1\u002F${date}'\n);\n```\n\n### Phase 3: Create S3 Access Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.s3_access_logs (\n    bucket_owner STRING,\n    bucket_name STRING,\n    request_datetime STRING,\n    remote_ip STRING,\n    requester STRING,\n    request_id STRING,\n    operation STRING,\n    key STRING,\n    request_uri STRING,\n    http_status INT,\n    error_code STRING,\n    bytes_sent BIGINT,\n    object_size BIGINT,\n    total_time INT,\n    turn_around_time INT,\n    referrer STRING,\n    user_agent STRING,\n    version_id STRING,\n    host_id STRING,\n    signature_version STRING,\n    cipher_suite STRING,\n    authentication_type STRING,\n    host_header STRING,\n    tls_version STRING,\n    access_point_arn STRING,\n    acl_required STRING\n)\nROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'\nWITH SERDEPROPERTIES (\n    'serialization.format' = '1',\n    'input.regex' = '([^ ]*) ([^ ]*) \\\\[(.*?)\\\\] ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\\\"[^\\\"]*\\\"|-) (-|[0-9]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) (\\\"[^\\\"]*\\\"|-) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*)'\n)\nSTORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-S3-ACCESS-LOGS-BUCKET\u002Flogs\u002F';\n```\n\n### Phase 4: Create ALB Access Logs Table\n\n```sql\nCREATE EXTERNAL TABLE cloud_forensics.alb_access_logs (\n    type STRING,\n    time STRING,\n    elb STRING,\n    client_ip STRING,\n    client_port INT,\n    target_ip STRING,\n    target_port INT,\n    request_processing_time DOUBLE,\n    target_processing_time DOUBLE,\n    response_processing_time DOUBLE,\n    elb_status_code INT,\n    target_status_code STRING,\n    received_bytes BIGINT,\n    sent_bytes BIGINT,\n    request_verb STRING,\n    request_url STRING,\n    request_proto STRING,\n    user_agent STRING,\n    ssl_cipher STRING,\n    ssl_protocol STRING,\n    target_group_arn STRING,\n    trace_id STRING,\n    domain_name STRING,\n    chosen_cert_arn STRING,\n    matched_rule_priority STRING,\n    request_creation_time STRING,\n    actions_executed STRING,\n    redirect_url STRING,\n    lambda_error_reason STRING,\n    target_port_list STRING,\n    target_status_code_list STRING,\n    classification STRING,\n    classification_reason STRING,\n    conn_trace_id STRING\n)\nPARTITIONED BY (\n    `day` STRING\n)\nROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'\nWITH SERDEPROPERTIES (\n    'serialization.format' = '1',\n    'input.regex' = '([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*):([0-9]*) ([^ ]*)[:-]([0-9]*) ([-.0-9]*) ([-.0-9]*) ([-.0-9]*) (|[0-9]*) (-|[0-9]*) ([-0-9]*) ([-0-9]*) \\\"([^ ]*) (.*) (- |[^ ]*)\\\" \\\"([^\\\"]*)\\\" ([A-Z0-9-_]+) ([A-Za-z0-9.-]*) ([^ ]*) \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" ([-.0-9]*) ([^ ]*) \\\"([^\\\"]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^ ]*)\\\" \\\"([^\\\"]*)\\\" \\\"([^ ]*)\\\" \\\"([^ ]*)\\\" \\\"([^ ]*)\\\"'\n)\nSTORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION 's3:\u002F\u002FYOUR-ALB-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Felasticloadbalancing\u002Fus-east-1\u002F'\nTBLPROPERTIES (\n    'projection.enabled' = 'true',\n    'projection.day.type' = 'date',\n    'projection.day.format' = 'yyyy\u002FMM\u002Fdd',\n    'projection.day.range' = '2023\u002F01\u002F01,NOW',\n    'projection.day.interval' = '1',\n    'projection.day.interval.unit' = 'DAYS',\n    'storage.location.template' = 's3:\u002F\u002FYOUR-ALB-LOGS-BUCKET\u002FAWSLogs\u002FYOUR_ACCOUNT_ID\u002Felasticloadbalancing\u002Fus-east-1\u002F${day}'\n);\n```\n\n### Phase 5: Forensic Investigation Queries\n\n#### Detect Unauthorized API Calls\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS caller_arn,\n    useridentity.accountid AS account,\n    eventsource,\n    eventname,\n    errorcode,\n    errormessage,\n    sourceipaddress,\n    useragent\nFROM cloud_forensics.cloudtrail_logs\nWHERE errorcode IN ('AccessDenied', 'UnauthorizedAccess', 'Client.UnauthorizedAccess')\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC\nLIMIT 1000;\n```\n\n#### Detect Privilege Escalation Attempts\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS actor,\n    eventname,\n    eventsource,\n    json_extract_scalar(requestparameters, '$.policyArn') AS policy_arn,\n    json_extract_scalar(requestparameters, '$.roleName') AS role_name,\n    json_extract_scalar(requestparameters, '$.userName') AS target_user,\n    sourceipaddress\nFROM cloud_forensics.cloudtrail_logs\nWHERE eventname IN (\n    'AttachUserPolicy', 'AttachRolePolicy', 'AttachGroupPolicy',\n    'PutUserPolicy', 'PutRolePolicy', 'PutGroupPolicy',\n    'CreatePolicyVersion', 'SetDefaultPolicyVersion',\n    'AddUserToGroup', 'UpdateAssumeRolePolicy',\n    'CreateAccessKey', 'CreateLoginProfile',\n    'UpdateLoginProfile', 'AssumeRole'\n)\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC;\n```\n\n#### Detect Data Exfiltration via S3\n\n```sql\nSELECT\n    eventtime,\n    useridentity.arn AS actor,\n    eventname,\n    json_extract_scalar(requestparameters, '$.bucketName') AS bucket,\n    json_extract_scalar(requestparameters, '$.key') AS object_key,\n    sourceipaddress,\n    useragent\nFROM cloud_forensics.cloudtrail_logs\nWHERE eventsource = 's3.amazonaws.com'\n    AND eventname IN ('GetObject', 'CopyObject', 'PutBucketPolicy',\n                      'PutBucketAcl', 'PutObjectAcl', 'SelectObjectContent')\n    AND sourceipaddress NOT LIKE '10.%'\n    AND sourceipaddress NOT LIKE '172.%'\n    AND sourceipaddress NOT LIKE '192.168.%'\n    AND timestamp BETWEEN '2024\u002F01\u002F01' AND '2024\u002F12\u002F31'\nORDER BY eventtime DESC;\n```\n\n#### Detect Lateral Movement via VPC Flow Logs\n\n```sql\nSELECT\n    srcaddr,\n    dstaddr,\n    dstport,\n    protocol,\n    SUM(packets) AS total_packets,\n    SUM(bytes) AS total_bytes,\n    COUNT(*) AS connection_count,\n    MIN(from_unixtime(start)) AS first_seen,\n    MAX(from_unixtime(\"end\")) AS last_seen\nFROM cloud_forensics.vpc_flow_logs\nWHERE action = 'ACCEPT'\n    AND srcaddr LIKE '10.%'\n    AND dstport IN (22, 3389, 5985, 5986, 445, 135, 139)\n    AND date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY srcaddr, dstaddr, dstport, protocol\nHAVING COUNT(*) > 100\nORDER BY connection_count DESC;\n```\n\n#### Detect Port Scanning Activity\n\n```sql\nSELECT\n    srcaddr,\n    COUNT(DISTINCT dstport) AS unique_ports_scanned,\n    COUNT(DISTINCT dstaddr) AS unique_targets,\n    SUM(packets) AS total_packets,\n    MIN(from_unixtime(start)) AS first_seen,\n    MAX(from_unixtime(\"end\")) AS last_seen\nFROM cloud_forensics.vpc_flow_logs\nWHERE action = 'REJECT'\n    AND date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY srcaddr\nHAVING COUNT(DISTINCT dstport) > 25\nORDER BY unique_ports_scanned DESC;\n```\n\n#### Detect Suspicious S3 Bulk Downloads\n\n```sql\nSELECT\n    remote_ip,\n    requester,\n    bucket_name,\n    COUNT(*) AS request_count,\n    SUM(bytes_sent) AS total_bytes_downloaded,\n    COUNT(DISTINCT key) AS unique_objects,\n    MIN(request_datetime) AS first_request,\n    MAX(request_datetime) AS last_request\nFROM cloud_forensics.s3_access_logs\nWHERE operation LIKE '%GET%'\n    AND http_status = 200\nGROUP BY remote_ip, requester, bucket_name\nHAVING COUNT(*) > 500\nORDER BY total_bytes_downloaded DESC;\n```\n\n#### Detect ALB-Level Injection Attempts\n\n```sql\nSELECT\n    time,\n    client_ip,\n    request_verb,\n    request_url,\n    elb_status_code,\n    target_status_code,\n    user_agent\nFROM cloud_forensics.alb_access_logs\nWHERE (\n    request_url LIKE '%UNION%SELECT%'\n    OR request_url LIKE '%\u003Cscript%'\n    OR request_url LIKE '%..\u002F..\u002F..\u002F%'\n    OR request_url LIKE '%\u002Fetc\u002Fpasswd%'\n    OR request_url LIKE '%cmd.exe%'\n    OR request_url LIKE '%\u002Fproc\u002Fself%'\n    OR request_url LIKE '%SLEEP(%'\n    OR request_url LIKE '%WAITFOR%'\n)\n    AND day BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nORDER BY time DESC;\n```\n\n### Phase 6: Cross-Log Correlation\n\nCorrelate findings across log sources for comprehensive incident timelines.\n\n```sql\n-- Correlate suspicious CloudTrail actor with VPC Flow Logs\nWITH suspicious_ips AS (\n    SELECT DISTINCT sourceipaddress AS ip\n    FROM cloud_forensics.cloudtrail_logs\n    WHERE errorcode = 'AccessDenied'\n        AND timestamp BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\n)\nSELECT\n    v.srcaddr,\n    v.dstaddr,\n    v.dstport,\n    v.protocol,\n    SUM(v.bytes) AS total_bytes,\n    COUNT(*) AS flow_count\nFROM cloud_forensics.vpc_flow_logs v\nJOIN suspicious_ips s ON v.srcaddr = s.ip\nWHERE v.date BETWEEN '2024\u002F06\u002F01' AND '2024\u002F06\u002F30'\nGROUP BY v.srcaddr, v.dstaddr, v.dstport, v.protocol\nORDER BY total_bytes DESC;\n```\n\n## Examples\n\n```python\n# Quick-start: run the forensics agent for a full investigation\npython agent.py \\\n    --action full_investigation \\\n    --database cloud_forensics \\\n    --start-date 2024-06-01 \\\n    --end-date 2024-06-30 \\\n    --output forensics_report.json\n\n# Run specific queries only\npython agent.py \\\n    --action privilege_escalation \\\n    --database cloud_forensics \\\n    --start-date 2024-06-15 \\\n    --end-date 2024-06-16\n\n# Create all forensic tables from scratch\npython agent.py \\\n    --action setup_tables \\\n    --cloudtrail-bucket my-cloudtrail-logs \\\n    --vpc-flow-bucket my-vpc-flow-logs \\\n    --s3-access-bucket my-s3-access-logs \\\n    --alb-bucket my-alb-logs \\\n    --account-id 123456789012 \\\n    --regions us-east-1,us-west-2\n```\n",{"name":5,"tags":54,"author":60,"domain":36,"license":15,"version":61,"nist_csf":62,"subdomain":67,"description":68,"mitre_attack":69},[30,31,33,55,56,57,58,59],"aws","cloudtrail","vpc-flow-logs","s3","alb","mukul975","1.0",[63,64,65,66],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","cloud-security","Uses AWS Athena to query CloudTrail, VPC Flow Logs, S3 access logs, and ALB logs for forensic investigation. Covers CREATE TABLE DDL with partition projection, forensic SQL queries for detecting unauthorized access, data exfiltration, lateral movement, and privilege escalation. Use when investigating AWS security incidents or building cloud-native forensic workflows at scale.\n",[70,71,72,73,74],"T1078.004","T1530","T1537","T1580","T1021","main","7925716f065257435fdb12e97f7e52842147d5ad",".claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude","https:\u002F\u002Fclaude.com\u002Fclaude-code","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho","Software · Applied AI · Quantitative Modeling · Building with Claude.","2026-06-10 12:24:46",{"source":8,"skillName":5,"commands":84,"prompt":94,"zipAvailable":95},[85,88,91],{"tool":86,"command":87},"npx","npx skills add henriquescastilho\u002Fmy-claude --skill performing-cloud-log-forensics-with-athena",{"tool":89,"command":90},"bunx","bunx skills add henriquescastilho\u002Fmy-claude --skill performing-cloud-log-forensics-with-athena",{"tool":92,"command":93},"pnpm","pnpm dlx skills add henriquescastilho\u002Fmy-claude --skill performing-cloud-log-forensics-with-athena","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002FSKILL.md",true,[97,102,108,112],{"path":98,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"LICENSE","许可证",802,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002FLICENSE",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fapi-reference.md","REFERENCE","参考文档",9210,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002Freferences\u002Fapi-reference.md",{"path":109,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fathena-forensics-reference.md",5080,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002Freferences\u002Fathena-forensics-reference.md",{"path":113,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fagent.py","SCRIPT","脚本",29600,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fperforming-cloud-log-forensics-with-athena\u002Fscripts\u002Fagent.py",[119,157,166,175,195,223],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":138,"publishedAt":49},"01M6F0B6XPQ65AX2X0DWK8KT3E","markitdown","Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.","MIT","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[126,129,132,135],{"categoryNo":127,"categoryName":128,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理",{"categoryNo":130,"categoryName":131,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":133,"categoryName":134,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":136,"categoryName":137,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000034","行政与办公人员",[121,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,29],"docx","PDF","pptx","xlsx","documents","csv","ocr","Audio","Bash","markdown","convert","read","write","edit","html","images","files","youtube",{"skillNo":158,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":165,"publishedAt":49},"01M6F06SBHR9F0SDWE282Y8075","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fscientific_writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[161,162,163,164],{"categoryNo":127,"categoryName":128,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":130,"categoryName":131,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":133,"categoryName":134,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":136,"categoryName":137,"taxonomyType":26,"taxonomyTypeDesc":27},[121,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,29],{"skillNo":167,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":174,"publishedAt":49},"01M6F02D4R14EJAPBWVDF9J9VQ","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[170,171,172,173],{"categoryNo":127,"categoryName":128,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":130,"categoryName":131,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":133,"categoryName":134,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":136,"categoryName":137,"taxonomyType":26,"taxonomyTypeDesc":27},[121,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,29],{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":49},"01M6F000KS6YB4MKS774G4R8ND","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fzarr-python\u002FSKILL.md",[],[182,183,184,185,58,186,30,187,188,189,190,191,192,193,194],"python","zarr python","storage","integration","gcs","dask","parallel","pipelines","arrays","numpy","scientific computing","scale","scientific",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":204,"publishedAt":49},"01M6EZZJWFXM1GR78KTW6J0DN8","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fwhat-if-oracle\u002FSKILL.md",[201],{"categoryNo":202,"categoryName":203,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[205,206,207,208,209,210,211,212,213,214,215,150,151,216,217,218,219,220,221,222],"oracle","what if oracle","go","run","ux","futures","analysis","explore","decision","branch","question","idea","exploration","options","stress-test","strategies","scenario","stress",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":123,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":239,"publishedAt":49},"01M6EZZCXAEB49RXGQCJX5E8GB","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fvenue-templates\u002FSKILL.md",[229,232,235,236],{"categoryNo":230,"categoryName":231,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":233,"categoryName":234,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":202,"categoryName":203,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":237,"categoryName":238,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000036","内容创作者",[240,241,242,243,244,245,246,247,147,42,150,151,152,248,249,250,251,252,194,253],"templates","venue templates","research","guidelines","NeurIPS","ICML","LaTeX","science","proposals","Academic","requirements","formatting","journal","chi"]