access-lifecycle
它能做什么
这项技能把系统中的访问权限与员工名单进行核对,并为审计准备证据。适合负责权限审核的 IT、安全和合规人员。
适用场景
- ✓当你正在准备或进行用户权限审核的时候。
- ✓当你需要确认已离职的人员是否已失去访问权限的时候。
- ✓当审计人员为 SOC 2、ISO 27001 或类似标准索取访问控制证据的时候。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/ra-qm-team/access-lifecycle/skills/access-lifecycle/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我们的人事员工名单与账号导出文件进行比对,并告诉我哪些已离职的人仍有访问权限。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会执行三项检查:把账号与员工名册匹配,检验审核是否覆盖了全部内容,并把发现的任何缺口对应到审计人员期望的控制和证据上。它基于导出的文件工作,不需要实时连接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Access Lifecycle
Portability: 3 stdlib scripts, no network, no IdP or HR connection. Export CSV, run, keep the output as evidence. Not audit advice. Periods and thresholds are your policy; the scripts make you state them.
Access reviews fail audits in four ordinary ways: the review ran on an incomplete export, someone approved their own access, a revoke was decided and never carried out, and leavers kept working accounts nobody looked at. Each script catches one class of these before the auditor does.
Workflow
# 1 - Diff: who has access that the HR roster says they should not?
python scripts/access_diff.py --roster hr_roster.csv --accounts accounts.csv \
--inactive-days 90 --privileged-review-days 90 --as-of 2026-10-31
# 2 - Campaign: did the review cover everything, and did the revokes happen?
python scripts/access_review_campaign.py --decisions campaign.csv --population accounts.csv \
--remediation-days 10 --close-date 2026-10-20
# 3 - Map: which controls do the exceptions break, and what evidence do you keep?
python scripts/control_evidence_mapper.py --diff diff.json --campaign campaign.json --framework soc2,iso27001
Step 1 joins each account to the roster on employee ID, then email. A terminated person with an enabled account is a blocker; one who logged in after their exit date is a worse one. Accounts that match nobody are orphans; service accounts need a named owner. Inactivity and privileged-review age use your periods.
Step 2 checks the campaign against the export it was built from. An enabled account missing from the campaign means the review did not cover the population, whatever the sign-off sheet says. It also catches undecided lines, self-review, revokes not removed inside your window, late decisions, and a reviewer who kept every line of a large batch at machine speed.
Step 3 turns findings into a per-control table: FAIL, EXCEPTIONS, NO_EXCEPTIONS, PARTLY_TESTED, NOT_TESTED or NOT_COVERED, each with what an auditor tests and the evidence to keep. There is no PASS.
The gates block on (exit 4)
- A leaver with an enabled account, or any login after the exit date.
- A privileged orphan account, or a privileged service account with no owner.
- An enabled account the campaign never reviewed.
- An undecided line, a self-review, or a decision with no reviewer named.
- A revoke or modify with no removal recorded past your remediation window.
Hard rules
- Periods are policy.
--inactive-daysand--remediation-dayshave no default. PCI DSS 8.2.6 says 90 days; your policy may differ. - Prove removals by re-export. A closed ticket is not evidence the access is gone.
- The export is evidence too. Keep the query, the pull time and the row count (PCAOB AS 1105.10).
- A rubber-stamp flag is a signal, not proof. Ask the reviewer what they checked; do not call it fraud.
- No PASS from a script. Operating effectiveness is the auditor's conclusion.
Scripts
| Script | Role | Exit codes |
|---|---|---|
scripts/access_diff.py |
Roster vs account export: leavers, orphans, ownerless service accounts, movers, privileged review age, inactivity | 0 clean · 2 findings · 3 bad input · 4 blocked |
scripts/access_review_campaign.py |
Population coverage, undecided, self-review, unremoved revokes, late decisions, rubber-stamp signal | 0 · 2 · 3 · 4 incomplete |
scripts/control_evidence_mapper.py |
Findings → per-control status for ISO 27001, SOC 2, NIST 800-53, PCI DSS, HIPAA, SOX IPE | 0 · 2 exceptions · 3 · 4 fail |
All support --help, --sample and --output json.
References and assets
references/joiner_mover_leaver_standards.md— what each framework requires for provisioning, change and removal (7 sources)references/access_review_campaigns.md— population, reviewers, cadence, remediation, what auditors reject (6 sources)references/control_crosswalk.md— finding codes to controls across six frameworks, with the caveats (7 sources)assets/hr_roster.example.csv,assets/accounts.example.csv,assets/campaign.example.csv— input formatsassets/access_review_signoff.md— campaign sign-off with the evidence fields a reviewer fills in
常见问题
它会连接我的人事或登录系统吗?
不会,你导出 CSV 文件,脚本在这些文件上运行,无需网络连接。
它涵盖哪些标准?
它涵盖 SOC 2、ISO 27001、PCI DSS、HIPAA 和 NIST 800-53 等框架。
它会设定我的访问政策吗?
不会,由你设定周期和阈值,脚本会要求你说明它们。这项技能不构成审计建议。
详情
作者的原始描述
Use when preparing or running a user access review, checking that leavers lost their access, finding orphaned or ownerless service accounts, answering an auditor's access-control request for SOC 2, ISO 27001, PCI DSS, HIPAA or NIST 800-53, or checking whether a finished review campaign will hold up. Diffs the HR roster against account exports, tests the campaign for coverage, self-review, unremoved revokes and rubber-stamping, and maps every exception to the controls it breaks.
热度
- GitHub 星标
- 29k
- 排名
- #9725
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。