omarchy-crash-watch trusts forged core-dump entries: any app (Flatpak included) can raise a DND-bypassing crash toast that launches an approvals-off agent on attacker text
System details
Omarchy 4.5.0-3, upstream quattro at 9f2e2e94a.
What's wrong?
omarchy-crash-watch treats any journal entry with the core-dump MESSAGE_ID and the user's _UID as a real crash (bin/omarchy-crash-watch:49-73). It never checks who wrote the entry. Any process running as the user can write that entry with whatever COREDUMP_* fields it likes. That includes Flatpak apps, which get /run/systemd/journal/socket by default. No crash is needed.
What a forged entry gets:
- A spoofed system alert. A critical "Process crashed: Hyprland" toast (or any name) is sent under the
omarchy-actionapp name, so it bypasses Do Not Disturb and looks exactly like a real crash of a system component. Changing the name each time gets around the 60 s dedupe. - An agent with approvals off, fed attacker text. Clicking "Diagnose" runs
omarchy-agent-crash, which pastes the forgedcomm/exeinto the prompt verbatim (bin/omarchy-agent-crash:33-50).omarchy-agentthen launches the default agent in a no-confirm mode (claude --permission-mode auto,codex --approve-for-me,cursor-agent --yolo --trust,amp --dangerously-allow-all, ...). The diagnose-crash skill then has the agent runcoredumpctl info, which matches onMESSAGE_IDtoo and prints the forged command line back as evidence.
Tested on my machine: steps 1 and 2 work end to end. The forged toast appears and one click launches the agent on the forged prompt. In my test the agent noticed the crash was fake and did not follow the injected text, so the last step depends on the model. Still, the only thing between a sandboxed app and an unconfirmed shell on the host is the model choosing not to comply.
Fix: only trust entries whose journald-stamped _EXE is /usr/lib/systemd/systemd-coredump and whose _SYSTEMD_UNIT is the system systemd-coredump@*.service. A sender can't set either field, and a user process can't join a system unit's cgroup. Also mark crash data as untrusted in the prompt and the skill. PR incoming.
Follow-up worth considering separately: crash diagnosis (and maybe every launch from a notification) shouldn't use the approval-skipping flags at all.
Why this is public: my earlier private security report got no reply, so this one goes straight to an issue, with the fix.
Note for maintainers: this is not that earlier report (CVSS 9.3), which is still open. That one is a different component with a different fix, and nothing here addresses it.
I read the current quattro watcher and diagnostic prompt (Codex High, source review only). The watcher selects the core-dump message ID and current UID without checking the sender's _EXE or _SYSTEMD_UNIT; crash metadata is interpolated into the diagnostic prompt.
I classified this as a bug, but the second classifier returned no usable classification, so classification is unsettled. No reproduction or fix verification ran. This is waiting on maintainer review; no class or verification labels were added.