skills/happy-technologies-llc/happy-platform-skills/contract-metadata-extraction/Gen Agent Trust Hub
contract-metadata-extraction
Warn
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from contract records and document attachments, which could contain malicious instructions designed to influence the agent's behavior.
- Ingestion points: Data is ingested from
clm_contract_doc.content,sys_attachmentcontents,ast_contract(description and terms fields), andclm_obligation(short_description and clause reference fields). - Boundary markers: The skill lacks explicit instructions or delimiters to isolate untrusted contract text from the agent's core instructions.
- Capability inventory: The agent has access to powerful write and execution tools, including
SN-Update-Record,SN-Create-Record, andSN-Execute-Background-Script. - Sanitization: There is no evidence of sanitization or filtering of the extracted contract text before it is used to populate records or influence script generation.
- [DYNAMIC_EXECUTION]: The skill uses
SN-Execute-Background-Scriptto perform complex data aggregation via server-side JavaScript. - The script provided in Step 5 assembles a JSON metadata object by querying multiple tables (ast_contract, core_company, clm_obligation) and performing date calculations at runtime.
- The use of background scripts for data processing represents a dynamic execution pattern that bypasses standard API restrictions and requires high-level platform permissions.
- [COMMAND_EXECUTION]: The skill requests access to the
Bashnative tool and uses theSN-Execute-Background-ScriptMCP tool, both of which provide high-privilege environment access for script execution.
Audit Metadata