hugging-face-gradio
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements various data ingestion points that handle untrusted external input.\n
- Evidence: Components such as
gr.Textbox,gr.File,gr.Chatbot, andgr.Audioare designed to receive data from users or external sources, which could contain malicious instructions designed to influence the agent's behavior.\n - Sanitization: The
ChatbotandMarkdowncomponents include asanitize_htmlparameter (enabled by default) to mitigate basic injection attacks.\n- [DYNAMIC_EXECUTION]: Thegr.HTMLcomponent supports custom templates and client-side script execution.\n - Evidence: The
StarRatingexample demonstrates the use ofhtml_template,css_template, andjs_on_loadto build interactive components. This functionality allows for the dynamic execution of JavaScript in the user's browser context.\n- [COMMAND_EXECUTION]: The skill documents the use of thegradioCLI for interacting with Gradio applications.\n - Evidence: The
gradio infoandgradio predictcommands allow the agent to discover endpoints and execute remote predictions. These commands interact with the host system's shell and network.\n- [DATA_EXFILTRATION]: The CLI documentation describes capabilities for sending local data to remote endpoints.\n - Evidence: The
gradio predictcommand includes a mechanism for file uploads to remote servers using thegradio.FileDatametadata type, which represents a potential channel for data transfer to external services.\n- [SAFE]: The skill originates from a trusted repository and includes proactive security guidance for developers.\n - Evidence: A dedicated "Version and security boundaries" section instructs users to keep demos on loopback by default, validate upload types, and avoid exposing secrets or local directories through the UI.
Audit Metadata