Biometrics in Flutter: Why local_auth Alone Fails to Protect Secrets
Biometrics in Flutter: why local_auth is still not secret protection.
Adding biometric login to a Flutter application can be done in just a few lines of code. Developers call LocalAuthentication().authenticate(), wait for the system prompt, and open the private section on success. The user touches the sensor and the flow appears to work. However, the refresh token stored on the device remains unprotected: if it could be read from a file before the check, it can still be read afterward.
In one Amiga project the team uses biometrics for fast login and falls back to an application PIN when biometrics are unavailable. If both methods fail, the user must log out and complete full server authentication again. The article explains how to bind biometric verification to refresh-token access on iOS and Android and how to handle cancellation and return from background.
Why local_auth by itself is insufficient
The authenticate() call only controls screen navigation. It does not change how the token is stored. Reading the token file is still gated only by Dart logic; bypassing that condition removes any system-level check. True protection requires linking authentication to the cryptographic operation itself, either through Keychain access controls on iOS or through BiometricPrompt with a CryptoObject on Android.
Choosing a storage approach
Two main paths exist: adopt the ready-made flutter_secure_storage package or implement native code via platform channels. The package supports AndroidOptions.biometric(enforceBiometrics: true) starting with Android 9 and IOSOptions with accessControlFlags such as biometryCurrentSet. When these options are insufficient, native implementations allow precise control over SecAccessControl on iOS and KeyGenParameterSpec with setUserAuthenticationRequired(true) on Android.
Platform-specific configuration
On iOS the token is placed directly in Keychain with kSecAttrAccessControl set to biometryCurrentSet and kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly. Any change to the enrolled biometric set invalidates the item. On Android the AES key is generated inside Android Keystore using GCM mode; the key never leaves the secure hardware and every decryption requires a fresh biometric check through BiometricPrompt.
Handling cancellation and errors
The LocalUnlockService example demonstrates proper state handling. It checks canCheckBiometrics and isDeviceSupported, then maps LocalAuthException codes to results such as canceled, notConfigured, or locked. When biometrics become unavailable after enrollment changes, the application must force a full re-login instead of attempting to reuse the now-inaccessible token.
Related articles
Hisense Smart TVs Transmit Viewing Data Fingerprints to Nexxen Every 2.7 Seconds
Hisense smart televisions have been found sending detailed viewing information to the advertising company Nexxen at intervals of just 2.7 seconds. The devices generate 72-bit digital audio fingerprints from content being played, including material delivered through HDMI connections, and forward these fingerprints along with unique device identifiers to servers operated by the Israeli firm Nexxen. This Automatic Content Recognition mechanism allows the company to identify specific movies, television programs, and advertisements watched by users without transmitting full audio recordings. The data collection activates automatically during the initial setup of the television and supports the creation of detailed user profiles for personalized advertising. Owners can disable the feature through the menu path Settings > System > Advanced Settings by turning off the option labeled Agree to Enhanced Viewing Service. Comparable tracking practices were previously identified in televisions manufactured by LG. Manufacturers of smart TVs often rely on such advertising revenue streams to offset thin profit margins on hardware sales.
Hisense TV Owner Decrypts Advertising Traffic Revealing Continuous Audio Fingerprinting to Nexxen
A Hisense television owner has successfully decrypted the device's outbound advertising traffic, uncovering systematic surveillance practices. The smart TV transmits audio fingerprints of on-screen content to the advertising company Nexxen approximately every 2.7 seconds. This data collection occurs regardless of the content source, including HDMI-connected devices. The discovery follows similar reports involving LG televisions, indicating a broader industry pattern of smart TV telemetry. Audio fingerprinting enables detailed tracking of viewing habits without requiring direct access to video streams. The findings highlight ongoing privacy concerns with consumer electronics that maintain persistent network connections to third-party advertising platforms.
OpenAI Codex Desktop Leaks Up to 1 MB Git Diffs Bypassing Analytics Opt-Out
Reverse engineering of OpenAI Codex on Windows and macOS revealed multiple privacy and telemetry issues. The client sends raw unified git diffs up to 1 MB in size to analytics endpoints even when users disable analytics and training. Reasoning output is hard-capped at exactly 516 tokens on flagship models, with the limit enforced server-side and confirmed via encrypted content length correlation. The application collects unhashed Windows BIOS serial numbers and UserAssist registry data while scrubbing the same information from local logs. No secure_delete pragma is used in any SQLite database, and microphone recordings remain unencrypted. Remote Statsig flags can override local analytics settings and model routing without user notification.
Yandex Browser Removes Anonymity References from License Agreement, Acknowledging Extensive Data Collection
Yandex has quietly updated its browser license agreement by removing all mentions of anonymity and depersonalization. The company claims the changes are purely technical and do not increase data collection. However, the revised text now explicitly classifies browsing history, IP addresses, hardware details, and interaction data as potentially personal information. The agreement also grants Yandex broad rights to access users' phone contacts for voice calling features powered by Alice. Responsibility for obtaining consent from all contacts is placed on the user. No obligation exists for Yandex to delete previously collected data after synchronization is disabled. The update highlights how browser telemetry can build detailed social graphs without traditional identifiers.