Skip to content

WP1b: TracerPid polling for debugger detection #2

Description

@Brad-Edwards

Context

No detection of debugger attachment via /proc/<pid>/status TracerPid field. Trivial addition to daemon watchdog.

Work

  • New daemon/debugger_detect.{h,c}: owl_check_tracer_pid(pid_t) reads /proc/<pid>/status, parses TracerPid: line. Returns tracer PID (0 if none).
  • New tests/test_debugger_detect.c
  • Modify daemon/main.c: call from watchdog loop (5s). Emit OWL_EVENT_PTRACE_ATTEMPT with source=DAEMON when TracerPid > 0.

Tests

6 unit tests (parse valid TracerPid, TracerPid zero, malformed status, null input, missing field, large PID).

Part of v2.0.0

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions