mamba-architecture
Warn
Audited by Gen Agent Trust Hub on Apr 7, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The file references/training-guide.md includes code examples for saving and loading training states using torch.save() and torch.load(). The torch.load() function is inherently unsafe because it uses the pickle module for deserialization, which can be exploited to execute arbitrary code if a user is induced to load a maliciously crafted checkpoint file.
- [EXTERNAL_DOWNLOADS]: The skill documentation in SKILL.md provides examples for downloading pretrained models and tokenizers from Hugging Face repositories, including state-spaces/mamba-2.8b and EleutherAI/gpt-neox-20b. These downloads target a well-known service and the official repositories for the Mamba architecture.
- [COMMAND_EXECUTION]: Both SKILL.md and references/training-guide.md contain shell commands for setting up the environment, installing dependencies via pip (e.g., mamba-ssm, causal-conv1d), and executing Python scripts for benchmarking or distributed training using torchrun.
- [PROMPT_INJECTION]: The skill handles user-supplied prompts for text generation within the examples provided in SKILL.md, creating a surface for indirect prompt injection where untrusted data enters the agent context. Ingestion points: prompt variable in the 'Load from HuggingFace' workflow in SKILL.md. Boundary markers: Absent. Capability inventory: Use of torch.save, torch.load, and os.remove for checkpoint management in references/training-guide.md. Sanitization: No sanitization or validation of the input prompt is performed before it is processed by the model's generation method.
Audit Metadata