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.py script fetches markdown-formatted resource indexes from huggingscience.co.
  • Boundary markers: The skill includes an UNTRUSTED_BANNER in 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, and gradio_client) and execute code (via trust_remote_code flags in Hugging Face libraries).
  • Sanitization: The _defang function 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 Face transformers library 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.co and huggingface.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 .env file using the python-dotenv library, specifically warning against hardcoding credentials or suggesting unsafe CLI authentication methods.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 8, 2026, 04:44 AM