T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:49- Finding
Unnecessary Exposure of Database Credentials Through Full profiles.yml Read
- Content
View full analysis
/dev/null ``` ### Technical Analysis The Skill directs the agent to print the complete `profiles.yml` file when inspecting a dbt project. This file can contain sensitive data-warehouse connection information, including usernames, passwords, access tokens, private-key paths, account identifiers, hostnames, and database or schema details. Most of the documented audit checks require only limited metadata, such as the dbt adapter type, target name, or thread count. Reading the entire profile therefore exceeds the access necessary for the declared auditing purpose. Once printed, sensitive values may enter the agent context, execution logs, conversation transcripts, or generated reports. The command suppresses errors but does not filter, redact, or restrict sensitive fields. Although the reviewed Skill contains no instruction to transmit the data externally, its unnecessary ingestion creates a credential-exposure risk. ### Attack Path 1. A user invokes the Skill in a dbt project containing a local `profiles.yml`. 2. The agent follows the documented discovery procedure and executes `cat profiles.yml`. 3. The complete file is loaded into the agent-visible context. 4. Any plaintext or resolved credentials in the file become accessible to the active agent session and potentially to associated logging or transcript systems. 5. The sensitive values may subsequently be reproduced in an audit report, diagnostic output, or another tool invocation. 6. If exposed to an unauthorized party, valid credentials could be used to access the associated data warehouse within the permissions granted to that account. No automatic external exfiltration or credential use was identified in the reviewed ...[truncated 817 chars]- Remediation
View remediation
