AGENT SKILL

eventbridge-bus-policy-auditor

Audits AWS EventBridge event buses for public event-injection exposure (Principal:* or cross-account with events:PutEvents and no strong condition), missing dead-letter queues on rule targets, absent customer-managed KMS encryption, and archive/enrichment gaps. Emits a deterministic verdict (PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK) per bus with enumerated findings and specific remediation. Use when reviewing EventBridge bus policies, checking for public event injection, validating DLQ coverage on rules, auditing KMS encryption posture, or hardening event-bus security before production deployment.

License 许可
Apache-2.0
最近更新
2026-09-24
Stars
★ 4
Forks
0

01 前言 Front Matter

name
eventbridge-bus-policy-auditor
license
Apache-2.0
metadata
{ "tags": "eventbridge, security, event-bus, app-integration, dlq, encryption, audit", "phase": "2", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "DevTools", "version": "0.1.0", "keywords": "EventBridge, event bus, bus policy, events:PutEvents, event injection, cross-account, wildcard permissions, dead-letter queue, DLQ, KMS encryption, customer-managed key, KmsKeyIdentifier, archive, schema discovery, event replay, aws:PrincipalOrgID, rule targets, DeadLetterConfig, PutPermission, Principal:\"*\"", "complexity": "high", "entry_point": "false", "when_to_use": "Reviewing an EventBridge event bus policy before production deployment, checking for public or cross-account event injection, validating DLQ coverage on rule targets, auditing KMS encryption posture, inspecting archive or schema-discovery configuration, or hardening event-bus security across an account.", "requires_llm": "true", "verdict_shape": "PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK", "invocation_schema": "Input: either (a) an event bus policy JSON document, optionally paired with bus metadata (KmsKeyIdentifier), rule/target configs, and archive status, OR (b) a bus name/ARN for live-account audit. Output: deterministic BUS/VERDICT/REASON/FINDINGS/REMEDIATION block per bus, where VERDICT is one of PUBLIC_BUS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP, OK.", "supports_pipeline": "true", "activation_triggers": "audit this event bridge bus, is my event bus public, check eventbridge bus policy, event injection risk, missing DLQ on rule, is event bridge encrypted, event bus cross-account, Principal star eventbridge, dead-letter queue check, event bridge archive gap" }
description
Audits AWS EventBridge event buses for public event-injection exposure (Principal:* or cross-account with events:PutEvents and no strong condition), missing dead-letter queues on rule targets, absent customer-managed KMS encryption, and archive/enrichment gaps. Emits a deterministic verdict (PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK) per bus with enumerated findings and specific remediation. Use when reviewing EventBridge bus policies, checking for public event injection, validating DLQ coverage on rules, auditing KMS encryption posture, or hardening event-bus security before production deployment.
compatibility
Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline policy-document classification. Live-account audits use aws events describe-event-bus, aws events list-rules, aws events list-targets-by-rule, aws events list-archives, and aws events describe-rule (AWS CLI v2, SSO or key-based credentials).

02 资源文件 19

03 SKILL.md 正文

EventBridge Bus Policy Auditor

Mindset

One-line takeaway: the verdict is always the worst finding across all dimensions, and events:PutEvents is the EventBridge analogue of kms:Decrypt — one permission grants injection access to every rule and downstream target on the bus.

An EventBridge event bus is the ingestion gate for event-driven automation. Three properties make it uniquely dangerous when misconfigured:

  • events:PutEvents is an event-injection vector: one permission lets an attacker craft events that match rule patterns and trigger Lambda, Step Functions, SQS, ECS, and API-destination targets. The blast radius extends through every rule on the bus.
  • Missing DeadLetterConfig is a silent data-loss vector: failed invocations exhaust retries (6 hours for Lambda/SQS, 24 hours for API destinations) then disappear permanently — no DLQ, no trace.
  • The bus policy is ingestion-gate only; rule event-patterns are the routing-gate. Both planes must be audited. A locked-down bus policy with a permissive event pattern still routes any ingested event.

Quick reference — verdict thresholds

Condition Verdict Step
Principal: "*" + events:PutEvents/events:*/* + no/weak condition PUBLIC_BUS Step 5a
Cross-account + events:PutEvents + no/weak condition PUBLIC_BUS Step 5b
Principal: "*" + events:PutRule/events:PutPermission + no/weak condition PUBLIC_BUS Step 5c
Any rule target missing DeadLetterConfig NO_DLQ Step 6
KmsKeyIdentifier absent on custom bus NO_ENCRYPTION Step 7
No archive configured on the bus CONFIG_GAP Step 8
Scoped principals + STRONG condition + DLQ + CMK + archive OK Step 9
Principal: "*" + PutEvents + STRONG condition (aws:PrincipalOrgID, aws:SourceAccount) OK on policy dimension (condition-scoped, not public) Step 5d

Severity ordering for aggregation: **PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION

CONFIG_GAP > OK**.

Pre-flight: bus metadata gate

Before evaluating the policy, classify the bus itself. Several attributes short-circuit the audit.

Attribute Value Effect
Name default Default event bus. Receives all AWS service events (CloudWatch, EC2, GuardDuty, Security Hub) by default. Restricting its policy may break service event delivery. Do NOT flag same-account service-principal statements on the default bus. Still audit DLQ, encryption, and archive dimensions.
Name (custom) Proceed with full audit. Custom buses are where restrictive policies apply.
KmsKeyIdentifier (absent) Bus uses an AWS-owned key (not even AWS-managed — invisible to your KMS console, no rotation control, no CloudTrail data-event logging). This is the NO_ENCRYPTION finding (Step 7).
KmsKeyIdentifier arn:aws:kms:... Customer-managed key configured. Encryption dimension passes.

Multi-bus / account-wide sweep note (pagination): aws events list-event-buses returns at most 100 per page. aws events list-rules returns at most 100 per page per bus. aws events list-targets-by-rule returns at most 50 per page. All three silently truncate — always drain NextToken to completion. A bus with 120 rules silently drops 20 from the first page.

If the bus policy JSON is malformed (invalid JSON, missing Statement, missing Principal or Action), output:

BUS: <bus-name>
VERDICT: ERROR
REASON: Bus policy document is not valid JSON or is missing required fields — cannot classify.
REMEDIATION: Retrieve the canonical policy with `aws events describe-event-bus --name <bus> --output json` and re-audit.

Process — Classification logic (apply in order, aggregate worst)

Step 0: Expert knowledge — non-obvious EventBridge behaviors

Step 0 expert-knowledge bullets (PutEvents blast radius, ingestion vs routing gate, invalid condition keys, same-account implicit access, service principals, DLQ per-target, retry windows, KmsKeyIdentifier, replay semantics, 8 KiB policy limit, aws:PrincipalOrgID, predictable ARNs, PutEvents volume, API-destination credential expiry) moved verbatim to references/advanced-patterns.md. Load on demand a classification depends on a non-obvious behaviour.

Step 1: Bus type classification

If the bus is the default bus (Name: default):

  • Do NOT flag same-account Principal: {"Service": "..."} statements — AWS services must publish to the default bus for built-in integrations.
  • Still evaluate DLQ, encryption, and archive dimensions normally.
  • Flag Principal: {"AWS": "*"} + PutEvents on the default bus as PUBLIC_BUS — anyone can inject into the bus that receives all AWS service events, compounding the injection surface.

If the bus is a custom bus, proceed with full policy audit.

Step 2: Principal scope classification

For each Effect: Allow statement in the bus policy:

  • WILDCARD_PRINCIPAL — Principal is "*", {"AWS": "*"}, or any construct resolving to all AWS principals.

  • CROSS_ACCOUNT — Principal includes an ARN whose 12-digit account differs from the bus's owning account.

  • SERVICE_PRINCIPAL — Principal is {"Service": "<service-id>"}. This is NORMAL for AWS service-to-bus integration. Do NOT flag as public unless the service principal is paired with dangerous admin actions (PutRule, PutPermission) without conditions.

  • SAME_ACCOUNT — All principals share the bus's owning account. This includes root (arn:aws:iam::ACCOUNT:root) and same-account roles/users.

A statement with BOTH same-account and cross-account/wildcard principals is classified by the widest scope.

Step 3: Action danger classification

Danger level Actions Why
INJECT events:PutEvents, events:*, * Event injection — can trigger every rule and downstream target. Blast-radius multiplier.
ADMIN events:PutRule, events:DeleteRule, events:PutTargets, events:RemoveTargets, events:PutPermission, events:RemovePermission, events:DisableRule, events:EnableRule, events:UpdateArchive Can modify bus configuration, inject new rules, revoke existing rules, or change the policy.
READ events:List*, events:Describe*, events:TestEventPattern Metadata disclosure — enumerates rules, targets, and bus configuration.

NotAction in an Allow is an inverse wildcard — grants every EventBridge action EXCEPT the listed ones. Treat as INJECT + ADMIN (worst case).

Step 4: Condition strength evaluation

STRONG conditions (policy dimension passes — condition-scoped, not public):

  • aws:PrincipalOrgID with StringEquals — scopes to all accounts in the named Organization. The strongest multi-account condition.
  • aws:SourceAccount with StringEquals — request must originate from the named account.
  • aws:SourceArn with StringEquals/StringLike — request must originate from the named resource.
  • aws:PrincipalAccount — equivalent to SourceAccount.

WEAK conditions (do NOT pass — treat as no condition, still PUBLIC_BUS):

  • aws:SourceIp — IP-based restrictions are bypassable by callers who control their egress (NAT gateway, proxy, VPN). Quantitative prefix-length threshold: a CIDR with /0 suffix (0.0.0.0/0, ::/0) covers the entire internet — equivalent to no condition. /8 or broader (16M+ addresses) is effectively unrestricted. Only /28 or narrower (16 or fewer addresses) provides operationally meaningful scoping. Between /8 and /28, evaluate whether the CIDR covers known NAT, proxy, or cloud-egress ranges.
  • aws:Referer, aws:UserAgent — trivially forgeable.
  • events:source, events:detail-type — NOT valid condition keys; silently ignored by IAM evaluation.

Step 5: Policy severity matrix — PUBLIC_BUS determination

Evaluate each Allow statement by combining principal scope (Step 2), action danger (Step 3), and condition strength (Step 4):

Rule Principal Action Condition → PUBLIC_BUS?
5a WILDCARD INJECT None/weak Yes — PUBLIC_BUS (anyone can inject events)
5b CROSS_ACCOUNT INJECT None/weak Yes — PUBLIC_BUS (external account can inject)
5c WILDCARD or CROSS ADMIN None/weak Yes — PUBLIC_BUS (external principal can inject/modify rules)
5d WILDCARD or CROSS INJECT/ADMIN STRONG No — OK on policy dimension (condition-scoped, not public)
5e WILDCARD or CROSS READ Any No — metadata-only exposure (note as low-severity finding)
5f SERVICE_PRINCIPAL INJECT None No — normal service integration (Step 1)
5g SAME_ACCOUNT Any Any No — implicit access; IAM is the second gate

CRITICAL CLASSIFICATION RULE — Step 5d: A Principal: "*" or cross-account grant with events:PutEvents and a STRONG condition (aws:PrincipalOrgID, aws:SourceAccount, aws:SourceArn) is NOT PUBLIC_BUS. The condition scopes access to a known organization or account. Classify the policy dimension as OK and note the condition-restricted access in FINDINGS for verification. Do NOT conflate "cross-account" with "public" — a condition-restricted cross-account grant is a controlled delegation, not an open injection vector. This is the single most common classification error. | 5e | WILDCARD or CROSS | READ | Any | No — metadata-only exposure (note as low-severity finding) | | 5f | SERVICE_PRINCIPAL | INJECT | None | No — normal service integration (Step 1) | | 5g | SAME_ACCOUNT | Any | Any | No — implicit access; IAM is the second gate |

If any statement matches 5a/5b/5c, the PUBLIC_BUS verdict is emitted for the policy dimension.

Special case — the account-root statement: A statement with Principal: {"AWS": "arn:aws:iam::ACCOUNT:root"} + events:* is the default root-delegation pattern. It delegates bus management to the account's IAM policies. This is NORMAL — do NOT flag it. Same-account PutEvents does not require the bus policy (implicit root access).

Step 6: Dead-letter queue evaluation

For each rule on the bus, enumerate ALL targets via list-targets-by-rule. For each target, check DeadLetterConfig:

  • DeadLetterConfig absent on ANY target → NO_DLQ finding for that target. Failed invocations exhaust retries (6h Lambda/SQS/SNS/ECS/SFN, up to 24h API destinations) then are permanently lost — no DLQ, no trace. This is a silent data-loss vector.

  • DeadLetterConfig present (SQS ARN) → target passes the DLQ check. Verify the SQS queue exists and has a retention period long enough for operational response (>= 4 days recommended).

A bus with multiple rules where ALL targets have DLQs passes this step. A single target without DLQ is enough for the NO_DLQ finding.

Quota note: A rule can have up to 5 targets. Each target needs its own DLQ ARN — sharing one SQS queue across targets is acceptable but complicates triage (all failures land in one queue).

Step 7: KMS encryption evaluation

Check KmsKeyIdentifier on the bus metadata:

  • KmsKeyIdentifier absent → NO_ENCRYPTION finding. The bus uses an AWS-owned key — invisible in your KMS console, no rotation control, no key policy control, no CloudTrail data-event logging on decrypt. A customer-managed key gives rotation control, key-policy control, and decrypt-audit capability.

  • KmsKeyIdentifier set to a CMK ARN → encryption dimension passes. Verify the referenced CMK exists, is enabled, and has rotation enabled (cross-reference to kms-key-policy-auditor for the key policy audit).

Step 8: Archive and enrichment evaluation

Check archive and schema-discovery status:

  • No archive configured → CONFIG_GAP finding. Without an archive, there is no event-replay capability for incident recovery. Archives capture events matching a pattern for a configurable retention period. Recommend CreateArchive with a broad event pattern.

  • Archive present → passes. Note the retention period and event pattern coverage (a narrow pattern may miss events you need to replay).

  • Schema discovery disabled → note as a low-priority CONFIG_GAP sub-finding. Without schema discovery, you lose automated schema inference and code-generation benefits. Enable via UpdateEventBus with schema-discovery on.

Step 9: Aggregation — worst finding wins

The final verdict is the maximum severity across all dimensions, where PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION > CONFIG_GAP > OK:

verdict = max(policy_finding, dlq_finding, encryption_finding, archive_finding)

If no findings across all dimensions, the verdict is OK.

Output format (per bus)

BUS: <bus-name or ARN>
VERDICT: PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and its step>
FINDINGS:
  - [PUBLIC_BUS] <finding description (Step Na)>
  - [NO_DLQ] <finding description (Step N)>
  - [OK] <dimension that passed>
REMEDIATION: <specific action per finding, or "None required" if OK>

Worked example — public bus with missing DLQ

BUS: custom-bus-app-events
VERDICT: PUBLIC_BUS
REASON: Statement "OpenIngest" grants events:PutEvents to Principal "*"
with no restrictive condition — any AWS account holder can inject events
that trigger all rules on the bus (Step 5a). Rule "alert-rule" target
"lambda-handler" is also missing a dead-letter queue.
FINDINGS:
  - [PUBLIC_BUS] Principal "*" + events:PutEvents + no condition (Step 5a)
  - [NO_DLQ] Rule "alert-rule" target "lambda-handler" has no DeadLetterConfig (Step 6)
  - [NO_ENCRYPTION] KmsKeyIdentifier absent — bus uses AWS-owned key (Step 7)
  - [CONFIG_GAP] No archive configured — no replay capability (Step 8)
REMEDIATION:
  1. PUBLIC_BUS — Replace Principal "*" with specific account/role ARNs.
     Add aws:PrincipalOrgID or aws:SourceAccount condition to scope access.
  2. NO_DLQ — Create an SQS DLQ and attach to each target:
     aws events put-targets --rule alert-rule --event-bus-name custom-bus-app-events
       --targets '[{"Id":"lambda-handler","Arn":"...","DeadLetterConfig":{"Arn":"arn:aws:sqs:...:dlq"}}]'
  3. NO_ENCRYPTION — Associate a customer-managed KMS key:
     aws events update-event-bus --name custom-bus-app-events
       --kms-key-identifier arn:aws:kms:us-east-1:111111111111:key/cmk-id
  4. CONFIG_GAP — Create an archive:
     aws events create-archive --archive-name app-events-archive
       --event-source-name custom-bus-app-events --retention 30

Anti-Patterns — NEVER

  • NEVER classify Principal: {"AWS": "arn:aws:iam::ACCOUNT:root"} + events:* as a vulnerability. This is the default root-delegation statement. Same-account access does not require the bus policy — the root has implicit access. Flagging it as WILDCARD is a false positive.

  • NEVER flag Principal: {"Service": "guardduty.amazonaws.com"} or any AWS service principal with events:PutEvents as public exposure on the default bus. AWS services must publish to the default bus for built-in integrations. This is normal service-to-bus delivery.

  • NEVER treat events:source or detail-type as IAM condition keys in a bus policy. They are event-body fields — a bus policy condition using them is a silent no-op and provides zero restriction. Only aws:SourceAccount, aws:SourceArn, aws:PrincipalAccount, and aws:PrincipalOrgID are valid.

  • NEVER classify a Principal: "*" + events:PutEvents grant with a STRONG condition (aws:PrincipalOrgID, aws:SourceAccount) as PUBLIC_BUS. The condition narrows access to a known org/account. Classify as OK on the policy dimension — note the condition-restricted access in FINDINGS for verification.

  • NEVER treat aws:SourceIp with 0.0.0.0/0 as a real condition. This CIDR is the entire internet and provides zero restriction. Treat the statement as if the condition is absent — PUBLIC_BUS.

  • NEVER assume one DLQ per rule is sufficient. DeadLetterConfig is per-TARGET — a rule with 5 targets needs 5 DLQ ARNs. Missing DLQ on any single target is a silent data-loss vector for that target.

  • NEVER assume the bus policy is the complete access picture for cross-account. Cross-account PutEvents requires BOTH the bus policy AND the caller's IAM to allow it (intersection). But always flag the bus-policy grant — the resource owner controls this gate.

  • NEVER recommend restricting the default bus policy without explaining that it may break AWS service event delivery. CloudWatch Alarms, GuardDuty, Security Hub, EC2, and dozens of other services publish to the default bus. Use custom buses for restrictive policies.

  • NEVER overlook a rule with zero targets. A rule with no targets consumes event-matching capacity (300 rules per bus quota) but triggers nothing — it is dead configuration. Flag as CONFIG_GAP.

  • NEVER assume archive and schema discovery are enabled by default. Archives require explicit CreateArchive. Schema discovery requires explicit enablement. Both are absent on a freshly created bus.

  • NEVER set archive retention > 90 days without a cost justification. Archive events are billed per-event-month — a high-volume bus (1M events/day) at 90 days costs ~9x more than the recommended 7-30 day operational window. Use longer retention only for compliance requirements and budget-alert the archive.

  • NEVER use put-permission with a duplicate --statement-id. The statement-id uniquely identifies the permission entry; reusing an existing id silently overwrites the prior statement. Always use unique, descriptive statement-ids (e.g., CrossAccountAppPublisher, not Allow1).

  • NEVER attempt to modify the default bus policy to remediate cross-account access without first verifying which AWS service integrations depend on it. Breaking service event delivery is an active outage.

  • NEVER assume Resource: "*" in a bus policy is broader than Resource: <bus-arn>. The policy is attached to the bus — both are functionally identical. Evaluate Principal + Action + Condition only.

Pre-flight safety checks (run before any remediation CLI)

  • MANDATORY CONFIRMATION GATE. Before any state-changing operation (PutPermission, RemovePermission, PutTargets, UpdateEventBus, PutRule, DeleteRule), the auditor MUST emit: CONFIRM: About to <action> on bus <name> in account <account>. This affects <consequence>. Proceed? (yes/no) Do NOT execute the CLI command until the operator confirms.

  • Back up the current bus policy before any modification: aws events describe-event-bus --name <bus> --profile <p> --output json > /tmp/<bus>-policy-backup-$(date +%s).json Bus policies have no version history — put-permission replaces the entire policy atomically. The backup is the only rollback path.

  • Before removing a cross-account principal from the bus policy, verify the external account's workload is not actively publishing events. Check CloudTrail for events:PutEvents from the external account in the last 7 days. Removing access without coordination causes an immediate event-delivery outage for the external publisher.

  • Before associating a KMS key (UpdateEventBus --kms-key-identifier), verify the key policy permits events.amazonaws.com as a service principal with kms:Decrypt and kms:GenerateDataKey*. A key that does not allow EventBridge will cause PutEvents to fail silently.

  • Prefer additive changes (add a Deny statement, add a condition) over destructive changes (remove a statement) — additive changes are reversible.

  • For PUBLIC_BUS findings (wildcard/cross-account PutEvents), treat as incident-response. Audit CloudTrail for events:PutEvents from unexpected principals during the exposure window. Identify rules that could have been triggered by injected events and check downstream targets for anomalous invocations.

Remediation guidance

Remediation CLI per verdict (PUBLIC_BUS put/remove-permission, NO_DLQ create-queue + put-targets + alarm, NO_ENCRYPTION update-event-bus, CONFIG_GAP create-archive + create-registry, OK) moved verbatim to references/diagnostic-commands.md. Load on demand emitting the remediation commands for a finding.

Recent AWS features (2024-2026)

Recent AWS features (global endpoints GA, Scheduler, Schema Registry, cross-account enhancements) moved verbatim to references/advanced-patterns.md. Load on demand checking whether a newer AWS feature changes the audit.

References (load on demand)

Domain

AWS CloudOps / EventBridge Security & App Integration.

AWS documentation

04 同仓库更多 Skills

jhkchan
jhkchan/aws-agent-skills

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 / method / 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 / 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 / EKS / 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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 / 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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/API Gateway/CloudFront, or configuring CAPTCHA/Challenge 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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/bypass 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.

★ 4
jhkchan
jhkchan/aws-agent-skills

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.

★ 4