Repository navigation
Releases
Releases · RyouDYFZ/RecognizeMe
v1.1.0
Installation & Signing Notice (Ad-hoc Signed)
This release is ad-hoc signed (not yet signed or notarized with an Apple Developer ID).
- If macOS Gatekeeper blocks the installer, open System Settings > Privacy & Security and click Open Anyway (or right-click the
.pkgand choose Open). - Upgrading between ad-hoc signed builds changes the code-signing identity, so you will need to re-grant Camera and Accessibility permissions in System Settings > Privacy & Security (and allow Keychain access if prompted).
- Sparkle 2 update infrastructure is included in this build, but automatic in-app upgrades will only become active once Developer ID signed releases are published; please update manually via
.pkgfor now. - As for notarized one, it should be available soon.
What's New
On-Device Neural Anti-Spoofing (PAD)
- Integrated the bundled CoreML
AntiSpoofLiveness(v1.0.0) presentation-attack detection model alongside multi-frame temporal consistency and static-frame replay checks. - Uses unaligned
384x384Rec.601 grayscale expanded crops (2.00x, upward offset-0.15, minimum face width60 px) and evaluates quorum-window medianlog_cosineagainst the manifest threshold (0.5300). - Strictly fail-closed: missing or failing model inference never degrades to a heuristic pass and records zero-image diagnostics to
anti-spoof-audit.jsonl. - Added build-time SHA-256 model integrity verification and exposed the bundled anti-spoofing model version and repository link in System Settings > RecognizeMe.
Delay Unlock After Locking Screen
- Enabled Delay unlock after locking screen by default to prevent macOS from unlocking right back when you manually lock while seated in front of the camera.
- Stays locked until you either step away (no face detected continuously for
1.5 s) and return, or press any key / click the mouse to signal unlock intent. - Waking from system/display sleep or dismissing the screen saver unlocks immediately without waiting; can be toggled anytime in System Settings > RecognizeMe.
Optional Touch ID / Password Reauthentication Timeout
- Added Require Touch ID or password after (
Off,15/30/45minutes,1hour, or4hours; defaultOff) in System Settings > RecognizeMe. - Only manual Touch ID or password unlocks (including login/reboot or re-verifying password in Setup) reset the timer; face unlocks never reset it.
- When elapsed (or on significant system clock rollback), face unlock pauses silently without turning on the camera and displays the fingerprint indicator on the lock-screen notch until manual authentication.
Rebuilt Lock-Screen Notch Island Choreography
- Rebuilt the lock-screen notch animation engine on
CADisplayLinkwith startup offscreen prewarming (eliminating cold-start delay), smooth three-stage lock/unlock choreography, velocity-continuous interruption handling, and instant terminal rendering on wake while locked. - Switched to native WindowServer window shadows on the primary panel and synchronized wing icon tracking during pill expansion and retraction.
- Added a persistent Touch ID fingerprint-only lock-screen state when face unlock is locked out, timed out, or unavailable, keeping the lock pill cleanly visible on the notch.
Sparkle 2 Updater Integration (Prepared for Future Signed Releases)
- Integrated Sparkle 2 (
2.10.1) with HTTPS + EdDSA signed-feed verification (SURequireSignedFeed), lock-screen check deferral,update-audit.jsonllogging (system profiling disabled), and a Check for Updates… button in System Settings > RecognizeMe. - Added release packaging support for Developer ID signing, notarization, and EdDSA-signed
appcast.xmlgeneration for upcoming signed releases.
System Settings & Localization
- Expanded Failed attempts before lockout options from fixed presets to
1–10. - Updated all 40 supported localizations for new security, update, and password-confirmation UI strings.
Security Hardening
- Hardened lock-screen session monitoring against spoofed distributed notifications by anchoring lock/screensaver state strictly to WindowServer ground truth and SIP-protected ScreenSaver processes.
- Restricted both enrollment and lock-screen capture to physical built-in Mac or Apple display cameras via CoreMediaIO plug-in verification, rejecting virtual cameras and Continuity Camera.
- Added SEP-backed Data Protection Keychain support (with automatic fallback to local login Keychain on unprofiled/ad-hoc builds) and
memset_sscrubbing of readableCFDatabuffers. - Hardened private file I/O with strict
0700directory verification andO_CREAT | O_EXCL | O_NOFOLLOW0600atomic temp-file writes, eliminating transient permission exposure. - Hardened installer
preinstalland uninstaller scripts so elevated operations never traverse user$HOMEpaths, scope process termination to the active user, and purge Keychain items even when the background agent is not running. - Enabled macOS Enhanced Security entitlements and hardened compiler/analyzer flags; gated all debug environment overrides to
#if DEBUG.
Bug Fixes & Reliability
- Added cold-start ISP auto-exposure and white-balance warm-up (
0.75 s–1.10 s) inLockScreenCameraFeedso initial dark/unsettled frames do not trigger false anti-spoof rejections. - Updated password injection to safely clear a single character from a key-triggered unlock or isolated wake tap while still yielding immediately on continued manual typing.
- Kept the lock-screen notch closed until macOS actually finishes unlocking into the desktop, and fixed display/system sleep-wake and screensaver transition races.
- Fixed System Settings > RecognizeMe top clipping on initial load by measuring grouped
Formheight synchronously offscreen and enabling inner scrolling only as a dynamic overflow fallback. - Added a confirm-password fallback in First-Launch Setup when OpenDirectory verification is unavailable.
- Improved enrollment stability: roll-invariant eye aspect ratio (EAR), fail-closed handling when landmarks or capture quality are missing, expanded downward pitch range (
southup to35°),15 ssave watchdog with Escape cancel, and built-in display preference. - Fixed SkyLight CGS space bridge signatures, added
flocksynchronization and boot-time / PID-reuse protection to the space ledger, and waited briefly for departing app instances during restart. - Automatically resumes paused template evolution if the user lowers the drift floor in Settings, and backs off Ambient Light Sensor re-probing to
60 son Macs without ALS hardware.
安装的 Ad-hoc 签名说明
本版本仍采用 Ad-hoc 签名。
- 如果 macOS 提示无法验证开发者,请在 系统设置 > 隐私与安全性 中点击 仍要打开(或右键
.pkg选择 打开)。 - 从旧版 Ad-hoc 版本升级时,代码签名身份会发生变化,安装后需在 系统设置 > 隐私与安全性 中重新授予 摄像头 与 辅助功能 权限(如弹出钥匙串授权提示,请点击允许)。
- 本版本已内置 Sparkle 2 更新框架,但应用内自动更新需等待后续 Developer ID 正式签名版才可无缝生效;当前仍请通过
.pkg手动下载安装更新。 - 至于正式版签名,下个版本一起端上来吧。
新功能
本地 CoreML 神经网络活体防伪(PAD)
- 随包附带 CoreML 活体防伪模型
AntiSpoofLiveness(v1.0.0),与多帧时序一致性及静态重复帧检测共同生效。 - 严格采用非对齐
384x384Rec.601 灰度扩展裁图(2.00x、上移-0.15、最小人脸宽度60 px),按仲裁窗口中位数median(log_cosine) >= 0.5300(从manifest.json读取)判定真伪。 - 全程严格 Fail-Closed:模型缺失或推理异常绝不降级放行,并记录无图像、无敏感信息的审计日志至
anti-spoof-audit.jsonl。 - 新增构建期 SHA-256 模型完整性校验,并在 系统设置 > RecognizeMe 中展示活体模型版本号与模型仓库链接。
锁屏后延迟解锁
- 默认开启 锁屏后延迟解锁,解决坐在电脑前手动锁屏后立刻被摄像头重新解锁的问题。
- 手动锁屏后保持锁定,直到你先离开画面(连续无人脸
>= 1.5 s)再返回,或按任意键 / 点击鼠标主动示意解锁。 - 从睡眠唤醒或退出屏保进入锁屏时仍直接识别解锁;可在 系统设置 > RecognizeMe 中随时开关。
触控 ID / 密码定期重新认证超时
- 在 系统设置 > RecognizeMe 新增 触控 ID 或密码重新认证超时(
关闭、15/30/45分钟、1小时、4小时,默认关闭)。 - 仅手动通过触控 ID 或登录密码解锁(含开机 / 重新登录或在配置中验证保存密码)会重置计时,面容解锁不会重置。
- 超时或检测到系统时钟异常大幅回拨后,锁屏刘海静默切换为仅指纹提示且不开启摄像头,直至再次手动验证。
锁屏刘海动效重构
- 基于
CADisplayLink重构锁屏刘海动效引擎:新增启动期离屏预热(消除首次锁屏冷启动延迟)、三阶段锁屏/解锁编排、打断连续过渡与唤醒即终态渲染。 - 主面板改用原生 WindowServer 窗口阴影,两侧图标随刘海伸缩平滑跟随。
- 当触发失败上限、超时锁定或面容不可用时,保留刘海锁屏胶囊并将右侧平滑切换为常驻 Touch ID 指纹图标。
Sparkle 2 更新框架接入(面向后续正式签名版)
- 集成 Sparkle 2(
2.10.1),支持 HTTPS + EdDSA 签名源校验(SURequireSignedFeed)、锁屏自动避让、update-audit.jsonl审计日志(禁用系统画像上报),并在 系统设置 > RecognizeMe 底部新增 检查更新… 按钮。 - 打包脚本新增 Developer ID 签名、公证及 EdDSA 签名
appcast.xml生成支持,为后续正式签名版做好准备。
系统设置与多语言更新
- 连续识别失败上限 扩展为支持
1–10次任意选择。 - 同步补全全部 40 种语言的文案更新。
安全加固
- 锁屏与屏保状态监测严格以 WindowServer 与系统屏保进程为真值,拦截非特权进程伪造的分布式锁屏通知。
- 录入与锁屏均通过 CoreMediaIO 校验物理摄像头驱动,仅允许 Mac / Apple 显示器内置摄像头,拒绝虚拟摄像头与连续互通相机。
- 新增安全隔区保护的 Data Protection 钥匙串支持(Ad-hoc / 无描述文件构建自动回退至本机登录钥匙串),并在读取后使用
memset_s清零可写CFData内存。 - 私密文件写入强化为
0700目录校验与O_CREAT | O_EXCL | O_NOFOLLOW0600原子替换,消除瞬时权限暴露窗口。 - 加固安装脚本
preinstall与卸载流程:提权阶段不再操作用户$HOME路径、进程终止限定到当前用户,且后台未运行时卸载也能彻底清除所有钥匙串条目。 - 启用 macOS Enhanced Security 权限与更严格的编译安全检查;所有调试环境变量覆盖仅在 Debug 构建生效。
问题修复与优化
- 新增锁屏摄像头冷启动 ISP 曝光/白平衡预热(
0.75 s–1.10 s),避免初始暗帧/未收敛画面导致活体防伪误拒。 - 优化密码注入逻辑:自动清除单次解锁按键或唤醒轻触可能带入的单个字符,同时一旦检测到持续手动打字仍立即避让。
- 密码提交后保持锁屏胶囊处于锁定态,直到 macOS 真正解锁进入桌面再播放开锁动效与音效;修复休眠锁屏与唤醒通知乱序竞态。
- 修复 系统设置 > RecognizeMe 首次打开时因高度变化导致的顶部裁切问题(改为离屏同步测量真实高度,内容动态溢出时自动开启内滚兜底)。
- 修复首次配置中 OpenDirectory 校验不可用时的密码保存流程,新增二次输入确认兜底。
- 改进人脸录入稳定性:改用抗头部滚转倾斜的眼睛纵横比(EAR)算法、关键点与质量缺失严格 Fail-Closed、放宽低头俯仰角上限至
35°、保存阶段保留Esc退出并增加15 s看门狗、优先锚定内置摄像头屏幕。 - 修复
SkyLightSpaceBridge私有 CGS 签名并加固 Space 账本(flock并发锁、重启前陈旧记录清理、PID 复用校验与旧实例退出等待);无环境光传感器的 Mac 上将 ALS 重探测降至每60 s一次。 - 在系统设置中调低模板进化漂移下限时,自动恢复此前因较高下限停滞的进化状态。
Changelog by Gemini.
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Full Changelog: https://github.com/RyouDYFZ/RecognizeMe/commits/v1.0.0