All audits

Cure53 Audit

Transaction signing & key lifecycle

March 2025 a91f3c2 All issues fixed

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

1 White-box penetration testing of the desktop application
2 Static analysis of the signing module and IPC bridge
3 Dynamic analysis of memory handling during key operations
4 Cross-platform testing on macOS, Windows and Linux

Findings & Fixes

Medium

Clipboard exposure of sensitive material

Under certain conditions, decrypted key material could remain in the system clipboard longer than expected after a copy operation.

Fix applied

Implemented automatic clipboard clearing after 30 seconds and added explicit memory zeroing of sensitive buffers.

Medium

Timing side-channel in signing path

The signing operation exhibited slight timing variations that could theoretically leak information about the private key.

Fix applied

Added constant-time comparison operations and randomized delays in the signing pipeline.

Low

Debug symbols in release builds

Some debug symbols were not fully stripped from the release binaries, potentially exposing function names and internal structure.

Fix applied

Updated build pipeline to fully strip debug symbols and verify via CI check.

Low

Insufficient input validation on QR scanning

The QR code parser did not strictly validate the format of scanned data before processing.

Fix applied

Added strict schema validation for all QR-scanned payloads with reject-on-unknown-field policy.

Low

Temporary file permissions on Linux

Temporary files created during vault operations had slightly overly permissive permissions on Linux systems.

Fix applied

Set umask before file creation and explicitly set 0600 permissions on all temporary vault files.

Info

Missing rate limiting on biometric retry

No explicit rate limiting was enforced on biometric authentication retries.

Fix applied

Added exponential backoff with a maximum of 5 attempts before requiring passphrase.

Info

Logging level could expose file paths

Verbose logging mode could include local file paths in log output.

Fix applied

Sanitized all log output to exclude absolute paths and user directories.

Info

Documentation gap on secure deletion

The documentation did not clearly explain that secure deletion requires OS-level support.

Fix applied

Updated documentation with clear guidance on secure deletion behavior per platform.

Info

Update check lacks certificate pinning

The automatic update check did not pin the TLS certificate of the update server.

Fix applied

Implemented certificate pinning for the update endpoint with fallback to system trust store.

Conclusion

Two medium findings around clipboard exposure were remediated by clearing sensitive buffers on a timer.
No path was found by which a private key could be exfiltrated over the network.
All findings closed and re-tested against the resolving commit.