[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8VM364HJTCFAZM9K94KDC":3,"skill-same:01M7A8VM364HJTCFAZM9K94KDC":148},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M7A8VM364HJTCFAZM9K94KDC","guardduty-finding-automator",null,"Designs and implements automated response workflows for Amazon GuardDuty findings. Wires EventBridge rules to severity-based routing (Critical\u002FHigh auto-isolate, Medium notify, Low log), Lambda remediation functions (isolate EC2 via security group swap, revoke IAM access keys, block source IPs in WAF, update security groups), SNS notifications with full finding context, Security Hub integration via BatchImportFindings, and multi-account coverage through Organizations delegated administrator. Covers suppression rules (create-filter) for known false positives, finding archive workflows, CloudTrail correlation for TTP chaining, auto-enable GuardDuty in new accounts via Lambda on CreateAccount, and custom threat intel upload (ThreatIntelSet \u002F IPSet). Emits AUTOMATION_DEPLOYED with the full EventBridge+Lambda+SNS pipeline or REVIEW_REQUIRED with the specific gap. Use when building automated GuardDuty response, severity-based auto-remediation, multi-account GuardDuty automation, or integrating GuardDuty with...","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: guardduty-finding-automator\ndescription: Designs and implements automated response workflows for Amazon GuardDuty findings. Wires EventBridge rules to severity-based routing (Critical\u002FHigh auto-isolate, Medium notify, Low log), Lambda remediation functions (isolate EC2 via security group swap, revoke IAM access keys, block source IPs in WAF, update security groups), SNS notifications with full finding context, Security Hub integration via BatchImportFindings, and multi-account coverage through Organizations delegated administrator. Covers suppression rules (create-filter) for known false positives, finding archive workflows, CloudTrail correlation for TTP chaining, auto-enable GuardDuty in new accounts via Lambda on CreateAccount, and custom threat intel upload (ThreatIntelSet \u002F IPSet). Emits AUTOMATION_DEPLOYED with the full EventBridge+Lambda+SNS pipeline or REVIEW_REQUIRED with the specific gap. Use when building automated GuardDuty response, severity-based auto-remediation, multi-account GuardDuty automation, or integrating GuardDuty with...\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline workflow design. Live deployment uses aws guardduty create-filter, list-findings, get-findings, archive-findings, create-threat-intel-set, create-ip-set, aws events put-rule, put-targets, aws lambda create-function, aws sns create-topic, subscribe, aws securityhub batch-import-findings, aws organizations enable-aws-service-access, and aws cloudformation deploy (for multi-account...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Security\n  task_type: automate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\n  when_to_use: Building automated response workflows for GuardDuty findings, wiring EventBridge to Lambda remediation functions, designing severity-based auto-response (Critical\u002FHigh auto-isolate, Medium notify, Low log), configuring GuardDuty with Security Hub integration, setting up multi-account GuardDuty via Organizations delegated administrator, creating suppression filters for known false positives, uploading custom threat intel, or auto-enabling GuardDuty in new accounts.\n  when_not_to_use: Investigating a single GuardDuty finding for root cause (use guardduty-finding-investigator). Triaging finding severity numerically without automation (use guardduty-finding-severity-triage). Config posture audits of GuardDuty detector enablement (use the auditor family). Forensic chain of custody and disk imaging belong to incident-response-automator. Non-GuardDuty detections (Inspector, Macie, Detective) use their own skills.\n  activation_triggers: automate GuardDuty response, GuardDuty EventBridge Lambda, severity-based auto-remediation, isolate EC2 on GuardDuty finding, revoke IAM keys on detection, block IP in WAF from GuardDuty, GuardDuty Security Hub integration, GuardDuty suppression filter, GuardDuty multi-account automation, auto-enable GuardDuty new account, GuardDuty custom threat intel, archive GuardDuty findings\n  invocation_schema: 'Input: either (a) a GuardDuty finding type or family (e.g., UnauthorizedAccess:EC2\u002FSSHBruteForce) plus desired remediation actions, OR (b) an automation requirement (\"auto-isolate EC2 on Critical findings\", \"revoke IAM keys on credential-abuse detection\"). Output: deterministic AUTOMATION block per finding family — ROUTING\u002FREMEDIATION\u002F NOTIFICATION\u002FINTEGRATION\u002FSAFETY\u002FVERDICT — where VERDICT is AUTOMATION_DEPLOYED (pipeline template ready) or REVIEW_REQUIRED (specific gap cited).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Amazon GuardDuty, EventBridge, Lambda remediation, severity-based routing, EC2 isolation, IAM credential revocation, WAF IP blocking, SNS notification, AWS Security Hub, BatchImportFindings, Organizations delegated admin, suppression filter, finding archive, CloudTrail correlation, TTP chaining, ThreatIntelSet, IPSet, auto-enable GuardDuty, incident response automation\n  tags: guardduty, security, eventbridge, lambda, security-hub, incident-response, automate, threat-detection\n---\n\n# GuardDuty Finding Automator\n\n## Mindset\n\n**One-line takeaway:** every GuardDuty automation workflow is a five-stage\npipeline — **detect** (GuardDuty finding) → **route** (EventBridge severity\nfilter) → **respond** (Lambda remediation) → **notify** (SNS with finding\ncontext) → **correlate** (Security Hub + CloudTrail TTP chaining). A gap\nin ANY stage produces a silent failure: the finding fires but nothing is\ncontained, or containment fires on a false positive and takes down a\nproduction service.\n\n- **Detection** without **automated routing** is noise — alert fatigue\n  sets in within weeks of enablement.\n- **Severity-based auto-response** is the core design decision:\n  Critical\u002FHigh findings trigger automatic containment, Medium notifies\n  the security team, Low findings are logged for trend analysis.\n- **Finding ID deduplication is non-negotiable.** GuardDuty updates the\n  same finding ID when new evidence arrives. Without dedup, the Lambda\n  re-isolates the same instance on every update.\n- **TTP correlation across findings reveals the attack chain.** A Recon\n  finding followed by UnauthorizedAccess followed by Exfiltration is a\n  kill-chain, not three isolated events. Security Hub is the correlation\n  layer.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Route findings by severity via EventBridge | Step 2 + Appendix A |\n| Pick the right Lambda remediation action | Step 3 (action matrix) |\n| Wire EC2 isolation (SG swap) | Step 4 |\n| Revoke IAM credentials safely | Step 5 |\n| Block source IPs in WAF | Step 6 |\n| Send SNS notifications with finding context | Step 7 |\n| Ingest as Security Hub custom finding | Step 8 |\n| Set up multi-account via Organizations | Step 9 |\n| Suppress known false positives | Step 10 |\n| Correlate TTPs across findings via CloudTrail | Step 11 |\n| Auto-enable GuardDuty in new accounts | Step 12 |\n| Upload custom threat intel | Step 13 |\n| Avoid common automation pitfalls | Anti-Patterns |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **EventBridge fires on finding occurrence AND finding update.**\n   GuardDuty emits an event when a finding is first created AND on every\n   subsequent update. The Lambda MUST deduplicate on finding ID.\n\n2. **EC2 isolation via security group swap is the safest containment.**\n   Replacing SGs with an isolation SG (no ingress, restricted egress) is\n   reversible. Terminating destroys forensic evidence. Stopping may\n   trigger auto-scaling replacement.\n\n3. **IAM key revocation must check `AccessKeyLastUsed` first** for Medium\n   severity. Revoking an active application key causes an outage. For\n   Critical findings (CryptoCurrency, Backdoor), revoke regardless.\n\n4. **`create-filter` with `FindingCriteria` suppresses silently.** An\n   over-broad filter hides real threats. Always scope to specific\n   resource or IP and set an expiry review date.\n\n5. **Security Hub `BatchImportFindings` requires the ASFF format.**\n   Schema mismatches produce silent drops — Security Hub does not error\n   on malformed findings.\n\n## Pre-flight: data requirements\n\nPre-flight data-gathering commands (findings statistics, sample JSON, rule status, filters, WAF ACLs, SNS topics) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand to populate the required inputs before designing automation.\n\n**If the input is malformed** (missing finding type, ambiguous severity),\nemit:\n\n```text\nAUTOMATION: \u003Creference>\nFINDING_TYPE: \u003Ctype or UNKNOWN>\nVERDICT: ERROR\nREASON: Cannot design automation — finding type and desired remediation action are required.\nGAP: Re-supply get-findings output for the finding type and the severity-routing requirement.\n```\n\n## Process — Workflow design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious GuardDuty + EventBridge behaviors\n\nEight non-obvious behaviors (severity serialization, finding-ID stability, archive semantics, Security Hub dups, WAF IP-set limits, Region-specific admin, Lambda timeouts, cross-account bus) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before finalizing rule or Lambda design.\n\n### Step 1: Classify the finding family and severity tier\n\n| Finding family | Example types | Default severity | Response tier |\n|---|---|---|---|\n| `UnauthorizedAccess:EC2` | SSHBruteForce, RDPBruteForce | Medium-High | High → isolate; Medium → notify |\n| `Backdoor:EC2` | BackdoorAtTask, DriveThroughSource | High-Critical | Auto-isolate |\n| `CryptoCurrency:EC2` | CryptoDomain, BitcoinTool | High-Critical | Auto-isolate + snapshot |\n| `Recon:EC2` | PortProbe, PortProbeUnprotectedPort | Low-Medium | Log + trend |\n| `Persistence:IAMUser` | IAMUserBackdoor, NewUserCreation | High | Auto-revoke if credential-based |\n| `Exfiltration` | S3, EC2 outbound anomalies | High-Critical | Auto-isolate + snapshot |\n| `Trojan:EC2` | Trojan, DrivingLicense domain | High | Auto-isolate + Malware Protection |\n| `Policy:IAMUser` | RootAccess, AssumeRole anomaly | Medium-High | Notify + CloudTrail correlate |\n\n**Severity routing matrix (the core design):**\n\n| Severity | Auto-action | Notification | Security Hub |\n|---|---|---|---|\n| Critical (9.0-10.0) | Isolate EC2, revoke IAM keys, WAF block, snapshot | SNS + Page on-call | Custom finding + correlation |\n| High (7.0-8.9) | Isolate EC2, revoke IAM keys (conditional) | SNS + Email security | Custom finding |\n| Medium (4.0-6.9) | No auto-action | SNS email | Forwarded (native) |\n| Low (0.1-3.9) | No action | Log only (CloudWatch) | Forwarded (native) |\n\n### Step 2: Wire the EventBridge rule for severity-based routing\n\n```bash\naws events put-rule \\\n  --name guardduty-critical-high-routing \\\n  --event-pattern '{\n    \"source\": [\"aws.guardduty\"],\n    \"detail-type\": [\"GuardDuty Finding\"],\n    \"detail\": {\n      \"severity\": [{\"numeric\": [\">=\", 7.0]}]\n    }\n  }'\n\naws events put-targets \\\n  --rule guardduty-critical-high-routing \\\n  --targets '[{\n    \"Id\": \"guardduty-remediation-lambda\",\n    \"Arn\": \"arn:aws:lambda:us-east-1:111111111111:function:guardduty-auto-remediation\",\n    \"DeadLetterConfig\": {\"Arn\": \"arn:aws:sqs:us-east-1:111111111111:guardduty-remediation-dlq\"}\n  }]'\n```\n\n**IMPORTANT:** test the numeric severity match. If it fails (string\nserialization), route all findings to Lambda and branch internally:\n\n```python\nseverity = float(event['detail']['finding']['severity'])\nif severity >= 7.0:    # Critical\u002FHigh — auto-respond\nelif severity >= 4.0:  # Medium — notify only\nelse:                  # Low — log only\n```\n\n### Step 3: Map finding type to remediation action (the action matrix)\n\n| Finding type | Action | Lambda | Reversible |\n|---|---|---|---|\n| `UnauthorizedAccess:EC2\u002FSSHBruteForce` | Isolate EC2 (SG swap) | `gd-isolate-ec2` | Yes |\n| `UnauthorizedAccess:EC2\u002FRDPBruteForce` | Isolate EC2 + WAF block | `gd-isolate-ec2` + `gd-waf-block-ip` | Yes |\n| `Backdoor:EC2\u002F*` | Isolate + snapshot | `gd-isolate-ec2` + `gd-snapshot-ebs` | Partial |\n| `CryptoCurrency:EC2\u002F*` | Isolate immediately + snapshot | `gd-isolate-ec2` + `gd-snapshot-ebs` | Partial |\n| `Persistence:IAMUser\u002F*` | Revoke IAM access keys | `gd-revoke-iam-keys` | Yes |\n| `Exfiltration:*` | Isolate\u002Frevoke + snapshot | Combination | Partial |\n| `Trojan:EC2\u002F*` | Isolate + Malware Protection scan | `gd-isolate-ec2` + `gd-malware-scan` | Yes |\n| `Recon:*` | No auto-action — log + correlate | N\u002FA | N\u002FA |\n\nFor the full parameter-level mapping, see\n**references\u002Ffinding-types-and-remediation-actions.md**.\n\n### Step 4: EC2 isolation via security group swap\n\n```python\nec2 = boto3.client('ec2')\nISOLATION_SG = 'sg-isolation-forensics'\n\ndef isolate_instance(instance_id, original_sgs):\n    \"\"\"Swap instance SGs to isolation SG. Store originals for rollback.\"\"\"\n    eni = get_eni(instance_id)\n    ec2.modify_network_interface_attribute(NetworkInterfaceId=eni, Groups=[ISOLATION_SG])\n    store_in_dynamodb(instance_id, original_sgs)  # For rollback\n```\n\nIsolation SG (CloudFormation):\n\n```yaml\nIsolationSecurityGroup:\n  Type: AWS::EC2::SecurityGroup\n  Properties:\n    GroupDescription: GuardDuty isolation SG — no ingress, restricted egress\n    SecurityGroupIngress: []\n    SecurityGroupEgress:\n      - IpProtocol: tcp\n        FromPort: 443\n        ToPort: 443\n        CidrIp: 10.0.0.0\u002F8  # Forensics VPC endpoint only\n```\n\n**Rollback:** store original SGs in DynamoDB. Always include a rollback\nLambda — an isolated production instance is an outage until released.\n\n### Step 5: IAM credential revocation\n\n```python\niam = boto3.client('iam')\n\ndef revoke_access_key(user_name, access_key_id, finding_type):\n    last_used = iam.get_access_key_last_used(AccessKeyId=access_key_id)\n    last_used_time = last_used['AccessKeyLastUsed'].get('LastUsedDate')\n\n    if finding_type.startswith(('CryptoCurrency', 'Backdoor')):\n        iam.update_access_key(UserName=user_name, AccessKeyId=access_key_id, Status='Inactive')\n        return {'action': 'revoked', 'reason': 'critical_finding'}\n    elif last_used_time and (now - last_used_time).seconds \u003C 3600:\n        notify_sns(f'Key active in last hour — manual review required for {user_name}')\n        return {'action': 'notified', 'reason': 'key_in_use'}\n    else:\n        iam.update_access_key(UserName=user_name, AccessKeyId=access_key_id, Status='Inactive')\n        return {'action': 'revoked', 'reason': 'key_inactive'}\n```\n\n### Step 6: WAF \u002F NACL IP blocking\n\nboto3 WAF update_ip_set snippet and IP-set limit management moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand when blocking source IPs.\n\n### Step 7: SNS notification with finding context\n\n```python\nsns = boto3.client('sns')\n\ndef notify_finding(finding, topic_arn, page_on_call=False):\n    subject = f\"[GuardDuty {finding['severity']}] {finding['type']}\"\n    message = json.dumps({\n        'FindingId': finding['id'], 'Type': finding['type'],\n        'Severity': finding['severity'], 'Resource': finding['resource']['resourceType'],\n        'Action': finding.get('remediation_action', 'N\u002FA'),\n        'Count': finding['service']['eventCount']\n    }, indent=2)\n    sns.publish(TopicArn=topic_arn, Subject=subject, Message=message,\n               MessageAttributes={'page': {'DataType': 'String',\n                                   'StringValue': 'true' if page_on_call else 'false'}})\n```\n\n### Step 8: Security Hub integration via BatchImportFindings\n\nGuardDuty natively forwards to Security Hub. For custom enrichment (TTP\nannotation, blast-radius, correlation), create a custom finding:\n\n```python\nsecurityhub = boto3.client('securityhub')\n\ndef ingest_custom_finding(gd_finding, correlation_note=None):\n    custom_finding = {\n        'SchemaVersion': '2018-10-08',\n        'Id': f\"gd-custom-{gd_finding['id']}\",\n        'ProductArn': f'arn:aws:securityhub:us-east-1:111111111111:product\u002F111111111111\u002Fdefault',\n        'GeneratorId': 'guardduty-auto-remediation',\n        'AwsAccountId': gd_finding['accountId'],\n        'Types': ['TTPs\u002F' + gd_finding['type'].split('\u002F')[0]],\n        'FirstObservedAt': gd_finding['service']['eventFirstSeen'],\n        'LastObservedAt': gd_finding['service']['eventLastSeen'],\n        'CreatedAt': now, 'UpdatedAt': now,\n        'Severity': {'Label': severity_label(gd_finding['severity'])},\n        'Title': f\"GuardDuty Enriched: {gd_finding['type']}\",\n        'Description': gd_finding['description'],\n        'ProductFields': {'Correlation': correlation_note or 'standalone'}\n    }\n    securityhub.batch_import_findings(Findings=[custom_finding])\n```\n\n### Step 9: Multi-account via Organizations delegated administrator\n\nDelegated-admin enablement, auto-enable, and cross-account forwarding rules moved verbatim to [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md).\nLoad on demand for multi-account rollout.\n\n### Step 10: Suppression filters for known false positives\n\ncreate-filter command, false-positive criteria table, and review-date rule moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand when suppressing known false positives.\n\n### Step 11: CloudTrail correlation for TTPs\n\nMITRE chain table and correlate_ttps() DynamoDB query moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when correlating findings into attack chains.\n\n### Step 12: Auto-enable GuardDuty in new accounts\n\nCreateAccount EventBridge rule pattern and Lambda responsibilities moved verbatim to [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md).\nLoad on demand for new-account auto-enablement.\n\n### Step 13: Custom threat intel upload\n\ncreate-threat-intel-set \u002F create-ip-set commands and activation check moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand for custom threat intel.\n\n## Output format\n\n```text\nAUTOMATION: \u003Creference>\nFINDING_TYPE: \u003CGuardDuty finding type>\nSEVERITY: \u003Cnumeric> (\u003Clabel>)\nROUTING:\n  - EventBridge rule: \u003Crule-name>\n  - Filter: severity >= \u003Cthreshold>\n  - Target: Lambda \u003Cfunction-name> with DLQ\nREMEDIATION:\n  - Action: \u003Cisolate EC2 | revoke IAM keys | WAF block | snapshot | notify only>\n  - Lambda: \u003Cfunction name + ARN>\n  - Rollback: \u003Chow to reverse the action>\nNOTIFICATION:\n  - SNS topic: \u003Carn>\n  - Content: finding context (type, severity, resource, action taken)\n  - Paging: \u003Con-call for Critical | email for Medium | none for Low>\nINTEGRATION:\n  - Security Hub: \u003Cnative forwarding | custom enriched finding>\n  - CloudTrail correlation: \u003Cenabled | disabled>\nSAFETY:\n  - Finding ID deduplication: \u003CDynamoDB | Step Functions | none>\n  - False-positive suppression: \u003Cfilter name + criteria>\n  - Rate limiting: \u003CLambda concurrency cap>\nAUDIT:\n  - CloudTrail: ec2:ModifyNetworkInterfaceAttribute, iam:UpdateAccessKey\n  - CloudWatch: Lambda invocation logs + errors\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet or YAML for the pipeline>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, EC2 SSH brute force\n\n```text\nAUTOMATION_DEPLOYED: prod-guardduty-auto-response\nFINDING_TYPE: UnauthorizedAccess:EC2\u002FSSHBruteForce\nSEVERITY: 7.5 (HIGH)\nROUTING:\n  - EventBridge rule: guardduty-critical-high-routing\n  - Filter: severity >= 7.0\n  - Target: Lambda guardduty-auto-remediation (DLQ: guardduty-remediation-dlq)\nREMEDIATION:\n  - Action: isolate EC2 via SG swap to sg-isolation-forensics\n  - Lambda: guardduty-auto-remediation\n  - Rollback: restore original SGs from DynamoDB (key: instance-id)\nNOTIFICATION:\n  - SNS topic: arn:aws:sns:us-east-1:111111111111:guardduty-alerts\n  - Content: finding type, severity, instance ID, action taken, rollback\n  - Paging: on-call (Critical\u002FHigh only)\nINTEGRATION:\n  - Security Hub: custom enriched finding (TTP: Initial Access)\n  - CloudTrail correlation: enabled (60-min window)\nSAFETY:\n  - Finding ID deduplication: DynamoDB table guardduty-processed-findings\n  - False-positive suppression: suppress-authorized-scanner (CI\u002FCD NAT)\n  - Rate limiting: Lambda concurrency cap = 10\nAUDIT:\n  - CloudTrail: ec2:ModifyNetworkInterfaceAttribute, lambda:InvokeFunction\n  - CloudWatch: \u002Faws\u002Flambda\u002Fguardduty-auto-remediation\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None\nTEMPLATE:\n  aws events put-rule --name guardduty-critical-high-routing --event-pattern '{\"source\":[\"aws.guardduty\"],\"detail-type\":[\"GuardDuty Finding\"],\"detail\":{\"severity\":[{\"numeric\":[\">=\",7.0]}]}}'\n```\n\n### Worked example — REVIEW_REQUIRED, low-severity recon\n\nSecondary worked example (REVIEW_REQUIRED, low-severity recon) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when formatting a REVIEW_REQUIRED response; the primary AUTOMATION_DEPLOYED example stays in this file.\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER auto-isolate EC2 without a rollback path. The SG swap is\n  reversible ONLY if original SGs are stored in DynamoDB. Without\n  persistence, the instance is permanently quarantined — an outage.\n\n- NEVER revoke an IAM key without checking `AccessKeyLastUsed` for\n  Medium severity. The key may be the application's active credential.\n  For Critical (CryptoCurrency, Backdoor), revoke unconditionally.\n\n- NEVER set Lambda timeout to the default 3 seconds. EC2 SG swap, IAM\n  API calls, and WAF updates take 5-30 seconds. Set timeout >= 60s.\n\n- NEVER skip finding ID deduplication. GuardDuty updates the same ID as\n  evidence arrives. Without dedup, the Lambda re-remediates N times.\n\n- NEVER rely solely on EventBridge numeric severity matching. The field\n  serialization is inconsistent. Route to Lambda and filter internally.\n\n- NEVER suppress findings without an expiry review. An \"authorized\n  scanner\" that is later compromised silently hides threats.\n\n- NEVER block IPs in WAF without an eviction policy. WAF sets cap at\n  10,000 entries. Use rotating sets or NACL-based blocking.\n\n- NEVER configure multi-account without cross-account EventBridge\n  forwarding. The delegated admin does not auto-receive member findings.\n\n- NEVER assume `BatchImportFindings` validates schema. Malformed ASFF\n  findings are silently dropped. Test with the ASFF validator first.\n\n- NEVER terminate an EC2 instance as auto-remediation. Termination\n  destroys forensic evidence. Use isolation (SG swap) + EBS snapshot.\n\n- NEVER set Lambda concurrency to unbounded for remediation. A burst of\n  findings triggers hundreds of concurrent invocations, exhausting API\n  throttling. Set reserved concurrency (10-20) and use SQS as buffer.\n\n- NEVER deploy GuardDuty automation to a single Region. Deploy via\n  StackSets to every Region where GuardDuty is enabled.\n\n- NEVER confuse `archive-findings` with deletion. Archived findings\n  remain queryable for 90 days. There is no delete API.\n\n- NEVER skip CloudTrail correlation for Medium findings. A single Recon\n  at severity 2.0 is noise. The same finding followed by Credential\n  Abuse at severity 8.0 within 60 min is a kill-chain.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation:\n  `CONFIRM: About to \u003Caction> for finding type \u003Ctype> in account\n  \u003Caccount>. Proceed? (yes\u002Fno)`\n\n- **Test the remediation Lambda against a non-production instance.**\n  Use `guardduty create-sample-findings` to generate test findings.\n\n- **Verify the isolation SG exists in every VPC.** An SG from VPC-A\n  cannot apply to an instance in VPC-B.\n\n- **Verify SNS topic subscription is confirmed.** Unconfirmed email\n  subscriptions silently drop notifications. Use Lambda\u002FHTTPS for\n  critical alerts.\n\n- **For multi-account, verify delegated admin in every target Region**\n  before deploying the StackSet.\n\n## Appendix A — EventBridge rule patterns\n\n| Pattern | Use case |\n|---|---|\n| All findings | `\"source\":[\"aws.guardduty\"],\"detail-type\":[\"GuardDuty Finding\"]` |\n| Critical\u002FHigh only | Add `\"detail\":{\"severity\":[{\"numeric\":[\">=\",7.0]}]}` |\n| Medium only | Add `\"detail\":{\"severity\":[{\"numeric\":[\">=\",4.0,\"\u003C\",7.0]}]}` |\n| Specific type | Add `\"detail\":{\"type\":[\"UnauthorizedAccess:EC2\u002FSSHBruteForce\"]}` |\n| Specific resource | Add `\"detail\":{\"resource\":{\"resourceType\":[\"Instance\"]}}` |\n\n## Appendix B — Lambda remediation decision tree\n\n```\nSeverity >= 7.0?\n├─ Yes → Resource is EC2?\n│       ├─ Yes → Isolate via SG swap + snapshot for forensics\n│       └─ No  → IAM user? → Revoke keys (Critical: unconditional; High: check last-used)\n├─ Medium → Notify via SNS + Security Hub custom finding\n└─ Low → Log to CloudWatch + background CloudTrail correlation\n```\n\n## Recent AWS features (2024-2026)\n\n2024-2026 feature notes (Runtime Monitoring, Malware Protection for EBS, EKS Protection, Security Hub custom actions, global endpoints, auto-enable enhancements) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a request mentions recent detections.\n\n## Expert heuristic: severity-based auto-response blast radius\n\nBlast-radius scoping table, 3-phase validation, dedup snippet, and post-deploy alarms moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before enabling containment.\n\n## References (load on demand)\n\n- [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md) — finding-type to action matrix, WAF IP blocking, suppression filters, threat intel sets\n- [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md) — event structure, rule patterns, Lambda templates, multi-account forwarding\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked example (REVIEW_REQUIRED, low-severity recon)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight data-gathering commands\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert behaviors, TTP correlation, blast-radius validation, 2024-2026 features\n\n## Domain\n\nAWS CloudOps \u002F Security Automation — GuardDuty-driven detection and response.\n\n## AWS documentation\n\n- **Amazon GuardDuty** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fwhat-is-guardduty.html\n- **GuardDuty EventBridge events** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fguardduty_findings_cloudwatch.html\n- **GuardDuty suppression filters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Ffilters.html\n- **GuardDuty Organizations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fguardduty_organizations.html\n- **Security Hub ASFF** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecurityhub\u002Flatest\u002Fuserguide\u002Fsecurityhub-findings-format.html\n- **GuardDuty threat intel sets** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fthreat-intel-set.html\n- **GuardDuty Runtime Monitoring** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fruntime-monitoring.html\n- **GuardDuty Malware Protection** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fmalware-protection.html\n","# GuardDuty Finding Automator\n\n## Mindset\n\n**One-line takeaway:** every GuardDuty automation workflow is a five-stage\npipeline — **detect** (GuardDuty finding) → **route** (EventBridge severity\nfilter) → **respond** (Lambda remediation) → **notify** (SNS with finding\ncontext) → **correlate** (Security Hub + CloudTrail TTP chaining). A gap\nin ANY stage produces a silent failure: the finding fires but nothing is\ncontained, or containment fires on a false positive and takes down a\nproduction service.\n\n- **Detection** without **automated routing** is noise — alert fatigue\n  sets in within weeks of enablement.\n- **Severity-based auto-response** is the core design decision:\n  Critical\u002FHigh findings trigger automatic containment, Medium notifies\n  the security team, Low findings are logged for trend analysis.\n- **Finding ID deduplication is non-negotiable.** GuardDuty updates the\n  same finding ID when new evidence arrives. Without dedup, the Lambda\n  re-isolates the same instance on every update.\n- **TTP correlation across findings reveals the attack chain.** A Recon\n  finding followed by UnauthorizedAccess followed by Exfiltration is a\n  kill-chain, not three isolated events. Security Hub is the correlation\n  layer.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Route findings by severity via EventBridge | Step 2 + Appendix A |\n| Pick the right Lambda remediation action | Step 3 (action matrix) |\n| Wire EC2 isolation (SG swap) | Step 4 |\n| Revoke IAM credentials safely | Step 5 |\n| Block source IPs in WAF | Step 6 |\n| Send SNS notifications with finding context | Step 7 |\n| Ingest as Security Hub custom finding | Step 8 |\n| Set up multi-account via Organizations | Step 9 |\n| Suppress known false positives | Step 10 |\n| Correlate TTPs across findings via CloudTrail | Step 11 |\n| Auto-enable GuardDuty in new accounts | Step 12 |\n| Upload custom threat intel | Step 13 |\n| Avoid common automation pitfalls | Anti-Patterns |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **EventBridge fires on finding occurrence AND finding update.**\n   GuardDuty emits an event when a finding is first created AND on every\n   subsequent update. The Lambda MUST deduplicate on finding ID.\n\n2. **EC2 isolation via security group swap is the safest containment.**\n   Replacing SGs with an isolation SG (no ingress, restricted egress) is\n   reversible. Terminating destroys forensic evidence. Stopping may\n   trigger auto-scaling replacement.\n\n3. **IAM key revocation must check `AccessKeyLastUsed` first** for Medium\n   severity. Revoking an active application key causes an outage. For\n   Critical findings (CryptoCurrency, Backdoor), revoke regardless.\n\n4. **`create-filter` with `FindingCriteria` suppresses silently.** An\n   over-broad filter hides real threats. Always scope to specific\n   resource or IP and set an expiry review date.\n\n5. **Security Hub `BatchImportFindings` requires the ASFF format.**\n   Schema mismatches produce silent drops — Security Hub does not error\n   on malformed findings.\n\n## Pre-flight: data requirements\n\nPre-flight data-gathering commands (findings statistics, sample JSON, rule status, filters, WAF ACLs, SNS topics) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand to populate the required inputs before designing automation.\n\n**If the input is malformed** (missing finding type, ambiguous severity),\nemit:\n\n```text\nAUTOMATION: \u003Creference>\nFINDING_TYPE: \u003Ctype or UNKNOWN>\nVERDICT: ERROR\nREASON: Cannot design automation — finding type and desired remediation action are required.\nGAP: Re-supply get-findings output for the finding type and the severity-routing requirement.\n```\n\n## Process — Workflow design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious GuardDuty + EventBridge behaviors\n\nEight non-obvious behaviors (severity serialization, finding-ID stability, archive semantics, Security Hub dups, WAF IP-set limits, Region-specific admin, Lambda timeouts, cross-account bus) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before finalizing rule or Lambda design.\n\n### Step 1: Classify the finding family and severity tier\n\n| Finding family | Example types | Default severity | Response tier |\n|---|---|---|---|\n| `UnauthorizedAccess:EC2` | SSHBruteForce, RDPBruteForce | Medium-High | High → isolate; Medium → notify |\n| `Backdoor:EC2` | BackdoorAtTask, DriveThroughSource | High-Critical | Auto-isolate |\n| `CryptoCurrency:EC2` | CryptoDomain, BitcoinTool | High-Critical | Auto-isolate + snapshot |\n| `Recon:EC2` | PortProbe, PortProbeUnprotectedPort | Low-Medium | Log + trend |\n| `Persistence:IAMUser` | IAMUserBackdoor, NewUserCreation | High | Auto-revoke if credential-based |\n| `Exfiltration` | S3, EC2 outbound anomalies | High-Critical | Auto-isolate + snapshot |\n| `Trojan:EC2` | Trojan, DrivingLicense domain | High | Auto-isolate + Malware Protection |\n| `Policy:IAMUser` | RootAccess, AssumeRole anomaly | Medium-High | Notify + CloudTrail correlate |\n\n**Severity routing matrix (the core design):**\n\n| Severity | Auto-action | Notification | Security Hub |\n|---|---|---|---|\n| Critical (9.0-10.0) | Isolate EC2, revoke IAM keys, WAF block, snapshot | SNS + Page on-call | Custom finding + correlation |\n| High (7.0-8.9) | Isolate EC2, revoke IAM keys (conditional) | SNS + Email security | Custom finding |\n| Medium (4.0-6.9) | No auto-action | SNS email | Forwarded (native) |\n| Low (0.1-3.9) | No action | Log only (CloudWatch) | Forwarded (native) |\n\n### Step 2: Wire the EventBridge rule for severity-based routing\n\n```bash\naws events put-rule \\\n  --name guardduty-critical-high-routing \\\n  --event-pattern '{\n    \"source\": [\"aws.guardduty\"],\n    \"detail-type\": [\"GuardDuty Finding\"],\n    \"detail\": {\n      \"severity\": [{\"numeric\": [\">=\", 7.0]}]\n    }\n  }'\n\naws events put-targets \\\n  --rule guardduty-critical-high-routing \\\n  --targets '[{\n    \"Id\": \"guardduty-remediation-lambda\",\n    \"Arn\": \"arn:aws:lambda:us-east-1:111111111111:function:guardduty-auto-remediation\",\n    \"DeadLetterConfig\": {\"Arn\": \"arn:aws:sqs:us-east-1:111111111111:guardduty-remediation-dlq\"}\n  }]'\n```\n\n**IMPORTANT:** test the numeric severity match. If it fails (string\nserialization), route all findings to Lambda and branch internally:\n\n```python\nseverity = float(event['detail']['finding']['severity'])\nif severity >= 7.0:    # Critical\u002FHigh — auto-respond\nelif severity >= 4.0:  # Medium — notify only\nelse:                  # Low — log only\n```\n\n### Step 3: Map finding type to remediation action (the action matrix)\n\n| Finding type | Action | Lambda | Reversible |\n|---|---|---|---|\n| `UnauthorizedAccess:EC2\u002FSSHBruteForce` | Isolate EC2 (SG swap) | `gd-isolate-ec2` | Yes |\n| `UnauthorizedAccess:EC2\u002FRDPBruteForce` | Isolate EC2 + WAF block | `gd-isolate-ec2` + `gd-waf-block-ip` | Yes |\n| `Backdoor:EC2\u002F*` | Isolate + snapshot | `gd-isolate-ec2` + `gd-snapshot-ebs` | Partial |\n| `CryptoCurrency:EC2\u002F*` | Isolate immediately + snapshot | `gd-isolate-ec2` + `gd-snapshot-ebs` | Partial |\n| `Persistence:IAMUser\u002F*` | Revoke IAM access keys | `gd-revoke-iam-keys` | Yes |\n| `Exfiltration:*` | Isolate\u002Frevoke + snapshot | Combination | Partial |\n| `Trojan:EC2\u002F*` | Isolate + Malware Protection scan | `gd-isolate-ec2` + `gd-malware-scan` | Yes |\n| `Recon:*` | No auto-action — log + correlate | N\u002FA | N\u002FA |\n\nFor the full parameter-level mapping, see\n**references\u002Ffinding-types-and-remediation-actions.md**.\n\n### Step 4: EC2 isolation via security group swap\n\n```python\nec2 = boto3.client('ec2')\nISOLATION_SG = 'sg-isolation-forensics'\n\ndef isolate_instance(instance_id, original_sgs):\n    \"\"\"Swap instance SGs to isolation SG. Store originals for rollback.\"\"\"\n    eni = get_eni(instance_id)\n    ec2.modify_network_interface_attribute(NetworkInterfaceId=eni, Groups=[ISOLATION_SG])\n    store_in_dynamodb(instance_id, original_sgs)  # For rollback\n```\n\nIsolation SG (CloudFormation):\n\n```yaml\nIsolationSecurityGroup:\n  Type: AWS::EC2::SecurityGroup\n  Properties:\n    GroupDescription: GuardDuty isolation SG — no ingress, restricted egress\n    SecurityGroupIngress: []\n    SecurityGroupEgress:\n      - IpProtocol: tcp\n        FromPort: 443\n        ToPort: 443\n        CidrIp: 10.0.0.0\u002F8  # Forensics VPC endpoint only\n```\n\n**Rollback:** store original SGs in DynamoDB. Always include a rollback\nLambda — an isolated production instance is an outage until released.\n\n### Step 5: IAM credential revocation\n\n```python\niam = boto3.client('iam')\n\ndef revoke_access_key(user_name, access_key_id, finding_type):\n    last_used = iam.get_access_key_last_used(AccessKeyId=access_key_id)\n    last_used_time = last_used['AccessKeyLastUsed'].get('LastUsedDate')\n\n    if finding_type.startswith(('CryptoCurrency', 'Backdoor')):\n        iam.update_access_key(UserName=user_name, AccessKeyId=access_key_id, Status='Inactive')\n        return {'action': 'revoked', 'reason': 'critical_finding'}\n    elif last_used_time and (now - last_used_time).seconds \u003C 3600:\n        notify_sns(f'Key active in last hour — manual review required for {user_name}')\n        return {'action': 'notified', 'reason': 'key_in_use'}\n    else:\n        iam.update_access_key(UserName=user_name, AccessKeyId=access_key_id, Status='Inactive')\n        return {'action': 'revoked', 'reason': 'key_inactive'}\n```\n\n### Step 6: WAF \u002F NACL IP blocking\n\nboto3 WAF update_ip_set snippet and IP-set limit management moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand when blocking source IPs.\n\n### Step 7: SNS notification with finding context\n\n```python\nsns = boto3.client('sns')\n\ndef notify_finding(finding, topic_arn, page_on_call=False):\n    subject = f\"[GuardDuty {finding['severity']}] {finding['type']}\"\n    message = json.dumps({\n        'FindingId': finding['id'], 'Type': finding['type'],\n        'Severity': finding['severity'], 'Resource': finding['resource']['resourceType'],\n        'Action': finding.get('remediation_action', 'N\u002FA'),\n        'Count': finding['service']['eventCount']\n    }, indent=2)\n    sns.publish(TopicArn=topic_arn, Subject=subject, Message=message,\n               MessageAttributes={'page': {'DataType': 'String',\n                                   'StringValue': 'true' if page_on_call else 'false'}})\n```\n\n### Step 8: Security Hub integration via BatchImportFindings\n\nGuardDuty natively forwards to Security Hub. For custom enrichment (TTP\nannotation, blast-radius, correlation), create a custom finding:\n\n```python\nsecurityhub = boto3.client('securityhub')\n\ndef ingest_custom_finding(gd_finding, correlation_note=None):\n    custom_finding = {\n        'SchemaVersion': '2018-10-08',\n        'Id': f\"gd-custom-{gd_finding['id']}\",\n        'ProductArn': f'arn:aws:securityhub:us-east-1:111111111111:product\u002F111111111111\u002Fdefault',\n        'GeneratorId': 'guardduty-auto-remediation',\n        'AwsAccountId': gd_finding['accountId'],\n        'Types': ['TTPs\u002F' + gd_finding['type'].split('\u002F')[0]],\n        'FirstObservedAt': gd_finding['service']['eventFirstSeen'],\n        'LastObservedAt': gd_finding['service']['eventLastSeen'],\n        'CreatedAt': now, 'UpdatedAt': now,\n        'Severity': {'Label': severity_label(gd_finding['severity'])},\n        'Title': f\"GuardDuty Enriched: {gd_finding['type']}\",\n        'Description': gd_finding['description'],\n        'ProductFields': {'Correlation': correlation_note or 'standalone'}\n    }\n    securityhub.batch_import_findings(Findings=[custom_finding])\n```\n\n### Step 9: Multi-account via Organizations delegated administrator\n\nDelegated-admin enablement, auto-enable, and cross-account forwarding rules moved verbatim to [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md).\nLoad on demand for multi-account rollout.\n\n### Step 10: Suppression filters for known false positives\n\ncreate-filter command, false-positive criteria table, and review-date rule moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand when suppressing known false positives.\n\n### Step 11: CloudTrail correlation for TTPs\n\nMITRE chain table and correlate_ttps() DynamoDB query moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when correlating findings into attack chains.\n\n### Step 12: Auto-enable GuardDuty in new accounts\n\nCreateAccount EventBridge rule pattern and Lambda responsibilities moved verbatim to [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md).\nLoad on demand for new-account auto-enablement.\n\n### Step 13: Custom threat intel upload\n\ncreate-threat-intel-set \u002F create-ip-set commands and activation check moved verbatim to [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md).\nLoad on demand for custom threat intel.\n\n## Output format\n\n```text\nAUTOMATION: \u003Creference>\nFINDING_TYPE: \u003CGuardDuty finding type>\nSEVERITY: \u003Cnumeric> (\u003Clabel>)\nROUTING:\n  - EventBridge rule: \u003Crule-name>\n  - Filter: severity >= \u003Cthreshold>\n  - Target: Lambda \u003Cfunction-name> with DLQ\nREMEDIATION:\n  - Action: \u003Cisolate EC2 | revoke IAM keys | WAF block | snapshot | notify only>\n  - Lambda: \u003Cfunction name + ARN>\n  - Rollback: \u003Chow to reverse the action>\nNOTIFICATION:\n  - SNS topic: \u003Carn>\n  - Content: finding context (type, severity, resource, action taken)\n  - Paging: \u003Con-call for Critical | email for Medium | none for Low>\nINTEGRATION:\n  - Security Hub: \u003Cnative forwarding | custom enriched finding>\n  - CloudTrail correlation: \u003Cenabled | disabled>\nSAFETY:\n  - Finding ID deduplication: \u003CDynamoDB | Step Functions | none>\n  - False-positive suppression: \u003Cfilter name + criteria>\n  - Rate limiting: \u003CLambda concurrency cap>\nAUDIT:\n  - CloudTrail: ec2:ModifyNetworkInterfaceAttribute, iam:UpdateAccessKey\n  - CloudWatch: Lambda invocation logs + errors\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet or YAML for the pipeline>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, EC2 SSH brute force\n\n```text\nAUTOMATION_DEPLOYED: prod-guardduty-auto-response\nFINDING_TYPE: UnauthorizedAccess:EC2\u002FSSHBruteForce\nSEVERITY: 7.5 (HIGH)\nROUTING:\n  - EventBridge rule: guardduty-critical-high-routing\n  - Filter: severity >= 7.0\n  - Target: Lambda guardduty-auto-remediation (DLQ: guardduty-remediation-dlq)\nREMEDIATION:\n  - Action: isolate EC2 via SG swap to sg-isolation-forensics\n  - Lambda: guardduty-auto-remediation\n  - Rollback: restore original SGs from DynamoDB (key: instance-id)\nNOTIFICATION:\n  - SNS topic: arn:aws:sns:us-east-1:111111111111:guardduty-alerts\n  - Content: finding type, severity, instance ID, action taken, rollback\n  - Paging: on-call (Critical\u002FHigh only)\nINTEGRATION:\n  - Security Hub: custom enriched finding (TTP: Initial Access)\n  - CloudTrail correlation: enabled (60-min window)\nSAFETY:\n  - Finding ID deduplication: DynamoDB table guardduty-processed-findings\n  - False-positive suppression: suppress-authorized-scanner (CI\u002FCD NAT)\n  - Rate limiting: Lambda concurrency cap = 10\nAUDIT:\n  - CloudTrail: ec2:ModifyNetworkInterfaceAttribute, lambda:InvokeFunction\n  - CloudWatch: \u002Faws\u002Flambda\u002Fguardduty-auto-remediation\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None\nTEMPLATE:\n  aws events put-rule --name guardduty-critical-high-routing --event-pattern '{\"source\":[\"aws.guardduty\"],\"detail-type\":[\"GuardDuty Finding\"],\"detail\":{\"severity\":[{\"numeric\":[\">=\",7.0]}]}}'\n```\n\n### Worked example — REVIEW_REQUIRED, low-severity recon\n\nSecondary worked example (REVIEW_REQUIRED, low-severity recon) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when formatting a REVIEW_REQUIRED response; the primary AUTOMATION_DEPLOYED example stays in this file.\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER auto-isolate EC2 without a rollback path. The SG swap is\n  reversible ONLY if original SGs are stored in DynamoDB. Without\n  persistence, the instance is permanently quarantined — an outage.\n\n- NEVER revoke an IAM key without checking `AccessKeyLastUsed` for\n  Medium severity. The key may be the application's active credential.\n  For Critical (CryptoCurrency, Backdoor), revoke unconditionally.\n\n- NEVER set Lambda timeout to the default 3 seconds. EC2 SG swap, IAM\n  API calls, and WAF updates take 5-30 seconds. Set timeout >= 60s.\n\n- NEVER skip finding ID deduplication. GuardDuty updates the same ID as\n  evidence arrives. Without dedup, the Lambda re-remediates N times.\n\n- NEVER rely solely on EventBridge numeric severity matching. The field\n  serialization is inconsistent. Route to Lambda and filter internally.\n\n- NEVER suppress findings without an expiry review. An \"authorized\n  scanner\" that is later compromised silently hides threats.\n\n- NEVER block IPs in WAF without an eviction policy. WAF sets cap at\n  10,000 entries. Use rotating sets or NACL-based blocking.\n\n- NEVER configure multi-account without cross-account EventBridge\n  forwarding. The delegated admin does not auto-receive member findings.\n\n- NEVER assume `BatchImportFindings` validates schema. Malformed ASFF\n  findings are silently dropped. Test with the ASFF validator first.\n\n- NEVER terminate an EC2 instance as auto-remediation. Termination\n  destroys forensic evidence. Use isolation (SG swap) + EBS snapshot.\n\n- NEVER set Lambda concurrency to unbounded for remediation. A burst of\n  findings triggers hundreds of concurrent invocations, exhausting API\n  throttling. Set reserved concurrency (10-20) and use SQS as buffer.\n\n- NEVER deploy GuardDuty automation to a single Region. Deploy via\n  StackSets to every Region where GuardDuty is enabled.\n\n- NEVER confuse `archive-findings` with deletion. Archived findings\n  remain queryable for 90 days. There is no delete API.\n\n- NEVER skip CloudTrail correlation for Medium findings. A single Recon\n  at severity 2.0 is noise. The same finding followed by Credential\n  Abuse at severity 8.0 within 60 min is a kill-chain.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation:\n  `CONFIRM: About to \u003Caction> for finding type \u003Ctype> in account\n  \u003Caccount>. Proceed? (yes\u002Fno)`\n\n- **Test the remediation Lambda against a non-production instance.**\n  Use `guardduty create-sample-findings` to generate test findings.\n\n- **Verify the isolation SG exists in every VPC.** An SG from VPC-A\n  cannot apply to an instance in VPC-B.\n\n- **Verify SNS topic subscription is confirmed.** Unconfirmed email\n  subscriptions silently drop notifications. Use Lambda\u002FHTTPS for\n  critical alerts.\n\n- **For multi-account, verify delegated admin in every target Region**\n  before deploying the StackSet.\n\n## Appendix A — EventBridge rule patterns\n\n| Pattern | Use case |\n|---|---|\n| All findings | `\"source\":[\"aws.guardduty\"],\"detail-type\":[\"GuardDuty Finding\"]` |\n| Critical\u002FHigh only | Add `\"detail\":{\"severity\":[{\"numeric\":[\">=\",7.0]}]}` |\n| Medium only | Add `\"detail\":{\"severity\":[{\"numeric\":[\">=\",4.0,\"\u003C\",7.0]}]}` |\n| Specific type | Add `\"detail\":{\"type\":[\"UnauthorizedAccess:EC2\u002FSSHBruteForce\"]}` |\n| Specific resource | Add `\"detail\":{\"resource\":{\"resourceType\":[\"Instance\"]}}` |\n\n## Appendix B — Lambda remediation decision tree\n\n```\nSeverity >= 7.0?\n├─ Yes → Resource is EC2?\n│       ├─ Yes → Isolate via SG swap + snapshot for forensics\n│       └─ No  → IAM user? → Revoke keys (Critical: unconditional; High: check last-used)\n├─ Medium → Notify via SNS + Security Hub custom finding\n└─ Low → Log to CloudWatch + background CloudTrail correlation\n```\n\n## Recent AWS features (2024-2026)\n\n2024-2026 feature notes (Runtime Monitoring, Malware Protection for EBS, EKS Protection, Security Hub custom actions, global endpoints, auto-enable enhancements) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a request mentions recent detections.\n\n## Expert heuristic: severity-based auto-response blast radius\n\nBlast-radius scoping table, 3-phase validation, dedup snippet, and post-deploy alarms moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before enabling containment.\n\n## References (load on demand)\n\n- [references\u002Ffinding-types-and-remediation-actions.md](references\u002Ffinding-types-and-remediation-actions.md) — finding-type to action matrix, WAF IP blocking, suppression filters, threat intel sets\n- [references\u002Feventbridge-and-lambda-patterns.md](references\u002Feventbridge-and-lambda-patterns.md) — event structure, rule patterns, Lambda templates, multi-account forwarding\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked example (REVIEW_REQUIRED, low-severity recon)\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight data-gathering commands\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert behaviors, TTP correlation, blast-radius validation, 2024-2026 features\n\n## Domain\n\nAWS CloudOps \u002F Security Automation — GuardDuty-driven detection and response.\n\n## AWS documentation\n\n- **Amazon GuardDuty** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fwhat-is-guardduty.html\n- **GuardDuty EventBridge events** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fguardduty_findings_cloudwatch.html\n- **GuardDuty suppression filters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Ffilters.html\n- **GuardDuty Organizations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fguardduty_organizations.html\n- **Security Hub ASFF** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecurityhub\u002Flatest\u002Fuserguide\u002Fsecurityhub-findings-format.html\n- **GuardDuty threat intel sets** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fthreat-intel-set.html\n- **GuardDuty Runtime Monitoring** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fruntime-monitoring.html\n- **GuardDuty Malware Protection** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fguardduty\u002Flatest\u002Fug\u002Fmalware-protection.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":43},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"activation_triggers":42},"guardduty, security, eventbridge, lambda, security-hub, incident-response, automate, threat-detection","4","Jacky Chan — AWS Community Builder","aws-cloudops","Security","0.1.0","Amazon GuardDuty, EventBridge, Lambda remediation, severity-based routing, EC2 isolation, IAM credential revocation, WAF IP blocking, SNS notification, AWS Security Hub, BatchImportFindings, Organizations delegated admin, suppression filter, finding archive, CloudTrail correlation, TTP chaining, ThreatIntelSet, IPSet, auto-enable GuardDuty, incident response automation","automate","high","false","capability","Building automated response workflows for GuardDuty findings, wiring EventBridge to Lambda remediation functions, designing severity-based auto-response (Critical\u002FHigh auto-isolate, Medium notify, Low log), configuring GuardDuty with Security Hub integration, setting up multi-account GuardDuty via Organizations delegated administrator, creating suppression filters for known false positives, uploading custom threat intel, or auto-enabling GuardDuty in new accounts.","true","AUTOMATION_DEPLOYED | REVIEW_REQUIRED","Investigating a single GuardDuty finding for root cause (use guardduty-finding-investigator). Triaging finding severity numerically without automation (use guardduty-finding-severity-triage). Config posture audits of GuardDuty detector enablement (use the auditor family). Forensic chain of custody and disk imaging belong to incident-response-automator. Non-GuardDuty detections (Inspector, Macie, Detective) use their own skills.","active","Input: either (a) a GuardDuty finding type or family (e.g., UnauthorizedAccess:EC2\u002FSSHBruteForce) plus desired remediation actions, OR (b) an automation requirement (\"auto-isolate EC2 on Critical findings\", \"revoke IAM keys on credential-abuse detection\"). Output: deterministic AUTOMATION block per finding family — ROUTING\u002FREMEDIATION\u002F NOTIFICATION\u002FINTEGRATION\u002FSAFETY\u002FVERDICT — where VERDICT is AUTOMATION_DEPLOYED (pipeline template ready) or REVIEW_REQUIRED (specific gap cited).","automate GuardDuty response, GuardDuty EventBridge Lambda, severity-based auto-remediation, isolate EC2 on GuardDuty finding, revoke IAM keys on detection, block IP in WAF from GuardDuty, GuardDuty Security Hub integration, GuardDuty suppression filter, GuardDuty multi-account automation, auto-enable GuardDuty new account, GuardDuty custom threat intel, archive GuardDuty findings","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline workflow design. Live deployment uses aws guardduty create-filter, list-findings, get-findings, archive-findings, create-threat-intel-set, create-ip-set, aws events put-rule, put-targets, aws lambda create-function, aws sns create-topic, subscribe, aws securityhub batch-import-findings, aws organizations enable-aws-service-access, and aws cloudformation deploy (for multi-account...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fguardduty-finding-automator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill guardduty-finding-automator",{"tool":58,"command":59},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill guardduty-finding-automator",{"tool":61,"command":62},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill guardduty-finding-automator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6772,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Feval\u002Ftest-cases.yaml",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fcryptocurrency-ec2-auto-isolate.md",1185,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fbaselines\u002Fcryptocurrency-ec2-auto-isolate.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fec2-ssh-bruteforce-auto-isolate.md",1044,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fbaselines\u002Fec2-ssh-bruteforce-auto-isolate.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fiam-persistence-revoke-keys.md",981,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fbaselines\u002Fiam-persistence-revoke-keys.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fmulti-account-org-deployment.md",1233,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fbaselines\u002Fmulti-account-org-deployment.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Frecon-low-no-auto-action.md",858,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fbaselines\u002Frecon-low-no-auto-action.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1816,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4371,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fevals.json",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fcryptocurrency-ec2-auto-isolate.md",669,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fprompts\u002Fcryptocurrency-ec2-auto-isolate.md",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fec2-ssh-bruteforce-auto-isolate.md",735,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fprompts\u002Fec2-ssh-bruteforce-auto-isolate.md",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fiam-persistence-revoke-keys.md",631,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fprompts\u002Fiam-persistence-revoke-keys.md",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fmulti-account-org-deployment.md",759,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fprompts\u002Fmulti-account-org-deployment.md",{"path":117,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Frecon-low-no-auto-action.md",453,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fevals\u002Fprompts\u002Frecon-low-no-auto-action.md",{"path":121,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":122,"sourceHtmlUrl":123},"examples\u002Fend-to-end.md",7617,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fexamples\u002Fend-to-end.md",{"path":125,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fadvanced-patterns.md",6278,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Freferences\u002Fadvanced-patterns.md",{"path":129,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fdiagnostic-commands.md",1069,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Freferences\u002Fdiagnostic-commands.md",{"path":133,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Feventbridge-and-lambda-patterns.md",12917,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Freferences\u002Feventbridge-and-lambda-patterns.md",{"path":137,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Ffinding-types-and-remediation-actions.md",9489,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Freferences\u002Ffinding-types-and-remediation-actions.md",{"path":141,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fworked-examples.md",900,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Freferences\u002Fworked-examples.md",{"path":145,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":146,"sourceHtmlUrl":147},"skill.usf.yaml",4661,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fguardduty-finding-automator\u002Fskill.usf.yaml",[149,156,163,170,177,184],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]