avalonia-pro-max/preview-server
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
dotnetCLI to manage a temporary preview project and execute rendering tasks. Thescripts/render_variants.pyscript usessubprocess.runto invokedotnet restore,dotnet add package, anddotnet run. These calls use list-based arguments, which is a secure practice to mitigate shell injection risks. - Evidence:
subprocess.runcalls inscripts/render_variants.pythat handle project restoration, package management, and the execution of the rendering host. - [DYNAMIC_EXECUTION]: The skill creates and executes code at runtime by scaffolding a dedicated .NET scratch project in the
.preview/directory. It populates this project with XAML components generated by the agent, which are then compiled and executed viaAvalonia.Headlessto produce visual previews. - Evidence:
scripts/scaffold_host.pydefines the project infrastructure and boilerplate;scripts/render_variants.pydynamically updates theVariant/content before each render run. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface where user requirements influence the generation of XAML files and NuGet package lists (
packages.txt). While these inputs are processed by the .NET toolchain, the risk is consistent with the skill's primary purpose as a development tool and is mitigated by the local, headless execution context. - Ingestion points:
packages.txtand.axamlfiles generated in the.preview/variants/directory, which are subsequently read and processed byscripts/render_variants.py. - Capability inventory: CLI access for .NET package management and project execution via
subprocess. - Boundary markers: Not explicitly defined in the instruction set for generated XAML content.
- Sanitization: Basic string splitting and stripping for NuGet package names in
scripts/render_variants.py.
Audit Metadata