Skip to content

security: distinguish process exit from process inspection failure #12

Closed

Description

@abruption

Problem

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

  1. added
    bug
    on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions