analyzing-bootkit-and-rootkit-samples
Warn
Audited by Gen Agent Trust Hub on Jul 16, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pycontains a functionrun_volatility_rootkit_scanwhich utilizessubprocess.run()withshell=True. The command string is constructed using f-string interpolation:f"vol3 -f {memory_dump} {plugin}". This implementation is vulnerable to command injection if thememory_dumporpluginarguments contain shell metacharacters. - [COMMAND_EXECUTION]: The instructions in
SKILL.mdguide the user to execute high-privilege commands including raw disk access (dd if=/dev/sda), file system mounting, and hardware-level firmware manipulation (flashrom,chipsec). While consistent with the malware analysis use case, these operations provide a significant attack surface for accidental or malicious system damage. - [PROMPT_INJECTION]: The skill exhibits an Indirect Prompt Injection surface (Category 8). It ingests untrusted binary data from boot sectors and firmware modules which is then processed by analysis tools (e.g.,
ndisasm,vol3). If the agent interprets the output of these tools, adversarial instructions embedded in the malware samples could influence the agent's logic. - Ingestion points: Raw data from
dd,UEFIExtract, andvol3analysis output entering the agent's context. - Boundary markers: None identified; analysis results are processed as plain text.
- Capability inventory: Subprocess execution in
agent.py, file system writes, and privileged CLI tool execution inSKILL.mdworkflow. - Sanitization: No evidence of input validation or escaping for the arguments passed to shell-executing functions.
Audit Metadata