performing-hardware-security-module-integration

Solid

Integrate Hardware Security Modules (HSMs) using PKCS#11 interface for cryptographic key management, signing operations, and secure key storage with python-pkcs11, AWS CloudHSM, and YubiHSM2.

AI & Automation 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 97/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
82
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 lis...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

configuring-hsm-for-key-storage

Hardware Security Modules (HSMs) are tamper-resistant physical devices that safeguard cryptographic keys and perform cryptographic operations in a hardened environment. Keys stored in an HSM never lea

12,642 Updated today
mukul975
DevOps & Infrastructure Solid

azure-cloud-hsm

Expert knowledge for Azure Cloud Hsm development including troubleshooting, best practices, limits & quotas, security, configuration, and integrations & coding patterns. Use when managing PKCS#11 apps, HSM-backed certs/keys, key rotation/backup, quotas/algorithms, or HSM logs, and other Azure Cloud Hsm related development tasks. Not for Azure Dedicated HSM (use azure-dedicated-hsm), Azure Payment Hsm (use azure-payment-hsm), Azure Key Vault (use azure-key-vault), Azure Attestation (use azure-attestation).

562 Updated today
MicrosoftDocs
AI & Automation Featured

implementing-hardware-security-key-authentication

Implements FIDO2/WebAuthn hardware security key authentication including registration ceremonies, authentication flows, YubiKey enrollment, and passkey migration strategies. Builds a complete relying party server using the python-fido2 library that supports cross-platform authenticators, resident key (discoverable credential) workflows, and user verification policies. Activates for requests involving FIDO2 implementation, WebAuthn registration, hardware security key enrollment, YubiKey integration, or passkey migration from password-based authentication.

12,642 Updated today
mukul975
DevOps & Infrastructure Featured

implementing-aws-security-hub

This skill covers deploying AWS Security Hub as a centralized cloud security posture management platform that aggregates findings from GuardDuty, Inspector, Macie, and third-party tools. It details enabling security standards like CIS AWS Foundations Benchmark, configuring automated remediation, and building executive dashboards for compliance tracking across multi-account AWS organizations.

12,642 Updated today
mukul975
AI & Automation Featured

implementing-jwt-signing-and-verification

JSON Web Tokens (JWT) defined in RFC 7519 are compact, URL-safe tokens used for authentication and authorization in web applications. This skill covers implementing secure JWT signing with HMAC-SHA256

12,642 Updated today
mukul975