跳到正文
Skillpedia
测试35k · #8239

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-hardware-security-module-integration/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-pkcs11 provider configured

Steps

  1. Load PKCS#11 library and enumerate available slots and tokens
  2. Open session and authenticate with user PIN
  3. Generate RSA 2048-bit or EC P-256 key pairs on the HSM
  4. Perform signing and verification using on-device keys
  5. List all objects (keys, certificates) stored on the token
  6. Query mechanism list to verify supported algorithms
  7. 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.

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8239
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能