Engineer Details Six Weeks Spent Training and Testing Signature Redaction Models for Closed-Loop Document Anonymization
A developer working on automated document sanitization spent six weeks attempting to reliably locate and redact handwritten signatures inside PDFs that must leave a closed network. The goal was to remove surnames, telephone numbers, addresses and signatures while preserving document usability, all on a single air-gapped workstation equipped with one consumer GPU.
Documents arrive in two forms. Text-layer PDFs allow direct removal of recognized words. Scanned pages require the system to detect text via Tesseract, then draw black rectangles over the corresponding image regions. Four parallel detection methods—dictionary lookup, regular expressions, natasha NER and an ink gate—successfully handled printed names but found zero signatures because signatures contain no machine-readable text.
Initial experiments with a color-saturation gate worked on blue-ink signatures yet failed completely on black-ink signatures and on any grayscale scan. An alternative heuristic that painted any dark region ignored by OCR erased entire table columns when text was printed in small fonts, violating the rule that only recognized text may be redacted.
Three off-the-shelf object detectors were benchmarked on 1,254 pages. YOLOS produced excessive false positives on engineering drawings and was discarded. A seal detector returned high-confidence false positives on documents containing no seals. A custom YOLO11s model trained on 600 synthetically augmented signature images plus 40 real pages reached 88 % coverage on isolated strokes but dropped sharply when adjacent signatures merged into large blobs.
Two rotation-related bugs repeatedly caused missed redactions. PDF /Rotate attributes produced coordinate mismatches between detection and drawing layers. Pages scanned sideways defeated Tesseract’s orientation detection when run with --psm 0, leaving the entire page unprocessed until OSD was re-enabled for low-confidence cases.
After switching the vision model from proactive detection to post-redaction verification, expensive GPU calls fell from roughly 50 pages per batch to 18. On the final corpus of 492 pages only 3.7 % of documents required the vision stage, all of them empty forms with vertical table headers.
Image-preprocessing tests showed that the classical OpenCV pipeline (deskew, illumination normalization, denoising, 2× upscaling) raised OCR to 92/103 pages while RealESRGAN reduced the same metric to 76/103 and increased runtime dramatically. Preprocessing is therefore applied only when the first-pass score falls below 70.
Comparison of twelve OCR engines on a two-page test document revealed that PaddleOCR detection combined with Tesseract recognition produced 16 correctly grouped name cells in 3.7 seconds. Full replacement by any single vision-language model either missed names entirely or required 12–20 seconds per page.
Redaction implementation errors were discovered only after the author added a verification step that extracts text from beneath every black rectangle. Using PyMuPDF draw_rect left recoverable text; switching to apply_redactions eliminated all leaks across 3,029 redactions in production files. White rectangles drawn for stamps and signatures occasionally overwrote already-redacted black areas, reopening rows of names—an issue caught only by the same under-rectangle text check.
The final pipeline therefore combines rule-based text removal, a lightweight YOLO signature detector, selective classical preprocessing, Tesseract augmented by PaddleOCR cell detection, and mandatory post-redaction text verification, achieving reliable signature removal inside the required closed environment.
Related articles
Russian ISP MTS Blocks TLS Data Transfers to Foreign Hosts After 16KB
A new network filtering mechanism has been detected on MTS network AS30881 that interrupts TLS connections to overseas hosting providers once roughly 16,384 bytes of application data have been received. The interference allows the TCP handshake and TLS handshake to complete normally, after which the connection simply stalls without RST or FIN packets. Red Atlas researchers confirmed the behavior on all tested addresses belonging to Hetzner, Vultr, DigitalOcean, Contabo and OVH when accessed through this specific network. The same test produced no interruptions from other Russian mobile and datacenter networks including MTS AS48176, MegaFon and Timeweb. The effect matches earlier observations reported by Cloudflare in June 2025 and appears to be implemented via deep packet inspection that drops or ignores subsequent packets after a volume threshold. A lightweight Python probe using oversized ClientHello messages with padding extension has been released to allow independent verification of the filtering boundary.
Replacing Names with [PERSON_1] Before Sending Contracts to External LLMs: Does This Qualify as Anonymization Under Russian Law?
Russian organizations frequently need to analyze multi-page contracts containing personal data such as full names, passport details, INN, and phone numbers using external large language models. Simply replacing names with placeholders like [PERSON_1] may not meet the legal threshold for anonymization if the remaining context still allows identification of individuals. Roskomnadzor Order No. 140, effective since September 1 2025, outlines specific methods including identifier introduction, semantic modification, decomposition, shuffling, and array transformation that must be evaluated together. Companies must assess whether the processed query alone or combined with other data available to the provider could lead to re-identification. The correspondence table linking labels to original values must remain strictly inside the organization and separate from the processed data. Additional checks are required for repeated mentions in appendices, job titles, company names, exact amounts, and dates that could link back to public procurement records or court cases.
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.
Biometrics in Flutter: Why local_auth Alone Fails to Protect Secrets
Using local_auth in Flutter allows quick biometric login but does not automatically secure stored tokens such as refresh tokens. The package only returns an authentication result and leaves token storage unprotected unless combined with platform-specific secure mechanisms. On iOS, developers must configure Keychain access controls with flags like biometryCurrentSet to bind access to the current biometric set. On Android, proper protection requires storing ciphertext in app storage while keeping the encryption key in Android Keystore and linking BiometricPrompt with a CryptoObject. The flutter_secure_storage package can enforce biometric checks via AndroidOptions and IOSOptions, yet default settings do not require authentication. When biometric enrollment changes or verification is canceled, applications must fall back to full re-authentication rather than relying on cached results.