skills/kevintsengtw/dotnet-testing-agent-skills/dotnet-testing-advanced-webapi-integration-testing/Gen Agent Trust Hub
dotnet-testing-advanced-webapi-integration-testing
Pass
Audited by Gen Agent Trust Hub on Apr 1, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The
DatabaseManager.cstemplate utilizes an unsafe SQL construction pattern in theSeedProductAsyncmethod. - Evidence: The method builds an INSERT statement using string interpolation:
$@"INSERT INTO products ... VALUES ('{id}', '{name}', {price}, ...)"intemplates/database-manager.cs. - Risk: This approach is vulnerable to SQL injection. If the
nameparameter contains untrusted input (e.g., from a test case derived from external data), it could allow execution of arbitrary SQL commands against the test database. - [EXTERNAL_DOWNLOADS]: The skill configuration pulls external container images to establish the testing environment.
- Evidence:
WithImage("postgres:16-alpine")andWithImage("redis:7-alpine")are defined intemplates/test-web-application-factory.csandreferences/test-infrastructure.md. - Note: These are official images from Docker Hub, a well-known service, and are required for the skill's primary function of multi-container integration testing.
- [DATA_EXPOSURE]: The skill interacts with local SQL script files to initialize the database schema.
- Evidence:
EnsureTablesExistAsyncintemplates/database-manager.csreads files fromPath.Combine(AppContext.BaseDirectory, "SqlScripts"). - Note: This is a standard and safe operation for initializing test databases from static assets provided within the project structure.
Audit Metadata