higgsfield-api
Pass
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is instructed to dynamically fetch and process model documentation and schemas from external sources such as
docs.higgsfield.aiandconsole.higgsfield.ai. This creates a theoretical surface for indirect prompt injection if the remote content were to be compromised. - Ingestion points: The agent is guided to read
llms.txtfiles and OpenAPI references from external URLs to discover model capabilities (found inSKILL.mdandreferences/model-discovery.md). - Boundary markers: The skill provides explicit instructions to the agent that documentation should be treated as data, not as authorization to execute commands, and requires verifying documentation against local profiles.
- Capability inventory: The skill possesses the capability to perform network operations (GET/POST/PUT), write files to the project's
outputs/andwork/directories, and read local files for media uploads. - Sanitization: The
scripts/higgsfield_api.pyscript implements strict schema validation using thejsonschemalibrary for all model profiles and payloads. It also enforces environment checks and requires a verification date for all profiles. - [EXTERNAL_DOWNLOADS]: The skill downloads generated media files from remote URLs provided by the API response.
- Evidence: The
downloadfunction inscripts/higgsfield_api.pyusesurllib.requestto retrieve content from external hosts. - Mitigation: The script includes robust SSRF (Server-Side Request Forgery) protections in the
public_urlfunction, which validates that hostnames resolve to global (public) IP addresses and prevents access to local or private network ranges. It also enforces a 256 MiB file size limit. - [DATA_EXFILTRATION]: The skill includes an upload capability that reads local media files and transmits them to external storage hosts.
- Evidence: The
uploadfunction inscripts/higgsfield_api.pyreads local file bytes and performs aPUTrequest to a presigned URL. - Mitigation: The script limits uploads to specific allowed media MIME types and a 64 MiB size limit. It also contains logic to ensure that internal API credentials are never sent to the third-party storage host.
- [COMMAND_EXECUTION]: The skill operates by executing a local Python script (
higgsfield_api.py) to manage the API lifecycle, job state, and file operations.
Audit Metadata