~/talk

Architecting Robust JavaScript Applications

Talkat JSConf Belgium 2020 · on Thursday, 2020-07-09· [javascript, security]
links:none on file
slides:none on file

Modern JavaScript apps pull in 1,000+ modules—NPM passes 1,000,000 packages and 97% of app code often comes from NPM—so compromised packages happen (the event-stream hijack exfiltrated Bitcoin keys). Emergent defenses are language-level isolation like realms and compartments (proposals) and a secure ECMAScript / SES model with lockdown and harden shims; build tooling such as Lavamoat auto-sandboxes deps and emits privilege manifests (usable today but still bleeding edge). Patterns that work: WeakMap sealer/unsealer, hardened objects and membranes; Google Caja, Firefox, Salesforce, Moddable, MetaMask and Agoric use variants in production.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 4:42Why robust JavaScript matters
  3. 8:37JavaScript's standardization and modularity
  4. 12:49Principle of least authority in JavaScript
  5. 15:15Realms and compartments for isolation
  6. 23:45Recap of first part and transition
  7. 25:28Design patterns for secure modules
  8. 27:18Making objects tamper-proof
  9. 33:12Safe monkey patching with WeakMap
  10. 37:03Sealer and unsealer pairs
  11. 42:06Proxy pattern for API attenuation
  12. 48:10Membranes and dynamic isolation
  13. 50:45Conclusion and real-world applications
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.