Zum Inhalt springen
Skillpedia
Prompts & LLMs35k · #7757

configuring-hsm-for-key-storage

Was er macht

Dieses Tool hilft dir, Sicherheitsgeräte (HSMs) so zu konfigurieren, dass sie kryptografische Schlüssel sehr sicher speichern. Du kannst Schlüssel erzeugen, verwenden und verwalten, ohne dass sie das geschützte Gerät jemals verlassen.

Wann du ihn nutzt

  • ✓Wenn du geheime Schlüssel so schützen willst, dass sie nie gestohlen werden können.
  • ✓Wenn du Systeme einrichtest, die für Schlüssel eine hohe Sicherheit erfordern.
  • ✓Wenn du testest, wie Schlüssel in sicheren Umgebungen verwaltet werden.

Link zum Skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-hsm-for-key-storage/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-hsm-for-key-storage/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Konfiguriere ein HSM, damit es meine Verschlüsselungsschlüssel speichert.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool nutzt den Standard PKCS#11, um mit dem HSM zu kommunizieren. Es kann sowohl physische Geräte als auch Software-Simulationen (SoftHSM2) verwenden, um Schlüssel innerhalb der sicheren Umgebung des HSM zu erzeugen und mit ihnen zu arbeiten.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Configuring HSM for Key Storage

Overview

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 leave the device boundary, providing the highest level of key protection. This skill covers configuring HSMs using the PKCS#11 standard interface, including key generation, signing, encryption, and key management using both physical HSMs and SoftHSM2 for development.

When to Use

  • When deploying or configuring configuring hsm for key storage capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Configure SoftHSM2 as a development PKCS#11 provider
  • Generate and manage keys inside the HSM via PKCS#11
  • Perform cryptographic operations (sign, verify, encrypt, decrypt) using HSM-resident keys
  • Implement HSM-backed certificate authority operations
  • Configure key access policies and user authentication
  • Interface with cloud HSM services (AWS CloudHSM, Azure)

Key Concepts

HSM Compliance Levels

FIPS Level Protection Use Case
FIPS 140-2 Level 1 Software only Development
FIPS 140-2 Level 2 Tamper-evident, role-based auth General production
FIPS 140-2 Level 3 Tamper-resistant, identity-based auth Financial, government
FIPS 140-2 Level 4 Physical tamper response Military, classified

PKCS#11 Architecture

Application --> PKCS#11 API --> HSM Provider --> Hardware HSM
                                    |
                              (SoftHSM2 for dev)

Key Objects in PKCS#11

Object Type Description Operations
CKO_SECRET_KEY Symmetric keys (AES) Encrypt, Decrypt, Wrap
CKO_PUBLIC_KEY Public keys (RSA, EC) Verify, Encrypt, Wrap
CKO_PRIVATE_KEY Private keys (RSA, EC) Sign, Decrypt, Unwrap
CKO_CERTIFICATE X.509 certificates Storage, retrieval

Security Considerations

  • Never export private keys from HSM (use CKA_EXTRACTABLE=False)
  • Use separate slots/partitions for different applications
  • Implement multi-person key ceremony for CA root keys
  • Enable audit logging for all HSM operations
  • Implement HSM backup and disaster recovery
  • Use strong PINs and enable SO (Security Officer) PIN

Validation Criteria

  • SoftHSM2 initializes with token and user PIN
  • AES key generates inside HSM
  • RSA key pair generates inside HSM
  • Encryption/decryption uses HSM-resident keys
  • Signing/verification uses HSM-resident keys
  • Keys cannot be exported (non-extractable)
  • Key listing shows all HSM-stored objects
Häufige Fragen

Was ist ein HSM?

HSM steht für Hardware Security Module. Es ist ein sicheres physisches Gerät, das kryptografische Schlüssel schützt und Operationen mit ihnen durchführt, sodass die Schlüssel das Gerät nie verlassen.

Was ist PKCS#11?

PKCS#11 ist ein Standard, der festlegt, wie Programme mit Sicherheitsgeräten wie HSMs kommunizieren, um deren Schlüssel und kryptografische Funktionen zu nutzen.

Was ist der Unterschied zwischen einem physischen HSM und SoftHSM2?

Ein physisches HSM ist ein echtes Hardwaregerät mit der höchsten Sicherheit. SoftHSM2 ist eine Software-Simulation für Entwicklung und Tests und lässt sich auf einem normalen Computer leichter einrichten.

Details

Originalbeschreibung des Autors

Configures Hardware Security Modules for cryptographic key storage using the PKCS#11 standard interface, covering key generation, signing, encryption, and key management on physical HSMs and SoftHSM2 for development. Use when protecting cryptographic keys so they never leave a hardened device boundary, or when building and testing PKCS#11-based key management workflows.

repo: mukul975/Anthropic-Cybersecurity-Skills

Beliebtheit

GitHub-Sterne
35k
Platz im Ranking
#7757
Lizenz
Apache-2.0
Aktualisiert
31.8.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills