[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71G460ND4ZVXGWN4EYNSKPZ":3,"skill-same:01M71G460ND4ZVXGWN4EYNSKPZ":93},{"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":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":14,"repositoryHtmlUrl":69,"repositoryHomepageUrl":6,"ownerHtmlUrl":70,"ownerBlogUrl":6,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M71G460ND4ZVXGWN4EYNSKPZ","hunting-cloud-analyze",null,"Hunt for threats in AWS environments using Detective behavior graphs, entity investigation timelines, GuardDuty finding correlation, and automated entity profiling across IAM users, EC2 instances, and IP addresses.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsoc\u002Fhunting\u002Fcloud\u002Fanalyze\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"analyze","hunting","cloud","hunting cloud analyze","addresses","threat-hunting","read","cloud-security","de","t1078","guardduty","iam","across","incident-investigation","Bash","cybersecurity","ip","incident","cm","instances","2026-11-10 10:12:30",false,"---\nname: hunting-cloud-analyze\ndescription: Hunt for threats in AWS environments using Detective behavior graphs, entity investigation timelines, GuardDuty finding correlation, and automated entity profiling across IAM users, EC2 instances, and IP addresses.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- aws-detective\n- threat-hunting\n- cloud-security\n- guardduty\n- behavior-graph\n- aws\n- iam\n- ec2\n- incident-investigation\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1021\n- T1059\n- T1078.004\n- T1578.002\ncapec: []\n---\n\n# Performing Cloud-Native Threat Hunting with AWS Detective\n\n## Overview\n\nAWS Detective automatically collects and analyzes log data from AWS CloudTrail, VPC Flow Logs, GuardDuty findings, and EKS audit logs to build interactive behavior graphs. These graphs enable security analysts to investigate entities (IAM users, roles, IP addresses, EC2 instances) across time, identify anomalous API calls, detect lateral movement between accounts, and correlate GuardDuty findings into coherent attack narratives — all without manual log parsing.\n\n## Prerequisites\n\n- AWS account with Detective enabled (requires GuardDuty active for 48+ hours)\n- AWS CLI v2 configured with appropriate IAM permissions (`detective:*`, `guardduty:List*`)\n- Python 3.9+ with boto3\n- IAM policy: `AmazonDetectiveFullAccess` or custom policy with `detective:SearchGraph`, `detective:GetInvestigation`, `detective:ListIndicators`\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Behavior Graph** | Data structure linking CloudTrail, VPC Flow, GuardDuty, and EKS logs for an account\u002Fregion |\n| **Entity** | Investigable object: IAM user, IAM role, EC2 instance, IP address, S3 bucket, EKS cluster |\n| **Finding Group** | Correlated set of GuardDuty findings linked to the same attack campaign |\n| **Entity Profile** | Timeline of API calls, network connections, and resource access for a specific entity |\n| **Scope Time** | Investigation window (default 24h, max 1 year) for behavioral analysis |\n\n## Steps\n\n### Step 1: List Available Behavior Graphs\n\n```bash\naws detective list-graphs --output table\n```\n\n### Step 2: Investigate a Suspicious IAM User\n\n```bash\n# Get entity profile for an IAM user\naws detective get-investigation \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --investigation-id 000000000000000000001\n```\n\n### Step 3: Search Entities Programmatically\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Search AWS Detective for suspicious entities.\"\"\"\nimport boto3\nimport json\nfrom datetime import datetime, timedelta\n\ndetective = boto3.client('detective')\n\ndef list_behavior_graphs():\n    \"\"\"List all Detective behavior graphs.\"\"\"\n    response = detective.list_graphs()\n    return response.get('GraphList', [])\n\ndef get_investigation_indicators(graph_arn, investigation_id, max_results=50):\n    \"\"\"Get indicators for a specific investigation.\"\"\"\n    response = detective.list_indicators(\n        GraphArn=graph_arn,\n        InvestigationId=investigation_id,\n        MaxResults=max_results\n    )\n    return response.get('Indicators', [])\n\ndef investigate_guardduty_findings(graph_arn):\n    \"\"\"List high-severity investigations correlated by Detective.\"\"\"\n    response = detective.list_investigations(\n        GraphArn=graph_arn,\n        FilterCriteria={\n            'Severity': {'Value': 'CRITICAL'},\n            'Status': {'Value': 'RUNNING'}\n        },\n        MaxResults=20\n    )\n\n    for investigation in response.get('InvestigationDetails', []):\n        print(f\"Investigation: {investigation['InvestigationId']}\")\n        print(f\"  Entity: {investigation['EntityArn']}\")\n        print(f\"  Status: {investigation['Status']}\")\n        print(f\"  Severity: {investigation['Severity']}\")\n        print(f\"  Created: {investigation['CreatedTime']}\")\n        print()\n\nif __name__ == \"__main__\":\n    graphs = list_behavior_graphs()\n    for graph in graphs:\n        print(f\"Graph: {graph['Arn']}\")\n        investigate_guardduty_findings(graph['Arn'])\n```\n\n### Step 4: Analyze Finding Groups for Attack Campaigns\n\n```bash\n# List investigations with high severity\naws detective list-investigations \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --filter-criteria '{\"Severity\":{\"Value\":\"HIGH\"}}' \\\n  --max-results 10\n```\n\n### Step 5: Check Entity Indicators\n\n```bash\n# Get indicators for a specific investigation\naws detective list-indicators \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --investigation-id 000000000000000000001 \\\n  --max-results 50\n```\n\n## Expected Output\n\nThe `list-investigations` command returns investigation metadata:\n\n```json\n{\n  \"InvestigationDetails\": [\n    {\n      \"InvestigationId\": \"000000000000000000001\",\n      \"Severity\": \"CRITICAL\",\n      \"Status\": \"RUNNING\",\n      \"State\": \"ACTIVE\",\n      \"EntityArn\": \"arn:aws:iam::123456789012:user\u002Fsuspicious-user\",\n      \"EntityType\": \"IAM_USER\",\n      \"CreatedTime\": \"2026-03-15T14:30:00Z\"\n    }\n  ]\n}\n```\n\nIndicators are retrieved separately via `list-indicators` and include types such as `TTP_OBSERVED`, `IMPOSSIBLE_TRAVEL`, `FLAGGED_IP_ADDRESS`, `NEW_GEOLOCATION`, `NEW_ASO`, `NEW_USER_AGENT`, `RELATED_FINDING`, and `RELATED_FINDING_GROUP`.\n\n## Verification\n\n1. Confirm behavior graph has data: `aws detective list-graphs` returns non-empty list\n2. Validate investigation results contain entity timelines with API call sequences\n3. Cross-reference Detective findings with raw CloudTrail logs for accuracy\n4. Verify finding group correlations match manual investigation conclusions\n5. Confirm automated alerts trigger for HIGH\u002FCRITICAL severity investigations\n","# Performing Cloud-Native Threat Hunting with AWS Detective\n\n## Overview\n\nAWS Detective automatically collects and analyzes log data from AWS CloudTrail, VPC Flow Logs, GuardDuty findings, and EKS audit logs to build interactive behavior graphs. These graphs enable security analysts to investigate entities (IAM users, roles, IP addresses, EC2 instances) across time, identify anomalous API calls, detect lateral movement between accounts, and correlate GuardDuty findings into coherent attack narratives — all without manual log parsing.\n\n## Prerequisites\n\n- AWS account with Detective enabled (requires GuardDuty active for 48+ hours)\n- AWS CLI v2 configured with appropriate IAM permissions (`detective:*`, `guardduty:List*`)\n- Python 3.9+ with boto3\n- IAM policy: `AmazonDetectiveFullAccess` or custom policy with `detective:SearchGraph`, `detective:GetInvestigation`, `detective:ListIndicators`\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Behavior Graph** | Data structure linking CloudTrail, VPC Flow, GuardDuty, and EKS logs for an account\u002Fregion |\n| **Entity** | Investigable object: IAM user, IAM role, EC2 instance, IP address, S3 bucket, EKS cluster |\n| **Finding Group** | Correlated set of GuardDuty findings linked to the same attack campaign |\n| **Entity Profile** | Timeline of API calls, network connections, and resource access for a specific entity |\n| **Scope Time** | Investigation window (default 24h, max 1 year) for behavioral analysis |\n\n## Steps\n\n### Step 1: List Available Behavior Graphs\n\n```bash\naws detective list-graphs --output table\n```\n\n### Step 2: Investigate a Suspicious IAM User\n\n```bash\n# Get entity profile for an IAM user\naws detective get-investigation \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --investigation-id 000000000000000000001\n```\n\n### Step 3: Search Entities Programmatically\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Search AWS Detective for suspicious entities.\"\"\"\nimport boto3\nimport json\nfrom datetime import datetime, timedelta\n\ndetective = boto3.client('detective')\n\ndef list_behavior_graphs():\n    \"\"\"List all Detective behavior graphs.\"\"\"\n    response = detective.list_graphs()\n    return response.get('GraphList', [])\n\ndef get_investigation_indicators(graph_arn, investigation_id, max_results=50):\n    \"\"\"Get indicators for a specific investigation.\"\"\"\n    response = detective.list_indicators(\n        GraphArn=graph_arn,\n        InvestigationId=investigation_id,\n        MaxResults=max_results\n    )\n    return response.get('Indicators', [])\n\ndef investigate_guardduty_findings(graph_arn):\n    \"\"\"List high-severity investigations correlated by Detective.\"\"\"\n    response = detective.list_investigations(\n        GraphArn=graph_arn,\n        FilterCriteria={\n            'Severity': {'Value': 'CRITICAL'},\n            'Status': {'Value': 'RUNNING'}\n        },\n        MaxResults=20\n    )\n\n    for investigation in response.get('InvestigationDetails', []):\n        print(f\"Investigation: {investigation['InvestigationId']}\")\n        print(f\"  Entity: {investigation['EntityArn']}\")\n        print(f\"  Status: {investigation['Status']}\")\n        print(f\"  Severity: {investigation['Severity']}\")\n        print(f\"  Created: {investigation['CreatedTime']}\")\n        print()\n\nif __name__ == \"__main__\":\n    graphs = list_behavior_graphs()\n    for graph in graphs:\n        print(f\"Graph: {graph['Arn']}\")\n        investigate_guardduty_findings(graph['Arn'])\n```\n\n### Step 4: Analyze Finding Groups for Attack Campaigns\n\n```bash\n# List investigations with high severity\naws detective list-investigations \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --filter-criteria '{\"Severity\":{\"Value\":\"HIGH\"}}' \\\n  --max-results 10\n```\n\n### Step 5: Check Entity Indicators\n\n```bash\n# Get indicators for a specific investigation\naws detective list-indicators \\\n  --graph-arn arn:aws:detective:us-east-1:123456789012:graph:a1b2c3d4 \\\n  --investigation-id 000000000000000000001 \\\n  --max-results 50\n```\n\n## Expected Output\n\nThe `list-investigations` command returns investigation metadata:\n\n```json\n{\n  \"InvestigationDetails\": [\n    {\n      \"InvestigationId\": \"000000000000000000001\",\n      \"Severity\": \"CRITICAL\",\n      \"Status\": \"RUNNING\",\n      \"State\": \"ACTIVE\",\n      \"EntityArn\": \"arn:aws:iam::123456789012:user\u002Fsuspicious-user\",\n      \"EntityType\": \"IAM_USER\",\n      \"CreatedTime\": \"2026-03-15T14:30:00Z\"\n    }\n  ]\n}\n```\n\nIndicators are retrieved separately via `list-indicators` and include types such as `TTP_OBSERVED`, `IMPOSSIBLE_TRAVEL`, `FLAGGED_IP_ADDRESS`, `NEW_GEOLOCATION`, `NEW_ASO`, `NEW_USER_AGENT`, `RELATED_FINDING`, and `RELATED_FINDING_GROUP`.\n\n## Verification\n\n1. Confirm behavior graph has data: `aws detective list-graphs` returns non-empty list\n2. Validate investigation results contain entity timelines with API call sequences\n3. Cross-reference Detective findings with raw CloudTrail logs for accuracy\n4. Verify finding group correlations match manual investigation conclusions\n5. Confirm automated alerts trigger for HIGH\u002FCRITICAL severity investigations\n",{"name":5,"tags":44,"capec":49,"model":50,"tools":51,"domain":34,"maxTurns":55,"nist_csf":56,"subdomain":26,"description":7,"mitre_attack":61},[45,24,26,29,46,47,30,48,32],"aws-detective","behavior-graph","aws","ec2",[],"sonnet",[52,33,53,54],"Read","Glob","Grep",20,[57,58,59,60],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[62,63,64,65],"T1021","T1059","T1078.004","T1578.002","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fsoc\u002Fhunting\u002Fcloud\u002Fanalyze","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill hunting-cloud-analyze",{"tool":79,"command":80},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill hunting-cloud-analyze",{"tool":82,"command":83},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill hunting-cloud-analyze","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsoc\u002Fhunting\u002Fcloud\u002Fanalyze\u002FSKILL.md",true,[87],{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"index.json","REFERENCE","参考文档",670,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsoc\u002Fhunting\u002Fcloud\u002Fanalyze\u002Findex.json",[94,104,127,147,167,189],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[111,112,113,114,115,116,117,34,118,119,120,121,122,123,124,125,126,37,27],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[134,114,135,111,136,31,33,137,138,34,139,140,141,142,143,25,144,145,27,146],"exec","services wmi exec exploit","exploit","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[154,155,156,157,158,50,159,160,161,162,25,27,163,19,137,164,33,34,165,166],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","collection","artifact-analysis","activity",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[174,175,176,112,34,177,37,178,179,180,116,27,181,182,183,184,185,186,187,188],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[196,174,197,112,198,199,117,27,181,200,201,202,137,116,34,177,203,37,204,179],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]