write-script-csharp
Warn
Audited by Gen Agent Trust Hub on Jul 30, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides instructions for the agent to execute several shell commands using the
wmillCLI, includingwmill script preview,wmill script run,wmill generate-metadata, andwmill sync push. These commands interact with the local filesystem and the Windmill backend. - [REMOTE_CODE_EXECUTION]: The
wmill script previewcommand is explicitly designed to execute C# code locally that the agent has just written or edited. This provides a direct path for the agent to run code it generates, which could lead to unintended side effects if the generated code is malicious or flawed. - [EXTERNAL_DOWNLOADS]: The skill instructs the agent to use the
#rdirective to include NuGet packages (e.g.,Newtonsoft.Json,RestSharp). Additionally, thewmill generate-metadatacommand re-resolves and downloads dependencies to update lock files. These operations fetch external code from the public NuGet registry. - [PROMPT_INJECTION]: The skill defines a pattern for C# scripts to ingest data via parameters in the
Mainmethod (e.g.,Main(string url, int count)). It lacks instructions for sanitizing these inputs or implementing boundary markers, creating a vulnerability surface for indirect prompt injection if the script processes untrusted data. - Ingestion points: Arguments passed to the
Mainmethod of the C# scripts (file:SKILL.md). - Boundary markers: None specified in the instructions or example code.
- Capability inventory: File system access and network operations via
RestSharpor standard libraries, coupled with local execution viawmill script preview(file:SKILL.md). - Sanitization: No mention of input validation or sanitization for the parameters received by the scripts.
Audit Metadata