Skip to content

Commit

Permalink
Add a minimal Security and Privacy Considerations section
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuff committed Oct 2, 2024
1 parent a700617 commit 8e136de
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions document/web-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,16 @@ application/wasm
<dt>Author/Change Controller:</dt>
<dd>W3C</dd>
</dl></dd>


<h2 id="security-considerations">Security and Privacy Considerations</h2>

<p><em>This section is non-normative.</em></p>
WebAssembly provides no access to the surrounding environment other than via the JavaScript API described in the JS API specification.
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.
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).
No access is provided to the underlying platform or hardware, or to other devices, or to the user agent’s native UI.

WebAssembly is an additional program execution mechanism, and can be executed wherever JavaScript can be execute.
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)
and policy (e.g. some loading mechanisms or execution are restricted via mechanisms such as the same-origin policy or Content Security Policy).

0 comments on commit 8e136de

Please sign in to comment.