~/talk

Sandboxing .NET assemblies for fun, profit and of course security!

Talkat NDC Porto 2022 · 2022-04-25..04-29· [security]
slides:none on file

Shows a concrete method to limit a NuGet library without changing its source by loading it into a separate folder via AssemblyLoadContext, publishing it self-contained and applying runtime patches with Harmony. Demo patches File.Copy to enforce a canonical output folder and throws on HttpClient.GetStreamAsync so remote fetches fail; patches successfully stop file writes outside the allowed folder and block HTTP in the demo. Notes this is an extra layer of defense not a full security boundary and adds complexity.

AI-written summary · about

  1. 0:00Start
  2. 0:29Background
  3. 2:10Third-Party Libraries
  4. 10:09Sandboxing Net Assemblies
  5. 10:48Goals
  6. 11:24Sandboxing
  7. 14:27Webassembly System Interface
  8. 16:12Code Access Security
  9. 17:02Stack Walks
  10. 21:47Write Full Files to Other Folders
  11. 22:15Pet Reversal
  12. 24:31Server Side Request Forwarder
  13. 27:07Assembly Load Context
  14. 29:02Self-Contained Deployment
  15. 33:53Managed Libraries
  16. 39:04Plugins Manager
  17. 41:03Apply Patches
~/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.