cursor-docs
Pass
Audited by Gen Agent Trust Hub on Mar 17, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The module
scripts/utils/script_utils.pycontains anensure_yaml_installedfunction that executespip install pyyamlviasubprocess.check_callif the package is not found at runtime. This allows for dynamic code installation from external registries. - [COMMAND_EXECUTION]: Orchestration scripts such as
scripts/management/refresh_index.pyandscripts/management/rebuild_index.pyutilizesubprocess.run()to execute other Python scripts within the skill's own directory tree to perform indexing and maintenance tasks. - [EXTERNAL_DOWNLOADS]: The scraper implementation in
scripts/core/scrape_docs.pyfetches documentation from external sources, primarilyhttps://cursor.com/llms.txt, using therequestslibrary to update local content. - [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface. Content is ingested from the web via
scrape_docs.pyand stored without sanitization. This content is then parsed byextract_metadata.pyand used as context for the agent, potentially allowing malicious instructions embedded in remote documentation to influence agent behavior. - [SAFE]: The skill implements a robust security control in
scripts/utils/script_utils.py. Theresolve_base_dirfunction includes path traversal protection that validates all resolved directories are contained within the trusted skill directory or the project root.
Audit Metadata