databricks-cost-leak-hunter
Pass
Audited by Gen Agent Trust Hub on Jul 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
databricksCLI andjqutility via theBashtool to interact with the Databricks workspace. These operations are scoped to specific binaries and are used exclusively for auditing workspace configuration and billing data.\n- [COMMAND_EXECUTION]: A local Python script,scripts/rank-and-report.py, is executed to perform data aggregation and generate the final report. This ensures that all financial calculations are deterministic and auditable, mitigating risks associated with model-based arithmetic errors.\n- [DATA_EXFILTRATION]: The skill accesses sensitive information from Databricks system tables, includingsystem.billing.usageandsystem.billing.list_prices. This access is governed by Unity Catalog permissions and is a core requirement for the skill's functionality. The data is processed locally and formatted into a Markdown report for the user, with no evidence of unauthorized external transmission.\n- [PROMPT_INJECTION]: The skill identifies an indirect prompt injection surface by ingesting and reporting on workspace metadata (e.g., cluster names, job IDs).\n - Ingestion points: Data is retrieved from Databricks system tables and workspace API tools such as
clusters_getandpipelines_get.\n - Boundary markers: No explicit delimiters are used in the final report template to separate ingested data from agent instructions.\n
- Capability inventory: The toolset includes
Bash(scoped),Write,Edit, andReadcapabilities.\n - Sanitization: The
scripts/rank-and-report.pyscript coerces numeric values but does not perform sanitization on text-based metadata fields for potentially malicious instructions.
Audit Metadata