nist-compliance
БесплатноБез исполняемых скриптовНе проверенNIST 800-53r5 control implementation, tagging, evidence collection, and compliance automation for security frameworks
Об этом скилле
NIST Compliance Skill
Level 1: Quick Start (5 minutes)
What You'll Learn
Tag code with NIST 800-53r5 controls, track compliance, and generate evidence for security audits.
Core Principles
- Traceability: Link code to security controls
- Evidence: Automate compliance documentation
- Continuous Compliance: Integrate into CI/CD
- Defense in Depth: Multiple control layers
Quick Start Tagging
/**
* @nist ia-2 "User authentication"
* @nist ia-5 "Authenticator management"
* @evidence code, test
*/
export async function authenticateUser(credentials: Credentials) {
// @nist ia-5.1 "Password complexity validation"
validatePasswordComplexity(credentials.password);
// @nist au-2 "Audit authentication events"
await auditLog.record("auth.attempt", {
user: credentials.username,
timestamp: new Date(),
});
return authService.verify(credentials);
}
# @nist ac-3 "Access enforcement"
# @nist ac-6 "Least privilege"
def check_permissions(user, resource, action):
"""
@nist-implements ac-3.a "Enforce approved authorizations"
@evidence test, documentation
"""
if not user.has_permission(resource, action):
audit_access_denial(user, resource, action) # @nist au-2
raise PermissionDenied()
# @nist-controls: [sc-8, sc-13, ac-12]
security:
tls:
version: "1.3" # @nist sc-8 "Transmission confidentiality"
ciphers: ["TLS_AES_256_GCM_SHA384"] # @nist sc-13
session:
timeout: 1800 # @nist ac-12 "Session termination (30 min)"
Essential Checklist
- Install pre-commit hooks for NIST validation
- Tag authentication code (IA family)
- Tag access control (AC family)
- Tag audit logging (AU family)
- Generate initial compliance report
Common Control Families
| Family | Code | Examples |
|---|---|---|
| Access Control | AC | AC-2 (accounts), AC-3 (enforcement), AC-6 (least privilege) |
| Identification & Auth | IA | IA-2 (user auth), IA-5 (authenticators), IA-8 (identification) |
| Audit & Accountability | AU | AU-2 (events), AU-3 (content), AU-6 (review) |
| System & Communications | SC | SC-8 (confidentiality), SC-13 (crypto), SC-28 (data at rest) |
| System & Information Integrity | SI | SI-10 (input validation), SI-11 (error handling) |
Level 2: Implementation (30 minutes)
Deep Dive Topics
1. Control Family Implementation
Access Control (AC Family):
// AC-2: Account Management
class UserAccountService {
/**
* @nist ac-2.a "Manage system accounts"
* @nist ac-2.1 "Automated account management"
* @evidence code, test, automation
*/
async createAccount(userData: UserData): Promise<Account> {
// AC-2.c: Specify authorized users
await this.validateAuthorization(userData);
// AC-2.f: Create, enable, modify, disable, and remove accounts
const account = await this.repository.create({
username: userData.username,
roles: userData.roles,
status: "pending_approval", // AC-2.j: Review accounts
createdAt: new Date(),
});
// AU-2: Audit account creation
await this.auditLog.record("account.created", {
accountId: account.id,
createdBy: userData.requestedBy,
});
return account;
}
/**
* @nist ac-2.3 "Disable accounts after defined period of inactivity"
* @evidence automation, monitoring
*/
async disableInactiveAccounts(): Promise<void> {
const INACTIVITY_PERIOD_DAYS = 90;
const threshold = new Date();
threshold.setDate(threshold.getDate() - INACTIVITY_PERIOD_DAYS);
const inactiveAccounts = await this.repository.findInactive(threshold);
for (const account of inactiveAccounts) {
await this.disableAccount(account.id);
await this.notifyUser(account, "Account disabled due to inactivity");
}
}
}
// AC-3: Access Enforcement
/**
* @nist ac-3 "Access enforcement"
* @nist ac-3.7 "Role-based access control"
* @evidence code, test
*/
class AccessControlMiddleware {
async enforce(
req: Request,
res: Response,
next: NextFunction
): Promise<void> {
const user = req.user;
const resource = req.params.resource;
const action = req.method;
// AC-3.a: Enforce approved authorizations
const decision = await this.policyEngine.evaluate({
subject: user,
resource: resource,
action: action,
});
if (!decision.allowed) {
// AU-2: Audit access denials
await this.auditLog.record("access.denied", {
user: user.id,
resource,
action,
reason: decision.reason,
});
return res.status(403).json({ error: "Access denied" });
}
next();
}
}
Identification & Authentication (IA Family):
// IA-2: Identification and Authentication
/**
* @nist ia-2 "Identification and authentication (organizational users)"
* @nist ia-2.1 "Multi-factor authentication"
* @nist ia-2.8
Установить nist-compliance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nist-compliance?
NIST 800-53r5 control implementation, tagging, evidence collection, and compliance automation for security frameworks
Как установить скилл nist-compliance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nist-compliance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic