write-script-python3
Warn
Audited by Gen Agent Trust Hub on Aug 27, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The SDK includes
get_shared_state_pickleandset_shared_state_pickle, which use the Pythonpicklemodule for state persistence. Pickle deserialization is inherently unsafe and can lead to arbitrary code execution if the stored state is tampered with. - [DYNAMIC_EXECUTION]: The
wmill.run_inline_script_previewfunction allows for the execution of arbitrary script content provided as a string, which can bypass standard script deployment checks. - [CREDENTIALS_UNSAFE]: The
wmill.get_id_tokenmethod facilitates the retrieval of OIDC JWT tokens for external service authentication. Additionally,wmill.get_variableandwmill.get_resourceprovide access to potentially sensitive workspace configuration and secrets. - [COMMAND_EXECUTION]: The skill instructs the agent to use
wmillCLI commands such asscript previewandscript run, which involve the execution of script code on the local environment or Windmill workers. - [INDIRECT_PROMPT_INJECTION]: The skill implements handlers for external data sources, including
preprocessorfunctions for webhooks andS3Objectprocessing. This creates a surface where malicious input could influence the agent's behavior. - Ingestion points: The
eventobject inpreprocessorfunctions and S3 files loaded viawmill.load_s3_file(SKILL.md). - Boundary markers: None specified in the instructions for handling these data inputs.
- Capability inventory: The SDK provides broad capabilities including network access (via
httpx), S3 operations, and the ability to execute other scripts or flows. - Sanitization: The instructions do not define sanitization or validation requirements for external content before processing.
Audit Metadata