用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Hack23/cia --skill cis-controls命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | cis-controls |
| description | Implement CIS Controls v8 critical security controls for effective cyber defense in CIA platform |
| license | Apache-2.0 |
Implement prioritized CIS Controls for cyber defense, focusing on high-impact security controls.
# Maintain asset inventory
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,Tags[?Key==`Name`].Value|[0],State.Name]' --output table
# Tag all resources
aws ec2 create-tags --resources i-1234567890abcdef0 --tags Key=Application,Value=CIA Key=Environment,Value=Production
<!-- Track all dependencies in pom.xml -->
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version> <!-- Version via parent property -->
</dependency>
</dependencies>
@Service
public class DataProtectionService {
@Autowired
private BytesEncryptor encryptor;
public void protectSensitiveData(SensitiveData data) {
// Encrypt at rest
data.setEncryptedContent(encryptor.encrypt(data.getPlainContent()));
// Classify data
data.setClassification(DataClassification.CONFIDENTIAL);
// Set retention period
data.setRetentionUntil(LocalDate.now().plusYears(7));
dataRepository.save(data);
}
}
# application-production.yml - Secure defaults
spring:
security:
user:
name: ${ADMIN_USERNAME}
password: ${ADMIN_PASSWORD}
server:
port: 8443
ssl:
enabled: true
error:
include-stacktrace: never
@Service
public class AccountManagementService {
@Scheduled(cron = "0 0 2 * * *") // Daily at 2 AM
public void reviewAccounts() {
// Disable inactive accounts
List<User> inactiveUsers = userRepository.findInactiveSince(
LocalDateTime.now().minusDays(90)
);
inactiveUsers.forEach(user -> {
user.setEnabled(false);
auditLog.log("Account disabled due to inactivity: " + user.getUsername());
});
userRepository.saveAll(inactiveUsers);
}
}
@PreAuthorize("hasRole('ADMIN')")
public void deleteUser(String userId) {
// Enforce least privilege
auditLogger.logPrivilegedAction("DELETE_USER", userId);
userRepository.deleteById(userId);
}
@Aspect
@Component
public class AuditLoggingAspect {
@Around("@annotation(Audited)")
public Object auditMethod(ProceedingJoinPoint joinPoint) throws Throwable {
String action = joinPoint.getSignature().getName();
String user = SecurityContextHolder.getContext().getAuthentication().getName();
auditLog.info("Action: {}, User: {}, Timestamp: {}",
action, user, Instant.now());
return joinPoint.proceed();
}
}
# Security scanning in CI/CD
mvn org.owasp:dependency-check-maven:check
mvn sonar:sonar -Dsonar.qualitygate.wait=true
IG1 (Implementation Group 1) - Essential for all organizations
IG2 - Additional controls for medium-sized organizations
IG3 - Comprehensive controls for large organizations
CIS Controls Implementation:
All Hack23 ISMS Policies: https://github.com/Hack23/ISMS-PUBLIC
Identity and access management: RBAC, least privilege, MFA, quarterly reviews per ISO 27001 A.5.15, A.8.2, A.8.3
Business continuity and disaster recovery: 30-day retention, quarterly restore tests, RTO/RPO targets per ISO 27001 A.17
Political psychology, cognitive biases, group dynamics, leadership analysis, decision-making patterns for Swedish political intelligence
基于 SOC 职业分类