[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A89HS2GV3TKMST1SVQ6E60":3,"skill-same:01M7A89HS2GV3TKMST1SVQ6E60":140},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7A89HS2GV3TKMST1SVQ6E60","eventbridge-bus-policy-auditor",null,"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\u002Fenrichment 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.","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\u002Feventbridge-bus-policy-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: eventbridge-bus-policy-auditor\ndescription: 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\u002Fenrichment 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.\nlicense: Apache-2.0\ncompatibility: 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).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: DevTools\n  verdict_shape: PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK\n  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.\n  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\n  invocation_schema: 'Input: either (a) an event bus policy JSON document, optionally paired with bus metadata (KmsKeyIdentifier), rule\u002Ftarget configs, and archive status, OR (b) a bus name\u002FARN for live-account audit. Output: deterministic BUS\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per bus, where VERDICT is one of PUBLIC_BUS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP, OK.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  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:\"*\"\n  tags: eventbridge, security, event-bus, app-integration, dlq, encryption, audit\n---\n\n# EventBridge Bus Policy Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across\nall dimensions, and `events:PutEvents` is the EventBridge analogue of\n`kms:Decrypt` — one permission grants injection access to every rule and\ndownstream target on the bus.\n\nAn EventBridge event bus is the ingestion gate for event-driven\nautomation. Three properties make it uniquely dangerous when\nmisconfigured:\n\n- `events:PutEvents` is an **event-injection vector**: one permission\n  lets an attacker craft events that match rule patterns and trigger\n  Lambda, Step Functions, SQS, ECS, and API-destination targets. The\n  blast radius extends through every rule on the bus.\n- Missing `DeadLetterConfig` is a **silent data-loss vector**: failed\n  invocations exhaust retries (6 hours for Lambda\u002FSQS, 24 hours for API\n  destinations) then disappear permanently — no DLQ, no trace.\n- The bus policy is **ingestion-gate only**; rule event-patterns are\n  the **routing-gate**. Both planes must be audited. A locked-down bus\n  policy with a permissive event pattern still routes any ingested event.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `Principal: \"*\"` + `events:PutEvents`\u002F`events:*`\u002F`*` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5a |\n| Cross-account + `events:PutEvents` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5b |\n| `Principal: \"*\"` + `events:PutRule`\u002F`events:PutPermission` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5c |\n| Any rule target missing `DeadLetterConfig` | **NO_DLQ** | Step 6 |\n| `KmsKeyIdentifier` absent on custom bus | **NO_ENCRYPTION** | Step 7 |\n| No archive configured on the bus | **CONFIG_GAP** | Step 8 |\n| Scoped principals + STRONG condition + DLQ + CMK + archive | **OK** | Step 9 |\n| `Principal: \"*\"` + PutEvents + STRONG condition (`aws:PrincipalOrgID`, `aws:SourceAccount`) | OK on policy dimension (condition-scoped, not public) | Step 5d |\n\nSeverity ordering for aggregation: **PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION\n> CONFIG_GAP > OK**.\n\n## Pre-flight: bus metadata gate\n\nBefore evaluating the policy, classify the bus itself. Several attributes\nshort-circuit the audit.\n\n| Attribute | Value | Effect |\n|---|---|---|\n| `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. |\n| `Name` | (custom) | Proceed with full audit. Custom buses are where restrictive policies apply. |\n| `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). |\n| `KmsKeyIdentifier` | `arn:aws:kms:...` | Customer-managed key configured. Encryption dimension passes. |\n\n**Multi-bus \u002F account-wide sweep note (pagination):** `aws events\nlist-event-buses` returns at most 100 per page. `aws events list-rules`\nreturns at most 100 per page per bus. `aws events list-targets-by-rule`\nreturns at most 50 per page. All three silently truncate — always drain\n`NextToken` to completion. A bus with 120 rules silently drops 20 from\nthe first page.\n\n**If the bus policy JSON is malformed** (invalid JSON, missing\n`Statement`, missing `Principal` or `Action`), output:\n\n```text\nBUS: \u003Cbus-name>\nVERDICT: ERROR\nREASON: Bus policy document is not valid JSON or is missing required fields — cannot classify.\nREMEDIATION: Retrieve the canonical policy with `aws events describe-event-bus --name \u003Cbus> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious EventBridge behaviors\n\nStep 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\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand a classification depends on a non-obvious behaviour.\n\n### Step 1: Bus type classification\n\nIf the bus is the **default bus** (`Name: default`):\n- Do NOT flag same-account `Principal: {\"Service\": \"...\"}` statements —\n  AWS services must publish to the default bus for built-in integrations.\n- Still evaluate DLQ, encryption, and archive dimensions normally.\n- Flag `Principal: {\"AWS\": \"*\"}` + PutEvents on the default bus as\n  PUBLIC_BUS — anyone can inject into the bus that receives all AWS\n  service events, compounding the injection surface.\n\nIf the bus is a **custom bus**, proceed with full policy audit.\n\n### Step 2: Principal scope classification\n\nFor each `Effect: Allow` statement in the bus policy:\n\n- **WILDCARD_PRINCIPAL** — Principal is `\"*\"`, `{\"AWS\": \"*\"}`, or any\n  construct resolving to all AWS principals.\n\n- **CROSS_ACCOUNT** — Principal includes an ARN whose 12-digit account\n  differs from the bus's owning account.\n\n- **SERVICE_PRINCIPAL** — Principal is `{\"Service\": \"\u003Cservice-id>\"}`.\n  This is NORMAL for AWS service-to-bus integration. Do NOT flag as\n  public unless the service principal is paired with dangerous admin\n  actions (PutRule, PutPermission) without conditions.\n\n- **SAME_ACCOUNT** — All principals share the bus's owning account.\n  This includes root (`arn:aws:iam::ACCOUNT:root`) and same-account\n  roles\u002Fusers.\n\nA statement with BOTH same-account and cross-account\u002Fwildcard principals\nis classified by the **widest** scope.\n\n### Step 3: Action danger classification\n\n| Danger level | Actions | Why |\n|---|---|---|\n| **INJECT** | `events:PutEvents`, `events:*`, `*` | Event injection — can trigger every rule and downstream target. Blast-radius multiplier. |\n| **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. |\n| **READ** | `events:List*`, `events:Describe*`, `events:TestEventPattern` | Metadata disclosure — enumerates rules, targets, and bus configuration. |\n\n`NotAction` in an Allow is an inverse wildcard — grants every EventBridge\naction EXCEPT the listed ones. Treat as INJECT + ADMIN (worst case).\n\n### Step 4: Condition strength evaluation\n\n**STRONG conditions (policy dimension passes — condition-scoped, not public):**\n- `aws:PrincipalOrgID` with `StringEquals` — scopes to all accounts in\n  the named Organization. The strongest multi-account condition.\n- `aws:SourceAccount` with `StringEquals` — request must originate from\n  the named account.\n- `aws:SourceArn` with `StringEquals`\u002F`StringLike` — request must\n  originate from the named resource.\n- `aws:PrincipalAccount` — equivalent to SourceAccount.\n\n**WEAK conditions (do NOT pass — treat as no condition, still PUBLIC_BUS):**\n- `aws:SourceIp` — IP-based restrictions are bypassable by callers who\n  control their egress (NAT gateway, proxy, VPN). **Quantitative\n  prefix-length threshold:** a CIDR with `\u002F0` suffix (`0.0.0.0\u002F0`,\n  `::\u002F0`) covers the entire internet — equivalent to no condition. `\u002F8`\n  or broader (16M+ addresses) is effectively unrestricted. Only `\u002F28`\n  or narrower (16 or fewer addresses) provides operationally meaningful\n  scoping. Between `\u002F8` and `\u002F28`, evaluate whether the CIDR covers\n  known NAT, proxy, or cloud-egress ranges.\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable.\n- `events:source`, `events:detail-type` — NOT valid condition keys;\n  silently ignored by IAM evaluation.\n\n### Step 5: Policy severity matrix — PUBLIC_BUS determination\n\nEvaluate each Allow statement by combining principal scope (Step 2),\naction danger (Step 3), and condition strength (Step 4):\n\n| Rule | Principal | Action | Condition | → PUBLIC_BUS? |\n|---|---|---|---|---|\n| 5a | WILDCARD | INJECT | None\u002Fweak | **Yes — PUBLIC_BUS** (anyone can inject events) |\n| 5b | CROSS_ACCOUNT | INJECT | None\u002Fweak | **Yes — PUBLIC_BUS** (external account can inject) |\n| 5c | WILDCARD or CROSS | ADMIN | None\u002Fweak | **Yes — PUBLIC_BUS** (external principal can inject\u002Fmodify rules) |\n| 5d | WILDCARD or CROSS | INJECT\u002FADMIN | STRONG | **No — OK on policy dimension** (condition-scoped, not public) |\n| 5e | WILDCARD or CROSS | READ | Any | **No** — metadata-only exposure (note as low-severity finding) |\n| 5f | SERVICE_PRINCIPAL | INJECT | None | **No** — normal service integration (Step 1) |\n| 5g | SAME_ACCOUNT | Any | Any | **No** — implicit access; IAM is the second gate |\n\n**CRITICAL CLASSIFICATION RULE — Step 5d:** A `Principal: \"*\"` or\ncross-account grant with `events:PutEvents` and a STRONG condition\n(`aws:PrincipalOrgID`, `aws:SourceAccount`, `aws:SourceArn`) is\n**NOT PUBLIC_BUS**. The condition scopes access to a known organization\nor account. Classify the policy dimension as **OK** and note the\ncondition-restricted access in FINDINGS for verification. Do NOT\nconflate \"cross-account\" with \"public\" — a condition-restricted\ncross-account grant is a controlled delegation, not an open injection\nvector. This is the single most common classification error.\n| 5e | WILDCARD or CROSS | READ | Any | **No** — metadata-only exposure (note as low-severity finding) |\n| 5f | SERVICE_PRINCIPAL | INJECT | None | **No** — normal service integration (Step 1) |\n| 5g | SAME_ACCOUNT | Any | Any | **No** — implicit access; IAM is the second gate |\n\nIf any statement matches 5a\u002F5b\u002F5c, the **PUBLIC_BUS** verdict is emitted\nfor the policy dimension.\n\n**Special case — the account-root statement:** A statement with\n`Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}` + `events:*` is the\ndefault root-delegation pattern. It delegates bus management to the\naccount's IAM policies. This is **NORMAL** — do NOT flag it. Same-account\nPutEvents does not require the bus policy (implicit root access).\n\n### Step 6: Dead-letter queue evaluation\n\nFor each rule on the bus, enumerate ALL targets via\n`list-targets-by-rule`. For each target, check `DeadLetterConfig`:\n\n- **DeadLetterConfig absent on ANY target** → **NO_DLQ** finding for that\n  target. Failed invocations exhaust retries (6h Lambda\u002FSQS\u002FSNS\u002FECS\u002FSFN,\n  up to 24h API destinations) then are permanently lost — no DLQ, no\n  trace. This is a silent data-loss vector.\n\n- **DeadLetterConfig present (SQS ARN)** → target passes the DLQ check.\n  Verify the SQS queue exists and has a retention period long enough for\n  operational response (>= 4 days recommended).\n\nA bus with multiple rules where ALL targets have DLQs passes this step.\nA single target without DLQ is enough for the NO_DLQ finding.\n\n**Quota note:** A rule can have up to 5 targets. Each target needs its\nown DLQ ARN — sharing one SQS queue across targets is acceptable but\ncomplicates triage (all failures land in one queue).\n\n### Step 7: KMS encryption evaluation\n\nCheck `KmsKeyIdentifier` on the bus metadata:\n\n- **KmsKeyIdentifier absent** → **NO_ENCRYPTION** finding. The bus uses\n  an AWS-owned key — invisible in your KMS console, no rotation control,\n  no key policy control, no CloudTrail data-event logging on decrypt.\n  A customer-managed key gives rotation control, key-policy control, and\n  decrypt-audit capability.\n\n- **KmsKeyIdentifier set to a CMK ARN** → encryption dimension passes.\n  Verify the referenced CMK exists, is enabled, and has rotation enabled\n  (cross-reference to kms-key-policy-auditor for the key policy audit).\n\n### Step 8: Archive and enrichment evaluation\n\nCheck archive and schema-discovery status:\n\n- **No archive configured** → **CONFIG_GAP** finding. Without an archive,\n  there is no event-replay capability for incident recovery. Archives\n  capture events matching a pattern for a configurable retention period.\n  Recommend `CreateArchive` with a broad event pattern.\n\n- **Archive present** → passes. Note the retention period and event\n  pattern coverage (a narrow pattern may miss events you need to replay).\n\n- **Schema discovery disabled** → note as a low-priority CONFIG_GAP\n  sub-finding. Without schema discovery, you lose automated schema\n  inference and code-generation benefits. Enable via\n  `UpdateEventBus` with schema-discovery on.\n\n### Step 9: Aggregation — worst finding wins\n\nThe final verdict is the **maximum severity** across all dimensions,\nwhere PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION > CONFIG_GAP > OK:\n\n```text\nverdict = max(policy_finding, dlq_finding, encryption_finding, archive_finding)\n```\n\nIf no findings across all dimensions, the verdict is **OK**.\n\n## Output format (per bus)\n\n```text\nBUS: \u003Cbus-name or ARN>\nVERDICT: PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [PUBLIC_BUS] \u003Cfinding description (Step Na)>\n  - [NO_DLQ] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — public bus with missing DLQ\n\n```text\nBUS: custom-bus-app-events\nVERDICT: PUBLIC_BUS\nREASON: Statement \"OpenIngest\" grants events:PutEvents to Principal \"*\"\nwith no restrictive condition — any AWS account holder can inject events\nthat trigger all rules on the bus (Step 5a). Rule \"alert-rule\" target\n\"lambda-handler\" is also missing a dead-letter queue.\nFINDINGS:\n  - [PUBLIC_BUS] Principal \"*\" + events:PutEvents + no condition (Step 5a)\n  - [NO_DLQ] Rule \"alert-rule\" target \"lambda-handler\" has no DeadLetterConfig (Step 6)\n  - [NO_ENCRYPTION] KmsKeyIdentifier absent — bus uses AWS-owned key (Step 7)\n  - [CONFIG_GAP] No archive configured — no replay capability (Step 8)\nREMEDIATION:\n  1. PUBLIC_BUS — Replace Principal \"*\" with specific account\u002Frole ARNs.\n     Add aws:PrincipalOrgID or aws:SourceAccount condition to scope access.\n  2. NO_DLQ — Create an SQS DLQ and attach to each target:\n     aws events put-targets --rule alert-rule --event-bus-name custom-bus-app-events\n       --targets '[{\"Id\":\"lambda-handler\",\"Arn\":\"...\",\"DeadLetterConfig\":{\"Arn\":\"arn:aws:sqs:...:dlq\"}}]'\n  3. NO_ENCRYPTION — Associate a customer-managed KMS key:\n     aws events update-event-bus --name custom-bus-app-events\n       --kms-key-identifier arn:aws:kms:us-east-1:111111111111:key\u002Fcmk-id\n  4. CONFIG_GAP — Create an archive:\n     aws events create-archive --archive-name app-events-archive\n       --event-source-name custom-bus-app-events --retention 30\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}` +\n  `events:*` as a vulnerability. This is the **default root-delegation\n  statement**. Same-account access does not require the bus policy — the\n  root has implicit access. Flagging it as WILDCARD is a false positive.\n\n- NEVER flag `Principal: {\"Service\": \"guardduty.amazonaws.com\"}` or any\n  AWS service principal with `events:PutEvents` as public exposure on\n  the **default bus**. AWS services must publish to the default bus for\n  built-in integrations. This is normal service-to-bus delivery.\n\n- NEVER treat `events:source` or `detail-type` as IAM condition keys in a\n  bus policy. They are event-body fields — a bus policy condition using\n  them is a silent no-op and provides zero restriction. Only\n  `aws:SourceAccount`, `aws:SourceArn`, `aws:PrincipalAccount`, and\n  `aws:PrincipalOrgID` are valid.\n\n- NEVER classify a `Principal: \"*\"` + `events:PutEvents` grant with a\n  STRONG condition (`aws:PrincipalOrgID`, `aws:SourceAccount`) as\n  PUBLIC_BUS. The condition narrows access to a known org\u002Faccount.\n  Classify as OK on the policy dimension — note the condition-restricted\n  access in FINDINGS for verification.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a real condition. This\n  CIDR is the entire internet and provides zero restriction. Treat the\n  statement as if the condition is absent — PUBLIC_BUS.\n\n- NEVER assume one DLQ per rule is sufficient. DeadLetterConfig is\n  per-TARGET — a rule with 5 targets needs 5 DLQ ARNs. Missing DLQ on\n  any single target is a silent data-loss vector for that target.\n\n- NEVER assume the bus policy is the complete access picture for\n  cross-account. Cross-account PutEvents requires BOTH the bus policy\n  AND the caller's IAM to allow it (intersection). But always flag the\n  bus-policy grant — the resource owner controls this gate.\n\n- NEVER recommend restricting the **default bus** policy without\n  explaining that it may break AWS service event delivery. CloudWatch\n  Alarms, GuardDuty, Security Hub, EC2, and dozens of other services\n  publish to the default bus. Use custom buses for restrictive policies.\n\n- NEVER overlook a rule with zero targets. A rule with no targets\n  consumes event-matching capacity (300 rules per bus quota) but\n  triggers nothing — it is dead configuration. Flag as CONFIG_GAP.\n\n- NEVER assume archive and schema discovery are enabled by default.\n  Archives require explicit `CreateArchive`. Schema discovery requires\n  explicit enablement. Both are absent on a freshly created bus.\n\n- NEVER set archive retention > 90 days without a cost justification.\n  Archive events are billed per-event-month — a high-volume bus\n  (1M events\u002Fday) at 90 days costs ~9x more than the recommended 7-30\n  day operational window. Use longer retention only for compliance\n  requirements and budget-alert the archive.\n\n- NEVER use `put-permission` with a duplicate `--statement-id`. The\n  statement-id uniquely identifies the permission entry; reusing an\n  existing id **silently overwrites** the prior statement. Always use\n  unique, descriptive statement-ids (e.g., `CrossAccountAppPublisher`,\n  not `Allow1`).\n\n- NEVER attempt to modify the default bus policy to remediate\n  cross-account access without first verifying which AWS service\n  integrations depend on it. Breaking service event delivery is an\n  active outage.\n\n- NEVER assume `Resource: \"*\"` in a bus policy is broader than\n  `Resource: \u003Cbus-arn>`. The policy is attached to the bus — both are\n  functionally identical. Evaluate `Principal` + `Action` + `Condition`\n  only.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (PutPermission, RemovePermission, PutTargets, UpdateEventBus,\n  PutRule, DeleteRule), the auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on bus \u003Cname> in account \u003Caccount>. This\n  affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI command until the operator confirms.\n\n- **Back up the current bus policy** before any modification:\n  `aws events describe-event-bus --name \u003Cbus> --profile \u003Cp> --output json > \u002Ftmp\u002F\u003Cbus>-policy-backup-$(date +%s).json`\n  Bus policies have no version history — `put-permission` replaces the\n  entire policy atomically. The backup is the only rollback path.\n\n- Before removing a cross-account principal from the bus policy, verify\n  the external account's workload is not actively publishing events.\n  Check CloudTrail for `events:PutEvents` from the external account in\n  the last 7 days. Removing access without coordination causes an\n  immediate event-delivery outage for the external publisher.\n\n- Before associating a KMS key (`UpdateEventBus --kms-key-identifier`),\n  verify the key policy permits `events.amazonaws.com` as a service\n  principal with `kms:Decrypt` and `kms:GenerateDataKey*`. A key that\n  does not allow EventBridge will cause PutEvents to fail silently.\n\n- Prefer additive changes (add a Deny statement, add a condition) over\n  destructive changes (remove a statement) — additive changes are\n  reversible.\n\n- For PUBLIC_BUS findings (wildcard\u002Fcross-account PutEvents), treat as\n  incident-response. Audit CloudTrail for `events:PutEvents` from\n  unexpected principals during the exposure window. Identify rules that\n  could have been triggered by injected events and check downstream\n  targets for anomalous invocations.\n\n## Remediation guidance\n\nRemediation CLI per verdict (PUBLIC_BUS put\u002Fremove-permission, NO_DLQ create-queue + put-targets + alarm, NO_ENCRYPTION update-event-bus, CONFIG_GAP create-archive + create-registry, OK) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand emitting the remediation commands for a finding.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (global endpoints GA, Scheduler, Schema Registry, cross-account enhancements) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand checking whether a newer AWS feature changes the audit.\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — remediation CLI per verdict (PUBLIC_BUS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP, OK), moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert-knowledge bullets and recent AWS features, moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F EventBridge Security & App Integration.\n\n## AWS documentation\n\n- **Amazon EventBridge User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-what-is.html\n- **EventBridge Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-security.html\n- **EventBridge API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fapi-reference\u002F\n- **EventBridge CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fevents\u002F\n- **EventBridge Scheduler** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fscheduler\u002Flatest\u002FUserGuide\u002Fwhat-is-scheduler.html\n","# EventBridge Bus Policy Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across\nall dimensions, and `events:PutEvents` is the EventBridge analogue of\n`kms:Decrypt` — one permission grants injection access to every rule and\ndownstream target on the bus.\n\nAn EventBridge event bus is the ingestion gate for event-driven\nautomation. Three properties make it uniquely dangerous when\nmisconfigured:\n\n- `events:PutEvents` is an **event-injection vector**: one permission\n  lets an attacker craft events that match rule patterns and trigger\n  Lambda, Step Functions, SQS, ECS, and API-destination targets. The\n  blast radius extends through every rule on the bus.\n- Missing `DeadLetterConfig` is a **silent data-loss vector**: failed\n  invocations exhaust retries (6 hours for Lambda\u002FSQS, 24 hours for API\n  destinations) then disappear permanently — no DLQ, no trace.\n- The bus policy is **ingestion-gate only**; rule event-patterns are\n  the **routing-gate**. Both planes must be audited. A locked-down bus\n  policy with a permissive event pattern still routes any ingested event.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| `Principal: \"*\"` + `events:PutEvents`\u002F`events:*`\u002F`*` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5a |\n| Cross-account + `events:PutEvents` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5b |\n| `Principal: \"*\"` + `events:PutRule`\u002F`events:PutPermission` + no\u002Fweak condition | **PUBLIC_BUS** | Step 5c |\n| Any rule target missing `DeadLetterConfig` | **NO_DLQ** | Step 6 |\n| `KmsKeyIdentifier` absent on custom bus | **NO_ENCRYPTION** | Step 7 |\n| No archive configured on the bus | **CONFIG_GAP** | Step 8 |\n| Scoped principals + STRONG condition + DLQ + CMK + archive | **OK** | Step 9 |\n| `Principal: \"*\"` + PutEvents + STRONG condition (`aws:PrincipalOrgID`, `aws:SourceAccount`) | OK on policy dimension (condition-scoped, not public) | Step 5d |\n\nSeverity ordering for aggregation: **PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION\n> CONFIG_GAP > OK**.\n\n## Pre-flight: bus metadata gate\n\nBefore evaluating the policy, classify the bus itself. Several attributes\nshort-circuit the audit.\n\n| Attribute | Value | Effect |\n|---|---|---|\n| `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. |\n| `Name` | (custom) | Proceed with full audit. Custom buses are where restrictive policies apply. |\n| `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). |\n| `KmsKeyIdentifier` | `arn:aws:kms:...` | Customer-managed key configured. Encryption dimension passes. |\n\n**Multi-bus \u002F account-wide sweep note (pagination):** `aws events\nlist-event-buses` returns at most 100 per page. `aws events list-rules`\nreturns at most 100 per page per bus. `aws events list-targets-by-rule`\nreturns at most 50 per page. All three silently truncate — always drain\n`NextToken` to completion. A bus with 120 rules silently drops 20 from\nthe first page.\n\n**If the bus policy JSON is malformed** (invalid JSON, missing\n`Statement`, missing `Principal` or `Action`), output:\n\n```text\nBUS: \u003Cbus-name>\nVERDICT: ERROR\nREASON: Bus policy document is not valid JSON or is missing required fields — cannot classify.\nREMEDIATION: Retrieve the canonical policy with `aws events describe-event-bus --name \u003Cbus> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious EventBridge behaviors\n\nStep 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\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand a classification depends on a non-obvious behaviour.\n\n### Step 1: Bus type classification\n\nIf the bus is the **default bus** (`Name: default`):\n- Do NOT flag same-account `Principal: {\"Service\": \"...\"}` statements —\n  AWS services must publish to the default bus for built-in integrations.\n- Still evaluate DLQ, encryption, and archive dimensions normally.\n- Flag `Principal: {\"AWS\": \"*\"}` + PutEvents on the default bus as\n  PUBLIC_BUS — anyone can inject into the bus that receives all AWS\n  service events, compounding the injection surface.\n\nIf the bus is a **custom bus**, proceed with full policy audit.\n\n### Step 2: Principal scope classification\n\nFor each `Effect: Allow` statement in the bus policy:\n\n- **WILDCARD_PRINCIPAL** — Principal is `\"*\"`, `{\"AWS\": \"*\"}`, or any\n  construct resolving to all AWS principals.\n\n- **CROSS_ACCOUNT** — Principal includes an ARN whose 12-digit account\n  differs from the bus's owning account.\n\n- **SERVICE_PRINCIPAL** — Principal is `{\"Service\": \"\u003Cservice-id>\"}`.\n  This is NORMAL for AWS service-to-bus integration. Do NOT flag as\n  public unless the service principal is paired with dangerous admin\n  actions (PutRule, PutPermission) without conditions.\n\n- **SAME_ACCOUNT** — All principals share the bus's owning account.\n  This includes root (`arn:aws:iam::ACCOUNT:root`) and same-account\n  roles\u002Fusers.\n\nA statement with BOTH same-account and cross-account\u002Fwildcard principals\nis classified by the **widest** scope.\n\n### Step 3: Action danger classification\n\n| Danger level | Actions | Why |\n|---|---|---|\n| **INJECT** | `events:PutEvents`, `events:*`, `*` | Event injection — can trigger every rule and downstream target. Blast-radius multiplier. |\n| **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. |\n| **READ** | `events:List*`, `events:Describe*`, `events:TestEventPattern` | Metadata disclosure — enumerates rules, targets, and bus configuration. |\n\n`NotAction` in an Allow is an inverse wildcard — grants every EventBridge\naction EXCEPT the listed ones. Treat as INJECT + ADMIN (worst case).\n\n### Step 4: Condition strength evaluation\n\n**STRONG conditions (policy dimension passes — condition-scoped, not public):**\n- `aws:PrincipalOrgID` with `StringEquals` — scopes to all accounts in\n  the named Organization. The strongest multi-account condition.\n- `aws:SourceAccount` with `StringEquals` — request must originate from\n  the named account.\n- `aws:SourceArn` with `StringEquals`\u002F`StringLike` — request must\n  originate from the named resource.\n- `aws:PrincipalAccount` — equivalent to SourceAccount.\n\n**WEAK conditions (do NOT pass — treat as no condition, still PUBLIC_BUS):**\n- `aws:SourceIp` — IP-based restrictions are bypassable by callers who\n  control their egress (NAT gateway, proxy, VPN). **Quantitative\n  prefix-length threshold:** a CIDR with `\u002F0` suffix (`0.0.0.0\u002F0`,\n  `::\u002F0`) covers the entire internet — equivalent to no condition. `\u002F8`\n  or broader (16M+ addresses) is effectively unrestricted. Only `\u002F28`\n  or narrower (16 or fewer addresses) provides operationally meaningful\n  scoping. Between `\u002F8` and `\u002F28`, evaluate whether the CIDR covers\n  known NAT, proxy, or cloud-egress ranges.\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable.\n- `events:source`, `events:detail-type` — NOT valid condition keys;\n  silently ignored by IAM evaluation.\n\n### Step 5: Policy severity matrix — PUBLIC_BUS determination\n\nEvaluate each Allow statement by combining principal scope (Step 2),\naction danger (Step 3), and condition strength (Step 4):\n\n| Rule | Principal | Action | Condition | → PUBLIC_BUS? |\n|---|---|---|---|---|\n| 5a | WILDCARD | INJECT | None\u002Fweak | **Yes — PUBLIC_BUS** (anyone can inject events) |\n| 5b | CROSS_ACCOUNT | INJECT | None\u002Fweak | **Yes — PUBLIC_BUS** (external account can inject) |\n| 5c | WILDCARD or CROSS | ADMIN | None\u002Fweak | **Yes — PUBLIC_BUS** (external principal can inject\u002Fmodify rules) |\n| 5d | WILDCARD or CROSS | INJECT\u002FADMIN | STRONG | **No — OK on policy dimension** (condition-scoped, not public) |\n| 5e | WILDCARD or CROSS | READ | Any | **No** — metadata-only exposure (note as low-severity finding) |\n| 5f | SERVICE_PRINCIPAL | INJECT | None | **No** — normal service integration (Step 1) |\n| 5g | SAME_ACCOUNT | Any | Any | **No** — implicit access; IAM is the second gate |\n\n**CRITICAL CLASSIFICATION RULE — Step 5d:** A `Principal: \"*\"` or\ncross-account grant with `events:PutEvents` and a STRONG condition\n(`aws:PrincipalOrgID`, `aws:SourceAccount`, `aws:SourceArn`) is\n**NOT PUBLIC_BUS**. The condition scopes access to a known organization\nor account. Classify the policy dimension as **OK** and note the\ncondition-restricted access in FINDINGS for verification. Do NOT\nconflate \"cross-account\" with \"public\" — a condition-restricted\ncross-account grant is a controlled delegation, not an open injection\nvector. This is the single most common classification error.\n| 5e | WILDCARD or CROSS | READ | Any | **No** — metadata-only exposure (note as low-severity finding) |\n| 5f | SERVICE_PRINCIPAL | INJECT | None | **No** — normal service integration (Step 1) |\n| 5g | SAME_ACCOUNT | Any | Any | **No** — implicit access; IAM is the second gate |\n\nIf any statement matches 5a\u002F5b\u002F5c, the **PUBLIC_BUS** verdict is emitted\nfor the policy dimension.\n\n**Special case — the account-root statement:** A statement with\n`Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}` + `events:*` is the\ndefault root-delegation pattern. It delegates bus management to the\naccount's IAM policies. This is **NORMAL** — do NOT flag it. Same-account\nPutEvents does not require the bus policy (implicit root access).\n\n### Step 6: Dead-letter queue evaluation\n\nFor each rule on the bus, enumerate ALL targets via\n`list-targets-by-rule`. For each target, check `DeadLetterConfig`:\n\n- **DeadLetterConfig absent on ANY target** → **NO_DLQ** finding for that\n  target. Failed invocations exhaust retries (6h Lambda\u002FSQS\u002FSNS\u002FECS\u002FSFN,\n  up to 24h API destinations) then are permanently lost — no DLQ, no\n  trace. This is a silent data-loss vector.\n\n- **DeadLetterConfig present (SQS ARN)** → target passes the DLQ check.\n  Verify the SQS queue exists and has a retention period long enough for\n  operational response (>= 4 days recommended).\n\nA bus with multiple rules where ALL targets have DLQs passes this step.\nA single target without DLQ is enough for the NO_DLQ finding.\n\n**Quota note:** A rule can have up to 5 targets. Each target needs its\nown DLQ ARN — sharing one SQS queue across targets is acceptable but\ncomplicates triage (all failures land in one queue).\n\n### Step 7: KMS encryption evaluation\n\nCheck `KmsKeyIdentifier` on the bus metadata:\n\n- **KmsKeyIdentifier absent** → **NO_ENCRYPTION** finding. The bus uses\n  an AWS-owned key — invisible in your KMS console, no rotation control,\n  no key policy control, no CloudTrail data-event logging on decrypt.\n  A customer-managed key gives rotation control, key-policy control, and\n  decrypt-audit capability.\n\n- **KmsKeyIdentifier set to a CMK ARN** → encryption dimension passes.\n  Verify the referenced CMK exists, is enabled, and has rotation enabled\n  (cross-reference to kms-key-policy-auditor for the key policy audit).\n\n### Step 8: Archive and enrichment evaluation\n\nCheck archive and schema-discovery status:\n\n- **No archive configured** → **CONFIG_GAP** finding. Without an archive,\n  there is no event-replay capability for incident recovery. Archives\n  capture events matching a pattern for a configurable retention period.\n  Recommend `CreateArchive` with a broad event pattern.\n\n- **Archive present** → passes. Note the retention period and event\n  pattern coverage (a narrow pattern may miss events you need to replay).\n\n- **Schema discovery disabled** → note as a low-priority CONFIG_GAP\n  sub-finding. Without schema discovery, you lose automated schema\n  inference and code-generation benefits. Enable via\n  `UpdateEventBus` with schema-discovery on.\n\n### Step 9: Aggregation — worst finding wins\n\nThe final verdict is the **maximum severity** across all dimensions,\nwhere PUBLIC_BUS > NO_DLQ > NO_ENCRYPTION > CONFIG_GAP > OK:\n\n```text\nverdict = max(policy_finding, dlq_finding, encryption_finding, archive_finding)\n```\n\nIf no findings across all dimensions, the verdict is **OK**.\n\n## Output format (per bus)\n\n```text\nBUS: \u003Cbus-name or ARN>\nVERDICT: PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [PUBLIC_BUS] \u003Cfinding description (Step Na)>\n  - [NO_DLQ] \u003Cfinding description (Step N)>\n  - [OK] \u003Cdimension that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — public bus with missing DLQ\n\n```text\nBUS: custom-bus-app-events\nVERDICT: PUBLIC_BUS\nREASON: Statement \"OpenIngest\" grants events:PutEvents to Principal \"*\"\nwith no restrictive condition — any AWS account holder can inject events\nthat trigger all rules on the bus (Step 5a). Rule \"alert-rule\" target\n\"lambda-handler\" is also missing a dead-letter queue.\nFINDINGS:\n  - [PUBLIC_BUS] Principal \"*\" + events:PutEvents + no condition (Step 5a)\n  - [NO_DLQ] Rule \"alert-rule\" target \"lambda-handler\" has no DeadLetterConfig (Step 6)\n  - [NO_ENCRYPTION] KmsKeyIdentifier absent — bus uses AWS-owned key (Step 7)\n  - [CONFIG_GAP] No archive configured — no replay capability (Step 8)\nREMEDIATION:\n  1. PUBLIC_BUS — Replace Principal \"*\" with specific account\u002Frole ARNs.\n     Add aws:PrincipalOrgID or aws:SourceAccount condition to scope access.\n  2. NO_DLQ — Create an SQS DLQ and attach to each target:\n     aws events put-targets --rule alert-rule --event-bus-name custom-bus-app-events\n       --targets '[{\"Id\":\"lambda-handler\",\"Arn\":\"...\",\"DeadLetterConfig\":{\"Arn\":\"arn:aws:sqs:...:dlq\"}}]'\n  3. NO_ENCRYPTION — Associate a customer-managed KMS key:\n     aws events update-event-bus --name custom-bus-app-events\n       --kms-key-identifier arn:aws:kms:us-east-1:111111111111:key\u002Fcmk-id\n  4. CONFIG_GAP — Create an archive:\n     aws events create-archive --archive-name app-events-archive\n       --event-source-name custom-bus-app-events --retention 30\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}` +\n  `events:*` as a vulnerability. This is the **default root-delegation\n  statement**. Same-account access does not require the bus policy — the\n  root has implicit access. Flagging it as WILDCARD is a false positive.\n\n- NEVER flag `Principal: {\"Service\": \"guardduty.amazonaws.com\"}` or any\n  AWS service principal with `events:PutEvents` as public exposure on\n  the **default bus**. AWS services must publish to the default bus for\n  built-in integrations. This is normal service-to-bus delivery.\n\n- NEVER treat `events:source` or `detail-type` as IAM condition keys in a\n  bus policy. They are event-body fields — a bus policy condition using\n  them is a silent no-op and provides zero restriction. Only\n  `aws:SourceAccount`, `aws:SourceArn`, `aws:PrincipalAccount`, and\n  `aws:PrincipalOrgID` are valid.\n\n- NEVER classify a `Principal: \"*\"` + `events:PutEvents` grant with a\n  STRONG condition (`aws:PrincipalOrgID`, `aws:SourceAccount`) as\n  PUBLIC_BUS. The condition narrows access to a known org\u002Faccount.\n  Classify as OK on the policy dimension — note the condition-restricted\n  access in FINDINGS for verification.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a real condition. This\n  CIDR is the entire internet and provides zero restriction. Treat the\n  statement as if the condition is absent — PUBLIC_BUS.\n\n- NEVER assume one DLQ per rule is sufficient. DeadLetterConfig is\n  per-TARGET — a rule with 5 targets needs 5 DLQ ARNs. Missing DLQ on\n  any single target is a silent data-loss vector for that target.\n\n- NEVER assume the bus policy is the complete access picture for\n  cross-account. Cross-account PutEvents requires BOTH the bus policy\n  AND the caller's IAM to allow it (intersection). But always flag the\n  bus-policy grant — the resource owner controls this gate.\n\n- NEVER recommend restricting the **default bus** policy without\n  explaining that it may break AWS service event delivery. CloudWatch\n  Alarms, GuardDuty, Security Hub, EC2, and dozens of other services\n  publish to the default bus. Use custom buses for restrictive policies.\n\n- NEVER overlook a rule with zero targets. A rule with no targets\n  consumes event-matching capacity (300 rules per bus quota) but\n  triggers nothing — it is dead configuration. Flag as CONFIG_GAP.\n\n- NEVER assume archive and schema discovery are enabled by default.\n  Archives require explicit `CreateArchive`. Schema discovery requires\n  explicit enablement. Both are absent on a freshly created bus.\n\n- NEVER set archive retention > 90 days without a cost justification.\n  Archive events are billed per-event-month — a high-volume bus\n  (1M events\u002Fday) at 90 days costs ~9x more than the recommended 7-30\n  day operational window. Use longer retention only for compliance\n  requirements and budget-alert the archive.\n\n- NEVER use `put-permission` with a duplicate `--statement-id`. The\n  statement-id uniquely identifies the permission entry; reusing an\n  existing id **silently overwrites** the prior statement. Always use\n  unique, descriptive statement-ids (e.g., `CrossAccountAppPublisher`,\n  not `Allow1`).\n\n- NEVER attempt to modify the default bus policy to remediate\n  cross-account access without first verifying which AWS service\n  integrations depend on it. Breaking service event delivery is an\n  active outage.\n\n- NEVER assume `Resource: \"*\"` in a bus policy is broader than\n  `Resource: \u003Cbus-arn>`. The policy is attached to the bus — both are\n  functionally identical. Evaluate `Principal` + `Action` + `Condition`\n  only.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (PutPermission, RemovePermission, PutTargets, UpdateEventBus,\n  PutRule, DeleteRule), the auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on bus \u003Cname> in account \u003Caccount>. This\n  affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI command until the operator confirms.\n\n- **Back up the current bus policy** before any modification:\n  `aws events describe-event-bus --name \u003Cbus> --profile \u003Cp> --output json > \u002Ftmp\u002F\u003Cbus>-policy-backup-$(date +%s).json`\n  Bus policies have no version history — `put-permission` replaces the\n  entire policy atomically. The backup is the only rollback path.\n\n- Before removing a cross-account principal from the bus policy, verify\n  the external account's workload is not actively publishing events.\n  Check CloudTrail for `events:PutEvents` from the external account in\n  the last 7 days. Removing access without coordination causes an\n  immediate event-delivery outage for the external publisher.\n\n- Before associating a KMS key (`UpdateEventBus --kms-key-identifier`),\n  verify the key policy permits `events.amazonaws.com` as a service\n  principal with `kms:Decrypt` and `kms:GenerateDataKey*`. A key that\n  does not allow EventBridge will cause PutEvents to fail silently.\n\n- Prefer additive changes (add a Deny statement, add a condition) over\n  destructive changes (remove a statement) — additive changes are\n  reversible.\n\n- For PUBLIC_BUS findings (wildcard\u002Fcross-account PutEvents), treat as\n  incident-response. Audit CloudTrail for `events:PutEvents` from\n  unexpected principals during the exposure window. Identify rules that\n  could have been triggered by injected events and check downstream\n  targets for anomalous invocations.\n\n## Remediation guidance\n\nRemediation CLI per verdict (PUBLIC_BUS put\u002Fremove-permission, NO_DLQ create-queue + put-targets + alarm, NO_ENCRYPTION update-event-bus, CONFIG_GAP create-archive + create-registry, OK) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand emitting the remediation commands for a finding.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (global endpoints GA, Scheduler, Schema Registry, cross-account enhancements) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand checking whether a newer AWS feature changes the audit.\n\n## References (load on demand)\n\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — remediation CLI per verdict (PUBLIC_BUS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP, OK), moved from SKILL.md.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert-knowledge bullets and recent AWS features, moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F EventBridge Security & App Integration.\n\n## AWS documentation\n\n- **Amazon EventBridge User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-what-is.html\n- **EventBridge Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-security.html\n- **EventBridge API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fapi-reference\u002F\n- **EventBridge CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fevents\u002F\n- **EventBridge Scheduler** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fscheduler\u002Flatest\u002FUserGuide\u002Fwhat-is-scheduler.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":39},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"complexity":32,"entry_point":33,"when_to_use":34,"requires_llm":35,"verdict_shape":36,"invocation_schema":37,"supports_pipeline":35,"activation_triggers":38},"eventbridge, security, event-bus, app-integration, dlq, encryption, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","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:\"*\"","high","false","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.","true","PUBLIC_BUS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK","Input: either (a) an event bus policy JSON document, optionally paired with bus metadata (KmsKeyIdentifier), rule\u002Ftarget configs, and archive status, OR (b) a bus name\u002FARN for live-account audit. Output: deterministic BUS\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per bus, where VERDICT is one of PUBLIC_BUS, NO_DLQ, NO_ENCRYPTION, CONFIG_GAP, OK.","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","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).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Feventbridge-bus-policy-auditor",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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill eventbridge-bus-policy-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill eventbridge-bus-policy-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill eventbridge-bus-policy-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",12432,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fconfig-gap-no-archive.md",552,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fconfig-gap-no-archive.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fno-dlq-silent-drop.md",630,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fno-dlq-silent-drop.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fno-encryption-aws-managed.md",623,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fno-encryption-aws-managed.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fok-org-scoped-bus.md",588,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fok-org-scoped-bus.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fpublic-bus-weak-source-ip.md",632,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fpublic-bus-weak-source-ip.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fpublic-bus-wildcard-putevents.md",645,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fbaselines\u002Fpublic-bus-wildcard-putevents.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1881,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4755,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fconfig-gap-no-archive.md",1239,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fconfig-gap-no-archive.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fno-dlq-silent-drop.md",1369,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fno-dlq-silent-drop.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fno-encryption-aws-managed.md",1311,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fno-encryption-aws-managed.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fok-org-scoped-bus.md",1417,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fok-org-scoped-bus.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fpublic-bus-weak-source-ip.md",1408,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fpublic-bus-weak-source-ip.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fpublic-bus-wildcard-putevents.md",1149,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fevals\u002Fprompts\u002Fpublic-bus-wildcard-putevents.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",6830,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",7322,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",2666,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"skill.usf.yaml",4054,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Feventbridge-bus-policy-auditor\u002Fskill.usf.yaml",[141,148,155,162,169,176],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"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":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"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":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"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":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"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":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"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":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"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",[],[]]