Repository navigation
Replies: 2 comments
Hyprland Security Audit: Keylogging / Backdoors / Data Exfiltration
Executive Summary
The main risk does not lie in the Hyprland source code itself, but in deployment configuration:
1. Keyboard Monitoring1.1 The compositor's own keylogging behavior — none
Conclusion: the compositor is not a keylogger, and it does not leak keystrokes into logs or IPC. 1.2 By-design keystroke forwarding surfaces (not covert, but real capture channels)
Additional notes:
1.3 Input method / text input paths — cleanPreedit, commit, and surrounding-text of zwp_input_method_v2 / text-input-v3 are relayed only between the IME and the focused client ( 1.4 Global hotkey protocol — anti-keylogger by designvicinae-hotkey-v1 ( 2. Backdoors — none foundRuled out: covert exec, magic-string / environment-variable / date / hostname triggers, base64/hex/XOR obfuscated payloads (zero hits), credential theft ( 2.1 External command execution sites (all fixed commands or designed features)
The date check ( 2.2 Dynamic loading
2.3 IPC trust boundary
2.4 Sensitive file accessNo sensitive credential file access. Only 3. Data Upload / Exfiltration — noneFull-tree pattern search over
4. Review of New Commits (after 2026-10-29, 29 commits)Full diffs compared against network/exec/dlopen patterns: zero additions. Changes are Lua config fixes, keybind fixes, i18n, dmabuf, protocol fixes, and build cleanup. Item by item:
5. Risk Findings and Recommendations5.1 [HIGH] Dynamic permission framework disabled by default — directly enables silent keyboard/screen captureHyprland ships a built-in
However, Verification of the kan-linux Hyprland configuration in effect at audit time confirmed the option was not enabled. Impact: any Wayland client can, without user consent:
**Status **: implemented. The configuration now sets 5.2 [MEDIUM] Permission dialog fails open when missing
The current rootfs ships 5.3 [MEDIUM] Same-user full-capability IPC surface (including arbitrary code execution)
The threat model should be explicit:
To tighten further, consider disabling/filtering the 5.4 [LOW] A plugin equals keyboard-monitoring capability
5.5 [INFO] Miscellaneous
6. Residual Risks (not covered by this audit)
7. Methodology (reproducibility)
|
Hyprland 键盘监听 / 后门 / 数据外传 专项安全审计报告
结论摘要
主要风险不在 Hyprland 源码本身,而在部署配置:
1. 键盘监听排查1.1 合成器自身的键记录行为 —— 无
结论:合成器不是键盘记录器,也不泄漏按键到日志或 IPC。 1.2 设计内的按键转发面(非隐蔽,但为真实捕获通道)
补充:
1.3 输入法 / 文本输入路径 —— 干净zwp_input_method_v2 / text-input-v3 的 preedit、commit、surrounding text 仅在 IME 与焦点客户端之间中转( 1.4 全局热键协议 —— 反键盘记录设计vicinae-hotkey-v1( 2. 后门排查 —— 未发现已排除:隐蔽 exec、魔法字符串/环境变量/日期/主机名触发、base64/hex/XOR 混淆载荷(零命中)、凭据窃取( 2.1 外部命令执行点(全部为固定命令或设计功能)
日期检查( 2.2 动态加载
2.3 IPC 信任边界
2.4 敏感文件访问无敏感凭据文件访问。仅 3. 数据上传 / 外发排查 —— 无对
4. 新增提交复查(2026-10-29 之后,29 个提交)全量 diff 与网络/exec/dlopen 模式比对:零新增。改动为 Lua 配置修复、按键绑定修复、i18n、dmabuf、协议修复、构建清理。逐项确认:
5. 风险发现与建议5.1 【高】动态权限框架默认关闭 —— 直接导致键盘/屏幕可被静默捕获Hyprland 内建
但 经核查 kan-linux 现行 Hyprland 配置,该选项未启用。 影响:任何 Wayland 客户端可不经用户同意地:
建议:在 Hyprland 配置中启用 5.2 【中】权限弹窗缺失时 fail-open
当前 rootfs 已含 5.3 【中】IPC 同用户全能力面(含任意代码执行)
需明确威胁模型:
如需收紧,可考虑在发行版侧禁用/过滤 5.4 【低】插件即键盘监听能力
5.5 【信息】其他
6. 残余风险(本次未覆盖)
7. 复核方法(可复查性)
|
Uh oh!
There was an error while loading. Please reload this page.
Hyprland is a unique Wayland compositor. It is our featured Wayland compositor in Kan-Linux. As a fundamental daily-use graphics stack on Kan-Linux, we care deeply about its security. Here is the security audit (English and Chinese versions) of Hyprland for Kan-Linux.
All reactions