aims-audit – skill Bảo mật cho agent AI
/compliance-os:aims-audit [scope] — Kiểm toán nội bộ AIMS theo ISO/IEC 42001 với 6 câu hỏi buộc phải trả lời. Dùng trước giai đoạn 1 của chứng nhận, trước chu kỳ kiểm toán nội bộ hằng năm, hoặc khi đưa hệ thống AI mới vào AIMS hiện có.
Cài skill aims-audit bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/aims-audit-17ca9.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /aims-audit – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/aims-audit-17ca9.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $aims-audit – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/aims-audit-17ca9.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /aims-audit – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/aims-audit-17ca9.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /aims-audit – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/compliance-os:aims-audit — AIMS ISO 42001 Forcing Questions
Command: /compliance-os:aims-audit <scope>
The ISO 42001 AIMS specialist pressure-tests any AI Management System work. Six questions before any certification commitment, internal audit cycle, or new-system onboarding.
When to Run
- Before stage 1 ISO 42001 certification audit
- Before annual internal audit cycle (Clause 9.2)
- When onboarding a new AI system into existing AIMS scope
- When AI risk register hasn't been refreshed in > 6 months
- After material model change (re-evaluate risks per Clause 6.1.2)
- When audit findings hint at AIMS / ISMS / QMS duplication
The Six AIMS Questions
1. Does the AIMS scope statement name every AI system?
Scope omission = certification finding.
- Including: embedded models, third-party AI services, "experimental" production systems
- Run
aims_gap_analyzer.pyto verify Clause 4.3 evidence - "AI features added by SaaS vendors we use" = in scope if they affect the company's services
2. Does the AI policy commit to lawful use AND beneficial purpose AND human oversight AND continual improvement?
Missing any of the four = critical nonconformity at stage 1.
- AI policy is NOT info-sec policy — it has separate substantive content
- Reference ISO 42001 Annex A.2.2 + Clause 5.2
- Marketing-copy "AI ethics" doesn't pass
3. What's the risk register coverage, and which Annex A controls treat each risk?
Risk identification without control mapping = Clause 6.1.3 fails.
- Run
ai_risk_register_builder.pyper ISO 23894 methodology - Every high/critical risk must link to ≥ 1 Annex A control
- "Residual verdict: additional_treatment_required" must be closed before stage 1
4. Has the AI risk assessment been re-run since the last material model change?
Concept drift is not a one-time event.
- Article 9 EU AI Act + ISO 42001 Clause 6.1.2 both require iterative risk assessment
- Material change = retraining on new data, fine-tuning, architecture change, deployment context change
- If "we did it 18 months ago and haven't touched it," the AIMS is broken
5. What's the Clause 9.2 internal audit plan, and is auditor independence respected?
Without 9.2 plan, the AIMS is incomplete.
- Run
aims_audit_scheduler.pywith scope + auditors + prior findings - Audit every clause + applicable Annex A control over rolling 3-year cycle
- Same auditor cannot audit own work
- Cross-check with cs-quality-regulatory if integrated with 13485 audit programme
6. Has the AIMS been integrated with existing ISMS / QMS, or built in parallel?
Parallel systems = 5x ongoing maintenance cost.
- 60% of Clauses 4-10 evidence reuses ISO 27001 / 13485 with AI scope appended
- CAPA loop should be ONE loop with AI-tagged nonconformities, not separate
- Reference
cross_framework_mapping_ai.mdfor the reuse map - Cross-check with cs-ciso-advisor on ISO 27001 alignment
Workflow
# 1. AIMS gap analysis
python ${CLAUDE_PLUGIN_ROOT}/vendor/ra-qm-team/iso42001-specialist/scripts/aims_gap_analyzer.py evidence.json
# 2. AI risk register
python ${CLAUDE_PLUGIN_ROOT}/vendor/ra-qm-team/iso42001-specialist/scripts/ai_risk_register_builder.py risks.json
# 3. Internal audit plan
python ${CLAUDE_PLUGIN_ROOT}/vendor/ra-qm-team/iso42001-specialist/scripts/aims_audit_scheduler.py audit_scope.json
# 4. Cross-framework reuse map (via compliance-os)
python ../../skills/compliance-os/scripts/cross_framework_mapper.py program.jsonOutput Format
# AIMS Audit: <scope>
**Date:** YYYY-MM-DD
## The Decision Being Made
[gap-closure | risk-treatment | audit-scope | new-system-onboarding]
## Gap Analysis (Clauses 4-10)
- Weighted coverage: X%
- Critical gaps: N
- Major gaps: M
- Certification readiness: ready | stage_2_candidate | not_ready
## AI Risk Register
- Total risks: N
- By severity: critical=X, high=Y, medium=Z, low=W
- Requires additional treatment: K
- Top risk requiring action: <description>
## Clause 9.2 Audit Plan
- 12-month coverage: clauses=X, controls=Y
- Auditor independence: clean | issues
- Prior-year follow-up: scheduled in Q1
## Cross-Framework Reuse
- ISO 27001 evidence reused: % of AIMS Clauses 4-10
- 13485 evidence reused: % (if applicable)
- Net-new for AIMS: % (mostly Annex A)
## Verdict
🟢 STAGE-1-READY | 🟡 CLOSE-CRITICALS-FIRST | 🔴 NOT-READY
## Top 3 Actions
[3 concrete next steps with owner + date]Routing
/compliance-os:compliance-readiness— for multi-framework view/compliance-os:ai-act-readiness— if EU AI Act also applies/c-level-agents:caio-review— for executive AI strategy decisions/c-level-agents:ciso-review— for ISO 27001 cross-framework alignment/c-level-agents:decide— to log the verdict/c-level-agents:freeze 30— on certification commitments
Related
- Agent: [
cs-aims-iso42001](../../agents/cs-aims-iso42001.md) - Skill: [
iso42001-specialist](${CLAUDE_PLUGIN_ROOT}/vendor/ra-qm-team/iso42001-specialist/SKILL.md) - Adjacent:
../../skills/compliance-os/,../ai-act-readiness/,../compliance-readiness/
---
Version: 1.0.0
Skill liên quan
- agenttrace-session-audit – Kiểm toán phiên làm việc của agent lập trình AI cục bộ bằng agenttrace: chi phí, lỗi…
- agy-auto – Cấu hình cổng bảo mật PreToolUse agy-auto để chạy Antigravity CLI (agy) không cần giám…
- deep-invade – Pentest sâu WP: SSRF, CVE plugin, JS mine, chuỗi quét cổng.
- email-security – Kiểm tra DMARC/SPF/DKIM, giả mạo email, kiểm thử SMTP và phân tích tiêu đề bảo mật
- enterprise-vpn-attack – Ma trận tấn công thiết bị VPN SSL bên ngoài / truy cập từ xa — Cisco ASA/AnyConnect…
- ai-engineering-toolkit – Tổng quan sáu quy trình kỹ thuật AI: đánh giá prompt (chấm điểm 8 chiều), lập kế hoạch…
- error-log-mining – Khai thác error_log để tìm thông tin đăng nhập, đường dẫn và SQL khi cuộc săn lộ dữ liệu…
- atlassian-admin – Quản trị viên Atlassian để quản lý và tổ chức các sản phẩm Atlassian (Jira, Confluence…