Sample: SQL — see SquidGate detect findings - #19
Conversation
Demo only — hardcoded secret + injection / dangerous API patterns. See examples/README.md
🛡️ Security Scan ResultsThe new demo SQL file introduces hardcoded credentials and overly broad privilege grants, both of which are clear security issues. ⛔ 2 finding(s) block merge. HIGH — Hardcoded credentials in SQL scriptFile: The CREATE USER statement hardcodes a password 'SuperSecretDemoPassword123!'. Hardcoded credentials are easily discoverable in source control and violate secure credential management practices. CWE: CWE-798 | OWASP: A07:2021 Recommendation: Remove the hardcoded password. For demo purposes use a placeholder such as '' and document that real credentials must come from secure configuration or secret management systems. HIGH — Overly permissive database privileges granted to publicFile: GRANT ALL PRIVILEGES ON DATABASE prod TO public; assigns full access to any database user, violating the principle of least privilege. CWE: CWE-732 | OWASP: A01:2021 Recommendation: Grant only the minimum required privileges to specific roles or users. Never grant to PUBLIC for production or sensitive databases. |
SquidGate language sample — SQL
This PR intentionally introduces insecure patterns so you can see SquidGate work on SQL:
File
examples/sql/demo.sqlWhat to look for
block_on(defaulthigh)All language samples · Setup SquidGate on your repo