[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG8HB66CBZHZ0K8F4RECR6":3,"skill-same:01M6AG8HB66CBZHZ0K8F4RECR6":117},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":72,"commitSha":73,"skillDirectory":74,"forksCount":75,"repositoryHtmlUrl":76,"repositoryHomepageUrl":77,"ownerHtmlUrl":78,"ownerBlogUrl":79,"ownerDescription":80,"updatedAt":81,"install":82,"resources":95},"01M6AG8HB66CBZHZ0K8F4RECR6","securing-api-gateway-with-aws-waf","AWS WAF保护API网关","Secures AWS API Gateway endpoints with AWS WAF by configuring managed rule groups for OWASP Top 10 protection, custom rate-limiting rules, bot control, IP reputation filtering, and WAF metric monitoring. Use when deploying API Gateway endpoints that need protection against common web attacks, or when implementing rate limiting and throttling to prevent API abuse and DDoS.","通过 AWS WAF 保护 AWS API Gateway 端点，配置托管规则组以防御 OWASP Top 10、自定义限流规则、机器人控制、IP 信誉过滤和 WAF 指标监控。适用于部署需要防范常见 Web 攻击的 API Gateway 端点，或实施限流和节流以防止 API 滥用和 DDoS。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-api-gateway-with-aws-waf\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P5QP54ZNEBFHBTV293T","API 网关配置与管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"securing api gateway with aws waf","api","api gateway","gateway","waf","aws","cloud-security","bot-protection","ddos","throttling","api-gateway","t1078","owasp","bot","monitoring","owasp top 10","pr","web","cybersecurity","security","2026-11-10 10:12:30",false,"---\nname: securing-api-gateway-with-aws-waf\ndescription: 'Secures AWS API Gateway endpoints with AWS WAF by configuring managed\n  rule groups for OWASP Top 10 protection, custom rate-limiting rules, bot control,\n  IP reputation filtering, and WAF metric monitoring. Use when deploying API Gateway\n  endpoints that need protection against common web attacks, or when implementing\n  rate limiting and throttling to prevent API abuse and DDoS.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- aws\n- waf\n- api-gateway\n- rate-limiting\n- bot-protection\n- owasp\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1530\n- T1537\n- T1580\n- T0816\n---\n\n# Securing API Gateway with AWS WAF\n\n## When to Use\n\n- When deploying API Gateway endpoints that require protection against common web attacks\n- When implementing rate limiting and throttling to prevent API abuse and DDoS attacks\n- When building bot detection and mitigation for API endpoints exposed to the internet\n- When compliance requires WAF protection for all public-facing API endpoints\n- When customizing access controls based on IP reputation, geolocation, or request patterns\n\n**Do not use** for network-level DDoS protection (use AWS Shield), for application logic vulnerabilities (use SAST\u002FDAST tools), or for internal API security between microservices (use service mesh authentication and authorization).\n\n## Prerequisites\n\n- AWS API Gateway (REST or HTTP API) deployed with public endpoints\n- IAM permissions for `wafv2:*` and `apigateway:*` operations\n- CloudWatch and S3 or Kinesis Firehose configured for WAF logging\n- Understanding of the API's expected traffic patterns for rate limiting configuration\n- IP reputation lists or threat intelligence feeds for custom IP blocking\n\n## Workflow\n\n### Step 1: Create a WAF Web ACL with Managed Rule Groups\n\nCreate a Web ACL with AWS Managed Rules for baseline protection against OWASP Top 10 attacks.\n\n```bash\n# Create a WAF Web ACL with managed rule groups\naws wafv2 create-web-acl \\\n  --name api-gateway-waf \\\n  --scope REGIONAL \\\n  --default-action '{\"Allow\":{}}' \\\n  --visibility-config '{\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"api-gateway-waf\"\n  }' \\\n  --rules '[\n    {\n      \"Name\": \"AWSManagedRulesCommonRuleSet\",\n      \"Priority\": 1,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesCommonRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"CommonRuleSet\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesKnownBadInputsRuleSet\",\n      \"Priority\": 2,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesKnownBadInputsRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"KnownBadInputs\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesSQLiRuleSet\",\n      \"Priority\": 3,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesSQLiRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"SQLiRuleSet\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesAmazonIpReputationList\",\n      \"Priority\": 4,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesAmazonIpReputationList\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"IPReputationList\"\n      }\n    }\n  ]'\n```\n\n### Step 2: Add Rate Limiting Rules\n\nConfigure rate-based rules to throttle excessive API requests per IP address.\n\n```bash\n# Get the Web ACL ARN and lock token\nWEB_ACL_ARN=$(aws wafv2 list-web-acls --scope REGIONAL \\\n  --query \"WebACLs[?Name=='api-gateway-waf'].ARN\" --output text)\n\n# Update Web ACL to add rate limiting rule\naws wafv2 update-web-acl \\\n  --name api-gateway-waf \\\n  --scope REGIONAL \\\n  --id $(aws wafv2 list-web-acls --scope REGIONAL --query \"WebACLs[?Name=='api-gateway-waf'].Id\" --output text) \\\n  --lock-token $(aws wafv2 get-web-acl --name api-gateway-waf --scope REGIONAL --id WEB_ACL_ID --query 'LockToken' --output text) \\\n  --default-action '{\"Allow\":{}}' \\\n  --visibility-config '{\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"api-gateway-waf\"\n  }' \\\n  --rules '[\n    {\n      \"Name\": \"RateLimitPerIP\",\n      \"Priority\": 0,\n      \"Statement\": {\n        \"RateBasedStatement\": {\n          \"Limit\": 2000,\n          \"AggregateKeyType\": \"IP\"\n        }\n      },\n      \"Action\": {\"Block\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"RateLimitPerIP\"\n      }\n    },\n    {\n      \"Name\": \"RateLimitLoginEndpoint\",\n      \"Priority\": 5,\n      \"Statement\": {\n        \"RateBasedStatement\": {\n          \"Limit\": 100,\n          \"AggregateKeyType\": \"IP\",\n          \"ScopeDownStatement\": {\n            \"ByteMatchStatement\": {\n              \"FieldToMatch\": {\"UriPath\": {}},\n              \"PositionalConstraint\": \"STARTS_WITH\",\n              \"SearchString\": \"\u002Fapi\u002Fauth\u002Flogin\",\n              \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"LOWERCASE\"}]\n            }\n          }\n        }\n      },\n      \"Action\": {\"Block\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"RateLimitLogin\"\n      }\n    }\n  ]'\n```\n\n### Step 3: Implement Bot Control\n\nAdd AWS WAF Bot Control to detect and manage automated traffic.\n\n```bash\n# Add Bot Control managed rule group\n# (Add to the rules array when updating the Web ACL)\n{\n  \"Name\": \"AWSManagedRulesBotControlRuleSet\",\n  \"Priority\": 6,\n  \"Statement\": {\n    \"ManagedRuleGroupStatement\": {\n      \"VendorName\": \"AWS\",\n      \"Name\": \"AWSManagedRulesBotControlRuleSet\",\n      \"ManagedRuleGroupConfigs\": [{\n        \"AWSManagedRulesBotControlRuleSet\": {\n          \"InspectionLevel\": \"COMMON\"\n        }\n      }],\n      \"ExcludedRules\": [\n        {\"Name\": \"CategoryHttpLibrary\"},\n        {\"Name\": \"SignalNonBrowserUserAgent\"}\n      ]\n    }\n  },\n  \"OverrideAction\": {\"None\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"BotControl\"\n  }\n}\n```\n\n### Step 4: Create Custom Rules for API-Specific Protection\n\nBuild custom WAF rules for API-specific security requirements.\n\n```bash\n# Block requests without required API key header\n{\n  \"Name\": \"RequireAPIKey\",\n  \"Priority\": 7,\n  \"Statement\": {\n    \"NotStatement\": {\n      \"Statement\": {\n        \"ByteMatchStatement\": {\n          \"FieldToMatch\": {\n            \"SingleHeader\": {\"Name\": \"x-api-key\"}\n          },\n          \"PositionalConstraint\": \"EXACTLY\",\n          \"SearchString\": \"\",\n          \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"NONE\"}]\n        }\n      }\n    }\n  },\n  \"Action\": {\"Block\": {\"CustomResponse\": {\"ResponseCode\": 403}}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"RequireAPIKey\"\n  }\n}\n\n# Geo-restrict to allowed countries\n{\n  \"Name\": \"GeoRestriction\",\n  \"Priority\": 8,\n  \"Statement\": {\n    \"NotStatement\": {\n      \"Statement\": {\n        \"GeoMatchStatement\": {\n          \"CountryCodes\": [\"US\", \"CA\", \"GB\", \"DE\", \"FR\", \"AU\"]\n        }\n      }\n    }\n  },\n  \"Action\": {\"Block\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"GeoRestriction\"\n  }\n}\n\n# Block oversized request bodies (prevent payload attacks)\n{\n  \"Name\": \"MaxBodySize\",\n  \"Priority\": 9,\n  \"Statement\": {\n    \"SizeConstraintStatement\": {\n      \"FieldToMatch\": {\"Body\": {\"OversizeHandling\": \"MATCH\"}},\n      \"ComparisonOperator\": \"GT\",\n      \"Size\": 10240,\n      \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"NONE\"}]\n    }\n  },\n  \"Action\": {\"Block\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"MaxBodySize\"\n  }\n}\n```\n\n### Step 5: Associate WAF with API Gateway and Enable Logging\n\nAttach the Web ACL to the API Gateway stage and configure comprehensive logging.\n\n```bash\n# Associate Web ACL with API Gateway\naws wafv2 associate-web-acl \\\n  --web-acl-arn $WEB_ACL_ARN \\\n  --resource-arn arn:aws:apigateway:us-east-1::\u002Frestapis\u002FAPI_ID\u002Fstages\u002Fprod\n\n# Enable WAF logging to S3 via Kinesis Firehose\naws wafv2 put-logging-configuration \\\n  --logging-configuration '{\n    \"ResourceArn\": \"'$WEB_ACL_ARN'\",\n    \"LogDestinationConfigs\": [\n      \"arn:aws:firehose:us-east-1:ACCOUNT:deliverystream\u002Faws-waf-logs-api-gateway\"\n    ],\n    \"RedactedFields\": [\n      {\"SingleHeader\": {\"Name\": \"authorization\"}},\n      {\"SingleHeader\": {\"Name\": \"cookie\"}}\n    ]\n  }'\n\n# Verify association\naws wafv2 get-web-acl-for-resource \\\n  --resource-arn arn:aws:apigateway:us-east-1::\u002Frestapis\u002FAPI_ID\u002Fstages\u002Fprod\n```\n\n### Step 6: Monitor WAF Metrics and Tune Rules\n\nMonitor WAF effectiveness and tune rules to reduce false positives.\n\n```bash\n# Get WAF metrics from CloudWatch\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FWAFV2 \\\n  --metric-name BlockedRequests \\\n  --dimensions Name=WebACL,Value=api-gateway-waf Name=Rule,Value=ALL \\\n  --start-time 2026-02-22T00:00:00Z \\\n  --end-time 2026-02-23T00:00:00Z \\\n  --period 3600 \\\n  --statistics Sum\n\n# Get sampled requests for a specific rule\naws wafv2 get-sampled-requests \\\n  --web-acl-arn $WEB_ACL_ARN \\\n  --rule-metric-name RateLimitPerIP \\\n  --scope REGIONAL \\\n  --time-window '{\"StartTime\":\"2026-02-22T00:00:00Z\",\"EndTime\":\"2026-02-23T00:00:00Z\"}' \\\n  --max-items 50\n\n# Check rate-limited IPs\naws wafv2 get-rate-based-statement-managed-keys \\\n  --web-acl-name api-gateway-waf \\\n  --scope REGIONAL \\\n  --web-acl-id WEB_ACL_ID \\\n  --rule-name RateLimitPerIP\n\n# Create CloudWatch alarm for high block rate\naws cloudwatch put-metric-alarm \\\n  --alarm-name waf-high-block-rate \\\n  --namespace AWS\u002FWAFV2 \\\n  --metric-name BlockedRequests \\\n  --dimensions Name=WebACL,Value=api-gateway-waf Name=Rule,Value=ALL \\\n  --statistic Sum --period 300 --threshold 1000 \\\n  --comparison-operator GreaterThanThreshold \\\n  --evaluation-periods 2 \\\n  --alarm-actions arn:aws:sns:us-east-1:ACCOUNT:security-alerts\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Web ACL | AWS WAF access control list that defines the collection of rules and their actions (allow, block, count) applied to associated resources |\n| Managed Rule Group | Pre-configured set of WAF rules maintained by AWS or third-party vendors for common attack patterns like OWASP Top 10 |\n| Rate-Based Rule | WAF rule that tracks request rates per IP address and blocks traffic exceeding a defined threshold within a 5-minute window |\n| Bot Control | AWS WAF managed rule group that identifies and manages automated traffic including scrapers, crawlers, and attack bots |\n| IP Reputation List | AWS-maintained list of IP addresses associated with malicious activity including botnets, scanners, and known attackers |\n| Custom Response | WAF capability to return specific HTTP status codes and custom response bodies when blocking requests |\n\n## Tools & Systems\n\n- **AWS WAF**: Web application firewall service for protecting API Gateway, ALB, CloudFront, and AppSync endpoints\n- **AWS Managed Rules**: Pre-built rule groups for common attack patterns maintained by AWS security team\n- **AWS Firewall Manager**: Central management of WAF policies across multiple accounts in AWS Organizations\n- **Kinesis Firehose**: Streaming delivery service for WAF logs to S3, Elasticsearch, or third-party analytics\n- **CloudWatch**: Monitoring service for WAF metrics including allowed, blocked, and counted requests\n\n## Common Scenarios\n\n### Scenario: Protecting a Public API from Credential Stuffing and Bot Attacks\n\n**Context**: A public REST API experiences thousands of authentication attempts per hour from automated bots attempting credential stuffing against the `\u002Fapi\u002Fauth\u002Flogin` endpoint.\n\n**Approach**:\n1. Create a Web ACL with AWS Managed Rules Common Rule Set for baseline protection\n2. Add a rate-based rule limiting the login endpoint to 100 requests per IP per 5 minutes\n3. Enable Bot Control managed rules to detect and block automated traffic\n4. Add IP Reputation List to block known malicious IPs proactively\n5. Create a custom rule blocking requests without proper User-Agent headers\n6. Enable WAF logging and create CloudWatch alarms for high block rates\n7. Review sampled blocked requests weekly to tune rules and reduce false positives\n\n**Pitfalls**: Rate limiting by IP can block legitimate users behind shared NAT gateways or corporate proxies. Consider using API key or authenticated session-based rate limiting for more granular control. Bot Control rules in COMMON inspection level may block legitimate API clients; start in Count mode and review before switching to Block.\n\n## Output Format\n\n```\nAWS WAF API Gateway Security Report\n======================================\nWeb ACL: api-gateway-waf\nAssociated Resource: API Gateway - production-api (prod stage)\nReport Period: 2026-02-16 to 2026-02-23\n\nTRAFFIC SUMMARY:\n  Total requests:              2,450,000\n  Allowed requests:            2,380,000 (97.1%)\n  Blocked requests:               70,000 (2.9%)\n\nBLOCKS BY RULE:\n  RateLimitPerIP:              28,000 (40%)\n  AWSManagedRulesCommonRuleSet: 18,000 (25.7%)\n  BotControl:                  12,000 (17.1%)\n  SQLiRuleSet:                  5,000 (7.1%)\n  IPReputationList:             4,000 (5.7%)\n  RateLimitLogin:               2,000 (2.9%)\n  GeoRestriction:               1,000 (1.4%)\n\nTOP BLOCKED IPs:\n  185.x.x.x:     8,400 requests (rate limited)\n  45.x.x.x:      5,200 requests (bot detected)\n  198.x.x.x:     3,100 requests (SQLi attempts)\n\nATTACK TYPES BLOCKED:\n  Credential stuffing (login endpoint):  2,000\n  SQL injection attempts:                5,000\n  Cross-site scripting:                  3,200\n  Known bad bot traffic:                12,000\n  Rate limit violations:               28,000\n\nWAF RULE HEALTH:\n  Rules in Block mode:    8 \u002F 10\n  Rules in Count mode:    2 \u002F 10 (under evaluation)\n  False positive rate:    \u003C 0.1%\n```\n","# Securing API Gateway with AWS WAF\n\n## When to Use\n\n- When deploying API Gateway endpoints that require protection against common web attacks\n- When implementing rate limiting and throttling to prevent API abuse and DDoS attacks\n- When building bot detection and mitigation for API endpoints exposed to the internet\n- When compliance requires WAF protection for all public-facing API endpoints\n- When customizing access controls based on IP reputation, geolocation, or request patterns\n\n**Do not use** for network-level DDoS protection (use AWS Shield), for application logic vulnerabilities (use SAST\u002FDAST tools), or for internal API security between microservices (use service mesh authentication and authorization).\n\n## Prerequisites\n\n- AWS API Gateway (REST or HTTP API) deployed with public endpoints\n- IAM permissions for `wafv2:*` and `apigateway:*` operations\n- CloudWatch and S3 or Kinesis Firehose configured for WAF logging\n- Understanding of the API's expected traffic patterns for rate limiting configuration\n- IP reputation lists or threat intelligence feeds for custom IP blocking\n\n## Workflow\n\n### Step 1: Create a WAF Web ACL with Managed Rule Groups\n\nCreate a Web ACL with AWS Managed Rules for baseline protection against OWASP Top 10 attacks.\n\n```bash\n# Create a WAF Web ACL with managed rule groups\naws wafv2 create-web-acl \\\n  --name api-gateway-waf \\\n  --scope REGIONAL \\\n  --default-action '{\"Allow\":{}}' \\\n  --visibility-config '{\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"api-gateway-waf\"\n  }' \\\n  --rules '[\n    {\n      \"Name\": \"AWSManagedRulesCommonRuleSet\",\n      \"Priority\": 1,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesCommonRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"CommonRuleSet\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesKnownBadInputsRuleSet\",\n      \"Priority\": 2,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesKnownBadInputsRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"KnownBadInputs\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesSQLiRuleSet\",\n      \"Priority\": 3,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesSQLiRuleSet\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"SQLiRuleSet\"\n      }\n    },\n    {\n      \"Name\": \"AWSManagedRulesAmazonIpReputationList\",\n      \"Priority\": 4,\n      \"Statement\": {\n        \"ManagedRuleGroupStatement\": {\n          \"VendorName\": \"AWS\",\n          \"Name\": \"AWSManagedRulesAmazonIpReputationList\"\n        }\n      },\n      \"OverrideAction\": {\"None\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"IPReputationList\"\n      }\n    }\n  ]'\n```\n\n### Step 2: Add Rate Limiting Rules\n\nConfigure rate-based rules to throttle excessive API requests per IP address.\n\n```bash\n# Get the Web ACL ARN and lock token\nWEB_ACL_ARN=$(aws wafv2 list-web-acls --scope REGIONAL \\\n  --query \"WebACLs[?Name=='api-gateway-waf'].ARN\" --output text)\n\n# Update Web ACL to add rate limiting rule\naws wafv2 update-web-acl \\\n  --name api-gateway-waf \\\n  --scope REGIONAL \\\n  --id $(aws wafv2 list-web-acls --scope REGIONAL --query \"WebACLs[?Name=='api-gateway-waf'].Id\" --output text) \\\n  --lock-token $(aws wafv2 get-web-acl --name api-gateway-waf --scope REGIONAL --id WEB_ACL_ID --query 'LockToken' --output text) \\\n  --default-action '{\"Allow\":{}}' \\\n  --visibility-config '{\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"api-gateway-waf\"\n  }' \\\n  --rules '[\n    {\n      \"Name\": \"RateLimitPerIP\",\n      \"Priority\": 0,\n      \"Statement\": {\n        \"RateBasedStatement\": {\n          \"Limit\": 2000,\n          \"AggregateKeyType\": \"IP\"\n        }\n      },\n      \"Action\": {\"Block\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"RateLimitPerIP\"\n      }\n    },\n    {\n      \"Name\": \"RateLimitLoginEndpoint\",\n      \"Priority\": 5,\n      \"Statement\": {\n        \"RateBasedStatement\": {\n          \"Limit\": 100,\n          \"AggregateKeyType\": \"IP\",\n          \"ScopeDownStatement\": {\n            \"ByteMatchStatement\": {\n              \"FieldToMatch\": {\"UriPath\": {}},\n              \"PositionalConstraint\": \"STARTS_WITH\",\n              \"SearchString\": \"\u002Fapi\u002Fauth\u002Flogin\",\n              \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"LOWERCASE\"}]\n            }\n          }\n        }\n      },\n      \"Action\": {\"Block\": {}},\n      \"VisibilityConfig\": {\n        \"SampledRequestsEnabled\": true,\n        \"CloudWatchMetricsEnabled\": true,\n        \"MetricName\": \"RateLimitLogin\"\n      }\n    }\n  ]'\n```\n\n### Step 3: Implement Bot Control\n\nAdd AWS WAF Bot Control to detect and manage automated traffic.\n\n```bash\n# Add Bot Control managed rule group\n# (Add to the rules array when updating the Web ACL)\n{\n  \"Name\": \"AWSManagedRulesBotControlRuleSet\",\n  \"Priority\": 6,\n  \"Statement\": {\n    \"ManagedRuleGroupStatement\": {\n      \"VendorName\": \"AWS\",\n      \"Name\": \"AWSManagedRulesBotControlRuleSet\",\n      \"ManagedRuleGroupConfigs\": [{\n        \"AWSManagedRulesBotControlRuleSet\": {\n          \"InspectionLevel\": \"COMMON\"\n        }\n      }],\n      \"ExcludedRules\": [\n        {\"Name\": \"CategoryHttpLibrary\"},\n        {\"Name\": \"SignalNonBrowserUserAgent\"}\n      ]\n    }\n  },\n  \"OverrideAction\": {\"None\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"BotControl\"\n  }\n}\n```\n\n### Step 4: Create Custom Rules for API-Specific Protection\n\nBuild custom WAF rules for API-specific security requirements.\n\n```bash\n# Block requests without required API key header\n{\n  \"Name\": \"RequireAPIKey\",\n  \"Priority\": 7,\n  \"Statement\": {\n    \"NotStatement\": {\n      \"Statement\": {\n        \"ByteMatchStatement\": {\n          \"FieldToMatch\": {\n            \"SingleHeader\": {\"Name\": \"x-api-key\"}\n          },\n          \"PositionalConstraint\": \"EXACTLY\",\n          \"SearchString\": \"\",\n          \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"NONE\"}]\n        }\n      }\n    }\n  },\n  \"Action\": {\"Block\": {\"CustomResponse\": {\"ResponseCode\": 403}}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"RequireAPIKey\"\n  }\n}\n\n# Geo-restrict to allowed countries\n{\n  \"Name\": \"GeoRestriction\",\n  \"Priority\": 8,\n  \"Statement\": {\n    \"NotStatement\": {\n      \"Statement\": {\n        \"GeoMatchStatement\": {\n          \"CountryCodes\": [\"US\", \"CA\", \"GB\", \"DE\", \"FR\", \"AU\"]\n        }\n      }\n    }\n  },\n  \"Action\": {\"Block\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"GeoRestriction\"\n  }\n}\n\n# Block oversized request bodies (prevent payload attacks)\n{\n  \"Name\": \"MaxBodySize\",\n  \"Priority\": 9,\n  \"Statement\": {\n    \"SizeConstraintStatement\": {\n      \"FieldToMatch\": {\"Body\": {\"OversizeHandling\": \"MATCH\"}},\n      \"ComparisonOperator\": \"GT\",\n      \"Size\": 10240,\n      \"TextTransformations\": [{\"Priority\": 0, \"Type\": \"NONE\"}]\n    }\n  },\n  \"Action\": {\"Block\": {}},\n  \"VisibilityConfig\": {\n    \"SampledRequestsEnabled\": true,\n    \"CloudWatchMetricsEnabled\": true,\n    \"MetricName\": \"MaxBodySize\"\n  }\n}\n```\n\n### Step 5: Associate WAF with API Gateway and Enable Logging\n\nAttach the Web ACL to the API Gateway stage and configure comprehensive logging.\n\n```bash\n# Associate Web ACL with API Gateway\naws wafv2 associate-web-acl \\\n  --web-acl-arn $WEB_ACL_ARN \\\n  --resource-arn arn:aws:apigateway:us-east-1::\u002Frestapis\u002FAPI_ID\u002Fstages\u002Fprod\n\n# Enable WAF logging to S3 via Kinesis Firehose\naws wafv2 put-logging-configuration \\\n  --logging-configuration '{\n    \"ResourceArn\": \"'$WEB_ACL_ARN'\",\n    \"LogDestinationConfigs\": [\n      \"arn:aws:firehose:us-east-1:ACCOUNT:deliverystream\u002Faws-waf-logs-api-gateway\"\n    ],\n    \"RedactedFields\": [\n      {\"SingleHeader\": {\"Name\": \"authorization\"}},\n      {\"SingleHeader\": {\"Name\": \"cookie\"}}\n    ]\n  }'\n\n# Verify association\naws wafv2 get-web-acl-for-resource \\\n  --resource-arn arn:aws:apigateway:us-east-1::\u002Frestapis\u002FAPI_ID\u002Fstages\u002Fprod\n```\n\n### Step 6: Monitor WAF Metrics and Tune Rules\n\nMonitor WAF effectiveness and tune rules to reduce false positives.\n\n```bash\n# Get WAF metrics from CloudWatch\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FWAFV2 \\\n  --metric-name BlockedRequests \\\n  --dimensions Name=WebACL,Value=api-gateway-waf Name=Rule,Value=ALL \\\n  --start-time 2026-02-22T00:00:00Z \\\n  --end-time 2026-02-23T00:00:00Z \\\n  --period 3600 \\\n  --statistics Sum\n\n# Get sampled requests for a specific rule\naws wafv2 get-sampled-requests \\\n  --web-acl-arn $WEB_ACL_ARN \\\n  --rule-metric-name RateLimitPerIP \\\n  --scope REGIONAL \\\n  --time-window '{\"StartTime\":\"2026-02-22T00:00:00Z\",\"EndTime\":\"2026-02-23T00:00:00Z\"}' \\\n  --max-items 50\n\n# Check rate-limited IPs\naws wafv2 get-rate-based-statement-managed-keys \\\n  --web-acl-name api-gateway-waf \\\n  --scope REGIONAL \\\n  --web-acl-id WEB_ACL_ID \\\n  --rule-name RateLimitPerIP\n\n# Create CloudWatch alarm for high block rate\naws cloudwatch put-metric-alarm \\\n  --alarm-name waf-high-block-rate \\\n  --namespace AWS\u002FWAFV2 \\\n  --metric-name BlockedRequests \\\n  --dimensions Name=WebACL,Value=api-gateway-waf Name=Rule,Value=ALL \\\n  --statistic Sum --period 300 --threshold 1000 \\\n  --comparison-operator GreaterThanThreshold \\\n  --evaluation-periods 2 \\\n  --alarm-actions arn:aws:sns:us-east-1:ACCOUNT:security-alerts\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Web ACL | AWS WAF access control list that defines the collection of rules and their actions (allow, block, count) applied to associated resources |\n| Managed Rule Group | Pre-configured set of WAF rules maintained by AWS or third-party vendors for common attack patterns like OWASP Top 10 |\n| Rate-Based Rule | WAF rule that tracks request rates per IP address and blocks traffic exceeding a defined threshold within a 5-minute window |\n| Bot Control | AWS WAF managed rule group that identifies and manages automated traffic including scrapers, crawlers, and attack bots |\n| IP Reputation List | AWS-maintained list of IP addresses associated with malicious activity including botnets, scanners, and known attackers |\n| Custom Response | WAF capability to return specific HTTP status codes and custom response bodies when blocking requests |\n\n## Tools & Systems\n\n- **AWS WAF**: Web application firewall service for protecting API Gateway, ALB, CloudFront, and AppSync endpoints\n- **AWS Managed Rules**: Pre-built rule groups for common attack patterns maintained by AWS security team\n- **AWS Firewall Manager**: Central management of WAF policies across multiple accounts in AWS Organizations\n- **Kinesis Firehose**: Streaming delivery service for WAF logs to S3, Elasticsearch, or third-party analytics\n- **CloudWatch**: Monitoring service for WAF metrics including allowed, blocked, and counted requests\n\n## Common Scenarios\n\n### Scenario: Protecting a Public API from Credential Stuffing and Bot Attacks\n\n**Context**: A public REST API experiences thousands of authentication attempts per hour from automated bots attempting credential stuffing against the `\u002Fapi\u002Fauth\u002Flogin` endpoint.\n\n**Approach**:\n1. Create a Web ACL with AWS Managed Rules Common Rule Set for baseline protection\n2. Add a rate-based rule limiting the login endpoint to 100 requests per IP per 5 minutes\n3. Enable Bot Control managed rules to detect and block automated traffic\n4. Add IP Reputation List to block known malicious IPs proactively\n5. Create a custom rule blocking requests without proper User-Agent headers\n6. Enable WAF logging and create CloudWatch alarms for high block rates\n7. Review sampled blocked requests weekly to tune rules and reduce false positives\n\n**Pitfalls**: Rate limiting by IP can block legitimate users behind shared NAT gateways or corporate proxies. Consider using API key or authenticated session-based rate limiting for more granular control. Bot Control rules in COMMON inspection level may block legitimate API clients; start in Count mode and review before switching to Block.\n\n## Output Format\n\n```\nAWS WAF API Gateway Security Report\n======================================\nWeb ACL: api-gateway-waf\nAssociated Resource: API Gateway - production-api (prod stage)\nReport Period: 2026-02-16 to 2026-02-23\n\nTRAFFIC SUMMARY:\n  Total requests:              2,450,000\n  Allowed requests:            2,380,000 (97.1%)\n  Blocked requests:               70,000 (2.9%)\n\nBLOCKS BY RULE:\n  RateLimitPerIP:              28,000 (40%)\n  AWSManagedRulesCommonRuleSet: 18,000 (25.7%)\n  BotControl:                  12,000 (17.1%)\n  SQLiRuleSet:                  5,000 (7.1%)\n  IPReputationList:             4,000 (5.7%)\n  RateLimitLogin:               2,000 (2.9%)\n  GeoRestriction:               1,000 (1.4%)\n\nTOP BLOCKED IPs:\n  185.x.x.x:     8,400 requests (rate limited)\n  45.x.x.x:      5,200 requests (bot detected)\n  198.x.x.x:     3,100 requests (SQLi attempts)\n\nATTACK TYPES BLOCKED:\n  Credential stuffing (login endpoint):  2,000\n  SQL injection attempts:                5,000\n  Cross-site scripting:                  3,200\n  Known bad bot traffic:                12,000\n  Rate limit violations:               28,000\n\nWAF RULE HEALTH:\n  Rules in Block mode:    8 \u002F 10\n  Rules in Count mode:    2 \u002F 10 (under evaluation)\n  False positive rate:    \u003C 0.1%\n```\n",{"name":5,"tags":56,"author":58,"domain":49,"license":16,"version":59,"nist_csf":60,"subdomain":37,"description":65,"mitre_attack":66},[37,36,35,41,57,38,43],"rate-limiting","mahipal","1.0",[61,62,63,64],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Secures AWS API Gateway endpoints with AWS WAF by configuring managed rule groups for OWASP Top 10 protection, custom rate-limiting rules, bot control, IP reputation filtering, and WAF metric monitoring. Use when deploying API Gateway endpoints that need protection against common web attacks, or when implementing rate limiting and throttling to prevent API abuse and DDoS.\n",[67,68,69,70,71],"T1078.004","T1530","T1537","T1580","T0816","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fsecuring-api-gateway-with-aws-waf",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":83,"prompt":93,"zipAvailable":94},[84,87,90],{"tool":85,"command":86},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-api-gateway-with-aws-waf",{"tool":88,"command":89},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-api-gateway-with-aws-waf",{"tool":91,"command":92},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-api-gateway-with-aws-waf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-api-gateway-with-aws-waf\u002FSKILL.md",true,[96,101,105,111],{"path":97,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-api-gateway-with-aws-waf\u002FLICENSE",{"path":102,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":103,"sourceHtmlUrl":104},"LICENSE.txt",143,"https:\u002F\u002Fgithub.com\u002Fnoirelab\u002Flinux-setup\u002Fblob\u002Fmain\u002Fconfigs\u002Fcommon\u002Fopencode\u002Fskills\u002Fseo-content\u002FLICENSE.txt",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fapi-reference.md","REFERENCE","参考文档",2315,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-api-gateway-with-aws-waf\u002Freferences\u002Fapi-reference.md",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fagent.py","SCRIPT","脚本",7214,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-api-gateway-with-aws-waf\u002Fscripts\u002Fagent.py",[118,148,177,208,239,270],{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":130,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[126,127],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[131,132,133,134,50,49,135,136,47,137,138,139,140,141,142,143,144,145,146,147],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":149,"name":150,"nameZh":151,"description":152,"descriptionZh":153,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":160,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[156,157],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":158,"categoryName":159,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[161,144,162,163,50,164,49,47,165,166,167,168,169,170,171,172,173,174,175,176],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":178,"name":179,"nameZh":180,"description":181,"descriptionZh":182,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":183,"categories":184,"keywords":191,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[185,188],{"categoryNo":186,"categoryName":187,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":189,"categoryName":190,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[171,192,193,194,195,49,196,197,165,198,199,200,201,202,203,42,204,205,206,207],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":209,"name":210,"nameZh":211,"description":212,"descriptionZh":213,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":214,"categories":215,"keywords":220,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[216,217],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":218,"categoryName":219,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[221,222,223,49,224,225,226,227,228,229,230,231,232,233,234,235,168,236,237,238],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":240,"name":241,"nameZh":242,"description":243,"descriptionZh":244,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":245,"categories":246,"keywords":251,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[247,250],{"categoryNo":248,"categoryName":249,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[252,253,254,49,255,256,257,258,259,260,261,262,263,264,265,266,32,267,268,269],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","prioritization","ssvc","decision-tree",{"skillNo":271,"name":272,"nameZh":273,"description":274,"descriptionZh":275,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":276,"categories":277,"keywords":282,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[278,279],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":280,"categoryName":281,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[50,283,49,284,285,286,287,288,289,290,291,42,292,204,293,294,295,296,297,298],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]