{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T18:07:43Z","timestamp":1794593263361,"version":"4.9.1"},"reference-count":43,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2023,5,26]],"date-time":"2023-05-26T00:00:00Z","timestamp":1685059200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,5,26]]},"abstract":"<jats:p>Many modern use cases of relational databases involve multi-tenancy. To allow a tenant to only access its data, relational database systems (RDBMSs) introduced row-level security (RLS). RLS enables specifying per-row access controls, which the database enforces by rewriting tenant queries to add an RLS policy filter that filters out rows the tenant is not allowed to view. Unfortunately, while RLS blocks queries from returning unauthorized data, side-effects of query execution can form a side-channel that leaks information about such secret data.<\/jats:p>\n                  <jats:p>This paper investigates how RLS query execution time can leak information about rows that the querying tenant is restricted from viewing. We show that in PostgreSQL and SQL Server, an attacker can craft index-using queries to learn whether a value they are not authorized to view exists in an RLS-protected table, and in some cases, how many times such a value exists in the table. Our attack succeeds in a realistic cloud setting: we successfully attack managed PostgreSQL and SQL Server database instances on AWS from virtual machines in the same and different data centers.<\/jats:p>\n                  <jats:p>To block the RLS time side-channel, we design a data-oblivious query scheme for the case of unique keys. We also analyze the trade-offs created by the data-oblivious approach for non-unique keys.<\/jats:p>\n                  <jats:p>To facilitate the evaluation of RLS attacks and defenses, we introduce a benchmark that supports multi-tenancy and RLS, which are not supported by established benchmarks such as YCSB. We implement our solution in PostgreSQL and show that it achieves security with minimal performance impact.<\/jats:p>","DOI":"10.1145\/3588943","type":"journal-article","created":{"date-parts":[[2023,5,30]],"date-time":"2023-05-30T13:42:05Z","timestamp":1685454125000},"page":"1-25","source":"Crossref","is-referenced-by-count":7,"title":["RLS Side Channels: Investigating Leakage of Row-Level Security Protected Data Through Query Execution Time"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-2781-9883","authenticated-orcid":false,"given":"Chen","family":"Dar","sequence":"first","affiliation":[{"name":"Tel Aviv University, Tel Aviv, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4826-4174","authenticated-orcid":false,"given":"Moshik","family":"Hershcovitch","sequence":"additional","affiliation":[{"name":"Tel Aviv University, Tel Aviv, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5586-2615","authenticated-orcid":false,"given":"Adam","family":"Morrison","sequence":"additional","affiliation":[{"name":"Tel Aviv University, Tel Aviv, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,5,30]]},"reference":[{"key":"e_1_2_2_1_1","unstructured":"[n.d.]. MongoDB Atlas Overview - MongoDB Realm. https:\/\/docs.mongodb.com\/realm\/mongodb\/"},{"key":"e_1_2_2_2_1","unstructured":"[n.d.]. Open Policy Agent. https:\/\/www.openpolicyagent.org\/"},{"key":"e_1_2_2_3_1","unstructured":"[n.d.]. OpenEMR. https:\/\/www.open-emr.org\/"},{"key":"e_1_2_2_4_1","unstructured":"[n.d.]. Security-level constraints on qual clauses. https:\/\/raw.githubusercontent.com\/postgres\/postgres\/REL_13_STABLE\/src\/backend\/optimizer\/README"},{"key":"e_1_2_2_5_1","unstructured":"[n.d.]. TPC. http:\/\/tpc.org\/"},{"key":"e_1_2_2_6_1","unstructured":"2012. OpenEMR - Patient and Doctor Record Sharing. https:\/\/sourceforge.net\/p\/openemr\/discussion\/202506\/thread\/8d94ff0a\/"},{"key":"e_1_2_2_7_1","volume-title":"Verifying Constant-Time Implementations. In USENIX Security '16","author":"Almeida Jose Bacelar","year":"2016","unstructured":"Jose Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Fran\u00e7ois Dupressoir, and Michael Emmi. 2016. Verifying Constant-Time Implementations. In USENIX Security '16."},{"key":"e_1_2_2_8_1","unstructured":"AWS. [n.d.]. Amazon Relational Database Service. https:\/\/aws.amazon.com\/rds\/."},{"key":"e_1_2_2_9_1","unstructured":"Microsoft Azure. 2022. Multi-tenant SaaS database tenancy patterns. https:\/\/docs.microsoft.com\/en-us\/azure\/azure-sql\/database\/saas-tenancy-app-design-patterns?view=azuresql."},{"key":"e_1_2_2_10_1","volume-title":"Benchmarking Cloud Serving Systems with YCSB. In SoCC '10","author":"Cooper Brian F.","year":"2010","unstructured":"Brian F. Cooper, Adam Silberstein, Erwin Tam, Raghu Ramakrishnan, and Russell Sears. 2010. Benchmarking Cloud Serving Systems with YCSB. In SoCC '10."},{"key":"e_1_2_2_11_1","volume-title":"Koen De Bosschere, and Bjorn De Sutter","author":"Coppens Bart","year":"2009","unstructured":"Bart Coppens, Ingrid Verbauwhede, Koen De Bosschere, and Bjorn De Sutter. 2009. Practical Mitigations for Timing-Based Side-Channel Attacks on Modern x86 Processors. In IEEE S&P'09."},{"key":"e_1_2_2_12_1","unstructured":"Aveek Das. 2020. Introduction to Row-Level Security in SQL Server. https:\/\/www.sqlshack.com\/introduction-to-row-level-security-in-sql-server\/"},{"key":"e_1_2_2_13_1","unstructured":"Elastic. [n.d.]. Document level security. https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/document-level-security.html."},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.14778\/3364324.3364331"},{"key":"e_1_2_2_15_1","volume-title":"WOOT '07","author":"Futoransky Ariel","year":"2007","unstructured":"Ariel Futoransky, Dami\u00e1n Saura, and Ariel Waissbein. 2007. The ND2DB Attack: Database Content Extraction Using Timing Attacks on the Indexing Algorithms. In WOOT '07."},{"key":"e_1_2_2_16_1","volume-title":"Structured Encryption and Dynamic Leakage Suppression. In Eurocrypt '21","author":"George Marilyn","year":"2021","unstructured":"Marilyn George, Seny Kamara, and Tarik Moataz. 2021. Structured Encryption and Dynamic Leakage Suppression. In Eurocrypt '21."},{"key":"e_1_2_2_17_1","unstructured":"Rajendra Gupta. 2019. Methods to avoid the SQL divide by zero error. https:\/\/www.sqlshack.com\/methods-to-avoid-sql-divide-by-zero-error\/"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.5555\/2699806.2699810"},{"key":"e_1_2_2_19_1","volume-title":"Computationally Volume-Hiding Structured Encryption. In Eurocrypt '19","author":"Kamara Seny","year":"2019","unstructured":"Seny Kamara and Tarik Moataz. 2019. Computationally Volume-Hiding Structured Encryption. In Eurocrypt '19."},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2002.804378"},{"key":"e_1_2_2_21_1","volume-title":"Multi-tenancy Performance Benchmark for Web Application Platforms. In ICWE '13","author":"Krebs Rouven","year":"2013","unstructured":"Rouven Krebs, Alexander Wert, and Samuel Kounev. 2013. Multi-tenancy Performance Benchmark for Web Application Platforms. In ICWE '13."},{"key":"e_1_2_2_22_1","volume-title":"as of","author":"Liu Shanhong","year":"2021","unstructured":"Shanhong Liu. 2021. Statista | Ranking of the most popular relational database management systems worldwide, as of January 2021. https:\/\/www.statista.com\/statistics\/1131568\/worldwide-popularity-ranking-relational-database-management-systems\/"},{"key":"e_1_2_2_23_1","unstructured":"Microsoft. 2016. SQL Server | Microsoft Docs - SET STATISTICS IO (Transact-SQL). https:\/\/docs.microsoft.com\/en-us\/sql\/t-sql\/statements\/set-statistics-io-transact-sql?view=sql-server-ver15"},{"key":"e_1_2_2_24_1","unstructured":"Microsoft. 2020. SQL Server | Microsoft Docs - Row-Level Security. https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/security\/row-level-security"},{"key":"e_1_2_2_25_1","unstructured":"Microsoft. 2020. SQL Server | Microsoft Docs - Row-Level Security - Security Note: Side-Channel Attacks. https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/security\/row-level-security?view=sql-server-ver15#SecNote"},{"key":"e_1_2_2_26_1","unstructured":"Microsoft. 2022. SQL Server | Microsoft Docs - IS_MEMBER (Transact-SQL). https:\/\/learn.microsoft.com\/en-us\/sql\/t-sql\/functions\/is-member-transact-sql?view=sql-server-ver16."},{"key":"e_1_2_2_27_1","unstructured":"Rajesh Nadipalli. 2017. Using Row-Level Security (RLS) to Restrict Access to a Dataset. https:\/\/docs.aws.amazon.com\/quicksight\/latest\/user\/restrict-access-to-a-data-set-using-row-level-security.html"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3319535.3354213"},{"key":"e_1_2_2_29_1","unstructured":"PostgreSQL. 2021. PostgreSQL Documentation | Create role. https:\/\/www.postgresql.org\/docs\/13\/sql-createrole.html"},{"key":"e_1_2_2_30_1","unstructured":"PostgreSQL. 2021. PostgreSQL Documentation | Row Security Policies. https:\/\/www.postgresql.org\/docs\/13\/ddl-rowsecurity.html"},{"key":"e_1_2_2_31_1","unstructured":"PostgreSQL. 2021. PostgreSQL Documentation | Row Security Policies. https:\/\/www.postgresql.org\/docs\/13\/indexes-types.html"},{"key":"e_1_2_2_32_1","unstructured":"PostgreSQL. 2021. PostgreSQL Documentation | Rules and Privileges. https:\/\/www.postgresql.org\/docs\/13\/rules-privileges.html"},{"key":"e_1_2_2_33_1","volume-title":"USENIX Security '15","author":"Rane Ashay","year":"2015","unstructured":"Ashay Rane, Calvin Lin, and Mohit Tiwari. 2015. Raccoon: Closing digital side-channels through obfuscated execution. In USENIX Security '15."},{"key":"e_1_2_2_34_1","unstructured":"David Reed. 2017. New SQL Server 2016 Features for Business Data Protection -- Part 3: Row Level Security. https:\/\/www.ktlsolutions.com\/business-data-protection-row-level-security\/"},{"key":"e_1_2_2_35_1","volume-title":"An Efficient Mitigation Method for Timing Side Channels on the Web. In COSADE '11","author":"Schinzel Sebastian","year":"2011","unstructured":"Sebastian Schinzel. 2011. An Efficient Mitigation Method for Timing Side Channels on the Web. In COSADE '11."},{"key":"e_1_2_2_36_1","unstructured":"Hans-J\u00fcrgen Sch\u00f6nig. 2019. Using \"row level security\" to make large companies more secure. https:\/\/www.cybertec-postgresql.com\/en\/using-row-level-security-to-make-large-companies-more-secure\/"},{"key":"e_1_2_2_37_1","unstructured":"Anubhav Sharma and Ujwal Bukka. 2021. Building a Multi-Tenant SaaS Solution Using AWS Serverless Services. https:\/\/aws.amazon.com\/blogs\/apn\/building-a-multi-tenant-saas-solution-using-aws-serverless-services\/."},{"key":"e_1_2_2_38_1","volume-title":"USENIX Security '20","author":"Goethem Tom Van","year":"2020","unstructured":"Tom Van Goethem, Christina P\u00f6pper, Wouter Joosen, and Mathy Vanhoef. 2020. Timeless Timing Attacks: Exploiting Concurrency to Leak Secrets over Remote Connections. In USENIX Security '20."},{"key":"e_1_2_2_39_1","volume-title":"Side-Channel Attacks on Shared Search Indexes","author":"Wang Liang","unstructured":"Liang Wang, Paul Grubbs, Jiahui Lu, Vincent Bindschaedler, David Cash, and Thomas Ristenpart. 2017. Side-Channel Attacks on Shared Search Indexes. In IEEE S&P '17."},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3193111.3193115"},{"key":"e_1_2_2_41_1","volume-title":"USENIX Security '14","author":"Yarom Yuval","year":"2014","unstructured":"Yuval Yarom and Katrina Falkner. 2014. FLUSHRELOAD: A High Resolution, Low Noise, L3 Cache Side-Channel Attack. In USENIX Security '14."},{"key":"e_1_2_2_42_1","volume-title":"Data Oblivious ISA Extensions for Side Channel-Resistant and High Performance Computing. In NDSS '19","author":"Yu Jiyong","unstructured":"Jiyong Yu, Lucas Hsiung, Mohamad El Hajj, and Christopher W. Fletcher. 2019. Data Oblivious ISA Extensions for Side Channel-Resistant and High Performance Computing. In NDSS '19."},{"key":"e_1_2_2_43_1","volume-title":"Opaque: An Oblivious and Encrypted Distributed Analytics Platform. In NSDI '17","author":"Zheng Wenting","year":"2017","unstructured":"Wenting Zheng, Ankur Dave, Jethro G. Beekman, Raluca Ada Popa, Joseph E. Gonzalez, and Ion Stoica. 2017. Opaque: An Oblivious and Encrypted Distributed Analytics Platform. In NSDI '17."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3588943","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3588943","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T12:47:37Z","timestamp":1750164457000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3588943"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,5,26]]},"references-count":43,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2023,5,26]]}},"alternative-id":["10.1145\/3588943"],"URL":"https:\/\/doi.org\/10.1145\/3588943","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,5,26]]}}}