marketplace-rbac-audit
Skill này làm gì
Công cụ này kiểm tra xem quyền truy cập trong một marketplace có hoạt động đúng không. Nó đảm bảo chỉ những người phù hợp mới xem hoặc chỉnh sửa thông tin cụ thể, như đơn hàng hoặc dữ liệu khách hàng.
Khi nào nên dùng
- ✓Khi bạn rà soát quy tắc truy cập trên một website bán hàng nhiều người bán.
- ✓Khi bạn thêm hoặc thay đổi việc ai được làm gì trong hệ thống.
- ✓Khi bạn điều tra xem có ai truy cập thông tin mà lẽ ra không được phép hay không.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marketplace-rbac-audit/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra xem nhân viên giao hàng có thể xem địa chỉ của khách hàng khác không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ so sánh các quy tắc truy cập đã định với những gì thực sự xảy ra trong hệ thống. Nó phân tích ai có thể truy cập gì, trong tình huống nào và qua phần nào của hệ thống.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Marketplace RBAC Audit
Overview
Audit authorization in marketplaces where customers, vendors, fulfillment staff, couriers, support agents, administrators, and service accounts act on shared orders and resources. Build an explicit policy matrix, trace enforcement from route to data access, and verify both allowed and denied behavior without treating hidden UI controls as security.
This is a read-only review by default. It does not grant permission to scan a live service, create test accounts, alter permissions, or access another person's data.
When to Use This Skill
- Reviewing authorization in a marketplace, delivery platform, multi-vendor store, or fulfillment system.
- Adding or changing roles, administrative powers, ownership rules, or order-state transitions.
- Investigating whether one customer, vendor, courier, hub, or tenant can access another party's resources.
- Preparing negative authorization tests before release or after an access-control incident.
Do not use this skill for authentication design alone, generic multi-tenant architecture, offensive ID enumeration, or penetration testing outside an explicitly authorized test environment.
Establish the Authorization Contract
Record the actual actors and resources instead of assuming standard role names.
For each actor, capture:
- identity source and role-assignment authority;
- tenant, organization, store, hub, region, or assignment scope;
- resource relationships such as owner, seller, assigned courier, servicing hub, or support case;
- permitted operations and state transitions;
- emergency, support, delegated, and service-account access;
- audit-log and approval requirements for privileged actions.
Separate these policy dimensions:
- Role — what this actor type may generally do.
- Relationship — which specific object the actor may access.
- Tenant or operational scope — where the permission applies.
- Resource state — whether the operation is valid now.
- Field scope — which attributes may be viewed or changed.
A matching role is not sufficient when ownership, assignment, tenant, state, or field rules fail.
Build the Policy Matrix
Create one row per meaningful actor-resource-operation combination.
| Field | Required content |
|---|---|
| Actor | Role plus relevant tenant/store/hub/assignment |
| Resource | Order, product, inventory, payout, address, profile, delivery, refund, or admin object |
| Operation | List, view, create, update, delete, assign, transition, refund, export, or impersonate |
| Relationship | Owner, seller, assignee, servicing hub, same tenant, or none |
| Required state | Order/payment/delivery state in which the operation is allowed |
| Field scope | Allowed and prohibited fields |
| Expected result | Allow or deny, including disclosure policy such as 403 versus 404 |
| Enforcement point | Route, policy layer, service, query predicate, database policy, or queue consumer |
| Evidence | Code reference, test ID, request ID, or audit event |
Mark an undocumented decision as UNDEFINED; do not invent a permission merely because current code allows it.
Audit Workflow
1. Inventory Entry Points
Map HTTP routes, GraphQL operations, server actions, background jobs, webhooks, file downloads, exports, administrative tools, and queue consumers that access marketplace resources. Include bulk operations and alternate HTTP methods.
2. Trace Identity and Scope
For every entry point, trace how the authenticated principal becomes an authorization context. Confirm that role, tenant, store, hub, assignment, and delegation claims come from a trusted server-side source and are current enough for the operation.
Do not accept actor, tenant, owner, vendor, hub, courier, price, payout, or privilege fields from the request merely because they are present in a signed-in session.
3. Trace Object Authorization
Follow the resource identifier from request to data access. Prefer a scoped query or atomic mutation that includes every required predicate:
resource_id
+ tenant/store/hub scope
+ owner/seller/assignee relationship
+ permitted current state
= authorized object or no match
A separate “check then update” sequence may race with reassignment or state changes. Record where a transaction, conditional update, row-level lock, or equivalent consistency control is required.
4. Check Field-Level Authorization
…
Câu hỏi thường gặp
Công cụ này có thay đổi quyền của ai không?
Không. Công cụ này chỉ dùng để kiểm tra và rà soát quyền hiện có. Nó không thay đổi bất cứ điều gì trong hệ thống.
RBAC là gì?
RBAC là viết tắt của 'Role-Based Access Control' (kiểm soát truy cập theo vai trò). Quyền được cấp dựa trên vai trò của một người, ví dụ khách hàng, người bán hoặc nhân viên giao hàng.
“Chuyển trạng thái đơn hàng” là gì?
Đây là các giai đoạn mà một đơn hàng đi qua, như 'chờ xử lý', 'đã gửi', 'đã giao'. Công cụ kiểm tra ai có thể chuyển đơn hàng từ giai đoạn này sang giai đoạn khác.
Chi tiết
Mô tả gốc của tác giả
Audit multi-role marketplace authorization across roles, resource ownership, tenant boundaries, and order-state transitions; use when access rules need evidence, not UI assumptions.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5166
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.