hugging-science
Pass
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill interacts with external data that could potentially contain malicious instructions.
- Ingestion points: The
scripts/fetch_catalog.pyscript fetches markdown-formatted resource indexes fromhuggingscience.co. - Boundary markers: The skill includes an
UNTRUSTED_BANNERin the fetching script to frame retrieved content as data rather than instructions for the agent. - Capability inventory: The skill possesses the ability to make network requests (via
urllib,datasets, andgradio_client) and execute code (viatrust_remote_codeflags in Hugging Face libraries). - Sanitization: The
_defangfunction in the fetching script actively strips code fences and horizontal rule delimiters from the external data to prevent it from being misinterpreted as instructions or structured output by the agent. - [REMOTE_CODE_EXECUTION]: The documentation describes the use of
trust_remote_code=True, which is a standard but high-risk feature of the Hugging Facetransformerslibrary used to load custom model architectures. - The skill mitigates this risk by explicitly instructing the agent to ask the user for permission, naming the specific repository, before enabling the flag, ensuring the user is aware of the potential for arbitrary code execution.
- [EXTERNAL_DOWNLOADS]: The skill fetches catalog data and methodology blog references from
huggingscience.coandhuggingface.co. - These downloads are essential for the skill's purpose of resource discovery and are handled through standard libraries or dedicated scripts with robust sanitization logic.
- [CREDENTIALS_UNSAFE]: The skill handles sensitive API tokens (
HF_TOKEN) for accessing gated scientific datasets and models. - It follows security best practices by directing the agent to load these from a
.envfile using thepython-dotenvlibrary, specifically warning against hardcoding credentials or suggesting unsafe CLI authentication methods.
Audit Metadata