Cure53 Audit
Transaction signing & key lifecycle
A focused penetration test of the local signing path, IPC boundaries and the in-memory handling of decrypted key material across macOS, Windows and Linux builds.
Methodology
Findings & Fixes
Clipboard exposure of sensitive material
Under certain conditions, decrypted key material could remain in the system clipboard longer than expected after a copy operation.
Implemented automatic clipboard clearing after 30 seconds and added explicit memory zeroing of sensitive buffers.
Timing side-channel in signing path
The signing operation exhibited slight timing variations that could theoretically leak information about the private key.
Added constant-time comparison operations and randomized delays in the signing pipeline.
Debug symbols in release builds
Some debug symbols were not fully stripped from the release binaries, potentially exposing function names and internal structure.
Updated build pipeline to fully strip debug symbols and verify via CI check.
Insufficient input validation on QR scanning
The QR code parser did not strictly validate the format of scanned data before processing.
Added strict schema validation for all QR-scanned payloads with reject-on-unknown-field policy.
Temporary file permissions on Linux
Temporary files created during vault operations had slightly overly permissive permissions on Linux systems.
Set umask before file creation and explicitly set 0600 permissions on all temporary vault files.
Missing rate limiting on biometric retry
No explicit rate limiting was enforced on biometric authentication retries.
Added exponential backoff with a maximum of 5 attempts before requiring passphrase.
Logging level could expose file paths
Verbose logging mode could include local file paths in log output.
Sanitized all log output to exclude absolute paths and user directories.
Documentation gap on secure deletion
The documentation did not clearly explain that secure deletion requires OS-level support.
Updated documentation with clear guidance on secure deletion behavior per platform.
Update check lacks certificate pinning
The automatic update check did not pin the TLS certificate of the update server.
Implemented certificate pinning for the update endpoint with fallback to system trust store.