analyzing-disk-image-with-autopsy
Warn
Audited by Gen Agent Trust Hub on Jul 16, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The
run_cmdfunction inscripts/agent.pyusessubprocess.run(cmd, shell=True). Throughout the script, this function is called with shell commands constructed using f-string interpolation of variables likeimage_path,path,inode, andkeyword. A malicious user or an agent processing a maliciously crafted disk image (where file names contain shell control characters) could trigger arbitrary command execution. For example, insearch_keywords, thekeywordargument is piped directly intogrepwithin a shell string. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection. It ingests untrusted data from disk images (via
flsandmmlscommand output) and parses it without sanitization or boundary markers. A disk image containing malicious file names or metadata could influence the agent's behavior or exploit the command execution vulnerability mentioned above. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdfile provides instructions for downloading forensic software and reference data from official repositories, specifically the Sleuth Kit releases on GitHub and the NIST NSRL hash database on Amazon S3. These are legitimate resources for the skill's stated purpose.
Audit Metadata