Snowflake Security: Defending Against Data Exfiltration
Instruction: Discuss measures and strategies to protect sensitive data in Snowflake from unauthorized access and potential data exfiltration.
Updated
Official answer
Map the ways sensitive data can leave: query results, downloads/unloads, shares, external functions and other permitted integrations. Protect identities first with least privilege, appropriate strong authentication, credential controls and prompt revocation.
Limit which rows/columns each role can read, and verify masking/row policies under real access paths. Encryption protects transport/storage but does not stop an authorized identity from extracting plaintext results.
Restrict stage and integration creation/use and approve export destinations. Evaluate controls such as PREVENT_UNLOAD_TO_INLINE_URL and PREVENT_UNLOAD_TO_INTERNAL_STAGES with their documented account/user scope. These restrict specified unload paths; they do not prevent every query result download or every other egress mechanism. Test effective settings and permitted exceptions.
Network policies limit connection access from allowed networks; they are not a blanket guarantee that SQL cannot send data through an authorized external integration. External functions execute outside Snowflake and transmit inputs, so review their destination, payload and privileges.
Share only approved data and test consumer entitlements. Sharing can reduce file transfers, but consumers may retain query results. Revocation cannot erase existing exports, and secure-view status does not make the underlying information impossible to disclose.
Monitor suspicious authentication, large/unusual reads, unloads, grants and integration changes using appropriate telemetry, with latency and coverage documented. Rehearse containment and evidence preservation. The objective is layered prevention and detection with known limits, not a claim that exfiltration is impossible.
Unload controls, external functions, row access policies, login evidence