frappe-standard-script-report-schema
Pass
Audited by Gen Agent Trust Hub on May 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/save_report.pyexecutes operations within the Frappe framework to create or modify 'Report' documents. It utilizesignore_permissions=Trueduring database calls (doc.insertanddoc.save), which bypasses the application's internal access control mechanisms for these records. - [PROMPT_INJECTION]: The skill provides a surface for indirect prompt injection (Category 8) because it processes structured data (JSON) that can influence application configuration and role-based access control.
- Ingestion points: The
save_report.pyscript ingests data from a JSON file path provided as a command-line argument. - Boundary markers: The skill lacks boundary markers or specific instructions to the agent to treat the contents of the JSON as untrusted or to ignore embedded instructions.
- Capability inventory: The script performs database writes and triggers filesystem writes (creating
.pyand.jsstubs) through the Frappe framework's standard report export logic. - Sanitization: Validation is limited to verifying that the
doctypeandreport_typefields match the expected values.
Audit Metadata