performing-hardware-security-module-integration
它能做什么
这个工具可以帮助你将电脑连接到一种专门的安全设备(HSM),以保护你的密钥。它可以生成密钥、对文档进行签名,并检查一切是否安全。
适用场景
- ✓在设置新的安全设备以保护密钥时。
- ✓测试安全设备是否正常工作时。
- ✓检查安全设置是否符合官方标准时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-hardware-security-module-integration/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想在我的 HSM 上测试密钥生成,并检查它是否支持 RSA 签名。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具使用一种标准语言(PKCS#11)与安全设备通信。它会加载设备的指令,在设备内部生成密钥,并执行对数据签名等操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Performing Hardware Security Module Integration
Overview
Hardware Security Modules (HSMs) provide tamper-resistant cryptographic key storage and operations. This skill covers integrating with HSMs via the PKCS#11 standard interface using python-pkcs11, performing key generation, signing, encryption, and verification operations, querying token and slot information, and validating HSM configuration for compliance with FIPS 140-2/3 requirements.
When to Use
- When conducting security assessments that involve performing hardware security module integration
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- HSM device or software HSM (SoftHSM2 for testing)
- PKCS#11 shared library (.so/.dll) for the HSM vendor
- Python 3.9+ with
python-pkcs11 - Token initialized with SO PIN and user PIN
- For AWS CloudHSM:
cloudhsm-pkcs11provider configured
Steps
- Load PKCS#11 library and enumerate available slots and tokens
- Open session and authenticate with user PIN
- Generate RSA 2048-bit or EC P-256 key pairs on the HSM
- Perform signing and verification using on-device keys
- List all objects (keys, certificates) stored on the token
- Query mechanism list to verify supported algorithms
- Generate compliance report with key inventory and algorithm audit
Expected Output
- JSON report listing HSM slots, tokens, stored keys, supported mechanisms, and compliance status
- Signing test results with key metadata and algorithm details
常见问题
什么是 HSM?
HSM 是一种用于安全存储密钥的物理设备或软件,可以保护你的密钥免遭盗窃或未经授权的访问。
什么是 PKCS#11?
它是程序与 HSM 等安全设备通信的一种标准方式,可以确保它们能够与不同品牌的设备协同工作。
必须有实体 HSM 吗?
不一定。你可以使用基于软件的测试 HSM(SoftHSM2),在使用实体设备之前先学习和测试。
详情
作者的原始描述
Integrates Hardware Security Modules (HSMs) via the PKCS#11 interface using python-pkcs11, performing key generation, signing, encryption, verification, and token/slot queries against SoftHSM2, AWS CloudHSM, or YubiHSM2. Use when implementing HSM-backed key management or validating HSM configuration for FIPS 140-2/3 compliance.
热度
- GitHub 星标
- 35k
- 排名
- #8239
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。