admin-rbac-visibility-auditor
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "admin-rbac-visibility-auditor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-847ee5558bba3b97c57b4cd4928807ead3221fc057f9027c93f2189d8e5159de. Verify the upstream source and version against https://skillhub.cn/skills/douease/admin-rbac-visibility-auditor before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Audits what different admin roles can see, do, and access in the management backend. Produces a role × page × action × data-scope matrix to help identify hidden-menu-but-callable-API cases, privilege escalations, and wrongful blocks.
Introduction source: third_party · douease · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- ```markdown
- Testing
- Not tested
Browse files
Frontmatter
name: admin-rbac-visibility-auditor
description: 审计管理后台不同角色能看到什么、能操作什么、能访问哪些数据。当用户要设计或验证 RBAC、菜单权限、路由保护、接口授权、组织范围和多租户隔离时,输出角色可见性矩阵与越权测试清单。后台角色权限可见性审计
本技能解决“谁能看到什么、能做什么、能看哪些数据”这一类后台权限问题。菜单隐藏不是授权,前端路由保护也不是接口授权。
何时使用
- 设计或验收管理后台角色权限。
- 用户问某角色是否能看到某页面、按钮、字段或数据。
- 排查越权、误封、多租户串数据、组织范围不一致。
- 上线前需要角色回归矩阵。
权限模型
每条权限都用五元组表达:主体 Subject × 资源 Resource × 动作 Action × 数据范围 Scope × 条件 Condition。
- 主体:平台管理员、企业管理员、运营、销售、财务、只读等。
- 资源:菜单、路由、页面、接口、字段、导出文件。
- 动作:查看、新建、编辑、删除、审批、导出、配置。
- 范围:本人、团队、组织、租户、全平台。
- 条件:状态、归属、时间、金额、审批阶段等。
工作流程
1. 盘点真实角色
从现有账号、数据库、配置和页面确认角色,不凭名称猜能力。记录角色继承、组合方式和默认角色。
2. 盘点资源与动作
从导航、路由、接口、按钮和敏感字段建立资源清单。特别标记:批量操作、导出、配置、密钥、财务、用户管理和审计日志。
3. 建立角色矩阵
| 角色 | 页面/资源 | 可见 | 可执行动作 | 数据范围 | 约束 | 证据 |
|---|---|---:|---|---|---|---|
同一资源的页面、路由、接口和数据范围要分开记录。
4. 正向验证
使用每类目标账号登录,验证入口、路由、按钮、接口返回和数据样本。不要只用超级管理员代替其他角色。
5. 反向越权验证
- 手工输入被隐藏路由。
- 重放或直接调用接口。
- 替换资源 ID、组织 ID、租户 ID。
- 请求超出范围的数据或导出。
- 使用已降权或停用账号重试。
6. 检查一致性
对比前端条件、后端中间件、查询过滤、数据库策略和审计日志。发现多个真相源时,指出优先级和修复位置。
输出格式
# 权限审计结论
风险等级:高 / 中 / 低
## 角色矩阵
| 角色 | 资源 | UI | 路由 | API | 数据范围 | 结论 |
## 越权或误封问题
1. [严重度] 问题
- 复现:
- 影响:
- 修复:
## 未验证
- 缺少的账号或环境:
风险分级
- P0:跨租户、跨组织读取或修改敏感数据。
- P1:未授权执行删除、支付、密钥、用户或配置操作。
- P2:页面/按钮显示错误、接口被正确拦截。
- P3:文案、提示或审计信息不清晰。
质量门槛
- 至少覆盖一个允许角色和一个拒绝角色。
- 同时验证 UI、路由、API、数据范围四层。
- 不把 404 当成合格授权;应确认系统的预期拒绝语义。
- 每个高风险问题包含可复现请求或页面路径。
- 不在报告中暴露密码、Token、Cookie 或敏感个人数据。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决管理后台角色权限审计这一企业级刚需场景
- 覆盖正向验证与反向越权测试,实用性强
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
Areas to improve
-
缺少独立 When to Use 章节 Reported severity: Minor
文档开头已有“何时使用”内容,但未以独立章节形式呈现
Recommendation: 建议将“何时使用”提升为独立二级标题,增强规范性
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制,风险分级清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 35, 84
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.