T09 · Insecure Skill Coding Practices
- Location
SKILL.md:647- Finding
Database credentials exposed through command-line arguments
- Content
View full analysis
tables.txt gsql -d your_database -U your_user -W your_password \ -f export_schema.sql > schema_dws.sql ``` ### Technical Analysis The documentation instructs operators to provide database passwords directly as command-line arguments. Although the values shown are placeholders rather than real secrets, operators following these templates are likely to replace them with production credentials. Command-line secrets can be exposed through: - Shell history files. - Process listings such as `ps`, `/proc`, and process-monitoring utilities. - Job execution logs and terminal session recordings. - CI/CD logs and command tracing. - Operational telemetry collected by monitoring or endpoint-security agents. - Copied command transcripts, tickets, and runbooks. The `gsql` examples are particularly misleading because `-W` is commonly intended to request an interactive password prompt; placing a password directly after it encourages insecure handling and may not behave as intended across versions. ### Attack Path 1. An o ...[truncated 1244 chars]- Remediation
View remediation
