markdown-formatter
Fail
Audited by Gen Agent Trust Hub on Jun 14, 2026
Risk Level: HIGHCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The function
format_fileinformatter.pyexecutes a shell command usingsubprocess.runwithbash -c. The command string is constructed using an f-string that interpolates thepathvariable directly. Because this variable is derived from user input, an attacker can inject additional commands by including shell metacharacters (e.g.,;,&,|, or backticks) in the filename, leading to arbitrary code execution. - Evidence:
subprocess.run(["bash", "-c", f"chmod 644 {path}"], check=True) - [COMMAND_EXECUTION]: The skill uses
subprocess.runto call the external system utilitypandoc. While the arguments are passed as a list (which is safer than a raw string), the skill relies on the presence and security of this external binary on the host system to perform its primary function.
Recommendations
- AI detected serious security threats
Audit Metadata