csharp-scripts
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill takes 'C# code or intent' as input to generate and execute scripts. This creates an attack surface where an attacker providing data to the agent could embed instructions that manipulate the generated script's logic.
- Ingestion points: 'Inputs' section in SKILL.md (C# code or intent).
- Boundary markers: Absent; there are no instructions to delimit or ignore instructions within the provided intent.
- Capability inventory: Shell execution via
dotnetCLI, file system writes, and permission modification viachmod. - Sanitization: Absent; the skill does not specify any validation or sanitization for the generated code.
- [COMMAND_EXECUTION]: The skill relies on executing shell commands to run scripts, check versions, and clean up build artifacts.
- Evidence: Use of
dotnet --version,dotnet <file>.cs,dotnet clean, anddotnet project convert. - [PRIVILEGE_ESCALATION]: The instructions include modifying file permissions to make generated scripts executable.
- Evidence: Recommendation to use
chmod +x hello.csfor Unix shebang support. - [DYNAMIC_EXECUTION]: The core functionality of the skill involves the dynamic generation of C# source files which are then compiled and executed at runtime.
- Evidence: Step-by-step workflow for writing a
.csfile and running it via thedotnetruntime. - [EXTERNAL_DOWNLOADS]: The skill references external documentation from a well-known service.
- Evidence: Provides a link to official Microsoft documentation at
https://learn.microsoft.com/en-us/dotnet/core/sdk/file-based-apps.
Audit Metadata