Validates all code changes against Hack23 ISMS policies, enforces ISO 27001:2022, NIST CSF 2.0, CIS Controls v8.1 alignment, ensures GDPR/NIS2/EU CRA compliance, supply chain security (OSSF Scorecard, SLSA, SBOM), and maintains required architecture documentation for Black Trigram.
This skill ensures that Black Trigram maintains comprehensive compliance with Hack23 AB's Information Security Management System (ISMS), international security frameworks (ISO 27001:2022, NIST CSF 2.0, CIS Controls v8.1), and regulatory requirements (GDPR, NIS2, EU Cyber Resilience Act).
This skill uses standardized icons from Hack23 ISMS Style Guide:
Automatically trigger this skill when:
This skill works together with other ISMS enforcement skills:
Delegation Strategy:
Complete coverage of all 35+ Hack23 ISMS-PUBLIC policies:
| Policy Document | Icon | Primary Controls | Skill Reference | Status | | --------------- | ---- | ---------------- | --------------- | ------ | | Information Security Policy | 🔐 | A.5.1, GV.PO, CIS-1 | compliance-framework-alignment | ✅ Core | | Classification Framework | 🏷️ | A.5.12, A.5.13, ID.AM-05, CIS-3 | classification-framework-enforcement | ✅ Specialized | | Secure Development Policy | 🛠️ | A.8.25-33, PR.DS, CIS-16 | secure-development-lifecycle | ✅ Specialized | | Open Source Policy | 🔓 | A.5.19-22, GV.SC, CIS-2 | open-source-governance | ✅ Specialized | | Threat Modeling | 🎯 | A.5.7, ID.RA-03, CIS-18 | threat-modeling-enforcement | ✅ Specialized | | Security Architecture | 🏗️ | A.8.9, PR.PT-01, CIS-4 | security-architecture-validation | ✅ Specialized | | Access Control Policy | 🔑 | A.5.15-18, A.8.2-5, PR.AC | Core | ✅ Core | | Cryptography Policy | 🔒 | A.8.24, PR.DS-01, PR.DS-05 | Core | ✅ Core | | Network Security Policy | 🌐 | A.8.20-22, PR.AC-05, CIS-12 | Core | ✅ Core | | Vulnerability Management | 🔍 | A.8.8, DE.CM-08, CIS-7 | Core | ✅ Core | | Incident Response Plan | 🚨 | A.5.24-28, RS.MA, CIS-17 | Core | ✅ Core | | Business Continuity Plan | 🔄 | A.5.29-30, RC.RP, CIS-11 | Core | ✅ Core | | Data Classification Policy | 🏷️ | A.5.12, PR.DS-02, CIS-3 | Core | ✅ Core | | Backup Recovery Policy | 💾 | A.8.13, PR.IP-04, RC.RP-01 | Core | ✅ Core | | Change Management | 📝 | A.8.32, PR.IP-03, CIS-4.7 | Core | ✅ Core | | Asset Management Policy | 💻 | A.5.9, ID.AM-01, CIS-1 | Core | ✅ Core | | Risk Management Policy | 📉 | A.5.7, GV.RM, ID.RA-01 | Core | ✅ Core | | Third Party Management | 🤝 | A.5.19-22, GV.SC-03 | Core | ✅ Core | | Supplier Security | 🔗 | A.5.19-23, GV.SC-04, CIS-15 | Core | ✅ Core | | Mobile Device Management | 📱 | A.6.2.1, A.8.1, PR.AC-03 | Core | ✅ Core | | Physical Security Policy | 🏢 | A.7.1-14, PR.AC-02 | Core | ✅ Core | | GDPR Data Protection | 🛡️ | A.5.34, PR.DS, GV.PO-04 | Core | ✅ Core | | NIS2 Implementation | 🇪🇺 | A.5.7, GV.RM, ID.RA | Core | ✅ Core | | EU CRA Compliance | 🇪🇺 | A.8.25-33, PR.DS, GV.PO | Core | ✅ Core | | Privacy Impact Assessment | 🔏 | A.5.34, PR.IP-12, GDPR-35 | Core | ✅ Core | | Security Training Policy | 🎓 | A.6.3, PR.AT, CIS-14 | Core | ✅ Core | | Acceptable Use Policy | 📋 | A.6.2, PR.AT-01 | Core | ✅ Core | | Remote Work Policy | 🏠 | A.6.7, A.8.1 | Core | ✅ Core | | BYOD Policy | 📲 | A.6.2.1, PR.AC-03 | Core | ✅ Core | | Email Security Policy | 📧 | A.8.5, PR.AC-07, CIS-9 | Core | ✅ Core | | Web Security Policy | 🌐 | A.8.23, PR.AC-05, CIS-9 | Core | ✅ Core | | Logging & Monitoring | 📊 | A.8.15-16, DE.CM, CIS-8 | Core | ✅ Core | | Secure Disposal Policy | 🗑️ | A.8.10, PR.IP-06 | Core | ✅ Core | | Records Management | 📁 | A.5.33, PR.IP-09 | Core | ✅ Core | | Compliance Management | ✅ | A.5.36, GV.OV, All | Core | ✅ Core |
Legend:
Framework Control Notation:
ALWAYS reference and comply with Hack23 ISMS policies:
✅ Required ISMS Policy References
// ALWAYS document which ISMS policies apply to your changes
interface ISMSPolicyReference {
readonly policy: string;
readonly url: string;
readonly applicableControls: string[];
readonly implementationStatus: 'Compliant' | 'Partial' | 'Not Applicable';
}
// Example: Authentication implementation
// ... (see full reference in Hack23 ISMS)
✅ ISMS Policy Checklist for All Changes
## ISMS Compliance Checklist
- [ ] **Information Security Policy** - General security requirements followed
- [ ] **Access Control Policy** - Authentication/authorization properly implemented
- [ ] **Cryptography Policy** - Encryption standards followed
- [ ] **Secure Development Policy** - Security in SDLC enforced
- [ ] **Vulnerability Management** - Known vulnerabilities addressed
- [ ] **Change Management** - Change process followed
- [ ] **Incident Management** - Incident response procedures documented
- [ ] **Business Continuity** - Backup and recovery considered
- [ ] **Supplier Security** - Third-party dependencies vetted
- [ ] **Data Protection Policy** - User data protection enforced (GDPR)
ALWAYS map code changes to ISO 27001:2022 Annex A controls:
✅ ISO 27001:2022 Control Categories
export const ISO27001_CONTROLS = {
// Organizational Controls (A.5)
A_5: {
'A.5.1': 'Policies for information security',
'A.5.7': 'Threat intelligence',
'A.5.23': 'Information security for cloud services',
},
// People Controls (A.6)
// ... (see full reference in Hack23 ISMS)
✅ ISO 27001 Compliance Validation
// ALWAYS validate that security controls map to ISO 27001
interface ControlImplementation {
readonly control: string;
readonly status: 'Implemented' | 'Partial' | 'Planned' | 'Not Applicable';
readonly location: string; // File path or documentation section
readonly evidence: string;
readonly gaps?: string;
}
// ... (see full reference in Hack23 ISMS)
ALWAYS align with NIST CSF 2.0 Functions:
✅ NIST CSF 2.0 Functions and Categories
export const NIST_CSF_2_0 = {
GOVERN: {
'GV.OC': 'Organizational Context',
'GV.RM': 'Risk Management Strategy',
'GV.PO': 'Policy',
'GV.OV': 'Oversight',
'GV.SC': 'Cybersecurity Supply Chain Risk Management',
},
// ... (see full reference in Hack23 ISMS)
ALWAYS implement relevant CIS Controls:
✅ CIS Controls Critical Security Controls
export const CIS_CONTROLS_V8_1 = {
// Basic CIS Controls
BASIC: [
{ id: 1, name: 'Inventory and Control of Enterprise Assets' },
{ id: 2, name: 'Inventory and Control of Software Assets' },
{ id: 3, name: 'Data Protection' },
{ id: 4, name: 'Secure Configuration of Enterprise Assets and Software' },
{ id: 5, name: 'Account Management' },
{ id: 6, name: 'Access Control Management' },
// ... (see full reference in Hack23 ISMS)
ALWAYS ensure regulatory compliance:
✅ GDPR Compliance Requirements
// ALWAYS implement GDPR principles
export const GDPR_PRINCIPLES = {
LAWFULNESS: 'Lawfulness, fairness and transparency',
PURPOSE_LIMITATION: 'Purpose limitation',
DATA_MINIMIZATION: 'Data minimisation',
ACCURACY: 'Accuracy',
STORAGE_LIMITATION: 'Storage limitation',
INTEGRITY_CONFIDENTIALITY: 'Integrity and confidentiality',
ACCOUNTABILITY: 'Accountability',
// ... (see full reference in Hack23 ISMS)
✅ NIS2 Directive Requirements
// ALWAYS implement NIS2 security measures
export const NIS2_REQUIREMENTS = {
RISK_MANAGEMENT: 'Risk analysis and information system security policies',
INCIDENT_HANDLING: 'Incident handling and reporting',
BUSINESS_CONTINUITY: 'Business continuity and disaster recovery',
SUPPLY_CHAIN_SECURITY: 'Supply chain security',
SECURITY_POLICIES: 'Security in network and information systems acquisition',
ACCESS_CONTROL: 'Policies and procedures to assess access control',
CRYPTOGRAPHY: 'Use of cryptography and encryption',
// ... (see full reference in Hack23 ISMS)
✅ EU Cyber Resilience Act (CRA) Compliance
// ALWAYS follow EU CRA essential requirements
export const EU_CRA_REQUIREMENTS = {
SECURITY_BY_DESIGN: 'Products with digital elements must be secure by design',
VULNERABILITY_HANDLING: 'Manufacturers must handle vulnerabilities throughout lifecycle',
SECURITY_UPDATES: 'Provide security updates for expected product lifetime',
REPORTING_OBLIGATIONS: 'Report actively exploited vulnerabilities within 24 hours',
CE_MARKING: 'Products must carry CE marking',
DOCUMENTATION: 'Provide security documentation and instructions to users',
} as const;
// ... (see full reference in Hack23 ISMS)
ALWAYS enforce supply chain security:
✅ OSSF Scorecard Requirements
# .github/workflows/ossf-scorecard.yml
name: OSSF Scorecard
on:
branch_protection_rule:
schedule:
- cron: '0 2 * * 0' # Weekly on Sunday
push:
branches: [main]
// ... (see full reference in Hack23 ISMS)
✅ Target OSSF Scorecard Score: 8.0+
// Scorecard checks we MUST pass
export const OSSF_SCORECARD_CHECKS = {
'Branch-Protection': 10, // Protected main branch
'CI-Tests': 10, // Automated tests on all PRs
'Code-Review': 10, // Require reviews before merge
'Dangerous-Workflow': 10, // No dangerous GitHub Actions
'Dependency-Update-Tool': 10, // Dependabot enabled
'Fuzzing': 0, // Not applicable (frontend game)
'License': 10, // MIT license
// ... (see full reference in Hack23 ISMS)
✅ SLSA Build Provenance
# .github/workflows/slsa-provenance.yml
name: SLSA Provenance
on:
release:
types: [created]
push:
tags:
- 'v*'
// ... (see full reference in Hack23 ISMS)
✅ SBOM (Software Bill of Materials) Generation
// package.json - Add SBOM generation
{
"scripts": {
"sbom:generate": "cyclonedx-npm --output-file sbom.json",
"sbom:validate": "cyclonedx-cli validate --input-file sbom.json",
"sbom:check-licenses": "license-checker --json --out licenses.json"
},
"devDependencies": {
"@cyclonedx/cyclonedx-npm": "^1.16.0",
"license-checker": "^25.0.1"
}
}
ALWAYS maintain these architecture documents:
✅ Current State Documentation (6 Documents)
1. **ARCHITECTURE.md** - Overall system architecture (C4 Model Level 1-2)
2. **DATA_MODEL.md** - Data structures and relationships
3. **SECURITY_ARCHITECTURE.md** - Security controls and architecture
4. **THREAT_MODEL.md** - Threat analysis and mitigation
5. **WORKFLOWS.md** - GitHub Actions and CI/CD workflows
6. **FLOWCHART.md** - Game flow and logic diagrams
✅ Future State Documentation (6 Documents)
7. **FUTURE_ARCHITECTURE.md** - Planned architectural changes
8. **FUTURE_DATA_MODEL.md** - Future data model improvements
9. **FUTURE_SECURITY_ARCHITECTURE.md** - Security roadmap
10. **FUTURE_THREAT_MODEL.md** - Emerging threats and mitigations
11. **FUTURE_WORKFLOWS.md** - Planned CI/CD improvements
12. **FUTURE_FLOWCHART.md** - Future game flow enhancements
✅ Documentation Update Enforcement
// ALWAYS update documentation when making architectural changes
interface ArchitectureChange {
readonly component: string;
readonly changeType: 'New' | 'Modified' | 'Deprecated' | 'Removed';
readonly affectedDocuments: string[];
readonly updateRequired: boolean;
}
const exampleChange: ArchitectureChange = {
// ... (see full reference in Hack23 ISMS)
ALWAYS maintain traceability from requirements to implementation:
✅ Compliance Traceability Matrix
interface ComplianceTraceability {
readonly requirement: string;
readonly framework: 'ISO 27001' | 'NIST CSF 2.0' | 'CIS Controls v8.1' | 'GDPR' | 'NIS2' | 'EU CRA';
readonly control: string;
readonly implementation: string;
readonly evidence: string;
readonly testCoverage: string;
readonly status: 'Compliant' | 'Partial' | 'Planned' | 'Not Applicable';
}
// ... (see full reference in Hack23 ISMS)
Immediately flag and reject these patterns:
❌ Missing ISMS Policy References
# BAD: PR description without ISMS policy references
## Changes
- Added authentication system
- Implemented user login
# GOOD: PR description with ISMS policy references
## Changes
- Added authentication system
- Implemented user login
// ... (see full reference in Hack23 ISMS)
❌ Outdated Architecture Documentation
// BAD: Code changes without documentation updates
// Added new vital point system, but didn't update:
// - ARCHITECTURE.md
// - DATA_MODEL.md
// - SECURITY_ARCHITECTURE.md
// GOOD: Always update affected documentation
// 1. Update ARCHITECTURE.md with new component diagram
// 2. Update DATA_MODEL.md with vital point schema
// 3. Update SECURITY_ARCHITECTURE.md with input validation
❌ Unvetted Third-Party Dependencies
# BAD: Adding dependency without security check
npm install some-random-package
# GOOD: Vet dependencies before adding
npm audit
npm run test:licenses
# Check OSSF Scorecard for the package
# Verify package is actively maintained
npm install --save-exact some-vetted-package@1.2.3
❌ Missing Security Tests
// BAD: Security control without tests
export const sanitizeInput = (input: string): string => {
return input.replace(/[<>]/g, '');
};
// GOOD: Security control with comprehensive tests
export const sanitizeInput = (input: string): string => {
return input.replace(/[<>]/g, '');
};
// ... (see full reference in Hack23 ISMS)
IF (code or documentation change)
THEN (reference applicable ISMS policies in PR description)
ELSE (reject PR for missing ISMS compliance documentation)
IF (architectural change affects any of the 12 required documents)
THEN (update all affected documents in the same PR)
ELSE (reject PR for incomplete documentation)
IF (new security control implemented)
THEN (map to ISO 27001, NIST CSF 2.0, AND CIS Controls)
ELSE (reject PR for missing framework mapping)
IF (new dependency added)
THEN (verify OSSF Scorecard, check licenses, generate SBOM)
ELSE (reject dependency for failing security validation)
IF (security requirement implemented)
THEN (add to compliance traceability matrix with evidence)
ELSE (reject PR for missing traceability)
Before approving any change:
This skill enforces ALL controls from ISO 27001:2022 Annex A:
This skill aligns with ALL NIST CSF 2.0 Functions:
This skill implements:
Core Compliance Principles:
흑괘 준수 철학 (Black Trigram Compliance Philosophy):
ISMS compliance is a continuous practice involving multiple specialized skills.
When ensuring ISMS compliance, follow this systematic approach:
🏷️ CLASSIFY - Use classification-framework-enforcement
📊 MAP - Use compliance-framework-alignment
🛠️ DEVELOP - Use secure-development-lifecycle
🎯 ANALYZE - Use threat-modeling-enforcement
🔓 VERIFY - Use open-source-governance
🏗️ ARCHITECT - Use security-architecture-validation
📋 DOCUMENT - Maintain all required architecture documentation
✅ TEST - Validate compliance through comprehensive testing
📡 MONITOR - Continuously track compliance status
| Task | Primary Skill | Supporting Skills | | ---- | ------------- | ----------------- | | Determining security classification | classification-framework-enforcement | This skill | | Cross-framework control mapping | compliance-framework-alignment | This skill | | Secure coding review | secure-development-lifecycle | This skill | | Threat analysis | threat-modeling-enforcement | This skill | | Dependency vetting | open-source-governance | This skill | | Architecture security review | security-architecture-validation | This skill | | General ISMS compliance | This skill | All specialized skills |
Follow Hack23 ISMS Style Guide
<!-- Content truncated for initial SEO render. Open the source file tab for the full file. -->npx skills add Hack23/isms-compliance-checking下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer