skills/mukul975/anthropic-cybersecurity-skills/performing-hardware-security-module-integration/Gen Agent Trust Hub
performing-hardware-security-module-integration
Warn
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/agent.pyperforms dynamic loading of shared libraries using thepkcs11.lib(lib_path)method. The library path is taken directly from the--libcommand-line argument without validation against a whitelist. This allows for the loading and execution of arbitrary binary code if the path points to a malicious.soor.dllfile. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted metadata from hardware tokens which could be used to influence the agent's behavior if malicious strings are stored in HSM object labels or manufacturer fields.
- Ingestion points: HSM metadata such as
token_label,token_manufacturer, andobject.labelare read into the agent context inscripts/agent.pyvia theenumerate_slotsandlist_objectsfunctions. - Boundary markers: None; HSM-derived strings are interpolated directly into JSON output without delimiters or instructions to ignore embedded commands.
- Capability inventory: The skill has the capability to load dynamic libraries and execute cryptographic operations on the host.
- Sanitization: There is no sanitization or escaping of strings retrieved from the HSM before they are returned to the agent context.
Audit Metadata