workflow-integration-sonar
Pass
Audited by Gen Agent Trust Hub on Jul 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/sonar.pyusessubprocess.runto executegit rev-parse HEAD. This is used to resolve the current repository SHA for recording in thesonar-scan-summary.jsonlattestation file. The command is static and does not incorporate untrusted input. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted issue messages fetched from the Sonar REST API, creating an attack surface for indirect prompt injection.
- Ingestion points: Untrusted issue messages are retrieved from the
/api/issues/searchendpoint inscripts/sonar.pyandscripts/sonar_rest.py. - Boundary markers: The skill explicitly implements a containment strategy in
scripts/sonar.py, where the untrusted Sonarmessageis quarantined under theraw_input.{message}field of the finding store. This prevents the agent from processing the message as instructions during the fetch phase. - Capability inventory: The skill can perform network operations via a REST client to the configured Sonar instance and execute
gitvia subprocess. - Sanitization: Untrusted data is promoted to top-level fields only after a separate validation and ingestion pass (
manage-findings ingest), ensuring separation between data retrieval and triage processing.
Audit Metadata