cortex-ai-function-studio
Audited by Socket on Nov 16, 2026
4 alerts found:
Anomalyx4This code implements Snowflake AI function helpers and contains no evident malware, credential theft, or suspicious external communication. It does execute generated SQL and has injection risks where stage, table, column, or file-path inputs are interpolated, and where candidate_body is inserted between $$ delimiters without escaping. It also has a session-setting path that disables AI_SQL_ERROR_HANDLING_USE_FAIL_ON_ERROR without restoring the prior value. Severity is moderate and depends on whether these inputs can be controlled by untrusted callers; no domains, URLs, IP addresses, or credential types are involved.
This is a dataset preparation and Snowflake upload utility, with no clear evidence of malware or unauthorized data exfiltration. It downloads the public dataset fnauman/fashion-second-hand-front-only-rgb and uploads selected images to the configured Snowflake stage. The use of shell=True with interpolated connection and stage values creates command-injection risk, and unvalidated database/schema values create SQL manipulation risk; CREATE OR REPLACE may overwrite existing objects. Severity is moderate when configuration values can be influenced by an untrusted party.
This procedure creates and executes a Snowflake optimization task using caller-provided arguments. It has a SQL injection risk because INPUT_COLUMNS, MODELS, and METRIC_OPTIONS are inserted into dynamic SQL without adequate escaping, and WAREHOUSE_NAME is concatenated as an unquoted identifier. No network exfiltration, credential theft, or other malware behavior is evident; severity is a security warning dependent on caller control of these arguments.
This procedure creates and executes a Snowflake task for asynchronous evaluation, but caller-controlled INPUT_COLUMNS and METRIC_OPTIONS are interpolated into dynamic SQL without escaping, and WAREHOUSE_NAME is inserted as an unquoted SQL clause value. These are SQL injection risks in task creation or its nested procedure call, with impact limited by Snowflake syntax and the caller's privileges; no malware behavior or external endpoints are evident. Severity: security warning; no hardcoded credentials, domains, URLs, IP addresses, or targeted environment variables are present.