primekg
Pass
Audited by Gen Agent Trust Hub on Jun 29, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill performs its described functions of searching and retrieving biological associations from the Precision Medicine Knowledge Graph (PrimeKG). The code is straightforward and handles data processing locally using pandas.
- [INDIRECT_PROMPT_INJECTION]: The
search_nodesfunction inscripts/query_primekg.pyuses the user-providedname_queryin apandas.Series.str.containscall. By default, this function treats input as a regular expression, which makes the skill vulnerable to Regular Expression Denial of Service (ReDoS). An attacker providing a specifically crafted regex could cause high CPU usage and stall the agent. - [DATA_EXPOSURE]: The skill uses a hardcoded absolute path
/mnt/c/Users/eamon/Documents/Data/PrimeKG/kg.csvto access its data. While the data itself is public research material, referencing a specific user's home directory exposes a local username ('eamon') and limits the skill's portability across different systems.
Audit Metadata