fix(evidence): retain unreadable PE and Darwin process facts
Distinguish absent CLI directories from unreadable directory counts and truncated slots while preserving known PE headers and readable CLI data. Retain environment-entry coverage in the Darwin parser and classify restricted empty, unavailable and ambiguous environments at the native boundary. Keep cleanup fail-closed; code-signing flags do not establish ownership. Validation: 116 managed source tests, 13 ownership tests, native Swift parser probe and two live Darwin run-token tests; build, static checks and docs checks pass. Restricted-flag cases use parser fixtures; no real restricted capture is claimed. Related to #2035.
This commit is contained in:
@@ -875,6 +875,38 @@ it.skipIf(!onDarwin)(
|
||||
});
|
||||
expect(JSON.parse(stdout)).toEqual({
|
||||
argvDecoyIgnored: true,
|
||||
readableEnvironmentWithoutToken: {
|
||||
runId: null,
|
||||
environmentEntryCount: 1,
|
||||
},
|
||||
restrictedReadableEnvironmentWithoutToken: {
|
||||
state: "readable",
|
||||
reason: null,
|
||||
},
|
||||
restrictedEmptyEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "restricted_process_environment_withheld",
|
||||
},
|
||||
platformEmptyEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "platform_binary_environment_withheld",
|
||||
},
|
||||
restrictedUnavailableEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "restricted_process_environment_withheld",
|
||||
},
|
||||
restrictedAmbiguousEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "restricted_process_environment_withheld",
|
||||
},
|
||||
ordinaryAmbiguousEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "ambiguous_environment_boundary",
|
||||
},
|
||||
ordinaryUnavailableEnvironment: {
|
||||
state: "unavailable",
|
||||
reason: "environment_unavailable",
|
||||
},
|
||||
alternatePaddingRead: true,
|
||||
appleVectorTokenFailsClosed: true,
|
||||
clearedAppleVectorTokenFailsClosed: true,
|
||||
|
||||
Reference in New Issue
Block a user