csharp-scripts

Pass

Audited by Gen Agent Trust Hub on May 20, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [COMMAND_EXECUTION]: Executes .NET SDK commands such as dotnet --version to verify the environment and dotnet <file>.cs to compile and run the user-provided C# code.
  • [COMMAND_EXECUTION]: Performs file system operations including chmod +x to make scripts executable and mkdir, cd, and rm for managing temporary workspace directories and script cleanup.
  • [EXTERNAL_DOWNLOADS]: Utilizes the #:package directive to download and restore NuGet packages from official package registries, which is standard practice for including dependencies in C# development.
  • [SAFE]: Includes explicit instructions for the agent to clean up script files and cached build artifacts after execution, promoting good workspace hygiene.
  • [SAFE]: Encourages security and performance best practices, such as using source-generated JSON serialization for scripts running under Native AOT (Ahead-of-Time compilation).
Audit Metadata
Risk Level
SAFE
Analyzed
May 20, 2026, 07:12 PM
Security Audit — agent-trust-hub — csharp-scripts