profile-optimizer
Pass
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands such as
jq,node,head, andgunzipto process user-provided files. This occurs inSKILL.mdandrules/input-detection.mdto identify and analyze profile formats. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted JSON data from React and Chrome profiles. Maliciously crafted profiles could contain instructions in fields like
displayName,functionName, orurl(as described inrules/react-profile-analysis.mdandrules/chrome-trace-analysis.md) that attempt to influence the agent's behavior during the summary or reporting phase. - Ingestion points:
rules/input-detection.md,rules/react-profile-analysis.md,rules/chrome-trace-analysis.md, and the scriptsscripts/heap-summary.mjsandscripts/heap-diff.mjsall read data from external files into the agent's context. - Boundary markers: No specific delimiters or warnings to ignore instructions within the profile data are used when extracting strings for the report.
- Capability inventory: The agent has access to
node,jq, and shell utilities, which could be leveraged if an injection is successful. - Sanitization: The skill does not implement sanitization for the extracted profile metadata before including it in the report template.
- [DATA_EXFILTRATION]: The local Node.js scripts
scripts/heap-summary.mjsandscripts/heap-diff.mjsusefs.readFileSyncon file paths provided as command-line arguments. While intended for performance snapshots, if an attacker provides a path to a sensitive file (e.g.,~/.ssh/id_rsa), the script will attempt to parse it as JSON and output parts of the content or errors, potentially exposing the data to the agent's context.
Audit Metadata