cd /news/developer-tools/open-source-in-browser-log-sanitizer… · home topics developer-tools article
[ARTICLE · art-111507] src=news.ycombinator.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Open source in-browser log sanitizer, feedback required

SOC Prime released LogTotal Sanitizer, an open-source, framework-agnostic log sanitizer that runs in browsers and Node.js, designed to redact secrets, identifiers, and PII from logs before they are sent to third-party platforms. The tool replaces sensitive values with stable HMAC-SHA-256 tokens (truncated to 16 hex chars) and is based on SOC Prime's dataset of over 1 million detection rules. It is integrated into LogTotal and can be deployed in air-gapped environments, with no runtime dependencies, under Apache 2.0.

read2 min views1 publishedAug 26, 2026

Just released a framework-agnostic log sanitizer working in browsers and Node.js. It's designed to sanitize log files before they are sent to third-party platforms for processing, analysis, or troubleshooting. Use Case? thing HuggingFace breach, would you feed any AI your usernames, passwords, PII, configs etc?

The sanitizer redacts secrets, identifiers, and PII and replaces each value with a stable HMAC token to reduce the risk of accidentally exposing sensitive or confidential information contained in logs.

This library is already integrated into LogTotal and runs directly in the browser, allowing logs to be sanitized locally before they leave the user's environment.

If you require a fully controlled and isolated data sanitization environment, you can deploy and run this library within your own infrastructure. The sanitizer can also be installed and used in air-gapped environments, ensuring that sensitive log data remains within an environment you fully control. The library has no runtime dependencies. The same compiled rules run in a browser tab and in a Node.js CLI. Complete instructions how to install it are on git.

Tokens are HMAC-SHA-256 of ruleId || 0x00 || original, truncated to 16 hex chars. Same key + same value + same rule ⇒ same token. A different key produces different tokens. Generated keys use encoding hex; pasted keys default to utf8.

How do we know what to sanitise? This is based on SOC Prime dataset of over 1 million detection rules.

Does it solve log sanitation 100%? No, there are edge cases, and hence I ask for your feedback here.

Tool is open source under Apache 2.0. and will remain so.

I've spent over 20 years dealing with SIEM, log management, data lakes and now data pipelines and was amazed there is no such tool out there. So we made one and would appreciate any feedback!

This is a first step towards a larger community free service, logtotal.

open source in-browser log sanitizer, feedback required

https://github.com/socprime/logtotal-sanitizer

Comments URL: [https://news.ycombinator.com/item?id=49445741](https://news.ycombinator.com/item?id=49445741)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @soc prime 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/open-source-in-brows…] indexed:0 read:2min 2026-08-26 ·