[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACRKBAJGV8XD26FQJRGTA4":3,"skill-same:01M7ACRKBAJGV8XD26FQJRGTA4":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},"01M7ACRKBAJGV8XD26FQJRGTA4","sqs-dlq-policy-auditor",null,"Audits AWS SQS queues for dead-letter-queue (DLQ) configuration gaps, public access via Principal:* queue policies, encryption-at-rest status (SSE-SQS \u002F SSE-KMS), maxReceiveCount tuning, message-retention periods, and cross-account DLQ accessibility. Emits a deterministic verdict (NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK) per queue with enumerated findings and specific CLI remediation. Use when reviewing SQS queue configurations, checking for missing or misconfigured dead-letter queues, validating encryption posture, auditing queue policies for public exposure, or tuning redrive-policy parameters 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\u002Fsqs-dlq-policy-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sqs-dlq-policy-auditor\ndescription: Audits AWS SQS queues for dead-letter-queue (DLQ) configuration gaps, public access via Principal:* queue policies, encryption-at-rest status (SSE-SQS \u002F SSE-KMS), maxReceiveCount tuning, message-retention periods, and cross-account DLQ accessibility. Emits a deterministic verdict (NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK) per queue with enumerated findings and specific CLI remediation. Use when reviewing SQS queue configurations, checking for missing or misconfigured dead-letter queues, validating encryption posture, auditing queue policies for public exposure, or tuning redrive-policy parameters 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 attribute-document classification. Live-account audits use aws sqs get-queue-attributes, aws sqs list-queues, and aws sqs get-queue-url (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: AppIntegration\n  verdict_shape: NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK\n  when_to_use: Reviewing an SQS queue configuration before production deployment, checking for a missing dead-letter queue, auditing a queue policy for public access, validating encryption-at-rest, tuning maxReceiveCount, inspecting DLQ retention, or hardening SQS posture across an account.\n  activation_triggers: audit this SQS queue, is my SQS queue missing a DLQ, check SQS redrive policy, is my SQS queue public, SQS queue encryption, maxReceiveCount tuning, DLQ retention period, cross-account DLQ, poison pill SQS, harden SQS queue\n  invocation_schema: 'Input: either (a) an SQS queue attribute document (Policy, RedrivePolicy, KmsMasterKeyId, SqsManagedSseEnabled, MessageRetentionPeriod, VisibilityTimeout), optionally paired with DLQ attributes, OR (b) a queue URL\u002FARN for live-account audit. Output: deterministic QUEUE\u002FVERDICT\u002FREASON\u002F FINDINGS\u002FREMEDIATION block per queue, where VERDICT is one of NO_DLQ, PUBLIC_ACCESS, NO_ENCRYPTION, CONFIG_GAP, OK.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: SQS, dead-letter queue, DLQ, redrive policy, maxReceiveCount, queue policy, Principal:\"*\", public access, SSE-SQS, SSE-KMS, KmsMasterKeyId, SqsManagedSseEnabled, message retention, cross-account DLQ, FIFO queue, poison pill, RedriveAllowPolicy, VisibilityTimeout, SQS audit, queue security\n  tags: sqs, app-integration, dead-letter-queue, redrive-policy, encryption, queue-policy, public-access, audit\n---\n\n# SQS DLQ Policy Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across\nfive dimensions, and three SQS behaviours catch even experienced engineers —\n`Principal: \"*\"` in a queue policy is usually **safe** (S3\u002FSNS notification\npattern), `maxReceiveCount` counts **per delivery not per consumer**, and\n`RedrivePolicy` is a **JSON-encoded string** that must be parsed before\nclassification.\n\nA dead-letter queue is the only safety net against poison-pill messages. A\nqueue without a DLQ silently retries bad messages until they expire, burning\nthrough compute budget and starving healthy messages. Public queue policies\nexpose message payloads to any AWS account. Missing encryption leaves message\nbodies in plaintext at rest.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Risk | Rule |\n|---|---|---|---|\n| `Principal: \"*\"` + `sqs:SendMessage`\u002F`sqs:*`\u002F`*` + no strong condition | **PUBLIC_ACCESS** | CRITICAL | Step 1 |\n| No `RedrivePolicy` attribute \u002F missing `deadLetterTargetArn` | **NO_DLQ** | HIGH | Step 2 |\n| Neither `SqsManagedSseEnabled: true` nor `KmsMasterKeyId` set | **NO_ENCRYPTION** | HIGH | Step 3 |\n| `maxReceiveCount` \u003C= 1 (too aggressive) | **CONFIG_GAP** | MEDIUM | Step 4a |\n| `maxReceiveCount` > 1000 (poison-pill loop) | **CONFIG_GAP** | MEDIUM | Step 4b |\n| DLQ `MessageRetentionPeriod` \u003C 345600 (4 days) | **CONFIG_GAP** | MEDIUM | Step 4c |\n| DLQ ARN in a different account + no `RedriveAllowPolicy` granting access | **CONFIG_GAP** | MEDIUM | Step 4d |\n| All dimensions pass | **OK** | LOW | Step 5 |\n\nSee the ordered steps below for edge cases (Principal:\"*\" with SourceArn,\nFIFO DLQ constraints, VisibilityTimeout interaction).\n\n## Pre-flight: queue metadata gate\n\nBefore evaluating the queue policy and redrive configuration, classify the\nqueue itself. Several attributes short-circuit or modify the audit.\n\n**Multi-queue \u002F account-wide sweep note (pagination):** `aws sqs list-queues`\nreturns up to 1000 queue URLs per page. Use `--next-token` (from the prior\n`NextToken`) to page through all queues; iterating only the first page\nsilently misses queues. For each URL, `aws sqs get-queue-attributes\n--queue-url \u003Curl> --attribute-names All` returns all attributes in one call\n(no pagination needed for attributes).\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| `FifoQueue` | `true` | **FIFO queue.** DLQ must also be FIFO. maxReceiveCount tuning is MORE critical — a poison pill in a message group blocks the entire group until moved to DLQ. |\n| `FifoQueue` | `false` \u002F absent | **Standard queue.** Normal audit. |\n| `ContentBasedDeduplication` | `true` (FIFO) | Deduplication runs before receive count — a retried message with the same dedup ID does NOT increment the counter. Poison pills persist longer than expected. |\n| `Policy` | absent \u002F empty | **No resource-based policy.** Only IAM identity-based policies govern access. This is the SECURE default — do not flag as a gap. |\n| `KmsMasterKeyId` | set | **SSE-KMS encryption.** Customer-managed or AWS-managed KMS key. Encryption is satisfied. |\n| `SqsManagedSseEnabled` | `true` | **SSE-SQS encryption.** Amazon SQS-managed encryption (free, FIPS-compliant). Encryption is satisfied. |\n\n**If the queue attribute document is malformed** (the `Policy` field is not\nvalid JSON, or `RedrivePolicy` is not valid JSON when present), output:\n\n```text\nQUEUE: \u003Cqueue-url>\nVERDICT: ERROR\nREASON: Queue attribute document is malformed — \u003Cfield> is not valid JSON.\nREMEDIATION: Re-fetch with `aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names All --output json` and re-audit.\n```\n\n**RedrivePolicy is a JSON-encoded string, not a native attribute.**\n`aws sqs get-queue-attributes` returns `RedrivePolicy` as a\nJSON-encoded **string** (double-encoded in the CLI JSON output). You MUST\nparse the inner JSON before reading `deadLetterTargetArn` and\n`maxReceiveCount`. A classification that reads the raw string as a dict\nproduces false NO_DLQ verdicts — the field looks absent because it was never\nparsed.\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious SQS behaviours that change classification\n\nFull catalog (Principal:\"*\" usually safe, per-delivery counting, FIFO group\nblocking, SSE-SQS, RedriveAllowPolicy, VT window, ESM, v2 API, casing): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Public access via queue policy (PUBLIC_ACCESS)\n\nFor each `Effect: Allow` statement in the queue policy, classify the\nprincipal scope:\n\n- **WILDCARD_PRINCIPAL** — `Principal: \"*\"`, `Principal: {\"AWS\": \"*\"}`, or\n  any construct resolving to all AWS principals.\n\n- **NAMED_PRINCIPAL** — `Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:role\u002F...\"}`\n  or `Principal: {\"Service\": \"s3.amazonaws.com\"}`.\n\nA WILDCARD_PRINCIPAL statement is classified by its **condition strength**:\n\n**STRONG conditions (NOT public — access is genuinely scoped):**\n- `aws:SourceArn` (`ArnEquals` \u002F `ArnLike`) — request must originate from\n  the named resource (S3 bucket, SNS topic). This is the standard S3\u002FSNS-\n  to-SQS pattern. The caller cannot forge this; it is set by the AWS\n  service layer.\n- `aws:SourceAccount` (`StringEquals`) — request must originate from the\n  named account.\n- `aws:SourceAws` (deprecated alias of SourceAccount).\n\n**WEAK \u002F NO conditions (PUBLIC — flag as PUBLIC_ACCESS):**\n- No `Condition` block at all.\n- `aws:SourceIp` \u002F `aws:SourceIp` containing `0.0.0.0\u002F0` — IP-based\n  restrictions are bypassable; `0.0.0.0\u002F0` is the entire internet.\n- `aws:SourceVpce` \u002F `aws:SourceVpc` — VPC-scoped but the VPC endpoint is\n  network-reachable from peered connections; treat as WEAK for public-\n  exposure classification.\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable by any HTTP client.\n\n**Action sensitivity for WILDCARD_PRINCIPAL with weak\u002Fno condition:**\n\n| Action | Severity | Why |\n|---|---|---|\n| `sqs:SendMessage` | **CRITICAL** | Any account can inject messages — data poisoning, queue flooding, cost amplification. |\n| `sqs:ReceiveMessage` | **CRITICAL** | Any account can drain the queue — silent data exfiltration of message payloads. |\n| `sqs:DeleteMessage` | **CRITICAL** | Any account can delete messages — silent data loss. |\n| `sqs:*` \u002F `*` | **CRITICAL** | Full queue control — inject, drain, delete, reconfigure. |\n| `sqs:GetQueueAttributes` \u002F `sqs:GetQueueUrl` | **MEDIUM** | Metadata disclosure only (queue config, approximate message counts). Not PUBLIC_ACCESS verdict — note as advisory. |\n\nIf any WILDCARD_PRINCIPAL statement with a sensitive action (SendMessage,\nReceiveMessage, DeleteMessage, sqs:*, *) and a WEAK\u002FNO condition is found,\nthe queue verdict is **PUBLIC_ACCESS** with **CRITICAL** risk.\n\n### Step 2: Dead-letter queue presence (NO_DLQ)\n\nEvaluate the `RedrivePolicy` attribute (after JSON-parsing the string):\n\n- **Absent \u002F empty \u002F malformed** → **NO_DLQ**. No dead-letter queue is\n  configured. Poison-pill messages retry until `MessageRetentionPeriod`\n  expires (default 4 days). Every retry is a billable API call. With a high\n  `maxReceiveCount` (if somehow set without a DLQ — configuration drift),\n  the retry storm can last days.\n\n- **Present but `deadLetterTargetArn` missing** → **NO_DLQ**. The policy\n  JSON exists but the DLQ target is absent — the redrive is non-functional.\n\n- **Present with `deadLetterTargetArn`** → proceed to Step 4d (DLQ\n  accessibility sub-check).\n\n**FIFO queue special case:** if `FifoQueue: true` and the `deadLetterTargetArn`\npoints to a standard (non-FIFO) queue, the redrive is INVALID — SQS silently\nrejects messages to a standard DLQ from a FIFO source. Flag as NO_DLQ with\nnote: \"DLQ ARN points to a standard queue — FIFO source requires a FIFO DLQ.\"\n\n### Step 3: Encryption-at-rest (NO_ENCRYPTION)\n\nEvaluate encryption from two attributes:\n\n- **`SqsManagedSseEnabled: true`** → SSE-SQS is active. Encryption is\n  satisfied. This is the free, AWS-managed option (AES-256-GCM, FIPS-\n  validated). Do NOT flag.\n\n- **`KmsMasterKeyId` set to a key ARN \u002F key ID \u002F alias** → SSE-KMS is\n  active. Encryption is satisfied. Note whether the key is AWS-managed\n  (`alias\u002Faws\u002Fsqs`) or customer-managed (for cost\u002Frotation auditing — route\n  to kms-key-policy-auditor for the key policy).\n\n- **Neither set** → **NO_ENCRYPTION**. Message bodies are stored in\n  plaintext at rest. Messages are always encrypted in transit (TLS), but\n  the at-rest storage is unencrypted. Flag as HIGH risk.\n\n### Step 4: Configuration gaps (CONFIG_GAP sub-checks)\n\nIf no higher-severity verdict was triggered (PUBLIC_ACCESS, NO_DLQ,\nNO_ENCRYPTION), evaluate the following sub-checks. Each finding is\nenumerated; any non-empty finding set produces a **CONFIG_GAP** verdict.\n\n#### Step 4a: maxReceiveCount too low\n\nIf `maxReceiveCount` (from the parsed RedrivePolicy) is \u003C= 1:\n\n- **maxReceiveCount: 1** → any transient failure (consumer crash, network\n  blip, Lambda throttle, VisibilityTimeout too short) sends the message\n  straight to the DLQ on the FIRST delivery attempt. This is almost always\n  a misconfiguration — the message never gets a second chance. High false-\n  positive DLQ rate.\n\n- **maxReceiveCount: 2-3** with Lambda event source mapping → advisory. The\n  Lambda service's batch window adds delay between retries, so 2-3\n  invocations may be insufficient for transient downstream failures.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: set to 5-10 for standard\nqueues, 5-15 for FIFO queues (message-group blocking makes retries cheaper).\n\n#### Step 4b: maxReceiveCount too high\n\nIf `maxReceiveCount` > 1000:\n\n- The message retries up to 1000+ times before reaching the DLQ. At a\n  VisibilityTimeout of 30s, that is ~8+ hours of retry cycles. Poison-pill\n  messages burn compute budget and starve healthy messages in the queue.\n  For FIFO queues, the message group is stalled for the entire duration.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: 5-100 for standard queues,\n5-20 for FIFO queues.\n\n#### Step 4c: DLQ message-retention period too short\n\nIf the DLQ's `MessageRetentionPeriod` \u003C 345600 (4 days):\n\n- Failed messages expire from the DLQ before operations teams can analyse\n  and replay them. The DLQ is useless as a diagnostic tool if messages\n  vanish before anyone looks. The default retention (4 days \u002F 345600s) is\n  already marginal for weekend coverage.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: 1209600 (14 days, the\nmaximum) for DLQs to ensure weekend\u002Fholiday coverage.\n\nIf DLQ attributes are not provided in the input, note: \"DLQ retention period\nnot provided — fetch with `aws sqs get-queue-attributes --queue-url \u003Cdlq-url>\n--attribute-names MessageRetentionPeriod` to verify.\"\n\n#### Step 4d: Cross-account DLQ accessibility\n\nIf the `deadLetterTargetArn` in the RedrivePolicy points to a queue in a\ndifferent AWS account (12-digit account ID differs from the source queue's\naccount):\n\n- The DLQ is cross-account. SQS supports this IF the DLQ's queue policy (or\n  `RedriveAllowPolicy`) grants `sqs:SendMessage` to the source queue's\n  account. If no such grant is visible, the redrive is non-functional —\n  messages attempting to move to the DLQ will be silently dropped.\n\n- Verify the DLQ's `RedriveAllowPolicy` includes the source queue ARN under\n  `redrivePermission: \"byQueue\"` or `redrivePermission: \"allowAll\"`.\n\nFlag as CONFIG_GAP with MEDIUM risk. Note: \"Cross-account DLQ — verify DLQ\nqueue policy grants SendMessage to source account.\"\n\n### Step 5: OK — aggregation\n\nIf no findings from Steps 1-4:\n\n```text\nQUEUE: \u003Cqueue-url>\nVERDICT: OK\nREASON: \u003Cqueue-name> has a DLQ configured (maxReceiveCount=\u003CN>), encryption-at-rest\n  enabled (\u003CSSE-SQS|SSE-KMS>), no public queue-policy exposure, and retention\n  periods within recommended bounds.\nRISK: LOW\nREMEDIATION: None required.\n```\n\n## Output format (per queue)\n\n```text\nQUEUE: \u003Cqueue-url or name>\nVERDICT: PUBLIC_ACCESS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and step number>\nRISK: CRITICAL | HIGH | MEDIUM | LOW\nFINDINGS:\n  - [CRITICAL] \u003Cfinding description (Step N)>\n  - [HIGH] \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 access with DLQ configured\n\n```text\nQUEUE: https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fbilling-events\nVERDICT: PUBLIC_ACCESS\nREASON: Queue policy Statement \"OpenSend\" grants sqs:SendMessage to\n  Principal:\"*\" with no restrictive condition — any AWS account can inject\n  messages into the billing queue (Step 1).\nRISK: CRITICAL\nFINDINGS:\n  - [CRITICAL] Principal:\"*\" + sqs:SendMessage with no condition (Step 1) — any account can poison the queue\n  - [OK] RedrivePolicy configured with maxReceiveCount=5 (Step 2)\n  - [OK] SSE-SQS encryption enabled (Step 3)\nREMEDIATION:\n  1. Remove the \"OpenSend\" statement or add aws:SourceArn \u002F aws:SourceAccount\n     to scope access to the trusted producer.\n  2. Back up the current queue policy before changes:\n     aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names Policy\n     --output json > \u002Ftmp\u002F\u003Cqueue>-policy-backup.json.\n```\n\n## Edge-case handling\n\nEdge-case catalog (SourceArn\u002FSourceAccount strength, empty policy secure default,\nDLQ with own DLQ, FIFO standard DLQ, int vs string, worst statement): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `Principal: \"*\"` with a STRONG condition (`aws:SourceArn`,\n  `aws:SourceAccount`) as PUBLIC_ACCESS. This is the standard S3\u002FSNS-to-SQS\n  notification pattern. The condition is set by the AWS service layer and\n  the caller cannot forge it. Flagging it as public is a false positive that\n  causes unnecessary policy churn and erodes trust in the audit.\n\n- NEVER classify a queue with `SqsManagedSseEnabled: true` as NO_ENCRYPTION.\n  SSE-SQS provides AES-256-GCM encryption at rest, is FIPS-validated, and\n  satisfies SOC2 \u002F PCI-DSS \u002F HIPAA at-rest encryption requirements. It is\n  functionally equivalent to SSE-KMS for encryption purposes — the\n  difference is key management (AWS-managed vs customer-managed), not\n  encryption strength.\n\n- NEVER recommend `maxReceiveCount: 1`. A single transient failure (consumer\n  crash, Lambda throttle, VisibilityTimeout too short, network blip) sends\n  the message irretrievably to the DLQ. The minimum recommended value is 3\n  for standard queues, 5 for FIFO queues (where message-group blocking\n  makes each retry more expensive).\n\n- NEVER flag a missing `Policy` attribute as a security gap. The absence of\n  a resource-based queue policy means access is governed solely by IAM\n  identity-based policies — this is the SECURE default. Only flag the\n  PRESENCE of a permissive policy.\n\n- NEVER recommend the legacy `Redrive` API (deprecated 2022) for moving\n  messages back from the DLQ. Use `aws sqs start-message-move-task\n  --source-arn \u003Cdlq-arn> --destination-arn \u003Csource-arn>` (the current\n  asynchronous redrive API).\n\n- NEVER assume `RedrivePolicy` is a native dict. It is a JSON-encoded\n  string in the API response. Reading `policy[\"deadLetterTargetArn\"]`\n  directly on the unparsed string returns `None` \u002F throws — producing a\n  false NO_DLQ verdict. Always JSON-parse the inner string first.\n\n- NEVER treat `aws:SourceVpce` as a STRONG condition for public-access\n  classification. VPC endpoints can be reachable from peered VPCs, VPN\n  connections, and Transit Gateway attachments. Unlike `aws:SourceArn`\n  (set by the AWS service layer), VPC endpoint identity is\n  network-adjacent and more easily bypassed. Treat as WEAK.\n\n- NEVER set `maxReceiveCount` above 1000 without explicit justification. At\n  a 30-second VisibilityTimeout, 1000 retries = 8+ hours of poison-pill\n  cycling. For FIFO queues, this means 8+ hours of message-group stall.\n\n- NEVER recommend a DLQ `MessageRetentionPeriod` below 4 days. Operations\n  teams need time to analyse and replay failed messages. The SQS minimum is\n  60 seconds; the maximum is 1209600 seconds (14 days). Use 14 days for\n  DLQs to ensure weekend and holiday coverage.\n\n- NEVER ignore the FIFO DLQ type constraint. A FIFO queue's DLQ must also be\n  FIFO. A standard DLQ silently fails to receive redriven messages from a\n  FIFO source — the poison pill stays in the source queue forever.\n\n- NEVER assume the queue policy is the complete access picture. SQS access\n  is governed by the INTERSECTION of IAM identity-based policies AND the\n  resource-based queue policy (for cross-account) or EITHER (for same-\n  account). A queue with no resource-based policy may still be accessible\n  via IAM. The audit evaluates the resource-based policy for public\n  exposure — it does not enumerate all IAM principals.\n\n- NEVER recommend SSE-KMS over SSE-SQS purely for \"better security\" without\n  explaining the trade-off. SSE-KMS adds per-API KMS cost (~$0.03\u002F10k\n  requests + KMS key cost), potential throttle from KMS rate limits, and\n  latency from the KMS decrypt call. SSE-SQS is sufficient unless you need\n  customer-managed key control, CloudTrail decrypt logging, or key-level\n  grant revocation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (SetQueueAttributes, RemovePermission, AddPermission, PurgeQueue,\n  DeleteQueue, StartMessageMoveTask), the auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on queue \u003Curl>. This affects \u003Cconsequence>.\n  Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI command until the operator confirms.\n\n- **Back up the current queue policy and attributes before modification.**\n  Queue policies are not versioned — there is no rollback without a backup.\n  ```bash\n  aws sqs get-queue-attributes --queue-url \u003Curl> \\\n    --attribute-names All --output json > \u002Ftmp\u002F\u003Cqueue>-attrs-backup-$(date +%s).json\n  ```\n\n- **PurgeQueue is destructive and irreversible.** `aws sqs purge-queue`\n  deletes ALL messages in the queue instantly (up to the purge limit). It\n  cannot be scoped to specific messages. NEVER recommend PurgeQueue as a\n  remediation for poison-pill messages — use StartMessageMoveTask to move\n  them to the DLQ instead.\n\n- **SetQueueAttributes replaces, not merges.** Setting `Policy` via\n  `SetQueueAttributes` replaces the ENTIRE queue policy. If the new policy\n  omits a statement that a producer depends on, that producer silently\n  loses access. Always diff the old and new policy before applying.\n\n- **For PUBLIC_ACCESS findings (CRITICAL):** treat as incident-response.\n  An attacker may have already injected or exfiltrated messages. After\n  remediation, audit CloudTrail for `sqs:SendMessage` \u002F\n  `sqs:ReceiveMessage` events from unexpected principals during the\n  exposure window. Messages that were exfiltrated should be considered\n  compromised — rotate any credentials or tokens that were in message\n  bodies.\n\n- Prefer additive changes (add a Deny statement, add a Condition) over\n  destructive changes (remove a statement). Additive changes are reversible\n  and do not risk breaking existing producers\u002Fconsumers.\n\n## Remediation guidance\n\nPer-verdict remediation steps and fix commands (PUBLIC_ACCESS, NO_DLQ,\nNO_ENCRYPTION, CONFIG_GAP 4a-4d, OK): [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (paused queues, 14-day retention, SSE-SQS vs SSE-KMS,\nStartMessageMoveTask redrive): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, edge-case catalog, recent AWS features moved from SKILL.md\n- [Error handling](references\u002Ferror-handling.md) — per-verdict remediation guidance and fix commands moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Messaging Security & Reliability.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-security-best-practices.html\n- **SQS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002F\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Dead-letter queue redrive** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-configure-dead-letter-queue-redrive.html\n","# SQS DLQ Policy Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is always the **worst** finding across\nfive dimensions, and three SQS behaviours catch even experienced engineers —\n`Principal: \"*\"` in a queue policy is usually **safe** (S3\u002FSNS notification\npattern), `maxReceiveCount` counts **per delivery not per consumer**, and\n`RedrivePolicy` is a **JSON-encoded string** that must be parsed before\nclassification.\n\nA dead-letter queue is the only safety net against poison-pill messages. A\nqueue without a DLQ silently retries bad messages until they expire, burning\nthrough compute budget and starving healthy messages. Public queue policies\nexpose message payloads to any AWS account. Missing encryption leaves message\nbodies in plaintext at rest.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Risk | Rule |\n|---|---|---|---|\n| `Principal: \"*\"` + `sqs:SendMessage`\u002F`sqs:*`\u002F`*` + no strong condition | **PUBLIC_ACCESS** | CRITICAL | Step 1 |\n| No `RedrivePolicy` attribute \u002F missing `deadLetterTargetArn` | **NO_DLQ** | HIGH | Step 2 |\n| Neither `SqsManagedSseEnabled: true` nor `KmsMasterKeyId` set | **NO_ENCRYPTION** | HIGH | Step 3 |\n| `maxReceiveCount` \u003C= 1 (too aggressive) | **CONFIG_GAP** | MEDIUM | Step 4a |\n| `maxReceiveCount` > 1000 (poison-pill loop) | **CONFIG_GAP** | MEDIUM | Step 4b |\n| DLQ `MessageRetentionPeriod` \u003C 345600 (4 days) | **CONFIG_GAP** | MEDIUM | Step 4c |\n| DLQ ARN in a different account + no `RedriveAllowPolicy` granting access | **CONFIG_GAP** | MEDIUM | Step 4d |\n| All dimensions pass | **OK** | LOW | Step 5 |\n\nSee the ordered steps below for edge cases (Principal:\"*\" with SourceArn,\nFIFO DLQ constraints, VisibilityTimeout interaction).\n\n## Pre-flight: queue metadata gate\n\nBefore evaluating the queue policy and redrive configuration, classify the\nqueue itself. Several attributes short-circuit or modify the audit.\n\n**Multi-queue \u002F account-wide sweep note (pagination):** `aws sqs list-queues`\nreturns up to 1000 queue URLs per page. Use `--next-token` (from the prior\n`NextToken`) to page through all queues; iterating only the first page\nsilently misses queues. For each URL, `aws sqs get-queue-attributes\n--queue-url \u003Curl> --attribute-names All` returns all attributes in one call\n(no pagination needed for attributes).\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| `FifoQueue` | `true` | **FIFO queue.** DLQ must also be FIFO. maxReceiveCount tuning is MORE critical — a poison pill in a message group blocks the entire group until moved to DLQ. |\n| `FifoQueue` | `false` \u002F absent | **Standard queue.** Normal audit. |\n| `ContentBasedDeduplication` | `true` (FIFO) | Deduplication runs before receive count — a retried message with the same dedup ID does NOT increment the counter. Poison pills persist longer than expected. |\n| `Policy` | absent \u002F empty | **No resource-based policy.** Only IAM identity-based policies govern access. This is the SECURE default — do not flag as a gap. |\n| `KmsMasterKeyId` | set | **SSE-KMS encryption.** Customer-managed or AWS-managed KMS key. Encryption is satisfied. |\n| `SqsManagedSseEnabled` | `true` | **SSE-SQS encryption.** Amazon SQS-managed encryption (free, FIPS-compliant). Encryption is satisfied. |\n\n**If the queue attribute document is malformed** (the `Policy` field is not\nvalid JSON, or `RedrivePolicy` is not valid JSON when present), output:\n\n```text\nQUEUE: \u003Cqueue-url>\nVERDICT: ERROR\nREASON: Queue attribute document is malformed — \u003Cfield> is not valid JSON.\nREMEDIATION: Re-fetch with `aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names All --output json` and re-audit.\n```\n\n**RedrivePolicy is a JSON-encoded string, not a native attribute.**\n`aws sqs get-queue-attributes` returns `RedrivePolicy` as a\nJSON-encoded **string** (double-encoded in the CLI JSON output). You MUST\nparse the inner JSON before reading `deadLetterTargetArn` and\n`maxReceiveCount`. A classification that reads the raw string as a dict\nproduces false NO_DLQ verdicts — the field looks absent because it was never\nparsed.\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious SQS behaviours that change classification\n\nFull catalog (Principal:\"*\" usually safe, per-delivery counting, FIFO group\nblocking, SSE-SQS, RedriveAllowPolicy, VT window, ESM, v2 API, casing): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Public access via queue policy (PUBLIC_ACCESS)\n\nFor each `Effect: Allow` statement in the queue policy, classify the\nprincipal scope:\n\n- **WILDCARD_PRINCIPAL** — `Principal: \"*\"`, `Principal: {\"AWS\": \"*\"}`, or\n  any construct resolving to all AWS principals.\n\n- **NAMED_PRINCIPAL** — `Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:role\u002F...\"}`\n  or `Principal: {\"Service\": \"s3.amazonaws.com\"}`.\n\nA WILDCARD_PRINCIPAL statement is classified by its **condition strength**:\n\n**STRONG conditions (NOT public — access is genuinely scoped):**\n- `aws:SourceArn` (`ArnEquals` \u002F `ArnLike`) — request must originate from\n  the named resource (S3 bucket, SNS topic). This is the standard S3\u002FSNS-\n  to-SQS pattern. The caller cannot forge this; it is set by the AWS\n  service layer.\n- `aws:SourceAccount` (`StringEquals`) — request must originate from the\n  named account.\n- `aws:SourceAws` (deprecated alias of SourceAccount).\n\n**WEAK \u002F NO conditions (PUBLIC — flag as PUBLIC_ACCESS):**\n- No `Condition` block at all.\n- `aws:SourceIp` \u002F `aws:SourceIp` containing `0.0.0.0\u002F0` — IP-based\n  restrictions are bypassable; `0.0.0.0\u002F0` is the entire internet.\n- `aws:SourceVpce` \u002F `aws:SourceVpc` — VPC-scoped but the VPC endpoint is\n  network-reachable from peered connections; treat as WEAK for public-\n  exposure classification.\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable by any HTTP client.\n\n**Action sensitivity for WILDCARD_PRINCIPAL with weak\u002Fno condition:**\n\n| Action | Severity | Why |\n|---|---|---|\n| `sqs:SendMessage` | **CRITICAL** | Any account can inject messages — data poisoning, queue flooding, cost amplification. |\n| `sqs:ReceiveMessage` | **CRITICAL** | Any account can drain the queue — silent data exfiltration of message payloads. |\n| `sqs:DeleteMessage` | **CRITICAL** | Any account can delete messages — silent data loss. |\n| `sqs:*` \u002F `*` | **CRITICAL** | Full queue control — inject, drain, delete, reconfigure. |\n| `sqs:GetQueueAttributes` \u002F `sqs:GetQueueUrl` | **MEDIUM** | Metadata disclosure only (queue config, approximate message counts). Not PUBLIC_ACCESS verdict — note as advisory. |\n\nIf any WILDCARD_PRINCIPAL statement with a sensitive action (SendMessage,\nReceiveMessage, DeleteMessage, sqs:*, *) and a WEAK\u002FNO condition is found,\nthe queue verdict is **PUBLIC_ACCESS** with **CRITICAL** risk.\n\n### Step 2: Dead-letter queue presence (NO_DLQ)\n\nEvaluate the `RedrivePolicy` attribute (after JSON-parsing the string):\n\n- **Absent \u002F empty \u002F malformed** → **NO_DLQ**. No dead-letter queue is\n  configured. Poison-pill messages retry until `MessageRetentionPeriod`\n  expires (default 4 days). Every retry is a billable API call. With a high\n  `maxReceiveCount` (if somehow set without a DLQ — configuration drift),\n  the retry storm can last days.\n\n- **Present but `deadLetterTargetArn` missing** → **NO_DLQ**. The policy\n  JSON exists but the DLQ target is absent — the redrive is non-functional.\n\n- **Present with `deadLetterTargetArn`** → proceed to Step 4d (DLQ\n  accessibility sub-check).\n\n**FIFO queue special case:** if `FifoQueue: true` and the `deadLetterTargetArn`\npoints to a standard (non-FIFO) queue, the redrive is INVALID — SQS silently\nrejects messages to a standard DLQ from a FIFO source. Flag as NO_DLQ with\nnote: \"DLQ ARN points to a standard queue — FIFO source requires a FIFO DLQ.\"\n\n### Step 3: Encryption-at-rest (NO_ENCRYPTION)\n\nEvaluate encryption from two attributes:\n\n- **`SqsManagedSseEnabled: true`** → SSE-SQS is active. Encryption is\n  satisfied. This is the free, AWS-managed option (AES-256-GCM, FIPS-\n  validated). Do NOT flag.\n\n- **`KmsMasterKeyId` set to a key ARN \u002F key ID \u002F alias** → SSE-KMS is\n  active. Encryption is satisfied. Note whether the key is AWS-managed\n  (`alias\u002Faws\u002Fsqs`) or customer-managed (for cost\u002Frotation auditing — route\n  to kms-key-policy-auditor for the key policy).\n\n- **Neither set** → **NO_ENCRYPTION**. Message bodies are stored in\n  plaintext at rest. Messages are always encrypted in transit (TLS), but\n  the at-rest storage is unencrypted. Flag as HIGH risk.\n\n### Step 4: Configuration gaps (CONFIG_GAP sub-checks)\n\nIf no higher-severity verdict was triggered (PUBLIC_ACCESS, NO_DLQ,\nNO_ENCRYPTION), evaluate the following sub-checks. Each finding is\nenumerated; any non-empty finding set produces a **CONFIG_GAP** verdict.\n\n#### Step 4a: maxReceiveCount too low\n\nIf `maxReceiveCount` (from the parsed RedrivePolicy) is \u003C= 1:\n\n- **maxReceiveCount: 1** → any transient failure (consumer crash, network\n  blip, Lambda throttle, VisibilityTimeout too short) sends the message\n  straight to the DLQ on the FIRST delivery attempt. This is almost always\n  a misconfiguration — the message never gets a second chance. High false-\n  positive DLQ rate.\n\n- **maxReceiveCount: 2-3** with Lambda event source mapping → advisory. The\n  Lambda service's batch window adds delay between retries, so 2-3\n  invocations may be insufficient for transient downstream failures.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: set to 5-10 for standard\nqueues, 5-15 for FIFO queues (message-group blocking makes retries cheaper).\n\n#### Step 4b: maxReceiveCount too high\n\nIf `maxReceiveCount` > 1000:\n\n- The message retries up to 1000+ times before reaching the DLQ. At a\n  VisibilityTimeout of 30s, that is ~8+ hours of retry cycles. Poison-pill\n  messages burn compute budget and starve healthy messages in the queue.\n  For FIFO queues, the message group is stalled for the entire duration.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: 5-100 for standard queues,\n5-20 for FIFO queues.\n\n#### Step 4c: DLQ message-retention period too short\n\nIf the DLQ's `MessageRetentionPeriod` \u003C 345600 (4 days):\n\n- Failed messages expire from the DLQ before operations teams can analyse\n  and replay them. The DLQ is useless as a diagnostic tool if messages\n  vanish before anyone looks. The default retention (4 days \u002F 345600s) is\n  already marginal for weekend coverage.\n\nFlag as CONFIG_GAP with MEDIUM risk. Recommended: 1209600 (14 days, the\nmaximum) for DLQs to ensure weekend\u002Fholiday coverage.\n\nIf DLQ attributes are not provided in the input, note: \"DLQ retention period\nnot provided — fetch with `aws sqs get-queue-attributes --queue-url \u003Cdlq-url>\n--attribute-names MessageRetentionPeriod` to verify.\"\n\n#### Step 4d: Cross-account DLQ accessibility\n\nIf the `deadLetterTargetArn` in the RedrivePolicy points to a queue in a\ndifferent AWS account (12-digit account ID differs from the source queue's\naccount):\n\n- The DLQ is cross-account. SQS supports this IF the DLQ's queue policy (or\n  `RedriveAllowPolicy`) grants `sqs:SendMessage` to the source queue's\n  account. If no such grant is visible, the redrive is non-functional —\n  messages attempting to move to the DLQ will be silently dropped.\n\n- Verify the DLQ's `RedriveAllowPolicy` includes the source queue ARN under\n  `redrivePermission: \"byQueue\"` or `redrivePermission: \"allowAll\"`.\n\nFlag as CONFIG_GAP with MEDIUM risk. Note: \"Cross-account DLQ — verify DLQ\nqueue policy grants SendMessage to source account.\"\n\n### Step 5: OK — aggregation\n\nIf no findings from Steps 1-4:\n\n```text\nQUEUE: \u003Cqueue-url>\nVERDICT: OK\nREASON: \u003Cqueue-name> has a DLQ configured (maxReceiveCount=\u003CN>), encryption-at-rest\n  enabled (\u003CSSE-SQS|SSE-KMS>), no public queue-policy exposure, and retention\n  periods within recommended bounds.\nRISK: LOW\nREMEDIATION: None required.\n```\n\n## Output format (per queue)\n\n```text\nQUEUE: \u003Cqueue-url or name>\nVERDICT: PUBLIC_ACCESS | NO_DLQ | NO_ENCRYPTION | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and step number>\nRISK: CRITICAL | HIGH | MEDIUM | LOW\nFINDINGS:\n  - [CRITICAL] \u003Cfinding description (Step N)>\n  - [HIGH] \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 access with DLQ configured\n\n```text\nQUEUE: https:\u002F\u002Fsqs.us-east-1.amazonaws.com\u002F111111111111\u002Fbilling-events\nVERDICT: PUBLIC_ACCESS\nREASON: Queue policy Statement \"OpenSend\" grants sqs:SendMessage to\n  Principal:\"*\" with no restrictive condition — any AWS account can inject\n  messages into the billing queue (Step 1).\nRISK: CRITICAL\nFINDINGS:\n  - [CRITICAL] Principal:\"*\" + sqs:SendMessage with no condition (Step 1) — any account can poison the queue\n  - [OK] RedrivePolicy configured with maxReceiveCount=5 (Step 2)\n  - [OK] SSE-SQS encryption enabled (Step 3)\nREMEDIATION:\n  1. Remove the \"OpenSend\" statement or add aws:SourceArn \u002F aws:SourceAccount\n     to scope access to the trusted producer.\n  2. Back up the current queue policy before changes:\n     aws sqs get-queue-attributes --queue-url \u003Curl> --attribute-names Policy\n     --output json > \u002Ftmp\u002F\u003Cqueue>-policy-backup.json.\n```\n\n## Edge-case handling\n\nEdge-case catalog (SourceArn\u002FSourceAccount strength, empty policy secure default,\nDLQ with own DLQ, FIFO standard DLQ, int vs string, worst statement): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify `Principal: \"*\"` with a STRONG condition (`aws:SourceArn`,\n  `aws:SourceAccount`) as PUBLIC_ACCESS. This is the standard S3\u002FSNS-to-SQS\n  notification pattern. The condition is set by the AWS service layer and\n  the caller cannot forge it. Flagging it as public is a false positive that\n  causes unnecessary policy churn and erodes trust in the audit.\n\n- NEVER classify a queue with `SqsManagedSseEnabled: true` as NO_ENCRYPTION.\n  SSE-SQS provides AES-256-GCM encryption at rest, is FIPS-validated, and\n  satisfies SOC2 \u002F PCI-DSS \u002F HIPAA at-rest encryption requirements. It is\n  functionally equivalent to SSE-KMS for encryption purposes — the\n  difference is key management (AWS-managed vs customer-managed), not\n  encryption strength.\n\n- NEVER recommend `maxReceiveCount: 1`. A single transient failure (consumer\n  crash, Lambda throttle, VisibilityTimeout too short, network blip) sends\n  the message irretrievably to the DLQ. The minimum recommended value is 3\n  for standard queues, 5 for FIFO queues (where message-group blocking\n  makes each retry more expensive).\n\n- NEVER flag a missing `Policy` attribute as a security gap. The absence of\n  a resource-based queue policy means access is governed solely by IAM\n  identity-based policies — this is the SECURE default. Only flag the\n  PRESENCE of a permissive policy.\n\n- NEVER recommend the legacy `Redrive` API (deprecated 2022) for moving\n  messages back from the DLQ. Use `aws sqs start-message-move-task\n  --source-arn \u003Cdlq-arn> --destination-arn \u003Csource-arn>` (the current\n  asynchronous redrive API).\n\n- NEVER assume `RedrivePolicy` is a native dict. It is a JSON-encoded\n  string in the API response. Reading `policy[\"deadLetterTargetArn\"]`\n  directly on the unparsed string returns `None` \u002F throws — producing a\n  false NO_DLQ verdict. Always JSON-parse the inner string first.\n\n- NEVER treat `aws:SourceVpce` as a STRONG condition for public-access\n  classification. VPC endpoints can be reachable from peered VPCs, VPN\n  connections, and Transit Gateway attachments. Unlike `aws:SourceArn`\n  (set by the AWS service layer), VPC endpoint identity is\n  network-adjacent and more easily bypassed. Treat as WEAK.\n\n- NEVER set `maxReceiveCount` above 1000 without explicit justification. At\n  a 30-second VisibilityTimeout, 1000 retries = 8+ hours of poison-pill\n  cycling. For FIFO queues, this means 8+ hours of message-group stall.\n\n- NEVER recommend a DLQ `MessageRetentionPeriod` below 4 days. Operations\n  teams need time to analyse and replay failed messages. The SQS minimum is\n  60 seconds; the maximum is 1209600 seconds (14 days). Use 14 days for\n  DLQs to ensure weekend and holiday coverage.\n\n- NEVER ignore the FIFO DLQ type constraint. A FIFO queue's DLQ must also be\n  FIFO. A standard DLQ silently fails to receive redriven messages from a\n  FIFO source — the poison pill stays in the source queue forever.\n\n- NEVER assume the queue policy is the complete access picture. SQS access\n  is governed by the INTERSECTION of IAM identity-based policies AND the\n  resource-based queue policy (for cross-account) or EITHER (for same-\n  account). A queue with no resource-based policy may still be accessible\n  via IAM. The audit evaluates the resource-based policy for public\n  exposure — it does not enumerate all IAM principals.\n\n- NEVER recommend SSE-KMS over SSE-SQS purely for \"better security\" without\n  explaining the trade-off. SSE-KMS adds per-API KMS cost (~$0.03\u002F10k\n  requests + KMS key cost), potential throttle from KMS rate limits, and\n  latency from the KMS decrypt call. SSE-SQS is sufficient unless you need\n  customer-managed key control, CloudTrail decrypt logging, or key-level\n  grant revocation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (SetQueueAttributes, RemovePermission, AddPermission, PurgeQueue,\n  DeleteQueue, StartMessageMoveTask), the auditor MUST emit:\n  `CONFIRM: About to \u003Caction> on queue \u003Curl>. This affects \u003Cconsequence>.\n  Proceed? (yes\u002Fno)`\n  Do NOT execute the CLI command until the operator confirms.\n\n- **Back up the current queue policy and attributes before modification.**\n  Queue policies are not versioned — there is no rollback without a backup.\n  ```bash\n  aws sqs get-queue-attributes --queue-url \u003Curl> \\\n    --attribute-names All --output json > \u002Ftmp\u002F\u003Cqueue>-attrs-backup-$(date +%s).json\n  ```\n\n- **PurgeQueue is destructive and irreversible.** `aws sqs purge-queue`\n  deletes ALL messages in the queue instantly (up to the purge limit). It\n  cannot be scoped to specific messages. NEVER recommend PurgeQueue as a\n  remediation for poison-pill messages — use StartMessageMoveTask to move\n  them to the DLQ instead.\n\n- **SetQueueAttributes replaces, not merges.** Setting `Policy` via\n  `SetQueueAttributes` replaces the ENTIRE queue policy. If the new policy\n  omits a statement that a producer depends on, that producer silently\n  loses access. Always diff the old and new policy before applying.\n\n- **For PUBLIC_ACCESS findings (CRITICAL):** treat as incident-response.\n  An attacker may have already injected or exfiltrated messages. After\n  remediation, audit CloudTrail for `sqs:SendMessage` \u002F\n  `sqs:ReceiveMessage` events from unexpected principals during the\n  exposure window. Messages that were exfiltrated should be considered\n  compromised — rotate any credentials or tokens that were in message\n  bodies.\n\n- Prefer additive changes (add a Deny statement, add a Condition) over\n  destructive changes (remove a statement). Additive changes are reversible\n  and do not risk breaking existing producers\u002Fconsumers.\n\n## Remediation guidance\n\nPer-verdict remediation steps and fix commands (PUBLIC_ACCESS, NO_DLQ,\nNO_ENCRYPTION, CONFIG_GAP 4a-4d, OK): [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (paused queues, 14-day retention, SSE-SQS vs SSE-KMS,\nStartMessageMoveTask redrive): [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, edge-case catalog, recent AWS features moved from SKILL.md\n- [Error handling](references\u002Ferror-handling.md) — per-verdict remediation guidance and fix commands moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F App Integration — SQS Messaging Security & Reliability.\n\n## AWS documentation\n\n- **Amazon SQS Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fwelcome.html\n- **SQS Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-security-best-practices.html\n- **SQS API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FAPIReference\u002F\n- **SQS CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fsqs\u002F\n- **Dead-letter queue redrive** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-configure-dead-letter-queue-redrive.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},"sqs, app-integration, dead-letter-queue, redrive-policy, encryption, queue-policy, public-access, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","SQS, dead-letter queue, DLQ, redrive policy, maxReceiveCount, queue policy, Principal:\"*\", public access, SSE-SQS, SSE-KMS, KmsMasterKeyId, SqsManagedSseEnabled, message retention, cross-account DLQ, FIFO queue, poison pill, RedriveAllowPolicy, VisibilityTimeout, SQS audit, queue security","high","false","Reviewing an SQS queue configuration before production deployment, checking for a missing dead-letter queue, auditing a queue policy for public access, validating encryption-at-rest, tuning maxReceiveCount, inspecting DLQ retention, or hardening SQS posture across an account.","true","NO_DLQ | PUBLIC_ACCESS | NO_ENCRYPTION | CONFIG_GAP | OK","Input: either (a) an SQS queue attribute document (Policy, RedrivePolicy, KmsMasterKeyId, SqsManagedSseEnabled, MessageRetentionPeriod, VisibilityTimeout), optionally paired with DLQ attributes, OR (b) a queue URL\u002FARN for live-account audit. Output: deterministic QUEUE\u002FVERDICT\u002FREASON\u002F FINDINGS\u002FREMEDIATION block per queue, where VERDICT is one of NO_DLQ, PUBLIC_ACCESS, NO_ENCRYPTION, CONFIG_GAP, OK.","audit this SQS queue, is my SQS queue missing a DLQ, check SQS redrive policy, is my SQS queue public, SQS queue encryption, maxReceiveCount tuning, DLQ retention period, cross-account DLQ, poison pill SQS, harden SQS queue","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline attribute-document classification. Live-account audits use aws sqs get-queue-attributes, aws sqs list-queues, and aws sqs get-queue-url (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fsqs-dlq-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 sqs-dlq-policy-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill sqs-dlq-policy-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill sqs-dlq-policy-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-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","参考文档",9265,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fconfig-gap-maxreceive-one.md",782,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fconfig-gap-maxreceive-one.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fno-dlq-configured.md",666,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fno-dlq-configured.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fno-encryption-queue.md",624,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fno-encryption-queue.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fok-clean-config.md",485,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fok-clean-config.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fpublic-access-no-condition.md",820,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fpublic-access-no-condition.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fpublic-source-arn-still-ok.md",840,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fbaselines\u002Fpublic-source-arn-still-ok.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1987,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",5174,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fconfig-gap-maxreceive-one.md",803,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fconfig-gap-maxreceive-one.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fno-dlq-configured.md",521,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fno-dlq-configured.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fno-encryption-queue.md",680,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fno-encryption-queue.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fok-clean-config.md",1130,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fok-clean-config.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fpublic-access-no-condition.md",959,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fpublic-access-no-condition.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fpublic-source-arn-still-ok.md",1220,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fevals\u002Fprompts\u002Fpublic-source-arn-still-ok.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",5933,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",7763,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Ferror-handling.md",4250,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-policy-auditor\u002Freferences\u002Ferror-handling.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"skill.usf.yaml",4031,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsqs-dlq-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",[],[]]