[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AD5MPHNBP3GQK24WYG7G1F":3,"skill-same:01M7AD5MPHNBP3GQK24WYG7G1F":144},{"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},"01M7AD5MPHNBP3GQK24WYG7G1F","stepfunctions-statemachine-auditor",null,"Audits AWS Step Functions state machines for execution logging coverage (level ALL + includeExecutionData), X-Ray tracing enablement (including the Express-workflow no-op trap), execution-role blast radius (wildcard actions, states:StartExecution chaining, iam:PassRole), and ASL definition validation (missing Catch\u002FRetry on fallible Tasks, missing TimeoutSeconds, unreachable states, cyclic references without exit). Emits a deterministic verdict (NO_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK) per state machine with enumerated findings and specific remediation. Use when reviewing Step Functions state machines, checking logging coverage, validating X-Ray tracing, auditing execution-role scope, validating ASL definitions, or hardening state machine observability and security posture 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\u002Fstepfunctions-statemachine-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: stepfunctions-statemachine-auditor\ndescription: Audits AWS Step Functions state machines for execution logging coverage (level ALL + includeExecutionData), X-Ray tracing enablement (including the Express-workflow no-op trap), execution-role blast radius (wildcard actions, states:StartExecution chaining, iam:PassRole), and ASL definition validation (missing Catch\u002FRetry on fallible Tasks, missing TimeoutSeconds, unreachable states, cyclic references without exit). Emits a deterministic verdict (NO_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK) per state machine with enumerated findings and specific remediation. Use when reviewing Step Functions state machines, checking logging coverage, validating X-Ray tracing, auditing execution-role scope, validating ASL definitions, or hardening state machine observability and security posture 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 state-machine classification. Live-account audits use aws stepfunctions describe-state-machine, aws stepfunctions describe-execution, aws iam get-role-policy, and aws stepfunctions validate-state-machine-definition (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_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK\n  when_to_use: Reviewing a Step Functions state machine before production deployment, checking execution logging coverage, validating X-Ray tracing enablement, auditing the execution role's blast radius, validating ASL definition correctness (unreachable\u002Fcyclic states, missing error handling), or hardening state machine observability and security posture.\n  activation_triggers: audit this state machine, check Step Functions logging, is X-Ray tracing enabled, state machine execution role too broad, validate ASL definition, missing Catch block, Express workflow tracing, state machine error handling, unreachable states in ASL, Step Functions blast radius\n  invocation_schema: 'Input: either (a) a Step Functions state machine configuration (definition + type + loggingConfiguration + tracingConfiguration + roleArn + role policy), OR (b) a state-machine ARN for live-account audit. Output: deterministic STATE_MACHINE\u002FVERDICT\u002FREASON\u002FFINDINGS\u002F REMEDIATION block per state machine, where VERDICT is one of NO_LOGGING, NO_TRACING, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK, or ERROR.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Step Functions, state machine, ASL, Amazon States Language, execution logging, CloudWatch Logs, X-Ray tracing, distributed tracing, Express workflow, Standard workflow, execution role, IAM blast radius, states:StartExecution, iam:PassRole, definition validation, circular states, unreachable states, Catch block, Retry block, TimeoutSeconds, HeartbeatSeconds, error handling, Task state, Choice state, Map state, Parallel state, state machine audit\n  tags: stepfunctions, app-integration, security, observability, state-machine, asl, xray, logging, iam, audit\n---\n\n# Step Functions State Machine Auditor\n\n## Mindset\n\n**One-line takeaway:** a state machine is audited across four orthogonal\ndimensions — **execution logging**, **X-Ray tracing**, **execution-role\nblast radius**, and **ASL definition correctness** — and the verdict is\nalways the **worst** finding, in the precedence\n`OVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK`.\n\nStep Functions is the orchestration layer for multi-service workflows. Its\nblast radius is unusual because a single state machine can fan out to\nLambda, DynamoDB, SQS, SNS, ECS, Glue, S3, and other state machines — all\nunder one execution role. Three structural facts drive the audit:\n\n- **The execution role is a service-chaining multiplier.** One role with\n  `lambda:*` + `dynamodb:*` + `sqs:*` on `*` grants the state machine\n  fan-out access to every resource of every integrated service. This is the\n  IAM blast-radius pattern unique to Step Functions.\n- **Execution logging at `level: OFF` is forensic blindness.** The Step\n  Functions console shows execution history for 90 days (Standard) or\n  minutes (Express), but only `LoggingConfiguration.level: ALL` plus\n  `includeExecutionData: true` delivers a durable, queryable record to\n  CloudWatch Logs. Without it, post-incident forensics rely on CloudTrail\n  alone, which does not capture per-state input\u002Foutput.\n- **`TracingConfiguration.enabled: true` on an EXPRESS workflow is a\n  no-op.** X-Ray tracing via the `TracingConfiguration` field is only\n  honored on STANDARD workflows. An Express workflow with tracing\n  \"enabled\" produces zero X-Ray traces — operators who check the box and\n  move on have no distributed tracing at all.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| Execution role: `Action: \"*\"` on `Resource: \"*\"` (admin-equivalent) | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: service wildcard (`lambda:*`, `dynamodb:*`, `s3:*`) on `Resource: \"*\"` | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: `states:StartExecution` on `*` (chaining\u002Fescalation) | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: `iam:PassRole` on `*` | **OVERPERMISSIVE_ROLE** | Step 3 |\n| `LoggingConfiguration.level` is `OFF`, `ERROR`, or absent | **NO_LOGGING** | Step 1 |\n| `LoggingConfiguration.includeExecutionData` is `false` or absent | **NO_LOGGING** | Step 1 |\n| `TracingConfiguration.enabled` is `false` or absent on a STANDARD workflow | **NO_TRACING** | Step 2 |\n| Workflow `type: EXPRESS` (X-Ray no-op regardless of `TracingConfiguration`) | **NO_TRACING** | Step 2 |\n| `Task` state with a fallible `Resource` and NO `Catch` and NO `Retry` | **CONFIG_GAP** | Step 4 |\n| `Task` state with no `TimeoutSeconds` (60-second default, silent kill) | **CONFIG_GAP** | Step 4 |\n| `Choice` state with no `Default` branch | **CONFIG_GAP** | Step 4 |\n| Unreachable state (no inbound `Next`\u002F`Default`\u002F`Catch.Next`) | **CONFIG_GAP** | Step 4 |\n| All dimensions pass | **OK** | Step 5 |\n\nWhen multiple findings apply, the verdict is the **worst** by precedence\n(`OVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK`). All\nindividual findings still appear in the FINDINGS list regardless of the\naggregate verdict.\n\n## Critical rules — read first (do NOT violate)\n\nThese are the high-frequency, high-impact mistakes. Each is expanded in\nthe NEVER list and Step 0 below — this block exists so an agent executing\nunder time pressure sees them before any classification logic:\n\n1. **`includeExecutionData: false` is NO_LOGGING even at `level: ALL`.**\n   State transitions are logged but NOT input\u002Foutput payloads. For\n   forensics, this is near-blind. Always check BOTH fields.\n2. **`TracingConfiguration.enabled: true` on an EXPRESS workflow is a\n   no-op.** The field is accepted silently; no X-Ray console traces are\n   produced. Always emit NO_TRACING for Express regardless of the field.\n3. **`Action: \"*\"` on `Resource: \"*\"` on the execution role is\n   OVERPERMISSIVE_ROLE.** No exceptions — this is admin-equivalent; one\n   compromised state machine = full account compromise.\n4. **A fallible `Task` (Lambda, DynamoDB, SQS, etc.) with NO `Catch` and\n   NO `Retry` is CONFIG_GAP.** Transient errors fail the entire execution\n   on the first occurrence. Both blocks are expected on production Tasks.\n5. **A `Task` without `TimeoutSeconds` silently uses 60 seconds.** Lambda\n   functions configured for longer runtimes are killed at 60s while the\n   Lambda continues executing and billing.\n6. **NEVER recommend `AdministratorAccess` or `AmazonStepFunctionsFullAccess`\n   as a remediation.** These grant `states:*` on `*`, reintroducing the\n   over-permission being fixed. Always scope to named actions on specific\n   ARNs derived from the definition's `Resource` fields.\n7. **`states:StartExecution` on `Resource: \"*\"` is a chaining\u002Fescalation\n   vector** — the Step Functions analogue of `sts:AssumeRole`. Scope to\n   the specific state-machine ARNs the workflow is permitted to chain into.\n\n## Pre-flight: state machine type gate (run before classification)\n\nStep Functions operates two workflow types with materially different\nobservability models. Misclassifying the type produces false confidence in\ntracing and logging coverage.\n\n| `Type` | Execution history retention | X-Ray tracing via `TracingConfiguration` | Logging implication |\n|---|---|---|---|\n| `STANDARD` | 90 days via API\u002Fconsole | **Honored.** X-Ray console shows traces. | `LoggingConfiguration` delivers to CloudWatch Logs for structured queries\u002Falerts. Execution history is a fallback. |\n| `EXPRESS` | 5 minutes (Synchronous) \u002F 1 hour (Asynchronous) via API | **No-op.** The field is accepted but produces no X-Ray console traces. | `LoggingConfiguration` is the ONLY durable record. `NO_LOGGING` on Express is catastrophic for forensics. |\n\n**Type-specific audit behavior:**\n\n- **EXPRESS workflow:** ALWAYS emit `NO_TRACING` as at least a secondary\n  finding, regardless of `TracingConfiguration.enabled`. The operator may\n  have set the field expecting X-Ray coverage — that expectation is not\n  met. If logging is also missing, the verdict is `NO_LOGGING` (higher\n  precedence), with `NO_TRACING` noted in FINDINGS.\n- **STANDARD workflow:** Evaluate `TracingConfiguration.enabled` normally.\n  `false` or absent → `NO_TRACING`.\n- **Type absent from input:** Emit an ERROR note and assume STANDARD (the\n  default at creation) for downstream evaluation, but flag the assumption.\n\n**If the state machine configuration is malformed** (invalid JSON, missing\n`Definition`, missing `RoleArn`), output:\n\n```text\nSTATE_MACHINE: \u003Carn-or-name>\nVERDICT: ERROR\nREASON: State machine configuration is not valid — missing or malformed required field.\nREMEDIATION: Retrieve the canonical config with `aws stepfunctions describe-state-machine --state-machine-arn \u003Carn> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious Step Functions behaviors\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Step 0 catalog of non-obvious Step Functions behaviors that change audit verdicts.\n\n### Step 1: Logging configuration (NO_LOGGING)\n\nEvaluate `LoggingConfiguration` for both Standard and Express workflows:\n\n| Condition | Finding | Why |\n|---|---|---|\n| `level: OFF` or `LoggingConfiguration` absent | **NO_LOGGING** | No CloudWatch Logs delivery. Execution history is the only signal, and it expires (90d Standard, minutes Express). |\n| `level: ERROR` | **NO_LOGGING** | Only failed states are logged. Successful executions leave no trace — blind to slow degradation, data exfiltration via successful API calls, or unexpected state transitions. |\n| `level: ALL` + `includeExecutionData: false` or absent | **NO_LOGGING** | State transitions are logged but NOT input\u002Foutput payloads. Forensically near-useless — you cannot reconstruct what data flowed through the workflow. |\n| `level: ALL` + `includeExecutionData: true` | **OK (this dimension)** | Full observability. Both transitions and payloads are in CloudWatch Logs. |\n\n**Express-specific escalation:** for Express workflows, execution history\nexpires in minutes. `NO_LOGGING` on Express means there is NO durable\nrecord of the execution — flag this as a critical-severity secondary note\nin FINDINGS.\n\n**`logGroupName` presence:** if `level: ALL` but no `logGroupName` (or no\n`logDestinationArn`), Step Functions creates a default log group. Verify\nthe role has `logs:CreateLogGroup` or the delivery silently fails.\n\n### Step 2: Tracing configuration (NO_TRACING)\n\nEvaluate `TracingConfiguration` with the type gate from Pre-flight:\n\n| Workflow type | `TracingConfiguration.enabled` | Finding |\n|---|---|---|\n| `STANDARD` | `true` | OK (this dimension) — verify role has `xray:PutTraceSegments`. |\n| `STANDARD` | `false` or absent | **NO_TRACING** — no distributed tracing; cross-service latency and error analysis impossible. |\n| `EXPRESS` | any value | **NO_TRACING** — `TracingConfiguration` is a no-op on Express. Operator's tracing expectation is not met. |\n\n**Why this matters:** Step Functions orchestrates multiple services\n(Lambda, DynamoDB, SQS, API Gateway, ECS). Without X-Ray, a latency spike\nin the workflow cannot be attributed to a specific service integration.\nThe operator sees \"execution took 45 seconds\" but not \"DynamoDB GetItem\ntook 40 of those seconds\".\n\n### Step 3: IAM execution role blast radius (OVERPERMISSIVE_ROLE)\n\nThe execution role is the identity under which EVERY service integration\nin the state machine runs. Its scope determines the workflow's total\nblast radius. Evaluate the role's identity-based policies (managed +\ninline):\n\n**CRITICAL-severity role findings (emit OVERPERMISSIVE_ROLE):**\n\n- `Action: \"*\"` on `Resource: \"*\"` — admin-equivalent. The state machine\n  can call any service on any resource. This is the single most dangerous\n  pattern in Step Functions because one state machine compromise = full\n  account compromise.\n- Service wildcard (e.g., `lambda:*`, `dynamodb:*`, `s3:*`, `sqs:*`,\n  `sns:*`, `states:*`) on `Resource: \"*\"` — broad fan-out access to every\n  resource of that service. The state machine can invoke any Lambda, read\n  any DynamoDB table, publish to any SNS topic.\n- `states:StartExecution` on `Resource: \"*\"` — can start ANY state machine\n  in the account, including more-privileged ones. This is the Step\n  Functions chaining\u002Fescalation vector (analogous to `sts:AssumeRole`).\n- `iam:PassRole` on `Resource: \"*\"` — can pass any role to any service\n  that accepts a role ARN. Combined with a Lambda\u002FLambda-invoking Task,\n  this enables privilege escalation.\n- `states:CreateStateMachine` \u002F `states:UpdateStateMachine` on `*` — can\n  create or modify other state machines, widening the attack surface.\n\n**Role trust policy check (secondary finding, does not drive the verdict\nbut appears in FINDINGS):**\n\n- The role's `AssumeRolePolicyDocument` MUST include\n  `Principal: { Service: \"states.amazonaws.com\" }` with\n  `Action: \"sts:AssumeRole\"`. Without this trust, the state machine\n  cannot assume the role — every service integration fails at runtime\n  with `AccessDenied`. Flag as an operational risk.\n\n**Scoped role (OK for this dimension):**\n\n- Named actions (e.g., `lambda:InvokeFunction`,\n  `dynamodb:GetItem`, `dynamodb:PutItem`) on specific ARNs (e.g.,\n  `arn:aws:lambda:us-east-1:111111111111:function:order-processor`) → OK.\n- The minimum-viable execution role grants only the actions the\n  definition's service integrations require, scoped to the specific\n  resource ARNs.\n\n**Live-account enumeration (when auditing by ARN):**\n\n```\naws iam list-attached-role-policies --role-name \u003Crole-name> --profile \u003Cp>\naws iam list-role-policies --role-name \u003Crole-name> --profile \u003Cp>\naws iam get-role-policy --role-name \u003Crole-name> --policy-name \u003Cname> --profile \u003Cp>\n```\n\nPage inline policies — `get-role-policy` returns one policy at a time.\n\n### Step 4: ASL definition validation (CONFIG_GAP)\n\nValidate the `Definition` (ASL document) for structural correctness,\nerror handling, and runtime-safety gaps. The API's\n`ValidateStateMachineDefinition` catches syntax errors and some structural\nissues, but it does NOT check for production-hardening gaps (missing\nCatch, missing TimeoutSeconds). The auditor goes beyond API validation.\n\n**Fallible Task without error handling (CONFIG_GAP):**\n\nA `Task` state with a fallible `Resource` (any ARN that invokes an\nexternal service — Lambda, DynamoDB, SQS, ECS, Glue, SNS, Step Functions\nnested) MUST have either a `Catch` block, a `Retry` block, or both. A\nTask with NEITHER fails the entire execution on the first error,\nincluding transient errors that would resolve on retry.\n\nFallible `Resource` ARN patterns:\n- `arn:aws:lambda:*` — Lambda invocation (transient `ServiceException`)\n- `arn:aws:dynamodb:*` — DynamoDB CRUD (provisioned-throughput errors)\n- `arn:aws:sqs:*` — SQS SendMessage (rate limits)\n- `arn:aws:sns:*` — SNS Publish (rate limits)\n- `arn:aws:states:*:execution:*` — nested Step Functions\n- `arn:aws:ecs:*` — ECS RunTask (capacity errors)\n- Any AWS service integration\n\nNon-fallible states (no error handling needed):\n- `Succeed`, `Fail`, `Pass`, `Wait`, `Choice`, `Map`, `Parallel`\n\n**Missing `TimeoutSeconds` on Task (CONFIG_GAP):**\n\nA `Task` without `TimeoutSeconds` defaults to 60 seconds. Long-running\nintegrations (Lambda with > 60s timeout, Activities, Glue jobs, ECS\ntasks) are silently killed at 60s. Flag any `Task` without explicit\n`TimeoutSeconds`.\n\n**Missing `HeartbeatSeconds` on Activity-based Task (CONFIG_GAP):**\n\nA `Task` with `Resource: arn:aws:states:*:activity:*` relies on an\nexternal worker. Without `HeartbeatSeconds`, worker death is not detected\nuntil `TimeoutSeconds` (which can be hours). Flag any Activity-based Task\nwithout `HeartbeatSeconds`.\n\n**Unreachable states (CONFIG_GAP):**\n\nWalk the state graph from `StartAt`. Any state NOT reachable via\n`Next`\u002F`Default`\u002F`Catch[].Next`\u002F`Iterator.StartAt` chain is unreachable.\nUnreachable states are dead code — they may contain stale logic or\nprivilege assumptions that diverge from the live path. Flag each\nunreachable state by name.\n\n**Cyclic references without exit (CONFIG_GAP):**\n\nASL permits cycles (a `Choice` that loops back, a `Task` that retries via\n`Next` to itself). A cycle is valid IF there is an exit path (a `Choice`\nbranch that leaves the cycle, or a `Retry`\u002F`Catch` that routes elsewhere).\nA cycle with NO exit path (e.g., a `Task` whose `Next` points back to\nitself with no `Retry`\u002F`Catch`) is an infinite loop. Flag as CONFIG_GAP.\n\n**Choice without Default (CONFIG_GAP):**\n\nA `Choice` state without a `Default` field is invalid ASL — the API\nrejects it. But if the input is a template (Terraform\u002FCloudFormation), it\nmay pass initial parsing and fail at apply. Flag any `Choice` without\n`Default`.\n\n**Map state with `MaxConcurrency: 0` and large item set (CONFIG_GAP):**\n\n`MaxConcurrency: 0` means unbounded parallelism. For a Map iterating > 100\nitems, this can overwhelm downstream services (Lambda concurrency,\nDynamoDB throttling). Flag as CONFIG_GAP and recommend setting\n`MaxConcurrency` to a value within the downstream service's capacity.\n\n### Step 5: Aggregation — worst finding wins by precedence\n\nThe final verdict is the worst finding across all dimensions, in this\nprecedence order (highest to lowest):\n\n```\nOVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK\n```\n\nThis precedence reflects: security exposure first (the role is the blast\nradius), then forensic visibility (logging), then distributed observability\n(tracing), then correctness (definition gaps). A state machine with both\nan over-permissive role AND missing logging gets `OVERPERMISSIVE_ROLE` as\nthe verdict, with both findings enumerated.\n\nIf no findings across any dimension, the verdict is **OK**.\n\n## Output format (per state machine)\n\n```text\nSTATE_MACHINE: \u003Carn-or-name>\nTYPE: STANDARD | EXPRESS\nVERDICT: NO_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [OVERPERMISSIVE_ROLE] \u003Cfinding description (Step 3)>\n  - [NO_LOGGING] \u003Cfinding description (Step 1)>\n  - [OK] \u003Cdimensions that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — over-permissive role on Standard workflow\n\n```text\nSTATE_MACHINE: arn:aws:states:us-east-1:111111111111:stateMachine:order-pipeline\nTYPE: STANDARD\nVERDICT: OVERPERMISSIVE_ROLE\nREASON: Execution role grants lambda:* and dynamodb:* on Resource \"*\" — the\nstate machine has fan-out access to every Lambda function and DynamoDB table\nin the account (Step 3). Logging and tracing are correctly configured.\nFINDINGS:\n  - [OVERPERMISSIVE_ROLE] Role policy: lambda:* on Resource \"*\" (Step 3) —\n    can invoke any Lambda function in the account\n  - [OVERPERMISSIVE_ROLE] Role policy: dynamodb:* on Resource \"*\" (Step 3) —\n    can read\u002Fwrite any DynamoDB table\n  - [OK] LoggingConfiguration.level: ALL + includeExecutionData: true (Step 1)\n  - [OK] TracingConfiguration.enabled: true on STANDARD workflow (Step 2)\n  - [OK] All Task states have Catch + Retry + TimeoutSeconds (Step 4)\nREMEDIATION:\n  1. Replace lambda:* with lambda:InvokeFunction scoped to the specific\n     function ARNs the definition invokes.\n  2. Replace dynamodb:* with the specific actions (GetItem, PutItem,\n     UpdateItem) scoped to the specific table ARNs.\n  3. Verify the role retains states:StartExecution only on this state\n     machine's own ARN (if self-chaining is intended) or remove it.\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a state machine with `loggingConfiguration.level: OFF`\n  as `OK` for the logging dimension. `OFF` means no CloudWatch Logs\n  delivery. The 90-day execution history (Standard) is a fallback, not a\n  replacement — it is not queryable, not alertable, and not retained for\n  compliance windows.\n\n- NEVER treat `level: ALL` as sufficient when `includeExecutionData` is\n  false or absent. Without execution data, CloudWatch Logs has state\n  transitions but no input\u002Foutput payloads. For forensics, this is nearly\n  as blind as `OFF`. Treat as `NO_LOGGING`.\n\n- NEVER assume `TracingConfiguration.enabled: true` on an EXPRESS workflow\n  produces X-Ray traces. The field is accepted silently but produces no\n  X-Ray console traces. Always emit `NO_TRACING` for Express workflows.\n\n- NEVER classify `Action: \"*\"` on `Resource: \"*\"` on the execution role as\n  anything other than `OVERPERMISSIVE_ROLE`. This is admin-equivalent —\n  the state machine can call any AWS service on any resource. One\n  compromised state machine = full account compromise.\n\n- NEVER overlook `states:StartExecution` on `Resource: \"*\"` as a benign\n  permission. It enables the state machine to start ANY other state\n  machine in the account, including more-privileged ones. This is the Step\n  Functions chaining\u002Fescalation vector, analogous to `sts:AssumeRole`.\n\n- NEVER classify a `Task` with a fallible `Resource` (Lambda, DynamoDB,\n  SQS, etc.) and NO `Catch` and NO `Retry` as `OK`. Transient errors\n  (`Lambda.ServiceException`,\n  `DynamoDB.ProvisionedThroughputExceededException`) fail the entire\n  execution on first occurrence. This is a production-hardening gap.\n\n- NEVER assume a `Task` without `TimeoutSeconds` is safe. The 60-second\n  default silently kills Lambda functions configured for longer runtimes.\n  The Lambda continues executing (and billing) but Step Functions advances\n  to a `States.Timeout` error.\n\n- NEVER flag a legitimate retry loop (a `Task` with `Retry` block whose\n  `Next` stays on the same state) as a \"cyclic reference\" defect. Cycles\n  are valid ASL for iteration. Only flag cycles with NO exit path (no\n  `Retry`\u002F`Catch` that can break out, no `Choice` branch that leaves).\n\n- NEVER recommend `AdministratorAccess` or `AmazonStepFunctionsFullAccess`\n  as a remediation for a scoped role. These grant `states:*` on `*`,\n  reintroducing the over-permission you are fixing.\n\n- NEVER assume the execution role's trust policy is correct without\n  checking. `CreateStateMachine` accepts any role ARN — the trust policy\n  is NOT validated at creation. A role that does not trust\n  `states.amazonaws.com` fails silently at runtime.\n\n- NEVER treat `level: ERROR` as adequate logging. Only failed states are\n  logged. Successful executions — including data-exfiltration paths via\n  successful `dynamodb:GetItem` or `s3:GetObject` calls — leave no trace.\n\n- NEVER assume X-Ray tracing works just because\n  `TracingConfiguration.enabled: true` is set on a Standard workflow. The\n  execution role MUST also grant `xray:PutTraceSegments` and\n  `xray:PutTelemetryRecords`. Without these permissions, tracing silently\n  produces nothing.\n\n- NEVER assume `LoggingConfiguration.level: ALL` is delivering logs just\n  because the API accepted it. The execution role MUST grant\n  `logs:CreateLogDelivery`, `logs:GetLogDelivery`, `logs:UpdateLogDelivery`,\n  `logs:DescribeLogGroups`, and `logs:PutLogEvents`. Without these,\n  logging silently fails.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the full pre-remediation safety checklist with CLI listings (confirmation gate, backups, dependents).\n\n## Remediation guidance\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the per-verdict remediation playbooks (OVERPERMISSIVE_ROLE, NO_LOGGING, NO_TRACING, CONFIG_GAP, OK).\n\n## Deep reference: Step Functions internals\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the internals deep-dive (execution history vs CloudWatch Logs, X-Ray model, role evaluation table).\n\n## Recent AWS features (2024-2026)\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2024-2026 feature notes relevant to auditing.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Step 0 expert knowledge, Step Functions internals deep reference, recent AWS features\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - pre-remediation safety checks and CLI listings\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - per-verdict remediation playbooks\n\n## Domain\n\nAWS CloudOps \u002F Step Functions Observability, Security & ASL Correctness.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Step Functions Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsecurity.html\n- **Step Functions API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fapireference\u002F\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n- **Distributed Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed.html\n","# Step Functions State Machine Auditor\n\n## Mindset\n\n**One-line takeaway:** a state machine is audited across four orthogonal\ndimensions — **execution logging**, **X-Ray tracing**, **execution-role\nblast radius**, and **ASL definition correctness** — and the verdict is\nalways the **worst** finding, in the precedence\n`OVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK`.\n\nStep Functions is the orchestration layer for multi-service workflows. Its\nblast radius is unusual because a single state machine can fan out to\nLambda, DynamoDB, SQS, SNS, ECS, Glue, S3, and other state machines — all\nunder one execution role. Three structural facts drive the audit:\n\n- **The execution role is a service-chaining multiplier.** One role with\n  `lambda:*` + `dynamodb:*` + `sqs:*` on `*` grants the state machine\n  fan-out access to every resource of every integrated service. This is the\n  IAM blast-radius pattern unique to Step Functions.\n- **Execution logging at `level: OFF` is forensic blindness.** The Step\n  Functions console shows execution history for 90 days (Standard) or\n  minutes (Express), but only `LoggingConfiguration.level: ALL` plus\n  `includeExecutionData: true` delivers a durable, queryable record to\n  CloudWatch Logs. Without it, post-incident forensics rely on CloudTrail\n  alone, which does not capture per-state input\u002Foutput.\n- **`TracingConfiguration.enabled: true` on an EXPRESS workflow is a\n  no-op.** X-Ray tracing via the `TracingConfiguration` field is only\n  honored on STANDARD workflows. An Express workflow with tracing\n  \"enabled\" produces zero X-Ray traces — operators who check the box and\n  move on have no distributed tracing at all.\n\n## Quick reference — verdict thresholds\n\n| Condition | Verdict | Step |\n|---|---|---|\n| Execution role: `Action: \"*\"` on `Resource: \"*\"` (admin-equivalent) | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: service wildcard (`lambda:*`, `dynamodb:*`, `s3:*`) on `Resource: \"*\"` | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: `states:StartExecution` on `*` (chaining\u002Fescalation) | **OVERPERMISSIVE_ROLE** | Step 3 |\n| Execution role: `iam:PassRole` on `*` | **OVERPERMISSIVE_ROLE** | Step 3 |\n| `LoggingConfiguration.level` is `OFF`, `ERROR`, or absent | **NO_LOGGING** | Step 1 |\n| `LoggingConfiguration.includeExecutionData` is `false` or absent | **NO_LOGGING** | Step 1 |\n| `TracingConfiguration.enabled` is `false` or absent on a STANDARD workflow | **NO_TRACING** | Step 2 |\n| Workflow `type: EXPRESS` (X-Ray no-op regardless of `TracingConfiguration`) | **NO_TRACING** | Step 2 |\n| `Task` state with a fallible `Resource` and NO `Catch` and NO `Retry` | **CONFIG_GAP** | Step 4 |\n| `Task` state with no `TimeoutSeconds` (60-second default, silent kill) | **CONFIG_GAP** | Step 4 |\n| `Choice` state with no `Default` branch | **CONFIG_GAP** | Step 4 |\n| Unreachable state (no inbound `Next`\u002F`Default`\u002F`Catch.Next`) | **CONFIG_GAP** | Step 4 |\n| All dimensions pass | **OK** | Step 5 |\n\nWhen multiple findings apply, the verdict is the **worst** by precedence\n(`OVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK`). All\nindividual findings still appear in the FINDINGS list regardless of the\naggregate verdict.\n\n## Critical rules — read first (do NOT violate)\n\nThese are the high-frequency, high-impact mistakes. Each is expanded in\nthe NEVER list and Step 0 below — this block exists so an agent executing\nunder time pressure sees them before any classification logic:\n\n1. **`includeExecutionData: false` is NO_LOGGING even at `level: ALL`.**\n   State transitions are logged but NOT input\u002Foutput payloads. For\n   forensics, this is near-blind. Always check BOTH fields.\n2. **`TracingConfiguration.enabled: true` on an EXPRESS workflow is a\n   no-op.** The field is accepted silently; no X-Ray console traces are\n   produced. Always emit NO_TRACING for Express regardless of the field.\n3. **`Action: \"*\"` on `Resource: \"*\"` on the execution role is\n   OVERPERMISSIVE_ROLE.** No exceptions — this is admin-equivalent; one\n   compromised state machine = full account compromise.\n4. **A fallible `Task` (Lambda, DynamoDB, SQS, etc.) with NO `Catch` and\n   NO `Retry` is CONFIG_GAP.** Transient errors fail the entire execution\n   on the first occurrence. Both blocks are expected on production Tasks.\n5. **A `Task` without `TimeoutSeconds` silently uses 60 seconds.** Lambda\n   functions configured for longer runtimes are killed at 60s while the\n   Lambda continues executing and billing.\n6. **NEVER recommend `AdministratorAccess` or `AmazonStepFunctionsFullAccess`\n   as a remediation.** These grant `states:*` on `*`, reintroducing the\n   over-permission being fixed. Always scope to named actions on specific\n   ARNs derived from the definition's `Resource` fields.\n7. **`states:StartExecution` on `Resource: \"*\"` is a chaining\u002Fescalation\n   vector** — the Step Functions analogue of `sts:AssumeRole`. Scope to\n   the specific state-machine ARNs the workflow is permitted to chain into.\n\n## Pre-flight: state machine type gate (run before classification)\n\nStep Functions operates two workflow types with materially different\nobservability models. Misclassifying the type produces false confidence in\ntracing and logging coverage.\n\n| `Type` | Execution history retention | X-Ray tracing via `TracingConfiguration` | Logging implication |\n|---|---|---|---|\n| `STANDARD` | 90 days via API\u002Fconsole | **Honored.** X-Ray console shows traces. | `LoggingConfiguration` delivers to CloudWatch Logs for structured queries\u002Falerts. Execution history is a fallback. |\n| `EXPRESS` | 5 minutes (Synchronous) \u002F 1 hour (Asynchronous) via API | **No-op.** The field is accepted but produces no X-Ray console traces. | `LoggingConfiguration` is the ONLY durable record. `NO_LOGGING` on Express is catastrophic for forensics. |\n\n**Type-specific audit behavior:**\n\n- **EXPRESS workflow:** ALWAYS emit `NO_TRACING` as at least a secondary\n  finding, regardless of `TracingConfiguration.enabled`. The operator may\n  have set the field expecting X-Ray coverage — that expectation is not\n  met. If logging is also missing, the verdict is `NO_LOGGING` (higher\n  precedence), with `NO_TRACING` noted in FINDINGS.\n- **STANDARD workflow:** Evaluate `TracingConfiguration.enabled` normally.\n  `false` or absent → `NO_TRACING`.\n- **Type absent from input:** Emit an ERROR note and assume STANDARD (the\n  default at creation) for downstream evaluation, but flag the assumption.\n\n**If the state machine configuration is malformed** (invalid JSON, missing\n`Definition`, missing `RoleArn`), output:\n\n```text\nSTATE_MACHINE: \u003Carn-or-name>\nVERDICT: ERROR\nREASON: State machine configuration is not valid — missing or malformed required field.\nREMEDIATION: Retrieve the canonical config with `aws stepfunctions describe-state-machine --state-machine-arn \u003Carn> --output json` and re-audit.\n```\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Expert knowledge — non-obvious Step Functions behaviors\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the complete Step 0 catalog of non-obvious Step Functions behaviors that change audit verdicts.\n\n### Step 1: Logging configuration (NO_LOGGING)\n\nEvaluate `LoggingConfiguration` for both Standard and Express workflows:\n\n| Condition | Finding | Why |\n|---|---|---|\n| `level: OFF` or `LoggingConfiguration` absent | **NO_LOGGING** | No CloudWatch Logs delivery. Execution history is the only signal, and it expires (90d Standard, minutes Express). |\n| `level: ERROR` | **NO_LOGGING** | Only failed states are logged. Successful executions leave no trace — blind to slow degradation, data exfiltration via successful API calls, or unexpected state transitions. |\n| `level: ALL` + `includeExecutionData: false` or absent | **NO_LOGGING** | State transitions are logged but NOT input\u002Foutput payloads. Forensically near-useless — you cannot reconstruct what data flowed through the workflow. |\n| `level: ALL` + `includeExecutionData: true` | **OK (this dimension)** | Full observability. Both transitions and payloads are in CloudWatch Logs. |\n\n**Express-specific escalation:** for Express workflows, execution history\nexpires in minutes. `NO_LOGGING` on Express means there is NO durable\nrecord of the execution — flag this as a critical-severity secondary note\nin FINDINGS.\n\n**`logGroupName` presence:** if `level: ALL` but no `logGroupName` (or no\n`logDestinationArn`), Step Functions creates a default log group. Verify\nthe role has `logs:CreateLogGroup` or the delivery silently fails.\n\n### Step 2: Tracing configuration (NO_TRACING)\n\nEvaluate `TracingConfiguration` with the type gate from Pre-flight:\n\n| Workflow type | `TracingConfiguration.enabled` | Finding |\n|---|---|---|\n| `STANDARD` | `true` | OK (this dimension) — verify role has `xray:PutTraceSegments`. |\n| `STANDARD` | `false` or absent | **NO_TRACING** — no distributed tracing; cross-service latency and error analysis impossible. |\n| `EXPRESS` | any value | **NO_TRACING** — `TracingConfiguration` is a no-op on Express. Operator's tracing expectation is not met. |\n\n**Why this matters:** Step Functions orchestrates multiple services\n(Lambda, DynamoDB, SQS, API Gateway, ECS). Without X-Ray, a latency spike\nin the workflow cannot be attributed to a specific service integration.\nThe operator sees \"execution took 45 seconds\" but not \"DynamoDB GetItem\ntook 40 of those seconds\".\n\n### Step 3: IAM execution role blast radius (OVERPERMISSIVE_ROLE)\n\nThe execution role is the identity under which EVERY service integration\nin the state machine runs. Its scope determines the workflow's total\nblast radius. Evaluate the role's identity-based policies (managed +\ninline):\n\n**CRITICAL-severity role findings (emit OVERPERMISSIVE_ROLE):**\n\n- `Action: \"*\"` on `Resource: \"*\"` — admin-equivalent. The state machine\n  can call any service on any resource. This is the single most dangerous\n  pattern in Step Functions because one state machine compromise = full\n  account compromise.\n- Service wildcard (e.g., `lambda:*`, `dynamodb:*`, `s3:*`, `sqs:*`,\n  `sns:*`, `states:*`) on `Resource: \"*\"` — broad fan-out access to every\n  resource of that service. The state machine can invoke any Lambda, read\n  any DynamoDB table, publish to any SNS topic.\n- `states:StartExecution` on `Resource: \"*\"` — can start ANY state machine\n  in the account, including more-privileged ones. This is the Step\n  Functions chaining\u002Fescalation vector (analogous to `sts:AssumeRole`).\n- `iam:PassRole` on `Resource: \"*\"` — can pass any role to any service\n  that accepts a role ARN. Combined with a Lambda\u002FLambda-invoking Task,\n  this enables privilege escalation.\n- `states:CreateStateMachine` \u002F `states:UpdateStateMachine` on `*` — can\n  create or modify other state machines, widening the attack surface.\n\n**Role trust policy check (secondary finding, does not drive the verdict\nbut appears in FINDINGS):**\n\n- The role's `AssumeRolePolicyDocument` MUST include\n  `Principal: { Service: \"states.amazonaws.com\" }` with\n  `Action: \"sts:AssumeRole\"`. Without this trust, the state machine\n  cannot assume the role — every service integration fails at runtime\n  with `AccessDenied`. Flag as an operational risk.\n\n**Scoped role (OK for this dimension):**\n\n- Named actions (e.g., `lambda:InvokeFunction`,\n  `dynamodb:GetItem`, `dynamodb:PutItem`) on specific ARNs (e.g.,\n  `arn:aws:lambda:us-east-1:111111111111:function:order-processor`) → OK.\n- The minimum-viable execution role grants only the actions the\n  definition's service integrations require, scoped to the specific\n  resource ARNs.\n\n**Live-account enumeration (when auditing by ARN):**\n\n```\naws iam list-attached-role-policies --role-name \u003Crole-name> --profile \u003Cp>\naws iam list-role-policies --role-name \u003Crole-name> --profile \u003Cp>\naws iam get-role-policy --role-name \u003Crole-name> --policy-name \u003Cname> --profile \u003Cp>\n```\n\nPage inline policies — `get-role-policy` returns one policy at a time.\n\n### Step 4: ASL definition validation (CONFIG_GAP)\n\nValidate the `Definition` (ASL document) for structural correctness,\nerror handling, and runtime-safety gaps. The API's\n`ValidateStateMachineDefinition` catches syntax errors and some structural\nissues, but it does NOT check for production-hardening gaps (missing\nCatch, missing TimeoutSeconds). The auditor goes beyond API validation.\n\n**Fallible Task without error handling (CONFIG_GAP):**\n\nA `Task` state with a fallible `Resource` (any ARN that invokes an\nexternal service — Lambda, DynamoDB, SQS, ECS, Glue, SNS, Step Functions\nnested) MUST have either a `Catch` block, a `Retry` block, or both. A\nTask with NEITHER fails the entire execution on the first error,\nincluding transient errors that would resolve on retry.\n\nFallible `Resource` ARN patterns:\n- `arn:aws:lambda:*` — Lambda invocation (transient `ServiceException`)\n- `arn:aws:dynamodb:*` — DynamoDB CRUD (provisioned-throughput errors)\n- `arn:aws:sqs:*` — SQS SendMessage (rate limits)\n- `arn:aws:sns:*` — SNS Publish (rate limits)\n- `arn:aws:states:*:execution:*` — nested Step Functions\n- `arn:aws:ecs:*` — ECS RunTask (capacity errors)\n- Any AWS service integration\n\nNon-fallible states (no error handling needed):\n- `Succeed`, `Fail`, `Pass`, `Wait`, `Choice`, `Map`, `Parallel`\n\n**Missing `TimeoutSeconds` on Task (CONFIG_GAP):**\n\nA `Task` without `TimeoutSeconds` defaults to 60 seconds. Long-running\nintegrations (Lambda with > 60s timeout, Activities, Glue jobs, ECS\ntasks) are silently killed at 60s. Flag any `Task` without explicit\n`TimeoutSeconds`.\n\n**Missing `HeartbeatSeconds` on Activity-based Task (CONFIG_GAP):**\n\nA `Task` with `Resource: arn:aws:states:*:activity:*` relies on an\nexternal worker. Without `HeartbeatSeconds`, worker death is not detected\nuntil `TimeoutSeconds` (which can be hours). Flag any Activity-based Task\nwithout `HeartbeatSeconds`.\n\n**Unreachable states (CONFIG_GAP):**\n\nWalk the state graph from `StartAt`. Any state NOT reachable via\n`Next`\u002F`Default`\u002F`Catch[].Next`\u002F`Iterator.StartAt` chain is unreachable.\nUnreachable states are dead code — they may contain stale logic or\nprivilege assumptions that diverge from the live path. Flag each\nunreachable state by name.\n\n**Cyclic references without exit (CONFIG_GAP):**\n\nASL permits cycles (a `Choice` that loops back, a `Task` that retries via\n`Next` to itself). A cycle is valid IF there is an exit path (a `Choice`\nbranch that leaves the cycle, or a `Retry`\u002F`Catch` that routes elsewhere).\nA cycle with NO exit path (e.g., a `Task` whose `Next` points back to\nitself with no `Retry`\u002F`Catch`) is an infinite loop. Flag as CONFIG_GAP.\n\n**Choice without Default (CONFIG_GAP):**\n\nA `Choice` state without a `Default` field is invalid ASL — the API\nrejects it. But if the input is a template (Terraform\u002FCloudFormation), it\nmay pass initial parsing and fail at apply. Flag any `Choice` without\n`Default`.\n\n**Map state with `MaxConcurrency: 0` and large item set (CONFIG_GAP):**\n\n`MaxConcurrency: 0` means unbounded parallelism. For a Map iterating > 100\nitems, this can overwhelm downstream services (Lambda concurrency,\nDynamoDB throttling). Flag as CONFIG_GAP and recommend setting\n`MaxConcurrency` to a value within the downstream service's capacity.\n\n### Step 5: Aggregation — worst finding wins by precedence\n\nThe final verdict is the worst finding across all dimensions, in this\nprecedence order (highest to lowest):\n\n```\nOVERPERMISSIVE_ROLE > NO_LOGGING > NO_TRACING > CONFIG_GAP > OK\n```\n\nThis precedence reflects: security exposure first (the role is the blast\nradius), then forensic visibility (logging), then distributed observability\n(tracing), then correctness (definition gaps). A state machine with both\nan over-permissive role AND missing logging gets `OVERPERMISSIVE_ROLE` as\nthe verdict, with both findings enumerated.\n\nIf no findings across any dimension, the verdict is **OK**.\n\n## Output format (per state machine)\n\n```text\nSTATE_MACHINE: \u003Carn-or-name>\nTYPE: STANDARD | EXPRESS\nVERDICT: NO_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its step>\nFINDINGS:\n  - [OVERPERMISSIVE_ROLE] \u003Cfinding description (Step 3)>\n  - [NO_LOGGING] \u003Cfinding description (Step 1)>\n  - [OK] \u003Cdimensions that passed>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — over-permissive role on Standard workflow\n\n```text\nSTATE_MACHINE: arn:aws:states:us-east-1:111111111111:stateMachine:order-pipeline\nTYPE: STANDARD\nVERDICT: OVERPERMISSIVE_ROLE\nREASON: Execution role grants lambda:* and dynamodb:* on Resource \"*\" — the\nstate machine has fan-out access to every Lambda function and DynamoDB table\nin the account (Step 3). Logging and tracing are correctly configured.\nFINDINGS:\n  - [OVERPERMISSIVE_ROLE] Role policy: lambda:* on Resource \"*\" (Step 3) —\n    can invoke any Lambda function in the account\n  - [OVERPERMISSIVE_ROLE] Role policy: dynamodb:* on Resource \"*\" (Step 3) —\n    can read\u002Fwrite any DynamoDB table\n  - [OK] LoggingConfiguration.level: ALL + includeExecutionData: true (Step 1)\n  - [OK] TracingConfiguration.enabled: true on STANDARD workflow (Step 2)\n  - [OK] All Task states have Catch + Retry + TimeoutSeconds (Step 4)\nREMEDIATION:\n  1. Replace lambda:* with lambda:InvokeFunction scoped to the specific\n     function ARNs the definition invokes.\n  2. Replace dynamodb:* with the specific actions (GetItem, PutItem,\n     UpdateItem) scoped to the specific table ARNs.\n  3. Verify the role retains states:StartExecution only on this state\n     machine's own ARN (if self-chaining is intended) or remove it.\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a state machine with `loggingConfiguration.level: OFF`\n  as `OK` for the logging dimension. `OFF` means no CloudWatch Logs\n  delivery. The 90-day execution history (Standard) is a fallback, not a\n  replacement — it is not queryable, not alertable, and not retained for\n  compliance windows.\n\n- NEVER treat `level: ALL` as sufficient when `includeExecutionData` is\n  false or absent. Without execution data, CloudWatch Logs has state\n  transitions but no input\u002Foutput payloads. For forensics, this is nearly\n  as blind as `OFF`. Treat as `NO_LOGGING`.\n\n- NEVER assume `TracingConfiguration.enabled: true` on an EXPRESS workflow\n  produces X-Ray traces. The field is accepted silently but produces no\n  X-Ray console traces. Always emit `NO_TRACING` for Express workflows.\n\n- NEVER classify `Action: \"*\"` on `Resource: \"*\"` on the execution role as\n  anything other than `OVERPERMISSIVE_ROLE`. This is admin-equivalent —\n  the state machine can call any AWS service on any resource. One\n  compromised state machine = full account compromise.\n\n- NEVER overlook `states:StartExecution` on `Resource: \"*\"` as a benign\n  permission. It enables the state machine to start ANY other state\n  machine in the account, including more-privileged ones. This is the Step\n  Functions chaining\u002Fescalation vector, analogous to `sts:AssumeRole`.\n\n- NEVER classify a `Task` with a fallible `Resource` (Lambda, DynamoDB,\n  SQS, etc.) and NO `Catch` and NO `Retry` as `OK`. Transient errors\n  (`Lambda.ServiceException`,\n  `DynamoDB.ProvisionedThroughputExceededException`) fail the entire\n  execution on first occurrence. This is a production-hardening gap.\n\n- NEVER assume a `Task` without `TimeoutSeconds` is safe. The 60-second\n  default silently kills Lambda functions configured for longer runtimes.\n  The Lambda continues executing (and billing) but Step Functions advances\n  to a `States.Timeout` error.\n\n- NEVER flag a legitimate retry loop (a `Task` with `Retry` block whose\n  `Next` stays on the same state) as a \"cyclic reference\" defect. Cycles\n  are valid ASL for iteration. Only flag cycles with NO exit path (no\n  `Retry`\u002F`Catch` that can break out, no `Choice` branch that leaves).\n\n- NEVER recommend `AdministratorAccess` or `AmazonStepFunctionsFullAccess`\n  as a remediation for a scoped role. These grant `states:*` on `*`,\n  reintroducing the over-permission you are fixing.\n\n- NEVER assume the execution role's trust policy is correct without\n  checking. `CreateStateMachine` accepts any role ARN — the trust policy\n  is NOT validated at creation. A role that does not trust\n  `states.amazonaws.com` fails silently at runtime.\n\n- NEVER treat `level: ERROR` as adequate logging. Only failed states are\n  logged. Successful executions — including data-exfiltration paths via\n  successful `dynamodb:GetItem` or `s3:GetObject` calls — leave no trace.\n\n- NEVER assume X-Ray tracing works just because\n  `TracingConfiguration.enabled: true` is set on a Standard workflow. The\n  execution role MUST also grant `xray:PutTraceSegments` and\n  `xray:PutTelemetryRecords`. Without these permissions, tracing silently\n  produces nothing.\n\n- NEVER assume `LoggingConfiguration.level: ALL` is delivering logs just\n  because the API accepted it. The execution role MUST grant\n  `logs:CreateLogDelivery`, `logs:GetLogDelivery`, `logs:UpdateLogDelivery`,\n  `logs:DescribeLogGroups`, and `logs:PutLogEvents`. Without these,\n  logging silently fails.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n> Full detail moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - load on demand.\n> Summary: the full pre-remediation safety checklist with CLI listings (confirmation gate, backups, dependents).\n\n## Remediation guidance\n\n> Full detail moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - load on demand.\n> Summary: the per-verdict remediation playbooks (OVERPERMISSIVE_ROLE, NO_LOGGING, NO_TRACING, CONFIG_GAP, OK).\n\n## Deep reference: Step Functions internals\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the internals deep-dive (execution history vs CloudWatch Logs, X-Ray model, role evaluation table).\n\n## Recent AWS features (2024-2026)\n\n> Full detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - load on demand.\n> Summary: the 2024-2026 feature notes relevant to auditing.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) - Step 0 expert knowledge, Step Functions internals deep reference, recent AWS features\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) - pre-remediation safety checks and CLI listings\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) - per-verdict remediation playbooks\n\n## Domain\n\nAWS CloudOps \u002F Step Functions Observability, Security & ASL Correctness.\n\n## AWS documentation\n\n- **AWS Step Functions Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fwelcome.html\n- **Step Functions Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsecurity.html\n- **Step Functions API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fapireference\u002F\n- **Step Functions CLI Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fstepfunctions\u002F\n- **Distributed Map** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconcepts-asl-use-map-state-distributed.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},"stepfunctions, app-integration, security, observability, state-machine, asl, xray, logging, iam, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","Step Functions, state machine, ASL, Amazon States Language, execution logging, CloudWatch Logs, X-Ray tracing, distributed tracing, Express workflow, Standard workflow, execution role, IAM blast radius, states:StartExecution, iam:PassRole, definition validation, circular states, unreachable states, Catch block, Retry block, TimeoutSeconds, HeartbeatSeconds, error handling, Task state, Choice state, Map state, Parallel state, state machine audit","high","false","Reviewing a Step Functions state machine before production deployment, checking execution logging coverage, validating X-Ray tracing enablement, auditing the execution role's blast radius, validating ASL definition correctness (unreachable\u002Fcyclic states, missing error handling), or hardening state machine observability and security posture.","true","NO_LOGGING | NO_TRACING | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK","Input: either (a) a Step Functions state machine configuration (definition + type + loggingConfiguration + tracingConfiguration + roleArn + role policy), OR (b) a state-machine ARN for live-account audit. Output: deterministic STATE_MACHINE\u002FVERDICT\u002FREASON\u002FFINDINGS\u002F REMEDIATION block per state machine, where VERDICT is one of NO_LOGGING, NO_TRACING, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK, or ERROR.","audit this state machine, check Step Functions logging, is X-Ray tracing enabled, state machine execution role too broad, validate ASL definition, missing Catch block, Express workflow tracing, state machine error handling, unreachable states in ASL, Step Functions blast radius","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline state-machine classification. Live-account audits use aws stepfunctions describe-state-machine, aws stepfunctions describe-execution, aws iam get-role-policy, and aws stepfunctions validate-state-machine-definition (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fstepfunctions-statemachine-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 stepfunctions-statemachine-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-statemachine-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill stepfunctions-statemachine-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",14425,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fall-clean-ok.md",583,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fall-clean-ok.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fexpress-tracing-noop.md",647,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fexpress-tracing-noop.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fmissing-error-handling-config-gap.md",703,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fmissing-error-handling-config-gap.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fno-logging-standard-workflow.md",748,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fno-logging-standard-workflow.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fno-tracing-standard-workflow.md",766,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fno-tracing-standard-workflow.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fover-permissive-execution-role.md",879,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fbaselines\u002Fover-permissive-execution-role.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1947,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",5277,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fall-clean-ok.md",1723,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fall-clean-ok.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fexpress-tracing-noop.md",1706,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fexpress-tracing-noop.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fmissing-error-handling-config-gap.md",1224,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fmissing-error-handling-config-gap.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fno-logging-standard-workflow.md",1518,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fno-logging-standard-workflow.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fno-tracing-standard-workflow.md",1538,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fno-tracing-standard-workflow.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fover-permissive-execution-role.md",1426,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fevals\u002Fprompts\u002Fover-permissive-execution-role.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",7226,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",12297,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",2238,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Ferror-handling.md",3820,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Freferences\u002Ferror-handling.md",{"path":141,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":142,"sourceHtmlUrl":143},"skill.usf.yaml",4278,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstepfunctions-statemachine-auditor\u002Fskill.usf.yaml",[145,152,159,166,173,180],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"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":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"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":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"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":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"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":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"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":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"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",[],[]]