MaulingMonkey / firehazard

Unopinionated low level API bindings focused on soundness, safety, and stronger types over raw FFI.
Other
8 stars 0 forks source link

Research: AppContainer stuff #2

Open MaulingMonkey opened 2 years ago

MaulingMonkey commented 2 years ago
MaulingMonkey commented 2 years ago
MaulingMonkey commented 2 years ago

https://github.com/chromium/chromium/search?q=AppContainer&type=commits

MaulingMonkey commented 1 year ago

Chromium uses the entirely undocumented CreateAppContainerToken from kernelbase.dll to implement the creation of an app container environment. This function isn't even found within my windows SDK headers. This explains my difficulty in finding useful information on the actual creation of app containers on https://docs.microsoft.com/ .

https://github.com/chromium/chromium/blob/c3d9547eabf7cc756af8ebf3ab6e5bd64a7ce7af/sandbox/win/src/restricted_token_utils.cc#L296-L329

MaulingMonkey commented 1 year ago

NtCreateLowBoxToken is the lower level API that CreateAppContainerToken was written in terms of?

chromium/chromium: [Windows] Use CreateAppContainerToken over NtCreateLowBoxToken.

MaulingMonkey commented 1 year ago
MaulingMonkey commented 1 year ago

Understanding Network Access in Windows AppContainers is a great read