Logo Auditing Jit Provisioning And Role Mapping

Auditing Jit Provisioning And Role Mapping

Tổ chức
UnboundCompute
auditing-jit-provisioning-and-role-mapping

Kiểm tra quy trình cấp tài khoản đúng lúc khi đăng nhập liên kết (SAML hoặc OIDC) để tìm lỗi tin tưởng sai chỗ vào assertion dùng để cấp quyền: lần đăng nhập đầu tiên tạo tài khoản và gán vai trò dựa trên các claim từ nhà cung cấp danh tính (nhóm, miền email, phòng ban) mà dịch vụ không xác thực; ánh xạ claim sang vai trò cấp nhiều quyền hơn mức claim cho phép hoặc mặc định gán người dùng mới vào vai trò có đặc quyền; tin claim email hoặc miền để tự động tham gia tenant, khiến kẻ tấn công có địa chỉ gần giống lọt vào; và cập nhật JIT nâng quyền lại mỗi lần đăng nhập dựa trên claim có thể thay đổi. Dùng khi đăng nhập liên kết cấp tài khoản và ánh xạ từ claim trong assertion sang vai trò cục bộ và tenant là ranh giới bảo vệ. Assertion đăng nhập do kẻ tấn công tạo là nguồn, tài khoản được cấp quyền quá mức hoặc vào nhầm tenant là đích, còn claim chưa xác thực hoặc ánh xạ vai trò cấp quá nhiều quyền là lỗ hổng.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-jit-provisioning-and-role-mapping
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Jit Provisioning And Role Mapping trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-jit-provisioning-and-role-mapping .claude/skills/auditing-jit-provisioning-and-role-mapping
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Jit Provisioning And Role Mapping trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Jit Provisioning And Role Mapping ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Jit Provisioning And Role Mapping với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing JIT provisioning and role mapping: the first login decides the role, from claims you did not issue

Just-in-time provisioning creates a local account the first time someone logs in through a federated identity provider, and often updates that account's roles on every subsequent login, all from the claims in the login assertion. The claims, group memberships, an email, a domain, a department, come from the identity provider, not from you, so JIT hands account creation and role assignment to whatever the assertion says. That is fine when the mapping is tight and the claims are validated, and dangerous when either is loose. A claim-to-role mapping that grants more privilege than the claim should, or defaults every new user into a privileged role, elevates at first login. An email or domain claim trusted to auto-join a tenant or organization lets an attacker with a lookalike or attacker-controlled address land inside it. A JIT update that re-reads mutable claims every login can re-elevate or reassign an account an admin previously corrected. And any claim provisioned without validation, an unverified email, a group the attacker can influence, an unsigned or overtrusted assertion field, becomes an access grant. The audit follows a federated login into the account and roles it creates and checks that every claim is validated and every mapping is minimal. You audit this by logging in with shaped assertions and seeing what account and privilege you are given.

When to use

  • A federated login (SAML or OIDC) provisions a local account and assigns roles or tenancy from assertion claims on first login, and may update them on repeat logins.
  • A claim-to-role mapping may over-grant, default new users into a privileged role, or trust an email or domain claim to auto-join an organization.
  • Claims (email, groups, department) may be provisioned without validation.

Scope check

Test JIT provisioning only against applications and identity providers you own or are authorized to assess, on non-production tenants. Logging in with shaped assertions creates real accounts and role grants, so use test identity providers and tenants and never provision or elevate access in an organization that is not yours. If you can't name the authorization, stop.

The loop

  1. Establish the intended claim-to-role and claim-to-tenant mapping first. Name which claims the service trusts, how each maps to a local role, how tenancy or organization membership is decided, and what a brand new user should get by default. This is the false-positive killer: a service that validates every claim it provisions from, maps claims to least privilege, defaults new users into no privileged role, and decides tenancy from a verified, non-spoofable signal is behaving correctly. Name the intended mapping, then test shaped logins.

  2. Test the claim-to-role mapping. Log in with assertions carrying various group and role claims and confirm each maps to exactly the intended privilege. Attempt a claim that should map to an ordinary role and check it cannot reach an admin or elevated role, and confirm a new user with no privileged claim is not defaulted into one. A mapping that over-grants or defaults high is a first-login escalation.

  3. Test tenant and organization auto-join. Log in with an email or domain claim and confirm how the service decides which tenant or organization the account joins. Try a lookalike domain, a subdomain, and an attacker-controlled address, and confirm none auto-joins an organization it should not. An email or domain claim trusted to auto-join lets an attacker land inside a tenant.

  4. Test claim validation. For each provisioned claim, confirm the service validates it: the email is verified, the assertion is signed and the claim is within its authority, and the group is one the identity provider is authorized to assert. Provision from an unverified email and an attacker-influenced group and confirm both are rejected. An unvalidated claim is an access grant the attacker writes.

  5. Test JIT update on repeat login. Log in again with changed claims and confirm whether the service re-reads them to re-elevate or reassign the existing account. Check whether an admin's manual correction (demotion, tenant move) survives the next federated login. A JIT update that blindly re-applies mutable claims undoes local administration every login.

  6. Confirm and record. Confirm on a test tenant by provisioning an over-privileged account from a shaped role claim, auto-joining a tenant from a lookalike email, provisioning from an unverified or attacker-influenced claim, or re-elevating an account on repeat login, without touching a real organization. Kill the lead if the service validates every provisioned claim, maps claims to least privilege, defaults new users into no privileged role, decides tenancy from a verified signal, and does not let a JIT update override local correction. Record the attacker-shaped login assertion, the over-privileged or wrong-tenant account, and the unvalidated claim or over-granting mapping.

Where JIT provisioning leaks

  • Over-granting role mapping. A claim that maps to more privilege than it should, or a default that puts new users in a privileged role, escalates at first login.
  • Email or domain auto-join. Trusting an email or domain claim to auto-join a tenant lets an attacker with a lookalike or controlled address land inside an organization.
  • Unvalidated claims. Provisioning from an unverified email, an attacker-influenced group, or an overtrusted assertion field turns a claim into an access grant.
  • Blind JIT updates. Re-reading mutable claims on every login re-elevates or reassigns accounts and undoes an admin's local corrections.
  • Trusting unsigned or out-of-authority claims. Accepting a claim the identity provider is not authorized to assert, or from an unsigned assertion, lets the attacker set roles directly.

Worked example (a confirm and a kill)

Confirm. An application provisions accounts at first SAML login and joins the user to an organization based on the email domain in the assertion, with any member of the staff group mapped to an admin role. On a test identity provider, an assertion with a lookalike domain and a staff group claim provisions an admin account inside the target organization, because the service trusts the domain to auto-join and maps staff straight to admin. Confirmed wrong-tenant admin provisioning via trusted domain and over-granting mapping, critical, remediation = decide tenancy from a verified, claimed-domain-ownership signal rather than the raw email domain, map groups to least privilege with admin unreachable from a broad group, and verify the email before provisioning.

Kill. The service provisions only from validated claims (verified email, signed assertion, groups within the provider's authority), maps each claim to least privilege with admin roles unreachable from ordinary claims, defaults new users into no privileged role, decides organization membership from a verified domain-ownership signal, and does not let a repeat login override an admin's manual role or tenant correction. A lookalike domain does not auto-join, a broad group does not reach admin, and an unverified email does not provision. Killed, kill_reason = "every provisioned claim is validated, claims map to least privilege with no high default, tenancy comes from a verified signal, and JIT updates do not override local correction; no shaped login provisions over-privileged or wrong-tenant access."

Rationalizations to reject

  • "The claims come from the IdP, so they are trusted." → Confirm each claim is within the provider's authority and the assertion is signed; a claim the attacker can influence or that the provider should not assert is not trustworthy just because it arrived over federation.
  • "We map groups to roles, that is standard." → Confirm the mapping is least privilege and admin is unreachable from a broad group; a staff-to-admin mapping is standard and wrong.
  • "New users get a default role." → Confirm the default is not privileged; defaulting new federated users into an elevated role is a first-login escalation for anyone who can log in.
  • "Email domain identifies the company." → An email domain is spoofable in an assertion and lookalikes exist; decide tenancy from verified domain ownership, not the raw claim.
  • "JIT keeps roles in sync." → Confirm it does not undo local corrections; blindly re-applying mutable claims every login re-elevates accounts an admin already demoted.

Executing this in practice

You need which claims the service provisions from, how each maps to a role and to tenancy, how claims are validated, and whether repeat logins re-apply mutable claims over local changes. On a test identity provider, log in with shaped role, group, and email claims, with lookalike and unverified addresses, and on repeat with changed claims. Reading the provisioning and mapping code shows the intended trust; an over-privileged or wrong-tenant account from a shaped login shows whether it holds.

Related

  • auditing-scim-provisioning-trust - the push counterpart; SCIM provisions ahead of login while JIT provisions at login, and both turn a source attribute into a role and a tenant.
  • auditing-saml-and-oidc-federation-trust - the assertion validation JIT depends on; an unsigned or wrapped assertion feeds JIT attacker-chosen claims.
  • auditing-idp-initiated-flow-trust - an IdP-initiated login is a common JIT trigger; the two combine when an unsolicited assertion provisions an account.
  • hunting-iam-privilege-escalation-paths - a role over-granted at first login is the start of an escalation path that skill traces onward.
  • FINDING-SCHEMA.md - source = the attacker-shaped login assertion, sink = the over-privileged or wrong-tenant provisioned account, evidence = the unvalidated claim or over-granting role mapping.

Câu hỏi thường gặp

Kỹ năng AI Auditing Jit Provisioning And Role Mapping làm được gì?

Kiểm tra quy trình cấp tài khoản đúng lúc khi đăng nhập liên kết (SAML hoặc OIDC) để tìm lỗi tin tưởng sai chỗ vào assertion dùng để cấp quyền: lần đăng nhập đầu tiên tạo tài khoản và gán vai trò dựa trên các claim từ nhà cung cấp danh tính (nhóm, miền email, phòng ban) mà dịch vụ không xác thực; ánh xạ claim sang vai trò cấp nhiều quyền hơn mức claim cho phép hoặc mặc định gán người dùng mới vào vai trò có đặc quyền; tin claim email hoặc miền để tự động tham gia tenant, khiến kẻ tấn công có địa chỉ gần giống lọt vào; và cập nhật JIT nâng quyền lại mỗi lần đăng nhập dựa trên claim có thể th...

Vì sao nên dùng Auditing Jit Provisioning And Role Mapping trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Jit Provisioning And Role Mapping là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Jit Provisioning And Role Mapping trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Jit Provisioning And Role Mapping?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Jit Provisioning And Role Mapping với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Jit Provisioning And Role Mapping với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Jit Provisioning And Role Mapping có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇