You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security: distinguish process exit from process inspection failure #12
processStartTime() returns null both when a PID no longer exists and when ps execution or parsing fails. The post-signal loop interprets either case as processExited: true.
Security impact
The tool can report process exit and potentially successful recovery without proving that the exact owner process terminated.
Required behavior
Return a tri-state process observation such as present, absent, or unknown, including diagnostic details for unknown results. Only confirmed PID absence or a different start time may establish that the original process exited.
Use the same distinction during initial inspection, pre-signal revalidation, and post-signal verification. Unknown evidence must produce verification_failed or termination_failed rather than success.
Tests
Cover:
confirmed process exit
live process with the same start time
PID reuse with a different start time
missing or failing ps
malformed/empty ps output
no successful unlock result when process state is unknown
Activity