Lune

USENIX Security2023Top-tier venue

SandDriller: A Fully-Automated Approach for Testing Language-Based JavaScript Sandboxes

Abdullah AlHamdan, Cristian-Alexandru Staicu

Abstract

Language-based isolation offers a cheap way to restrict the privileges of untrusted code. Previous work proposes a plethora of such techniques for isolating JavaScript code on the client-side, enabling the creation of web mashups. While these solutions are mostly out of fashion among practitioners, there is a growing trend to use analogous techniques for JavaScript code running outside of the browser, e.g., for protecting against supply chain attacks on the serverside. Irrespective of the use case, bugs in the implementation of language-based isolation can have devastating consequences. Hence, we propose SANDDRILLER, the first dynamic analysis-based approach for detecting sandbox escape vulnerabilities. Our core insight is to design testing oracles based on two main objectives of language-based sandboxes: Prevent writes outside the sandbox and restrict access to privileged operations. Using instrumentation, we interpose oracle checks on all the references exchanged between the host and the guest code to detect foreign references that allow the guest code to escape the sandbox. If at run time, a foreign reference is detected by an oracle, SANDDRILLER proceeds to synthesize an exploit for it. We apply our approach to six sandbox systems and find eight unique zero-day sandbox breakout vulnerabilities and two crashes. We believe that SANDDRILLER can be integrated in the development process of sandboxes to detect security vulnerabilities in the pre-release phase.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript cites Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages
  • SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages cites Spectre Attacks: Exploiting Speculative Execution
  • Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Welcome to Jurassic Park: A Comprehensive Study of Security Risks in Deno and its Ecosystem cites Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages
  • Welcome to Jurassic Park: A Comprehensive Study of Security Risks in Deno and its Ecosystem cites Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications
  • Welcome to Jurassic Park: A Comprehensive Study of Security Risks in Deno and its Ecosystem cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Welcome to Jurassic Park: A Comprehensive Study of Security Risks in Deno and its Ecosystem cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages
  • Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
  • Test Suites Guided Vulnerability Validation for Node.js Applications cites SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScript
  • Test Suites Guided Vulnerability Validation for Node.js Applications cites Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security Implications
  • Test Suites Guided Vulnerability Validation for Node.js Applications cites Small World with High Risks: A Study of Security Threats in the npm Ecosystem
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. SecBench.js: An Executable Security Benchmark Suite for Server-Side JavaScriptMasudul Hasan Masud Bhuiyan, Adithya Srinivas Parthasarathy, Nikos Vasilakis, Michael Pradel et al.ICSE 2023 · 20 citations
  2. Jack-in-the-box: An Empirical Study of JavaScript Bundling on the Web and its Security ImplicationsJeremy Rack, Cristian-Alexandru StaicuCCS 2023 · 11 citations
  3. Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting LanguagesCristian-Alexandru Staicu, Sazzadur Rahaman, Ágnes Kiss, Michael BackesUSENIX Security 2023
  4. Welcome to Jurassic Park: A Comprehensive Study of Security Risks in Deno and its EcosystemAbdullah AlHamdan, Cristian-Alexandru StaicuNDSS 2025
  5. Test Suites Guided Vulnerability Validation for Node.js ApplicationsChanghua Luo, Penghui Li, Wei Meng, Chao ZhangCCS 2024

Builds on29

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
  3. Small World with High Risks: A Study of Security Threats in the npm EcosystemMarkus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, Michael PradelUSENIX Security 2019 · 281 citations
  4. ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)Anjo Vahldiek-Oberwagner, Eslam Elnikety, Nuno O. Duarte, Michael Sammler et al.USENIX Security 2019 · 247 citations
  5. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 citations

Related papers

  1. Detecting and Understanding Self-Deleting JavaScript CodeXinzhe Wang, Zeyang Zhuang, Wei Meng, James ChengWWW 2024
  2. Best of Both Worlds: Effective Foreign Bridge Identification in V8 Embedders for Security AnalysisGeorgios Alexopoulos, Thodoris Sotiropoulos, Zhendong Su, Dimitris MitropoulosS&P 2026 · 1 citation
  3. JIT-Picking: Differential Fuzzing of JavaScript EnginesLukas Bernhard, Tobias Scharnowski, Moritz Schloegel, Tim Blazytko et al.CCS 2022 · 42 citations
  4. FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du et al.USENIX Security 2023
  5. FUZZILLI: Fuzzing for JavaScript JIT Compiler VulnerabilitiesSamuel Groß, Simon Koch, Lukas Bernhard, Thorsten Holz et al.NDSS 2023
Dusk over the sea between two cliffs drawn in fine vertical lines