Skip to content

Attribution: declarative auditd for signal syscalls on the laptop (follow-up to #8777) #8787

Open

Description

@dezren39

Follow-up to #8777 (the 2026-11-11T22:01:09Z SIGTERM that killed pm-aggregator and pm-dispatch in the same second, sender unidentified).

Why

The laptop kernel supports auditing (CONFIG_AUDIT=y, CONFIG_AUDITSYSCALL=y) but no audit tooling is installed and no rules exist, so a signal sent by hand leaves no record anywhere: systemd logs the death, never the sender. The two pm units are covered meanwhile by the sigterm-witness wrapper (live via drop-ins; declarative in PR #8786), but every other process on the box is still unattributed.

Ask

Enable auditd declaratively in the laptop's NixOS configuration, with rules that log signal-sending syscalls with the sender's identity, e.g.:

-a always,exit -F arch=b64 -S kill -S tkill -S tgkill -k signal-attribution

so any future "who killed this process" question is answered by ausearch -k signal-attribution (auid, exe, pid, comm of the sender) instead of an investigation.

Notes / constraints

  • This needs root and a system activation — it cannot be hot-installed. Ride the coordinated switch or a maintenance window; do not hand-install packages outside the NixOS config.
  • Signal syscalls are not a hot path on this box; expected log volume is low. Keep the rule set to kill-family syscalls only.
  • The witness on the pm units stays: it is per-service, survives even if auditd is later dropped, and its log sits next to the service's state.

Acceptance

From a marked shell, send SIGTERM to a throwaway process; show the audit record names the sender (auid/exe/pid). Note the verification on this issue.

Hands item

The repository configuration is merged and verified on main. Remaining work requires root access and a coordinated switch on amd-6; do not hand-install packages.

Acceptance criteria

Activity

  1. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  2. added
    task/small-fix
    priority/normal
    effort/m
    kind/infrastructure
    on Nov 17, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (inline triage — config+drill routed to task 20201; activation stays inside the coordinated-switch discipline)

    • Agent: queue worker (repo-worker-code), lane any-c
    • Session / ID: task 18725
    • Found via: queue claim (bulk-intake triage packet, 2026-11-16)

    Triage verdict (fresh, 2026-11-17, via gh):

    • Issue Attribution: declarative auditd for signal syscalls on the laptop (follow-up to #8777) #8787 is OPEN with no labels at all — no triage of record. No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit). Labels applied this pass: task/small-fix, priority/normal, effort/m, kind/infrastructure.
    • Work kind: small-fix (declarative NixOS config + drill). Priority: normal. Effort: m (config is small; activation coordination is the tail).
    • Grounding from the issue, undisputed: kernel audit support is present (CONFIG_AUDIT=y, CONFIG_AUDITSYSCALL=y), no audit tooling or rules exist, and the Decisions page 'crash' 2026-11-11: pm-aggregator + pm-dispatch SIGTERM'd mid-session, no self-heal (Restart=on-failure treats SIGTERM as clean) #8777 SIGTERM sender was never identified. The pm units' sigterm-witness stays regardless — this issue covers every other process.
    • Constraint honoured in the routing: no hand-installs outside the NixOS config, and no ad-hoc activation — the config lands by PR and activates at the next coordinated switch / maintenance window; the drill runs right after activation. If no window occurs in the packet's life, the packet completes with the PR merged and activation+drill re-filed under the same dedupe key rather than closing this issue early.
    • Acceptance check (the issue's): from a marked shell, SIGTERM a throwaway process; the ausearch -k signal-attribution record naming the sender (auid/exe/pid) is pasted on this issue.

    Routing: config+drill packet queued as task 20201 (small_fix, 45 min). Task 18725 completes as triaged naming it. Issue #8787 stays open until the drill record lands.

  4. added
    queue/blocked
    status/blocked
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane code-j (worker repo-worker-code), queue repo-health-code-pilot, task 20201
    state: blocked (reason class packet_defect)
    picked up: claimed 2026-11-17 12:00Z; revalidated fresh: issue OPEN, PR #8786 MERGED.
    why blocked: the acceptance is a declarative auditd config PR in the laptop NixOS config repo (dezren39/nix at ~/code/dezren39-nix), which is outside this lane code-only designation; activation needs a coordinated window (Drew decision).
    no code change made, no branch created.
    needs: re-scope packet to dezren39/nix or confirm cross-repo permission; then an activation window or waiver before the drill.

  6. added
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/blocked
    queue/blocked
    on Nov 17, 2026
  7. 17 remaining items

  8. removed
    queue/claimed
    work/assigned
    on Nov 23, 2026
  9. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: verified-repo-half
    actor: oc-code-02 (openchamber scheduled Fleet lane)
    task: 21922 (second-pass verify-and-route)

    • Repo half done on main: PR nixos: declarative auditd signal attribution on amd (#8787) #11285 merged 2026-11-17T21:55:53Z. Host amd runs services/signal-audit (auditd enabled, kill-family rules with key signal-attribution).
    • Live check from this session on host amd: auditd is active. auditctl -l needs root and passwordless sudo is unavailable here, so the rule set was not read live.
    • Remaining is one hands item: as root on amd, run auditctl -l (expect the signal-attribution rules), send SIGTERM to a throwaway process, then ausearch -k signal-attribution and paste the record here. Routed as a hands task, not closed.
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Lane xaltha (hourly work-loop, 2026-11-24): picked up via fleet agent next and claim-checked.

    No repo slice is available on this issue: the declarative auditd config already landed on main in PR #11285 (verified in felix's 2026-11-23 done check, comment 7104750258), and no open PR duplicates it.

    What remains is host-only work on amd-6 that needs root and a coordinated switch / maintenance window, per this issue's own constraints: switch to a build at/after 30c79df if needed, auditctl -l as root, then the marked-shell SIGTERM acceptance drill with the ausearch -k signal-attribution record pasted here. Sudo from this seat is password-gated, so this lane cannot perform those steps. Skipping as a genuine owner/hands item — not a repo blocker to work around.

  11. added
    user/escalated
    status/blocked
    and removed
    queue/queued
    on Nov 26, 2026
  12. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage result (task 24346): the repo half is already merged and verified on current origin/main (nixos/services/signal-audit/default.nix; nixos/hosts/default.nix includes it for amd). The remaining acceptance is host-side only: prove the rules loaded and run the signal attribution drill during the coordinated amd-6 switch with root access. No repository fix is outstanding, and no local edits were made.

    Routed as a hands item: issue body now carries the hands:v1 marker, with user/escalated + status/blocked and queue/queued removed. The human action is to verify the rules as root during the switch, run the marked-shell SIGTERM drill, and paste the ausearch record here.

  13. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · triage (queue task 24496, lane oc-code-07)

  14. added
    epic/pm-stack
    primary-parent/pm-stack
    stray-work
    on Nov 27, 2026
  15. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C06, Drew's full issue census)

    Rechecked firsthand: body, all comments, PR state.

    • Verdict: blocked — host-side hands item only; no repo work outstanding. The declarative auditd config merged in PR nixos: declarative auditd signal attribution on amd (#8787) #11285 (2026-11-17) and was verified on main 2026-11-23 (nixos/services/signal-audit, kill-family rules under key signal-attribution, host amd).
    • Sole remaining acceptance: at the coordinated amd-6 switch, as root — auditctl -l shows the signal-attribution rules loaded; from a marked shell SIGTERM a throwaway process; paste the ausearch -k signal-attribution record on this issue. The issue already carries the hands:v1 marker with exactly this action; sudo from agent seats is password-gated, which is the blocker.
    • Labels/priority: status/blocked + user/escalated correct; priority/normal stands.
  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

    • STRENGTHS: Exemplary split of done vs remaining: the repo half is merged and was verified on main 2026-11-23 (PR nixos: declarative auditd signal attribution on amd (#8787) #11285, nixos/services/signal-audit included for host amd in nixos/hosts/default.nix), and the body states the constraints (root + activation, ride a coordinated switch, kill-family syscalls only) up front.
    • GAPS: None in the record. The remaining acceptance (rules actually loaded + the signal-attribution drill via ausearch -k signal-attribution) is host-side only and cannot be evidenced from the repo.
    • FIXES I APPLIED: None needed — priority/normal, kind/infrastructure, status/blocked all accurate.
    • REMAINS: A coordinated root session on amd-6 at the next switch: activate, prove the auditd rules loaded, run the attribution drill, post the ausearch output here. Then this closes.
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no ## Acceptance criteria section.

    Strengths found: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; kind/* classification present.

    Actions taken: appended ## Acceptance criteria (original body text unchanged).

    Priority: priority/normal retained/assigned — matches the work's urgency as evidenced on the issue; no band change.

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

    effort/mepic/pm-stackkind/infrastructureprimary-parent/pm-stackpriority/normalstatus/blockedstray-worktask/small-fixuser/escalated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions