PRIMARY REFERENCES
==================

Microsoft Learn — Launch an AppContainer
https://learn.microsoft.com/windows/win32/secauthz/implementing-an-appcontainer

Microsoft Learn — UpdateProcThreadAttribute
https://learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute

Microsoft Learn — AppContainer isolation overview
https://learn.microsoft.com/windows/win32/secauthz/appcontainer-isolation

Microsoft Open Specifications — NTSTATUS values
https://learn.microsoft.com/openspecs/windows_protocols/ms-erref/

V0.3.9 CHILD CONTROL
- Microsoft Learn: UpdateProcThreadAttribute
  PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY
  PROC_THREAD_ATTRIBUTE_JOB_LIST
- Microsoft Learn: JOBOBJECT_BASIC_LIMIT_INFORMATION
  JOB_OBJECT_LIMIT_ACTIVE_PROCESS
  JOB_OBJECT_LIMIT_BREAKAWAY_OK
  JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK
- Microsoft Learn: Process Creation Flags
  CREATE_BREAKAWAY_FROM_JOB

V0.3.13 ATOMIC JOB CANDIDATE
---------------------------
Microsoft Learn: UpdateProcThreadAttribute — PROC_THREAD_ATTRIBUTE_JOB_LIST
Microsoft Learn: Job Objects — CreateProcess children remain in the job by default
Microsoft Learn: JOBOBJECT_BASIC_LIMIT_INFORMATION — ACTIVE_PROCESS_LIMIT
Microsoft Learn: Process Creation Flags — CREATE_BREAKAWAY_FROM_JOB requires BREAKAWAY_OK

V0.3.13 TOKEN / MODE EVIDENCE
-----------------------------
Microsoft Learn — GetTokenInformation
https://learn.microsoft.com/windows/win32/api/securitybaseapi/nf-securitybaseapi-gettokeninformation

Microsoft Learn — TOKEN_INFORMATION_CLASS
TokenIsAppContainer
TokenCapabilities
TokenIsLessPrivilegedAppContainer
https://learn.microsoft.com/windows/win32/api/winnt/ne-winnt-token_information_class

Microsoft Learn — DoNotAddAllApplicationPackagesToRestrictions
ALL_APPLICATION_PACKAGES is used on files, registry keys, and other resources
to grant access to processes running in AppContainer.
https://learn.microsoft.com/windows/win32/com/donotaddallapplicationpackagestorestrictions

V0.3.13 design:
- do not treat an unavailable LPAC-specific query as proof of regular mode
- preserve the query's Win32 error
- require active ALL_APPLICATION_PACKAGES access behavior for regular mode
- require LPAC-specific token query success plus AAP denial for LPAC mode


V0.4 CONTAINED EXECUTION REFERENCES
-----------------------------------
Microsoft UpdateProcThreadAttribute / PROC_THREAD_ATTRIBUTE_JOB_LIST:
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute

Microsoft Job Objects and breakaway semantics:
https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects

Microsoft Process Creation Flags / CREATE_BREAKAWAY_FROM_JOB:
https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags

V0.4.1 WINDOWS ANONYMOUS-PIPE EOF
---------------------------------
Microsoft Learn — ReadFile function, Pipes section:
For an anonymous pipe whose write handle has been closed, ReadFile returns FALSE
and GetLastError returns ERROR_BROKEN_PIPE.
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile

Microsoft Learn — Anonymous Pipe Operations:
ReadFile can return when all write handles to the anonymous pipe have been closed.
https://learn.microsoft.com/en-us/windows/win32/ipc/anonymous-pipe-operations

V0.4.3 environment/process creation references
---------------------------------------------
Microsoft CreateProcessW
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw

Microsoft CreateEnvironmentBlock
https://learn.microsoft.com/en-us/windows/win32/api/userenv/nf-userenv-createenvironmentblock

Microsoft System Error Codes 0-499 (ERROR_ENVVAR_NOT_FOUND = 203)
https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

V0.4.4 LOCALAPPDATA/AppContainer environment references
-------------------------------------------------------
Microsoft Learn - Launch an AppContainer
https://learn.microsoft.com/en-us/windows/win32/secauthz/implementing-an-appcontainer
  - AppContainer profile is exposed through LOCALAPPDATA.
  - TEMP and TMP are rerouted under the AppContainer profile.

Chromium Windows sandbox target_process.cc
https://chromium.googlesource.com/chromium/src/+/e879db3b2fa4d06359ec4d6a7d9419d73e49838f/sandbox/win/src/target_process.cc
  - filtered target environment keeps Path, SystemDrive, SystemRoot, TEMP, TMP, LOCALAPPDATA.
  - source comment: LOCALAPPDATA is needed for App Container processes.

V0.6 ACTIVE NETWORK-DENIAL REFERENCES
-------------------------------------
Microsoft Learn — AppContainer isolation
https://learn.microsoft.com/en-us/windows/win32/secauthz/appcontainer-isolation
  - AppContainer network access is capability-mediated.

Microsoft Learn — NetworkIsolationSetAppContainerConfig
https://learn.microsoft.com/en-us/windows/win32/api/netfw/nf-netfw-networkisolationsetappcontainerconfig
  - Configures AppContainer SIDs permitted to send loopback traffic.

Microsoft Learn — NetworkIsolationGetAppContainerConfig
https://learn.microsoft.com/en-us/windows/win32/api/netfw/nf-netfw-networkisolationgetappcontainerconfig
  - Retrieves AppContainer SIDs permitted to send loopback traffic.

V0.6 uses a host-positive-control loopback listener and requires the contained
connection attempt to be denied. It does not depend on public Internet or DNS.
