fabric-spark-perf-remediate
Pass
Audited by Gen Agent Trust Hub on Nov 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The
Get-FabricSparkDiagnostics.ps1script ingests Spark application metadata from the Microsoft Fabric REST API. If an attacker-controlled application name containing malicious instructions is processed by the agent, it could lead to indirect prompt injection. - Ingestion points: Application metadata (itemName) and status groups retrieved from the Livy sessions API in
scripts/Get-FabricSparkDiagnostics.ps1. - Boundary markers: Absent; the script displays raw metadata directly in console tables and JSON exports.
- Capability inventory: The script executes network requests (
Invoke-RestMethod) and writes local files (Set-Content). - Sanitization: No filtering or escaping is applied to application names before they are output to the console or file system.
- [COMMAND_EXECUTION]: The skill facilitates local command execution via a diagnostic PowerShell script (
Get-FabricSparkDiagnostics.ps1). The script requires a bearer token for authentication; while the script targets official Microsoft API endpoints, users must ensure the token is handled securely and not logged in cleartext.
Audit Metadata