hugging-science
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches scientific catalog data from huggingscience.co to help the agent discover models and datasets. This creates an attack surface where instructions could be hidden in resource descriptions. However, the skill implements proactive mitigations:
- Ingestion points:
scripts/fetch_catalog.pyfetches data fromhuggingscience.co/topics/<slug>.mdand other catalog endpoints. - Boundary markers: The script wraps all fetched content with a
UNTRUSTED_BANNERthat explicitly warns the agent that the data is untrusted and should not be treated as instructions. - Capability inventory: The skill uses
urllibfor network requests and provides code templates for loading Hugging Face resources using thedatasetsandtransformerslibraries. - Sanitization: The
_defangfunction inscripts/fetch_catalog.pyneutralizes potential injection vectors by replacing markdown code fences (backticks) and removing horizontal rules that could be used to spoof frontmatter. - [EXTERNAL_DOWNLOADS]: The skill performs network operations to fetch metadata and citations from known sources:
- Fetches catalog indices and topic files from
huggingscience.co(the project's official domain). - Instructs the agent to fetch citation metadata from
arxiv.org(a well-known scientific repository). - These operations are consistent with the skill's primary purpose and use trusted or project-specific infrastructure.
- [DYNAMIC_EXECUTION]: The skill documentation discusses the
trust_remote_code=Trueparameter required by certain Hugging Face models to execute custom architecture code. It correctly identifies this as a potential security risk and provides responsible guidance, such as requiring manual review of the repository and pinning specific code revisions to prevent the execution of unverified updates.
Audit Metadata