skill-refresh
Warn
Audited by Gen Agent Trust Hub on Feb 28, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
refresh-all-skills.jsusesexecSyncto run theeskillcommand. The command string is constructed using theskillvariable, which is directly derived from folder names in the filesystem (fs.readdirSync). - Evidence:
const result = execSync(eskill install ${skill} --link --global --force, { ... });inrefresh-all-skills.js. - Risk: If a folder in the source directory is maliciously named (e.g., using shell metacharacters like
;,&, or|), it could lead to arbitrary command execution on the host system. - [COMMAND_EXECUTION]: The skill performs destructive filesystem operations by recursively deleting a specific directory in the user profile.
- Evidence:
fs.rmSync(targetSkillsDir, { recursive: true, force: true });wheretargetSkillsDiris hardcoded toC:/Users/Administrator/.emp-agent/skillsinrefresh-all-skills.js. - Risk: This operation permanently deletes the contents of the target directory without user confirmation.
Audit Metadata