Please report security issues privately via GitHub's private vulnerability reporting rather than opening a public issue. I'll aim to respond within a few days.
Linkrouter is your default browser, so every link you click passes through it, and it holds the Accessibility permission. Both are worth stating limits for.
- No network. It opens no socket. A link is handed to a browser on this Mac and never looked at beyond its scheme and host.
- One Accessibility read, only when a link arrives. It reads the focused
window's document (
AXDocument) of the app in front, and nothing else: no window contents, no keystrokes, no other app's windows. It does not run between links; it quits five seconds after the last one. - No shell. The browser is started by
/usr/bin/openwith an argument list, so nothing in a URL, a rule or a profile name can become a command. - The log names hosts, not links.
~/Library/Logs/linkrouter.logrecords the app, the folder, the chosen browser and the link's scheme and host. Paths and query strings, where sign-in codes and reset tokens travel, are never written. The file is readable by you only and stays under 256 KiB (ADR 0005). - It reads two files of yours. The rules file, and a Chromium browser's
Local Statewhen a rule names a profile. Where macOS refuses the second, it only checks that the profile's directory exists.
The rules file is trusted. Whoever can write ~/.config/linkrouter/rules
decides which app your links open in. That is the same person who could change
your default browser, so it is not a boundary Linkrouter defends.
The folder comes from the app in front. An app can put any path in its
window's AXDocument, so a hostile app could pick which of your rules applies
to a link clicked in it. It cannot pick an app that no rule names.
Signed on your Mac. Linkrouter is built from source and has no Developer ID
signature or hardened runtime. Installing signs it with a self-signed certificate
made on your Mac, and macOS keys the Accessibility grant to that. The key cannot
be exported, but codesign may use it without asking, so a process running as
you could sign its own binary as Linkrouter and inherit the grant. That is the
price of not granting it again on every upgrade.