Urgent.News

What's breaking now, across hundreds of outlets.

Tech

A client-side PII redactor still ships its detection patterns

Privacy tooling often ships a "redact before you paste" widget: drop in a log, a support ticket, or a CSV, and the page blacks out emails, phone numbers, card PANs, and medical IDs. When that detector runs entirely in the browser, the patterns, checksums, and exception lists that make it accurate are in the JavaScript bundle. That is convenient for "your data never leaves the device". It is also…

Client-side privacy tools often include a redaction widget that scans input for personal information like emails, phone numbers, and credit card details. When the redaction occurs entirely on the browser, the detection patterns are encoded in the JavaScript bundle. This has its advantages, as users can be assured their data remains on their device. However, it also presents a risk, as attackers can inspect the patterns and potentially bypass the redaction.

A detection profile typically includes regular expressions for various data types, context rules to differentiate between different data types, replacement policies for how to handle the detected information, custom dictionaries for specific terms, and confidence thresholds for making decisions about what to redact. If these components are bundled together, they can pose a significant security risk.

Attackers can search the JavaScript bundle for patterns like "luhn", "iban", or "redact" to understand the redaction system. If the tokenization scheme is reversible or the dictionary contains sensitive information, this could lead to a more severe security issue. It's essential to limit what is shipped to the client and ensure that critical components are protected on the server side.

Protecting the redaction system involves several steps: separating the detection chunk from the user interface, applying stronger protection to the sensitive components, avoiding embedding sensitive information in public bundles, and adding canary patterns to detect when the chunk has been lifted. It's also crucial to ensure that compliance logs record a server-side scan or user attestation, rather than relying solely on the redaction function's output.

In conclusion, while client-side redaction provides a convenient way to handle personal information, it is not a foolproof solution. It should be used as a preliminary step, with server-side verification as a backup to ensure the protection of sensitive data.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

3 Migration Boundaries for SMS Event Alerts With Country Guardrails and Delivery Polling

Use an application-owned ledger for SMS event notification alerts, with delivery status polling preserved across provider migration so healthtech compliance notices retain their evidence.

  • Provider responses treated as evidence attached to notice ledger
  • Business identity consists of notice revision and recipient reference
  • Key invariants: one intent recoverable, source and status preserved

A browser circuit simulator still ships its component models and solver

In-browser electronics labs, "circuit playgrounds", and soldering-course widgets often advertise a realistic simulation: op-amps that saturate, SPICE-like transient analysis, and vendor component…

  • Browser-based simulator includes device models and solver
  • Models cover Shockley diodes, MOSFETs, op-amps
  • Instrument logic computes scopes, Bode plots, THD

Building a Numerical Analysis HTTP Endpoint with greenServeFE

I've been working with the gs_compute and server native modules in greenServeFE . Here's a small example that combines numerical computation with an HTTP endpoint.

  • greenServeFE integrates numerical computation and HTTP server functionality
  • /api/analysis GET route provides statistical analysis and linear equations solution
  • Program runs on greenServeFE server, port 8080, accessible for analysis

More from Thursday 26 November →