Snowflake stage set to anomalous external cloud location

This rule is part of a beta feature. To learn more, contact Support.

Goal

Detect an anomalous stage transfer to an external cloud provider in your Snowflake environment.

Strategy

Snowflake facilitates data export to cloud storage services through the “stage” functionality. This rule allows you to detect an external data transfer through a stage to an unexpected cloud provider in Snowflake. There may be cases in which setting a stage to an external stage URL is expected behavior; however, all URLs in the logs should be populated from your own infrastructure resources, such as a company-owned S3 bucket. An unknown external stage URL can be an indicator that an attacker has exfiltrated data to that URL.

Triage and response

  1. Inspect the logs to identify the stage URL, timestamp, username and stage name.
  2. Investigate whether that export bucket is expected and owned by the company.
  3. If there are signs of compromise, disable the user associated with the stage and rotate credentials.