Skip to content

Commit f1e8a19

Browse files
authored
Add a minimal Security and Privacy Considerations section to Web API (WebAssembly#1818)
These considerations are aimed at answering the questions to consider from the TAG security and privacy questionnaire: https://www.w3.org/TR/security-privacy-questionnaire/
1 parent 12bf474 commit f1e8a19

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

document/web-api/index.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,18 @@ application/wasm
305305
</dl></dd>
306306
</dl>
307307

308+
<h2 id="security-considerations">Security and Privacy Considerations</h2>
309+
310+
<p><em>This section is non-normative.</em></p>
311+
WebAssembly provides no access to the surrounding environment other than via the JavaScript API described in the [[WASMJS|JS API]] specification.
312+
Therefore, WebAssembly cannot collect or expose any information (personal, sensitive or otherwise) to Web sites or other parties beyond what can be collected, exposed or processed with JavaScript.
313+
WebAssembly memory has the same lifetime as the objects in the surrounding JavaScript environment and is not persisted or serialized (other than by copying it out to JavaScript and using existing serialization APIs).
314+
No access is provided to the underlying platform or hardware, or to other devices, or to the user agent’s native UI.
315+
316+
WebAssembly is an additional program execution mechanism, and can be executed wherever JavaScript can be executed.
317+
Therefore the threat model is essentially the same as for JavaScript code, and has similar considerations for delivery (e.g. WebAssembly code should be protected in transit from active and passive network attackers)
318+
and policy (e.g. some loading mechanisms or execution are restricted via mechanisms such as the same-origin policy or Content Security Policy).
319+
308320
<h2 id="change-history">Change History</h2>
309321

310322
<p><em>This section is non-normative.</em></p>

0 commit comments

Comments
 (0)