[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAFYNGV22RA4BE04B4R5HB":3,"skill-same:01M7AAFYNGV22RA4BE04B4R5HB":132},{"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},"01M7AAFYNGV22RA4BE04B4R5HB","opensearch-domain-auditor",null,"Audits Amazon OpenSearch Service (provisioned, not Serverless) domains for encryption-at-rest (KMS), node-to-node encryption, fine-grained access control (FGAC), public access via resource-policy Principal \"*\", dedicated master node sizing, and slow-log publishing to CloudWatch Logs. Emits a deterministic verdict (NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK) per domain with enumerated findings and CLI remediation. Use when reviewing an OpenSearch domain before production deployment, validating encryption\u002Fcompliance posture, checking for public data-plane exposure, or hardening a cluster that grew out of a dev sandbox.","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\u002Fopensearch-domain-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: opensearch-domain-auditor\ndescription: Audits Amazon OpenSearch Service (provisioned, not Serverless) domains for encryption-at-rest (KMS), node-to-node encryption, fine-grained access control (FGAC), public access via resource-policy Principal \"*\", dedicated master node sizing, and slow-log publishing to CloudWatch Logs. Emits a deterministic verdict (NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK) per domain with enumerated findings and CLI remediation. Use when reviewing an OpenSearch domain before production deployment, validating encryption\u002Fcompliance posture, checking for public data-plane exposure, or hardening a cluster that grew out of a dev sandbox.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline config classification. Live-account audits use aws opensearch describe-domain, describe-domain-config, list-domain-names, and describe-domain-access-policy (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: Analytics\n  verdict_shape: NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK\n  when_to_use: Reviewing an OpenSearch domain before production deployment, validating encryption compliance, checking for public data-plane exposure via resource policy, auditing fine-grained access control coverage, sizing dedicated master nodes, or wiring slow-log publishing to CloudWatch Logs.\n  activation_triggers: audit this OpenSearch domain, is my OpenSearch domain public, check OpenSearch encryption at rest, OpenSearch node-to-node encryption off, OpenSearch FGAC disabled, is Advanced Security enabled, OpenSearch Principal star, dedicated master node too small, OpenSearch slow logs not published, harden OpenSearch domain\n  invocation_schema: 'Input: either (a) an OpenSearch domain configuration (describe-domain + describe-domain-config + describe-domain-access-policy + list-domain-names), OR (b) a domain name\u002FARN for live-account audit. Output: deterministic DOMAIN\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per domain, where VERDICT ∈ {NO_ENCRYPTION, PUBLIC_ACCESS, NO_FGAC, CONFIG_GAP, OK, ERROR}.'\n  version: 0.3.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: OpenSearch, Elasticsearch, AES, Amazon OpenSearch Service, encryption at rest, KMS, node-to-node encryption, fine-grained access control, FGAC, Advanced Security, public access, Principal star, es:ESHttp*, dedicated master, master node type, t3.small.search, slow logs, SEARCH_SLOW_LOGS, INDEX_SLOW_LOGS, LogPublishingOptions, VPC domain, cluster config, OpenSearch compliance, OpenSearch hardening\n  tags: opensearch, analytics, encryption, security, fgac, master-node, slow-logs, audit\n---\n\n# OpenSearch Domain Auditor\n\n## Quick start\n\nInvoke when classifying an OpenSearch Service (provisioned) domain against the\n**AWS Security Hub Foundational Security Best Practices (FSBP)** controls\nOS.1–OS.8. Minimal live-account invocation:\n\n```text\nAudit OpenSearch domain \"logs-prod\" in us-east-1.\naws opensearch describe-domain --domain-name logs-prod\naws opensearch describe-domain-config --domain-name logs-prod\naws opensearch describe-domain-access-policy --domain-name logs-prod\n```\n\nThe verdict is the **worst** finding:\n`NO_ENCRYPTION > PUBLIC_ACCESS > NO_FGAC > CONFIG_GAP > OK`.\nApply [Process](#process--classification-logic) steps in order. Edge cases,\nanti-patterns, and operational insights are in [Reference](#reference).\n\n## Critical rule — confirmation gate\n\nEvery state-changing remediation (`update-domain-config`,\n`update-domain-access-policy`, `delete-domain`, `create-domain`) is **blocked**\nuntil the operator confirms. Emit and halt:\n\n```text\nCONFIRM: About to \u003Caction> on domain \u003Cname>. This affects \u003Cconsequence>. Proceed? (yes\u002Fno)\n```\n\nThis gate is **non-negotiable** and applies to **every** remediation command\nwithout exception — including log-publishing updates, master-node resize,\nHTTPS-enforcement toggles, and access-policy edits. OpenSearch mutations can\ntake 30 minutes to several hours (blue\u002Fgreen deployment that doubles node\ncount — cost spike), and some changes (encryption-at-rest, NTN, VPC-vs-public\nendpoint) are **immutable** and require full domain recreation. Do not\nbatch-confirm; prompt once per action.\n\n## Decision tree — severity thresholds\n\n| Condition | Verdict | Step | FSBP |\n|---|---|---|---|\n| `EncryptionAtRestOptions.Enabled: false` (or absent) | **NO_ENCRYPTION** | 1a | OS.1 |\n| `Principal: \"*\"` + `es:ESHttp*`\u002F`es:*` + no STRONG condition (non-VPC) | **PUBLIC_ACCESS** | 2a | OS.3 |\n| `Principal: \"*\"` + DATA_PLANE + STRONG (`aws:SourceAccount`\u002F`aws:SourceArn`) | Downgrade (NO_FGAC if FGAC off) | 2b | OS.3 |\n| `AdvancedSecurityOptions.Enabled: false` on internet-facing domain | **NO_FGAC** | 3a | OS.3 |\n| `AdvancedSecurityOptions.Enabled: false` on VPC domain | **CONFIG_GAP** | 3b | OS.4 |\n| `NodeToNodeEncryptionOptions.Enabled: false` (at-rest on) | **CONFIG_GAP** | 4a | OS.2\u002FOS.8 |\n| Dedicated master `t2\u002Ft3.small.search`, count 1\u002F2, or none | **CONFIG_GAP** | 4b | — |\n| `LogPublishingOptions` missing `SEARCH_SLOW_LOGS` AND `INDEX_SLOW_LOGS` | **CONFIG_GAP** | 4c | OS.6\u002FOS.7 |\n| `DomainEndpointOptions.EnforceHTTPS: false` | **CONFIG_GAP** | 4d | OS.5 |\n| `KmsKeyId` is `aws\u002Fes` or absent | **CONFIG_GAP** | 4e | OS.1 |\n| `InstanceCount >= 2` + `ZoneAwarenessEnabled: false` | **CONFIG_GAP** | 4f | — |\n| `EngineVersion: Elasticsearch_X.Y` (legacy fork) | **CONFIG_GAP** | 4g | — |\n| All dimensions clean | **OK** | 5 | — |\n\nWorst finding wins. VPC domains skip Step 2 (no internet endpoint).\n\n## Mindset\n\nOpenSearch is unusual among AWS data services: the resource-based policy gates\n**both** the configuration API (`es:DescribeDomain`) and the data plane\n(`es:ESHttp*` — full REST API: read every document, delete every index, change\nevery mapping). A pattern safe for S3 or KMS (`Principal: \"*\"` with\n`aws:SourceIp`) is **not** safe for OpenSearch — `aws:SourceIp` is bypassable\nvia VPN\u002FNAT and there are no per-object ACLs as a fallback.\n\nThree counter-intuitive facts drive most misclassifications:\n(1) encryption-at-rest and node-to-node encryption are both **immutable**\npost-creation — no toggle, the remediation is a full reindex migration;\n(2) FGAC cannot be enabled without NTN, which requires HTTPS — so a `NO_FGAC`\nfinding often hides a deeper immutable NTN root cause;\n(3) the access policy is evaluated **before** FGAC, so a wildcard principal\ngrants data-plane access even when FGAC is on.\n\n## Process — Classification logic\n\nApply in order, aggregate worst. See [Reference](#reference) for the\noperational reasoning behind each rule.\n\n### Step 1: Encryption-at-rest (NO_ENCRYPTION)\n\n- **`Enabled: false` or absent** → **NO_ENCRYPTION** (CRITICAL). Data at rest\n  is plaintext — every snapshot, EBS volume, and backup. PCI-DSS 3.4, HIPAA\n  164.312(a)(2)(iv), SOC2 CC6.1 violation. Remediation is **always** domain\n  recreation (encryption is immutable); do not emit \"enable encryption\"\n  guidance. Short-circuits to Step 5.\n- **`Enabled: true` + `KmsKeyId: aws\u002Fes` or absent** → CONFIG_GAP finding. The\n  AWS-OWNED key `aws\u002Fes` is opaque: no CloudTrail `kms:Decrypt` events (the\n  service calls Decrypt on its own principal), no rotation control, no customer\n  key policy. See [Reference: aws\u002Fes opacity](#awses-cloudtrail-opacity).\n- **`Enabled: true` + customer-managed CMK ARN** → OK on this dimension.\n\n### Step 2: Public access via resource policy (PUBLIC_ACCESS)\n\nSkip for VPC domains. For each `Effect: Allow` statement, classify:\n\n- **Principal**: WILDCARD (`\"*\"`, `{\"AWS\": \"*\"}`, `{\"Service\": \"*\"}`) |\n  CROSS_ACCOUNT (different 12-digit account) | SAME_ACCOUNT.\n- **Action**: DATA_PLANE (`es:ESHttp*`, `es:*`, `es:ESHttpGet\u002FPost\u002FPut\u002FDelete`) |\n  CONFIGURATION_PLANE (`es:Describe*`, `es:UpdateDomainConfig`) |\n  read-only DATA_PLANE (`es:ESHttpGet` only).\n- **Condition**: STRONG (`aws:SourceArn`\u002F`aws:SourceAccount` with\n  `StringEquals` — set by AWS infrastructure, not caller-controlled) |\n  WEAK (`aws:SourceIp` with real CIDR — bypassable by VPN\u002FNAT\u002Fproxy) |\n  NONE (no condition, or `0.0.0.0\u002F0`).\n\n| # | Principal | Action | Condition | Verdict |\n|---|---|---|---|---|\n| 2a | WILDCARD | DATA_PLANE \u002F `es:*` | None\u002FWeak | **PUBLIC_ACCESS** |\n| 2b | WILDCARD | DATA_PLANE | Strong | Downgrade (NO_FGAC if FGAC off) |\n| 2c | CROSS_ACCOUNT | DATA_PLANE | None\u002FWeak | **PUBLIC_ACCESS** |\n| 2d | WILDCARD\u002FCROSS | CONFIGURATION_PLANE only | None\u002FWeak | **CONFIG_GAP** (metadata leak) |\n| 2e | WILDCARD\u002FCROSS | Any | Strong | Downgrade one level |\n| 2f | SAME_ACCOUNT | Any | Any | OK |\n\nThe account-root statement (`Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}`\n+ `es:*`) is the standard IAM-delegation pattern — classify as SAME_ACCOUNT\u002FOK.\n\n### Step 3: Fine-grained access control (NO_FGAC)\n\n- **`Enabled: false` + internet-facing (no VPCOptions)** → **NO_FGAC** (HIGH).\n  Without FGAC, the resource policy alone determines access. Any principal\n  with `es:ESHttp*` has unrestricted access to every index — no per-index\n  role, no document-level security, no field masking. Remediation prerequisite\n  is NTN (Step 4a) — flag the dependency.\n- **`Enabled: false` + VPC domain** → **CONFIG_GAP** (MEDIUM). VPC is the\n  network boundary, reducing exposure. But defense-in-depth still recommends\n  FGAC for blast-radius containment.\n- **`Enabled: true`** → OK. Flag CONFIG_GAP finding if\n  `InternalUserDatabaseEnabled: true` and master credentials are not in Secrets\n  Manager (loss of internal master password is unrecoverable without disabling\n  FGAC — a destructive operation that wipes all role mappings).\n\n### Step 4: Configuration gaps (CONFIG_GAP — additive)\n\nEach finding adds to FINDINGS; none changes the verdict on its own.\n\n- **4a NTN off**: `NodeToNodeEncryptionOptions.Enabled: false`. Inter-node\n  traffic plaintext. Required for FGAC and HTTPS. **Immutable** post-creation —\n  domain recreation only.\n- **4b Master node**: `DedicatedMasterEnabled: false` (election storms);\n  `DedicatedMasterCount: 1` (SPOF) or `2` (no quorum — AWS requires 3 for HA);\n  `DedicatedMasterType: t2\u002Ft3.small.search` (below m5.large.search minimum,\n  CPU-credit exhaustion silently drops cluster-state API calls). Master\n  type\u002Fcount IS mutable via `update-domain-config` (blue\u002Fgreen).\n- **4c Slow logs**: `SEARCH_SLOW_LOGS` or `INDEX_SLOW_LOGS` absent\u002Fdisabled.\n  Slow queries invisible. Threshold calibration lives in `_cluster\u002Fsettings`,\n  not describe output.\n- **4d HTTPS off**: `EnforceHTTPS: false`. Plaintext HTTP to data plane.\n  Auto-false when NTN off. Mutable.\n- **4e AWS-managed key**: `KmsKeyId` is `aws\u002Fes` or absent. No customer audit\n  trail, rotation, or key policy. Migration requires domain recreation.\n- **4f Single-AZ multi-node**: `InstanceCount >= 2` + `ZoneAwarenessEnabled:\n  false`. All nodes in one AZ — AZ failure takes cluster down.\n- **4g Legacy engine**: `EngineVersion: Elasticsearch_X.Y`. No new features\n  since fork; eventual forced upgrade. Not a verdict driver but always emit.\n\n### Step 5: Aggregation\n\nPrecedence: `NO_ENCRYPTION > PUBLIC_ACCESS > NO_FGAC > CONFIG_GAP > OK`. All\nfindings listed in FINDINGS; verdict is the worst single step's verdict.\n\n## Output format (per domain)\n\nEmit one block per domain in this field order. For batch\u002Fmulti-domain input,\nprocess each independently — emit blocks sequentially. If one domain errors,\nemit its ERROR block and continue.\n\n```text\nDOMAIN: \u003Cdomain-name>\nVERDICT: NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK | ERROR\nREASON: \u003C1-2 sentences citing the worst finding and step number>\nFINDINGS:\n  - [SEVERITY] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n**Immutable-vs-mutable scope:** Only at-rest encryption (Step 1a) and NTN\n(Step 4a) require **domain recreation** — state \"requires domain recreation\n(immutable)\" for these. Master-node type\u002Fcount (Step 4b), HTTPS (Step 4d),\nslow-log publishing (Step 4c), and FGAC (Step 3) ARE mutable in-place via\n`update-domain-config` (blue\u002Fgreen deployment) — state \"in-place via\nupdate-domain-config\" for these. Never confuse the two.\n\n**Error handling:** If input JSON is invalid, missing `DomainStatus`, or the\naccess-policy fetch failed, emit `VERDICT: ERROR` with the specific cause. If\nthe API returns `ThrottlingException`, retry once with exponential backoff; if\n`AccessDeniedException`, state the required IAM permission. Do NOT fabricate a\nverdict on API failure.\n\n### Worked example — public wildcard + FGAC off\n\n```text\nDOMAIN: logs-prod\nVERDICT: PUBLIC_ACCESS\nREASON: Access policy grants es:ESHttp* to Principal \"*\" with no restrictive\ncondition (Step 2a) — any AWS account holder can read\u002Fwrite every document.\nFGAC is also disabled, compounding the exposure.\nFINDINGS:\n  - [PUBLIC_ACCESS] Principal \"*\" + es:ESHttp* with no condition (Step 2a)\n  - [NO_FGAC] AdvancedSecurityOptions.Enabled is false on internet-facing domain (Step 3a)\n  - [CONFIG_GAP] KmsKeyId is aws\u002Fes — no CloudTrail audit trail (Step 4e)\n  - [OK] NodeToNodeEncryptionOptions.Enabled is true (Step 4a)\nREMEDIATION:\n  1. PUBLIC_ACCESS — Remove wildcard principal. Replace with named ARNs or\n     aws:SourceAccount. Back up policy first (NOT versioned — no rollback):\n     aws opensearch describe-domain-access-policy --domain-name logs-prod > \u002Ftmp\u002Flogs-prod-policy-backup.json\n  2. Assume breach. Audit CloudTrail for es:ESHttp* from external principals.\n  3. NO_FGAC — In-place via update-domain-config (blue\u002Fgreen): enable FGAC with\n     IAM master:\n     aws opensearch update-domain-config --domain-name logs-prod\n       --advanced-security-options 'Enabled=true,InternalUserDatabaseEnabled=false,MasterUserOptions={MasterUserARN=arn:aws:iam::111111111111:role\u002Fopensearch-master}'\n  4. CONFIG_GAP — Plan CMK migration: requires domain recreation (immutable).\n```\n\n## Reference\n\nConsult when the audit hits an edge case. These operational behaviors are NOT\nin AWS documentation and change classification if ignored.\n\n### Pre-flight: domain attributes that short-circuit the audit\n\n| Attribute | Effect |\n|---|---|\n| `VPCOptions` present | VPC domain. Skip Step 2. FGAC downgrades to CONFIG_GAP. Endpoint is private DNS. |\n| `VPCOptions` absent | Public endpoint. Steps 2-3 at full severity. Endpoint is public DNS. |\n| `EngineVersion: Elasticsearch_X.Y` | Legacy fork. Note as CONFIG_GAP (Step 4g). |\n| `Processing: true` | Blue\u002Fgreen in flight. `update-domain-config` queues silently (see below). |\n| `CustomEndpointEnabled: true` | Clients use custom DNS\u002Fcert, not describe endpoint. Cert expiry invisible in describe output. |\n\n**Default-VPC trap:** a domain in the default VPC with public subnets is\neffectively internet-facing despite having `VPCOptions` — the default VPC has\nan internet gateway and public subnets by default. Check whether subnets have a\nroute to `0.0.0.0\u002F0` via IGW. Treat default-VPC domains with PUBLIC_ACCESS\nseverity unless route table confirms no IGW path.\n\n### aws\u002Fes CloudTrail opacity\n\nThe `aws\u002Fes` AWS-OWNED key is distinct from AWS-managed CMKs like `aws\u002Fs3`.\nThe OpenSearch service calls `kms:Decrypt` on its **own** service principal —\nthe customer sees **zero** `kms:Decrypt` events in CloudTrail for data access.\nContrast with S3's `aws\u002Fs3` AWS-managed key, where Decrypt events DO appear in\nthe customer's CloudTrail. A customer-managed CMK provides full CloudTrail\nvisibility, customer-controlled rotation, and a customer-authored key policy.\nThis is why `aws\u002Fes` is a CONFIG_GAP finding even when `Enabled: true` — the\ndata is encrypted but the customer has no audit trail for **when** it was\naccessed by the service.\n\n### describe-domain-access-policy is a separate API call\n\nUnlike S3 (`get-bucket-policy` returns inline) or RDS, OpenSearch's resource\npolicy is **not** embedded in `describe-domain` \u002F `describe-domain-config`\noutput. It requires a separate `describe-domain-access-policy` call. Auditors\nand CI\u002FCD scripts that use only `describe-domain-config` silently skip the\nentire PUBLIC_ACCESS check (Step 2). A domain with **no resource policy\nattached** returns empty `Policy` document — this is OK (account-level IAM is\nthe gate), NOT an error. Many automation scripts treat empty `Policy` as a\nfetch failure and silently skip the access-policy check.\n\n### update-domain-config silently queues behind in-progress blue\u002Fgreen\n\nIf a blue\u002Fgreen deployment is already running (`Processing: true`), a new\n`update-domain-config` call returns HTTP 200 immediately but **does not\nexecute** — it queues silently behind the in-flight deployment. The operator\nbelieves the change applied when it has not. Always check\n`DomainStatus.Processing` before recommending any update. There is no API to\nlist queued updates — they are invisible until they execute (or are overwritten\nby a newer call, which discards the queued one).\n\n**Blue\u002Fgreen shard stall.** When shard count exceeds ~1000 per data node (the\ndefault soft limit), the shard-relocation phase stalls — HTTP 200 but domain\nhangs in \"Processing\" for hours, invisible in describe output. Recommend\npre-flight `_cat\u002Fshards` (data-plane call) for large domains.\n\n### FGAC disablement is destructive and non-reversible\n\nDisabling FGAC wipes the entire Security plugin state: all roles, role\nmappings, action groups, and the internal user database. Re-enabling creates a\nfresh state — all per-index controls must be rebuilt. You cannot \"test\" FGAC\nby toggling it. The Security plugin REST API path also depends on engine\nversion: `_opendistro\u002F_security\u002Fapi\u002F` for Elasticsearch ≤7.9 vs\n`_plugins\u002F_security\u002Fapi\u002F` for OpenSearch 1.1+. Wrong path returns 404.\n\n### Cross-cluster search \u002F replication security inversion\n\n**CCS does not propagate FGAC.** When domain A registers domain B as a remote\n(`cluster.remote.\u003Calias>.seeds`), queries from A to B run as A's **connection\nidentity**, not the end-user's. FGAC role mappings, document-level security,\nand field masking on B are NOT enforced for CCS queries. A \"sanitized\" local\ndomain querying a hardened remote inherits the remote's data without the\nremote's per-index enforcement. Flag any CCS wiring as CONFIG_GAP.\n\n**CCR inverts the risk.** The follower needs write permissions on the leader\n(`indices:admin\u002Findex_template\u002Fcreate`, `indices:data\u002Fwrite\u002Findex`), expanding\nthe leader's write surface. Flag CONFIG_GAP if follower's role ARN is not in\nthe access policy.\n\n## Anti-Patterns — NEVER\n\n- **NEVER recommend \"enable encryption-at-rest\" or \"enable NTN\" as an in-place\n  fix.** Both are **immutable** post-creation. Only remediation is domain\n  recreation with a reindex. Confusing OpenSearch's immutable encryption with\n  services that allow toggling (S3, EBS) is a common auditor mistake.\n- **NEVER classify a VPC-backed domain as PUBLIC_ACCESS** regardless of access\n  policy. VPC endpoints are not internet-reachable; SG\u002Froute table is the\n  network boundary. (Wildcard principal is still NO_FGAC\u002FCONFIG_GAP.)\n- **NEVER treat `aws:SourceIp` (real CIDR) as a STRONG condition** for a public\n  OpenSearch domain. VPN\u002FNAT\u002Fproxy bypass. Only `aws:SourceArn`\u002F`aws:SourceAccount`.\n- **NEVER flag `Enabled: true` + `aws\u002Fes` as NO_ENCRYPTION.** Data IS encrypted;\n  gap is customer control (no CloudTrail, rotation, key policy) = CONFIG_GAP.\n- **NEVER assume FGAC is on because the access policy is restrictive.** FGAC is\n  independent; always check `AdvancedSecurityOptions.Enabled` separately.\n- **NEVER enable FGAC without first verifying NTN + HTTPS enforcement.** FGAC\n  requires NTN, NTN requires HTTPS. Returns `ValidationException` otherwise.\n- **NEVER recommend `DedicatedMasterCount` \u003C 3 for HA.** Three across 3 AZs is\n  minimum quorum. Count 1 = SPOF; count 2 = no quorum.\n- **NEVER classify `t2\u002Ft3.small.search` as adequate for dedicated masters** on\n  production domains. Below m5.large.search+ recommendation. Burstable masters\n  silently drop cluster-state API calls under CPU-credit exhaustion.\n- **NEVER state master-node resize requires domain recreation.** Master\n  type\u002Fcount changes ARE mutable via `update-domain-config` (blue\u002Fgreen). Only\n  at-rest encryption and NTN are immutable.\n- **NEVER assume CCS propagates FGAC.** CCS authenticates as the connection\n  principal, bypassing remote per-index roles\u002FDLS\u002Fmasking. Flag as CONFIG_GAP.\n- **NEVER assume a default-VPC domain is private.** Default VPC has IGW +\n  public subnets. Check route tables before classifying as VPC-protected.\n- **NEVER conflate provisioned OpenSearch with Serverless.** Serverless uses\n  `aoss:API*`, always encrypted, OCU capacity. This skill is provisioned only.\n\n## Pre-flight safety (before remediation CLI)\n\n1. **MANDATORY confirmation gate** for every state-changing operation — emit\n   CONFIRM prompt and halt. Applies to ALL updates without exception.\n2. **Back up the access policy** before any change — OpenSearch access policies\n   are NOT versioned (no version ID, no rollback, unlike IAM policies which have\n   version identifiers):\n   `aws opensearch describe-domain-access-policy --domain-name \u003Cname> --output json > \u002Ftmp\u002F\u003Cname>-policy-backup-$(date +%s).json`\n3. **Snapshot before encryption\u002FNTN migration** — domain recreation without a\n   snapshot loses all data. Manual snapshot to registered S3 repo required.\n4. **Blue\u002Fgreen cost spike** — provisions parallel fleet (cost briefly doubles).\n   Surface in CONFIRM gate.\n5. **Verify caller IAM** — read-only auditor roles lack\n   `opensearch:UpdateDomainConfig`; remediation fails with\n   `AccessDeniedException`.\n6. **NEVER disable FGAC as remediation** — wipes all roles\u002Fmappings\u002Fusers.\n\n## Recent AWS features (2024-2026)\n\n- **OpenSearch Serverless GA (2024-2025):** OpenSearch Serverless provides auto-scaling search and analytics without cluster management. Auditors should note that Serverless collections have a different audit surface than provisioned domains — verify encryption, VPC access, and data-access policies at the collection level.\n- **Security Analytics (2024):** OpenSearch Security Analytics provides threat detection rules and alerting on log data. Auditors should verify that security analytics detectors are configured for compliance-relevant log types (CloudTrail, VPC Flow Logs).\n- **Fine-grained access control improvements (2024):** Enhanced FGAC with roles-based access control. Auditors should verify that the master user is not a shared account and that backend roles are scoped appropriately.\n- **SAML authentication enhancements (2024-2025):** Improved SAML integration for OpenSearch Dashboards. Auditors should verify that SAML provider metadata is current and that IdP-initiated SSO is configured correctly.\n\n## Domain\n\nAWS CloudOps \u002F OpenSearch Analytics Security & Compliance.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **OpenSearch API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002FAPIReference\u002F\n- **OpenSearch Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsecurity.html\n- **Fine-grained access control** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Ffgac.html\n- **OpenSearch CLI reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fopensearch\u002F\n","# OpenSearch Domain Auditor\n\n## Quick start\n\nInvoke when classifying an OpenSearch Service (provisioned) domain against the\n**AWS Security Hub Foundational Security Best Practices (FSBP)** controls\nOS.1–OS.8. Minimal live-account invocation:\n\n```text\nAudit OpenSearch domain \"logs-prod\" in us-east-1.\naws opensearch describe-domain --domain-name logs-prod\naws opensearch describe-domain-config --domain-name logs-prod\naws opensearch describe-domain-access-policy --domain-name logs-prod\n```\n\nThe verdict is the **worst** finding:\n`NO_ENCRYPTION > PUBLIC_ACCESS > NO_FGAC > CONFIG_GAP > OK`.\nApply [Process](#process--classification-logic) steps in order. Edge cases,\nanti-patterns, and operational insights are in [Reference](#reference).\n\n## Critical rule — confirmation gate\n\nEvery state-changing remediation (`update-domain-config`,\n`update-domain-access-policy`, `delete-domain`, `create-domain`) is **blocked**\nuntil the operator confirms. Emit and halt:\n\n```text\nCONFIRM: About to \u003Caction> on domain \u003Cname>. This affects \u003Cconsequence>. Proceed? (yes\u002Fno)\n```\n\nThis gate is **non-negotiable** and applies to **every** remediation command\nwithout exception — including log-publishing updates, master-node resize,\nHTTPS-enforcement toggles, and access-policy edits. OpenSearch mutations can\ntake 30 minutes to several hours (blue\u002Fgreen deployment that doubles node\ncount — cost spike), and some changes (encryption-at-rest, NTN, VPC-vs-public\nendpoint) are **immutable** and require full domain recreation. Do not\nbatch-confirm; prompt once per action.\n\n## Decision tree — severity thresholds\n\n| Condition | Verdict | Step | FSBP |\n|---|---|---|---|\n| `EncryptionAtRestOptions.Enabled: false` (or absent) | **NO_ENCRYPTION** | 1a | OS.1 |\n| `Principal: \"*\"` + `es:ESHttp*`\u002F`es:*` + no STRONG condition (non-VPC) | **PUBLIC_ACCESS** | 2a | OS.3 |\n| `Principal: \"*\"` + DATA_PLANE + STRONG (`aws:SourceAccount`\u002F`aws:SourceArn`) | Downgrade (NO_FGAC if FGAC off) | 2b | OS.3 |\n| `AdvancedSecurityOptions.Enabled: false` on internet-facing domain | **NO_FGAC** | 3a | OS.3 |\n| `AdvancedSecurityOptions.Enabled: false` on VPC domain | **CONFIG_GAP** | 3b | OS.4 |\n| `NodeToNodeEncryptionOptions.Enabled: false` (at-rest on) | **CONFIG_GAP** | 4a | OS.2\u002FOS.8 |\n| Dedicated master `t2\u002Ft3.small.search`, count 1\u002F2, or none | **CONFIG_GAP** | 4b | — |\n| `LogPublishingOptions` missing `SEARCH_SLOW_LOGS` AND `INDEX_SLOW_LOGS` | **CONFIG_GAP** | 4c | OS.6\u002FOS.7 |\n| `DomainEndpointOptions.EnforceHTTPS: false` | **CONFIG_GAP** | 4d | OS.5 |\n| `KmsKeyId` is `aws\u002Fes` or absent | **CONFIG_GAP** | 4e | OS.1 |\n| `InstanceCount >= 2` + `ZoneAwarenessEnabled: false` | **CONFIG_GAP** | 4f | — |\n| `EngineVersion: Elasticsearch_X.Y` (legacy fork) | **CONFIG_GAP** | 4g | — |\n| All dimensions clean | **OK** | 5 | — |\n\nWorst finding wins. VPC domains skip Step 2 (no internet endpoint).\n\n## Mindset\n\nOpenSearch is unusual among AWS data services: the resource-based policy gates\n**both** the configuration API (`es:DescribeDomain`) and the data plane\n(`es:ESHttp*` — full REST API: read every document, delete every index, change\nevery mapping). A pattern safe for S3 or KMS (`Principal: \"*\"` with\n`aws:SourceIp`) is **not** safe for OpenSearch — `aws:SourceIp` is bypassable\nvia VPN\u002FNAT and there are no per-object ACLs as a fallback.\n\nThree counter-intuitive facts drive most misclassifications:\n(1) encryption-at-rest and node-to-node encryption are both **immutable**\npost-creation — no toggle, the remediation is a full reindex migration;\n(2) FGAC cannot be enabled without NTN, which requires HTTPS — so a `NO_FGAC`\nfinding often hides a deeper immutable NTN root cause;\n(3) the access policy is evaluated **before** FGAC, so a wildcard principal\ngrants data-plane access even when FGAC is on.\n\n## Process — Classification logic\n\nApply in order, aggregate worst. See [Reference](#reference) for the\noperational reasoning behind each rule.\n\n### Step 1: Encryption-at-rest (NO_ENCRYPTION)\n\n- **`Enabled: false` or absent** → **NO_ENCRYPTION** (CRITICAL). Data at rest\n  is plaintext — every snapshot, EBS volume, and backup. PCI-DSS 3.4, HIPAA\n  164.312(a)(2)(iv), SOC2 CC6.1 violation. Remediation is **always** domain\n  recreation (encryption is immutable); do not emit \"enable encryption\"\n  guidance. Short-circuits to Step 5.\n- **`Enabled: true` + `KmsKeyId: aws\u002Fes` or absent** → CONFIG_GAP finding. The\n  AWS-OWNED key `aws\u002Fes` is opaque: no CloudTrail `kms:Decrypt` events (the\n  service calls Decrypt on its own principal), no rotation control, no customer\n  key policy. See [Reference: aws\u002Fes opacity](#awses-cloudtrail-opacity).\n- **`Enabled: true` + customer-managed CMK ARN** → OK on this dimension.\n\n### Step 2: Public access via resource policy (PUBLIC_ACCESS)\n\nSkip for VPC domains. For each `Effect: Allow` statement, classify:\n\n- **Principal**: WILDCARD (`\"*\"`, `{\"AWS\": \"*\"}`, `{\"Service\": \"*\"}`) |\n  CROSS_ACCOUNT (different 12-digit account) | SAME_ACCOUNT.\n- **Action**: DATA_PLANE (`es:ESHttp*`, `es:*`, `es:ESHttpGet\u002FPost\u002FPut\u002FDelete`) |\n  CONFIGURATION_PLANE (`es:Describe*`, `es:UpdateDomainConfig`) |\n  read-only DATA_PLANE (`es:ESHttpGet` only).\n- **Condition**: STRONG (`aws:SourceArn`\u002F`aws:SourceAccount` with\n  `StringEquals` — set by AWS infrastructure, not caller-controlled) |\n  WEAK (`aws:SourceIp` with real CIDR — bypassable by VPN\u002FNAT\u002Fproxy) |\n  NONE (no condition, or `0.0.0.0\u002F0`).\n\n| # | Principal | Action | Condition | Verdict |\n|---|---|---|---|---|\n| 2a | WILDCARD | DATA_PLANE \u002F `es:*` | None\u002FWeak | **PUBLIC_ACCESS** |\n| 2b | WILDCARD | DATA_PLANE | Strong | Downgrade (NO_FGAC if FGAC off) |\n| 2c | CROSS_ACCOUNT | DATA_PLANE | None\u002FWeak | **PUBLIC_ACCESS** |\n| 2d | WILDCARD\u002FCROSS | CONFIGURATION_PLANE only | None\u002FWeak | **CONFIG_GAP** (metadata leak) |\n| 2e | WILDCARD\u002FCROSS | Any | Strong | Downgrade one level |\n| 2f | SAME_ACCOUNT | Any | Any | OK |\n\nThe account-root statement (`Principal: {\"AWS\": \"arn:aws:iam::ACCOUNT:root\"}`\n+ `es:*`) is the standard IAM-delegation pattern — classify as SAME_ACCOUNT\u002FOK.\n\n### Step 3: Fine-grained access control (NO_FGAC)\n\n- **`Enabled: false` + internet-facing (no VPCOptions)** → **NO_FGAC** (HIGH).\n  Without FGAC, the resource policy alone determines access. Any principal\n  with `es:ESHttp*` has unrestricted access to every index — no per-index\n  role, no document-level security, no field masking. Remediation prerequisite\n  is NTN (Step 4a) — flag the dependency.\n- **`Enabled: false` + VPC domain** → **CONFIG_GAP** (MEDIUM). VPC is the\n  network boundary, reducing exposure. But defense-in-depth still recommends\n  FGAC for blast-radius containment.\n- **`Enabled: true`** → OK. Flag CONFIG_GAP finding if\n  `InternalUserDatabaseEnabled: true` and master credentials are not in Secrets\n  Manager (loss of internal master password is unrecoverable without disabling\n  FGAC — a destructive operation that wipes all role mappings).\n\n### Step 4: Configuration gaps (CONFIG_GAP — additive)\n\nEach finding adds to FINDINGS; none changes the verdict on its own.\n\n- **4a NTN off**: `NodeToNodeEncryptionOptions.Enabled: false`. Inter-node\n  traffic plaintext. Required for FGAC and HTTPS. **Immutable** post-creation —\n  domain recreation only.\n- **4b Master node**: `DedicatedMasterEnabled: false` (election storms);\n  `DedicatedMasterCount: 1` (SPOF) or `2` (no quorum — AWS requires 3 for HA);\n  `DedicatedMasterType: t2\u002Ft3.small.search` (below m5.large.search minimum,\n  CPU-credit exhaustion silently drops cluster-state API calls). Master\n  type\u002Fcount IS mutable via `update-domain-config` (blue\u002Fgreen).\n- **4c Slow logs**: `SEARCH_SLOW_LOGS` or `INDEX_SLOW_LOGS` absent\u002Fdisabled.\n  Slow queries invisible. Threshold calibration lives in `_cluster\u002Fsettings`,\n  not describe output.\n- **4d HTTPS off**: `EnforceHTTPS: false`. Plaintext HTTP to data plane.\n  Auto-false when NTN off. Mutable.\n- **4e AWS-managed key**: `KmsKeyId` is `aws\u002Fes` or absent. No customer audit\n  trail, rotation, or key policy. Migration requires domain recreation.\n- **4f Single-AZ multi-node**: `InstanceCount >= 2` + `ZoneAwarenessEnabled:\n  false`. All nodes in one AZ — AZ failure takes cluster down.\n- **4g Legacy engine**: `EngineVersion: Elasticsearch_X.Y`. No new features\n  since fork; eventual forced upgrade. Not a verdict driver but always emit.\n\n### Step 5: Aggregation\n\nPrecedence: `NO_ENCRYPTION > PUBLIC_ACCESS > NO_FGAC > CONFIG_GAP > OK`. All\nfindings listed in FINDINGS; verdict is the worst single step's verdict.\n\n## Output format (per domain)\n\nEmit one block per domain in this field order. For batch\u002Fmulti-domain input,\nprocess each independently — emit blocks sequentially. If one domain errors,\nemit its ERROR block and continue.\n\n```text\nDOMAIN: \u003Cdomain-name>\nVERDICT: NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK | ERROR\nREASON: \u003C1-2 sentences citing the worst finding and step number>\nFINDINGS:\n  - [SEVERITY] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n**Immutable-vs-mutable scope:** Only at-rest encryption (Step 1a) and NTN\n(Step 4a) require **domain recreation** — state \"requires domain recreation\n(immutable)\" for these. Master-node type\u002Fcount (Step 4b), HTTPS (Step 4d),\nslow-log publishing (Step 4c), and FGAC (Step 3) ARE mutable in-place via\n`update-domain-config` (blue\u002Fgreen deployment) — state \"in-place via\nupdate-domain-config\" for these. Never confuse the two.\n\n**Error handling:** If input JSON is invalid, missing `DomainStatus`, or the\naccess-policy fetch failed, emit `VERDICT: ERROR` with the specific cause. If\nthe API returns `ThrottlingException`, retry once with exponential backoff; if\n`AccessDeniedException`, state the required IAM permission. Do NOT fabricate a\nverdict on API failure.\n\n### Worked example — public wildcard + FGAC off\n\n```text\nDOMAIN: logs-prod\nVERDICT: PUBLIC_ACCESS\nREASON: Access policy grants es:ESHttp* to Principal \"*\" with no restrictive\ncondition (Step 2a) — any AWS account holder can read\u002Fwrite every document.\nFGAC is also disabled, compounding the exposure.\nFINDINGS:\n  - [PUBLIC_ACCESS] Principal \"*\" + es:ESHttp* with no condition (Step 2a)\n  - [NO_FGAC] AdvancedSecurityOptions.Enabled is false on internet-facing domain (Step 3a)\n  - [CONFIG_GAP] KmsKeyId is aws\u002Fes — no CloudTrail audit trail (Step 4e)\n  - [OK] NodeToNodeEncryptionOptions.Enabled is true (Step 4a)\nREMEDIATION:\n  1. PUBLIC_ACCESS — Remove wildcard principal. Replace with named ARNs or\n     aws:SourceAccount. Back up policy first (NOT versioned — no rollback):\n     aws opensearch describe-domain-access-policy --domain-name logs-prod > \u002Ftmp\u002Flogs-prod-policy-backup.json\n  2. Assume breach. Audit CloudTrail for es:ESHttp* from external principals.\n  3. NO_FGAC — In-place via update-domain-config (blue\u002Fgreen): enable FGAC with\n     IAM master:\n     aws opensearch update-domain-config --domain-name logs-prod\n       --advanced-security-options 'Enabled=true,InternalUserDatabaseEnabled=false,MasterUserOptions={MasterUserARN=arn:aws:iam::111111111111:role\u002Fopensearch-master}'\n  4. CONFIG_GAP — Plan CMK migration: requires domain recreation (immutable).\n```\n\n## Reference\n\nConsult when the audit hits an edge case. These operational behaviors are NOT\nin AWS documentation and change classification if ignored.\n\n### Pre-flight: domain attributes that short-circuit the audit\n\n| Attribute | Effect |\n|---|---|\n| `VPCOptions` present | VPC domain. Skip Step 2. FGAC downgrades to CONFIG_GAP. Endpoint is private DNS. |\n| `VPCOptions` absent | Public endpoint. Steps 2-3 at full severity. Endpoint is public DNS. |\n| `EngineVersion: Elasticsearch_X.Y` | Legacy fork. Note as CONFIG_GAP (Step 4g). |\n| `Processing: true` | Blue\u002Fgreen in flight. `update-domain-config` queues silently (see below). |\n| `CustomEndpointEnabled: true` | Clients use custom DNS\u002Fcert, not describe endpoint. Cert expiry invisible in describe output. |\n\n**Default-VPC trap:** a domain in the default VPC with public subnets is\neffectively internet-facing despite having `VPCOptions` — the default VPC has\nan internet gateway and public subnets by default. Check whether subnets have a\nroute to `0.0.0.0\u002F0` via IGW. Treat default-VPC domains with PUBLIC_ACCESS\nseverity unless route table confirms no IGW path.\n\n### aws\u002Fes CloudTrail opacity\n\nThe `aws\u002Fes` AWS-OWNED key is distinct from AWS-managed CMKs like `aws\u002Fs3`.\nThe OpenSearch service calls `kms:Decrypt` on its **own** service principal —\nthe customer sees **zero** `kms:Decrypt` events in CloudTrail for data access.\nContrast with S3's `aws\u002Fs3` AWS-managed key, where Decrypt events DO appear in\nthe customer's CloudTrail. A customer-managed CMK provides full CloudTrail\nvisibility, customer-controlled rotation, and a customer-authored key policy.\nThis is why `aws\u002Fes` is a CONFIG_GAP finding even when `Enabled: true` — the\ndata is encrypted but the customer has no audit trail for **when** it was\naccessed by the service.\n\n### describe-domain-access-policy is a separate API call\n\nUnlike S3 (`get-bucket-policy` returns inline) or RDS, OpenSearch's resource\npolicy is **not** embedded in `describe-domain` \u002F `describe-domain-config`\noutput. It requires a separate `describe-domain-access-policy` call. Auditors\nand CI\u002FCD scripts that use only `describe-domain-config` silently skip the\nentire PUBLIC_ACCESS check (Step 2). A domain with **no resource policy\nattached** returns empty `Policy` document — this is OK (account-level IAM is\nthe gate), NOT an error. Many automation scripts treat empty `Policy` as a\nfetch failure and silently skip the access-policy check.\n\n### update-domain-config silently queues behind in-progress blue\u002Fgreen\n\nIf a blue\u002Fgreen deployment is already running (`Processing: true`), a new\n`update-domain-config` call returns HTTP 200 immediately but **does not\nexecute** — it queues silently behind the in-flight deployment. The operator\nbelieves the change applied when it has not. Always check\n`DomainStatus.Processing` before recommending any update. There is no API to\nlist queued updates — they are invisible until they execute (or are overwritten\nby a newer call, which discards the queued one).\n\n**Blue\u002Fgreen shard stall.** When shard count exceeds ~1000 per data node (the\ndefault soft limit), the shard-relocation phase stalls — HTTP 200 but domain\nhangs in \"Processing\" for hours, invisible in describe output. Recommend\npre-flight `_cat\u002Fshards` (data-plane call) for large domains.\n\n### FGAC disablement is destructive and non-reversible\n\nDisabling FGAC wipes the entire Security plugin state: all roles, role\nmappings, action groups, and the internal user database. Re-enabling creates a\nfresh state — all per-index controls must be rebuilt. You cannot \"test\" FGAC\nby toggling it. The Security plugin REST API path also depends on engine\nversion: `_opendistro\u002F_security\u002Fapi\u002F` for Elasticsearch ≤7.9 vs\n`_plugins\u002F_security\u002Fapi\u002F` for OpenSearch 1.1+. Wrong path returns 404.\n\n### Cross-cluster search \u002F replication security inversion\n\n**CCS does not propagate FGAC.** When domain A registers domain B as a remote\n(`cluster.remote.\u003Calias>.seeds`), queries from A to B run as A's **connection\nidentity**, not the end-user's. FGAC role mappings, document-level security,\nand field masking on B are NOT enforced for CCS queries. A \"sanitized\" local\ndomain querying a hardened remote inherits the remote's data without the\nremote's per-index enforcement. Flag any CCS wiring as CONFIG_GAP.\n\n**CCR inverts the risk.** The follower needs write permissions on the leader\n(`indices:admin\u002Findex_template\u002Fcreate`, `indices:data\u002Fwrite\u002Findex`), expanding\nthe leader's write surface. Flag CONFIG_GAP if follower's role ARN is not in\nthe access policy.\n\n## Anti-Patterns — NEVER\n\n- **NEVER recommend \"enable encryption-at-rest\" or \"enable NTN\" as an in-place\n  fix.** Both are **immutable** post-creation. Only remediation is domain\n  recreation with a reindex. Confusing OpenSearch's immutable encryption with\n  services that allow toggling (S3, EBS) is a common auditor mistake.\n- **NEVER classify a VPC-backed domain as PUBLIC_ACCESS** regardless of access\n  policy. VPC endpoints are not internet-reachable; SG\u002Froute table is the\n  network boundary. (Wildcard principal is still NO_FGAC\u002FCONFIG_GAP.)\n- **NEVER treat `aws:SourceIp` (real CIDR) as a STRONG condition** for a public\n  OpenSearch domain. VPN\u002FNAT\u002Fproxy bypass. Only `aws:SourceArn`\u002F`aws:SourceAccount`.\n- **NEVER flag `Enabled: true` + `aws\u002Fes` as NO_ENCRYPTION.** Data IS encrypted;\n  gap is customer control (no CloudTrail, rotation, key policy) = CONFIG_GAP.\n- **NEVER assume FGAC is on because the access policy is restrictive.** FGAC is\n  independent; always check `AdvancedSecurityOptions.Enabled` separately.\n- **NEVER enable FGAC without first verifying NTN + HTTPS enforcement.** FGAC\n  requires NTN, NTN requires HTTPS. Returns `ValidationException` otherwise.\n- **NEVER recommend `DedicatedMasterCount` \u003C 3 for HA.** Three across 3 AZs is\n  minimum quorum. Count 1 = SPOF; count 2 = no quorum.\n- **NEVER classify `t2\u002Ft3.small.search` as adequate for dedicated masters** on\n  production domains. Below m5.large.search+ recommendation. Burstable masters\n  silently drop cluster-state API calls under CPU-credit exhaustion.\n- **NEVER state master-node resize requires domain recreation.** Master\n  type\u002Fcount changes ARE mutable via `update-domain-config` (blue\u002Fgreen). Only\n  at-rest encryption and NTN are immutable.\n- **NEVER assume CCS propagates FGAC.** CCS authenticates as the connection\n  principal, bypassing remote per-index roles\u002FDLS\u002Fmasking. Flag as CONFIG_GAP.\n- **NEVER assume a default-VPC domain is private.** Default VPC has IGW +\n  public subnets. Check route tables before classifying as VPC-protected.\n- **NEVER conflate provisioned OpenSearch with Serverless.** Serverless uses\n  `aoss:API*`, always encrypted, OCU capacity. This skill is provisioned only.\n\n## Pre-flight safety (before remediation CLI)\n\n1. **MANDATORY confirmation gate** for every state-changing operation — emit\n   CONFIRM prompt and halt. Applies to ALL updates without exception.\n2. **Back up the access policy** before any change — OpenSearch access policies\n   are NOT versioned (no version ID, no rollback, unlike IAM policies which have\n   version identifiers):\n   `aws opensearch describe-domain-access-policy --domain-name \u003Cname> --output json > \u002Ftmp\u002F\u003Cname>-policy-backup-$(date +%s).json`\n3. **Snapshot before encryption\u002FNTN migration** — domain recreation without a\n   snapshot loses all data. Manual snapshot to registered S3 repo required.\n4. **Blue\u002Fgreen cost spike** — provisions parallel fleet (cost briefly doubles).\n   Surface in CONFIRM gate.\n5. **Verify caller IAM** — read-only auditor roles lack\n   `opensearch:UpdateDomainConfig`; remediation fails with\n   `AccessDeniedException`.\n6. **NEVER disable FGAC as remediation** — wipes all roles\u002Fmappings\u002Fusers.\n\n## Recent AWS features (2024-2026)\n\n- **OpenSearch Serverless GA (2024-2025):** OpenSearch Serverless provides auto-scaling search and analytics without cluster management. Auditors should note that Serverless collections have a different audit surface than provisioned domains — verify encryption, VPC access, and data-access policies at the collection level.\n- **Security Analytics (2024):** OpenSearch Security Analytics provides threat detection rules and alerting on log data. Auditors should verify that security analytics detectors are configured for compliance-relevant log types (CloudTrail, VPC Flow Logs).\n- **Fine-grained access control improvements (2024):** Enhanced FGAC with roles-based access control. Auditors should verify that the master user is not a shared account and that backend roles are scoped appropriately.\n- **SAML authentication enhancements (2024-2025):** Improved SAML integration for OpenSearch Dashboards. Auditors should verify that SAML provider metadata is current and that IdP-initiated SSO is configured correctly.\n\n## Domain\n\nAWS CloudOps \u002F OpenSearch Analytics Security & Compliance.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **OpenSearch API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002FAPIReference\u002F\n- **OpenSearch Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsecurity.html\n- **Fine-grained access control** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Ffgac.html\n- **OpenSearch CLI reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fopensearch\u002F\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},"opensearch, analytics, encryption, security, fgac, master-node, slow-logs, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","Analytics","0.3.0","OpenSearch, Elasticsearch, AES, Amazon OpenSearch Service, encryption at rest, KMS, node-to-node encryption, fine-grained access control, FGAC, Advanced Security, public access, Principal star, es:ESHttp*, dedicated master, master node type, t3.small.search, slow logs, SEARCH_SLOW_LOGS, INDEX_SLOW_LOGS, LogPublishingOptions, VPC domain, cluster config, OpenSearch compliance, OpenSearch hardening","high","false","Reviewing an OpenSearch domain before production deployment, validating encryption compliance, checking for public data-plane exposure via resource policy, auditing fine-grained access control coverage, sizing dedicated master nodes, or wiring slow-log publishing to CloudWatch Logs.","true","NO_ENCRYPTION | PUBLIC_ACCESS | NO_FGAC | CONFIG_GAP | OK","Input: either (a) an OpenSearch domain configuration (describe-domain + describe-domain-config + describe-domain-access-policy + list-domain-names), OR (b) a domain name\u002FARN for live-account audit. Output: deterministic DOMAIN\u002FVERDICT\u002FREASON\u002FFINDINGS\u002FREMEDIATION block per domain, where VERDICT ∈ {NO_ENCRYPTION, PUBLIC_ACCESS, NO_FGAC, CONFIG_GAP, OK, ERROR}.","audit this OpenSearch domain, is my OpenSearch domain public, check OpenSearch encryption at rest, OpenSearch node-to-node encryption off, OpenSearch FGAC disabled, is Advanced Security enabled, OpenSearch Principal star, dedicated master node too small, OpenSearch slow logs not published, harden OpenSearch domain","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline config classification. Live-account audits use aws opensearch describe-domain, describe-domain-config, list-domain-names, and describe-domain-access-policy (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fopensearch-domain-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 opensearch-domain-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill opensearch-domain-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill opensearch-domain-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",15976,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fconfig-gap-no-ntn-weak-master-no-slowlogs.md",764,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fconfig-gap-no-ntn-weak-master-no-slowlogs.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fno-encryption-and-public-worst-first.md",754,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fno-encryption-and-public-worst-first.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fno-encryption-at-rest.md",812,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fno-encryption-at-rest.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fno-fgac-internet-exposed.md",725,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fno-fgac-internet-exposed.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fok-clean-production.md",606,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fok-clean-production.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fpublic-access-wildcard-http.md",703,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fbaselines\u002Fpublic-access-wildcard-http.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1975,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",5167,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fconfig-gap-no-ntn-weak-master-no-slowlogs.md",1384,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fconfig-gap-no-ntn-weak-master-no-slowlogs.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fno-encryption-and-public-worst-first.md",1222,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fno-encryption-and-public-worst-first.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fno-encryption-at-rest.md",1838,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fno-encryption-at-rest.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fno-fgac-internet-exposed.md",1876,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fno-fgac-internet-exposed.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fok-clean-production.md",2078,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fok-clean-production.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fpublic-access-wildcard-http.md",1604,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fevals\u002Fprompts\u002Fpublic-access-wildcard-http.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",6641,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"skill.usf.yaml",3983,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-domain-auditor\u002Fskill.usf.yaml",[133,140,147,154,161,168],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"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":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"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":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"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":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"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":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"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":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"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",[],[]]