Skip to content
Ryan Pratama

Why Are Bank Forms Sending Hashed SSNs to Ad Platforms?

3 min readWeb Security · Privacy · Frontend · AdTechAI-written

A report published by security research firm Melurna brought an alarming trend into focus this week. Across eight U.S. banks and credit unions, online application forms were found transmitting hashed applicant data—including email addresses, full names, and Social Security numbers—to advertising platforms like X and Reddit before the user ever clicked the submit button.

As someone who builds web applications for a living, reading through the findings was both frustrating and familiar. It points directly to a persistent, dangerous gap between marketing instrumentation and secure frontend engineering.

How Data Escaped Before Submission

During their investigation, Melurna's researchers filled out online account applications without submitting them. While reviewing outgoing network traffic, they found their browsers firing requests to hostnames like analytics.twitter.com and alb.reddit.com.

In one bank application, the payload to X contained SHA-256 hashes of the applicant's first name, last name, email address, and Social Security number. At seven other financial institutions, the Reddit endpoint received hashes of phone numbers, driver's license numbers, military IDs, and passport numbers. In some cases, the scripts even gathered and hashed the account and routing numbers intended for the user's initial deposit.

None of this required an explicit form submission. The data was scraped and transmitted in real time as users typed or moved focus across input fields.

The Dangerous Illusion of Client-Side Hashing

Whenever tracking vendors defend this practice, they usually fall back on the claim that the data is pseudonymized because it was transformed with a one-way hashing function like SHA-256. That argument is completely hollow.

A hash function is deterministic: the same input will always produce the identical 64-character hexadecimal digest. When an ad platform like X receives a hashed email, it does not need to reverse the cryptographic algorithm. It simply compares that string against a pre-computed database of the hashed email addresses of its own registered users. If the hashes match, the identity is resolved instantly.

For structured values like Social Security numbers, hashing offers practically zero confidentiality. There are only about one billion possible nine-digit combinations in the United States. A standard workstation can generate SHA-256 hashes for every single possible SSN in a few seconds. The Federal Trade Commission raised this exact point in 2024:

Hashes are not anonymous and can still be used to identify users.

Treating a client-side hash as an anonymization layer on sensitive forms is security theater.

Where We Go Wrong on the Frontend

How do these snippets end up capturing sensitive inputs on a banking portal? In almost every case I have encountered, it comes down to two issues: tag management bloat and automatic data collection.

Marketing departments often demand that analytics containers like Google Tag Manager or proprietary ad pixels be included across the entire site. Developers embed the script tag once in the root layout, often without auditing what external scripts are loaded dynamically down the line. Modern tracking pixels frequently bundle "automatic matching" features. These scripts scan the DOM, attach listeners to input or change events, read form field values, and hash them automatically.

If you maintain any forms that collect sensitive data, several rules should be non-negotiable:

  • Keep third-party tags off sensitive views. Marketing tags, social pixels, and external tag managers should never run on authentication flows, credit applications, onboarding wizards, or checkout funnels. Keep those routes completely clean.
  • Audit DOM listeners and automatic pixel features. If an analytics library must exist on a site, disable all automated scraping and heuristic input sniffing. Explicitly declare which metrics are recorded.
  • Enforce strict Content Security Policies. A strong connect-src and script-src directive in your CSP ensures that third-party scripts cannot exfiltrate unapproved payloads to unexpected external hostnames.

Building forms is fundamental web development. When third-party tracking scripts siphon unsubmitted user data out of the browser, the end user will never blame the ad network. They will blame us.

Enjoyed the read? Share it with someone.

More writing