Zero-Knowledge & Local-Only

Security By Architecture.
Audit It Yourself.

Your passwords never leave your Mac. The USB key stores 0 credentials. The app has 0 network access. Everything is open, transparent, and independently auditable in seconds.

01 / PILLAR

0 Bytes Passwords on Dongle

The ESP32-S3 chip on your desk never stores your password. It only holds a paired 32-byte host identifier. If someone steals your TouchPass, they get an empty USB key that cannot unlock anything without your living finger and paired computer.

Zero-Knowledge Hardware
02 / PILLAR

No Cloud. No Network. Air-Gapped.

TouchPass does not use internet servers. The native macOS app runs in Apple's strict App Sandbox with network permissions completely disabled. Zero telemetry, zero analytics tracking, and zero remote databases.

Zero Outbound Sockets
03 / PILLAR

Biometrics Stay On-Chip

The ZW101 optical biometric sensor scans and verifies your fingerprint entirely within its internal secure DSP. Raw fingerprint images are never transmitted over the USB cable or sent to your computer.

Hardware Match 1:N
04 / PILLAR

RAM Wiped in 15 Milliseconds

When you touch the sensor, the password is decrypted in your Mac's RAM only long enough to inject the keyboard keystrokes. Once finished, volatile pointers overwrite the memory with zeroes immediately.

Compiler-Proof secure_wipe

Real-World Threat Scenarios

What actually happens when things go wrong? Compare how TouchPass protects you against realistic security events.

Attack Scenario Cloud Password App Standard Hardware Key TouchPass Solution
Dongle Stolen from Desk N/A (No hardware) Anyone who touches the button can log into your accounts Useless without your living finger & paired Mac
Cloud Vault Data Breach Vault hashes exposed to offline cracking No cloud database Zero cloud servers. 100% offline Keychain.
USB Wire Eavesdropping N/A Plain FIDO2 challenges Encrypted with ephemeral AES-256-CTR & Nonce
Replay Attack on Wire N/A Protected by FIDO counter Stale packets rejected. 128-bit hardware nonces expire in 6s.
AI-Assisted Zero-Friction Audit

Let Your AI Agent Audit TouchPass In Seconds

Don't want to run manual bash scripts? Hand the audit over to your favorite AI coding assistant. Copy the prompt below into Cursor Composer, Claude Code, Antigravity, ChatGPT / Codex, or OpenCode, and let it autonomously inspect the repository and produce an independent verdict.

You are an adversarial Senior Information Security Auditor & Cryptographic Specialist. 
Your mission is to perform a rigorous, zero-bias, independent security audit of the TouchPass repository currently open in this workspace (or cloned from https://github.com/tody-agent/TouchPass).

Do NOT accept marketing claims. You must verify every claim by inspecting source code, configuration files, and executing local verification scripts.

AUDIT CHECKLIST:
1. [ZERO NETWORK & ZERO TELEMETRY]:
   - Search macOS codebase (software/macos-native/Sources/) for network APIs (URLSession, NWConnection, CFSocket, Alamofire, Starscream) and analytics SDKs (Firebase, Sentry, Mixpanel, Segment).
   - Inspect software/macos-native/TouchPass.entitlements to verify Apple App Sandbox strictly blocks network.client and network.server.
2. [ZERO-PERSISTENCE ON FLASH]:
   - Inspect firmware/touchpass/main/touch_pin_hid.c, slot_role.c, and device_config.c.
   - Confirm passwords are NEVER stored in NVS flash memory.
3. [ON-CHIP BIOMETRICS]:
   - Confirm optical fingerprint 1:N matching happens entirely on-chip within ZW101 sensor DSP. Raw fingerprint images never cross USB bus.
4. [EPHEMERAL CRYPTO & RAM ZEROIZATION]:
   - Inspect Wire Protocol: HMAC-SHA256 framing, 128-bit rolling hardware nonces, ephemeral AES-256-CTR session keys. Verify anti-replay rejection.
   - Verify compiler-optimization-resistant secure_wipe with volatile pointers (volatile uint8_t *) overwriting RAM immediately after keystrokes.
5. [EXECUTE TESTS]:
   - Run: python3 scripts/security_audit_verify.py
   - Run: python3 run_test_gate.py

DELIVERABLE: Produce an Independent Security Audit Verdict Report with Overall Grade (A+ to F), checklist breakdown, and enterprise recommendation.

Test 1: Zero Network Sockets Verification

Prove that TouchPass.app operates completely offline and never opens an inbound or outbound network socket.

30 SECONDS
Terminal — zsh
$ lsof -i -P -n | grep -i TouchPass # Expected Result: Completely EMPTY (0 open sockets) ✔ AUDIT PASSED: TouchPass has zero open TCP/UDP sockets.

Test 2: USB Cable Wire Sniffing Audit

Inspect the live serial stream over USB CDC to confirm your password is never transmitted in plaintext across the cable.

1 MINUTE
Terminal — zsh
$ screen /dev/cu.usbmodemTouchPass1 115200 # Touch your finger to trigger a login EV a1b2c3d4e5f6... 1 2 85 27dd4c... # Plaintext password is NEVER present on wire. Only HMAC and ephemeral AES ciphertext. ✔ AUDIT PASSED: Zero plaintext credentials transmitted.

Test 3: Microcontroller Flash Memory Dump

Set a canary password, dump the entire 4MB SPI flash memory of the ESP32-S3 chip, and search for plaintext strings.

2 MINUTES
Terminal — zsh
$ esptool.py --port /dev/cu.usbmodemTouchPass1 read_flash 0 0x400000 flash_dump.bin $ strings flash_dump.bin | grep "MySecretCanaryPassword123" # Expected Result: 0 matches ✔ AUDIT PASSED: Plaintext passwords are NEVER stored in hardware flash.

Test 4: Bluetooth LE Wireless Sniffing & Anti-Spoofing Audit

Capture Bluetooth Low Energy GATT packets over the air to confirm zero plaintext passwords and verify the 0x38 Challenge-Response authentication.

45 SECONDS
Terminal — zsh
$ packetlogger / btmon # Monitor BLE GATT Notification on Event Char 76a1660d-... ATT_HANDLE_VALUE_NTF: EV 9e2f... 1 2 92 84ab... (HMAC-SHA256 Token) # Reconnection Challenge 0x38 Handshake: 8-byte HMAC verified ✔ AUDIT PASSED: Zero plaintext passwords on Bluetooth radio. Spoofing strictly blocked.

Run The 1-Click Automated Security Gate

We bundled all 4 audit pillars into a standalone, zero-dependency Python script you can run directly from the repo.

Terminal — Automated Verification Gate
$ python3 scripts/security_audit_verify.py ✔ [PASS] 1. Zero-Telemetry & Zero Network Sockets ✔ [PASS] 2. Volatile Memory Zeroization & Anti-RAM-Scraping ✔ [PASS] 3. Cryptographic Wire Protocol & Anti-Replay Verification ✔ [PASS] 4. Biometric On-Chip Isolation & Flash Zero-Store Proof 🎉 ALL 4 SECURITY AUDIT PILLARS PASSED WITH 100% COMPLIANCE!

Frequently Asked Security Questions

Does TouchPass send my passwords to any external server?
Never. TouchPass does not operate any cloud database, user account portal, or telemetry servers. All credentials remain encrypted in your Mac’s local Apple Keychain and are retrieved only when your physical finger matches on the sensor.
Can someone desolder the chip to read my passwords?
No. The microcontroller flash memory does not store your passwords, password hashes, or master secrets. Even if an attacker reads every byte of the flash memory, they only find the firmware binary and slot configurations.
Can malware on my Mac inject fake keystrokes through TouchPass?
No. The firmware only types passwords into the focused window after an optical fingerprint match has been physically verified by the hardware sensor. Malware cannot fake physical presence on the optical glass.

Experience Real Biometric Peace of Mind

Stop typing long passwords and sudo prompts. Keep your credentials anchored to your desk, fully encrypted and 100% offline.