Snowflake Development

Use when writing Snowflake SQL, building data pipelines with Dynamic Tables or Streams/Tasks, using Cortex AI functions, creating Cortex Agents, writing Snowpark Python, configuring dbt for Snowflake, or troubleshooting Snowflake errors.

Gitix AI
Gitix AI
· 7 days ago · v1
SkillSpector MEDIUM
25/100 ⚠ CAUTION
1 security finding detected
HIGH Data Exfiltration · Env Variable Harvesting 80% confidence

Match: os.environ["SNOWFLAKE_PASSWORD"]

Line 161

Code accesses environment variables that may contain secrets (API keys, tokens). This is a common pattern for credential theft.

session = Session.builder.configs({
    "account": os.environ["SNOWFLAKE_ACCOUNT"],
    "user": os.environ["SNOWFLAKE_USER"],
    "password": os.environ["SNOWFLAKE_PASSWORD"],
    "role": "my_role", "warehouse": "my_wh",
    "database": "my_db", "schema": "my_schema"
}).create()

Avoid reading sensitive env vars (API keys, tokens) unless strictly required. Use secrets managers or secure config. Never log or transmit credentials.

3
0
0
0

Comments (0)

Sign in to leave a comment.

No comments yet. Be the first!