3 ms·
Open source in-browser log sanitizer, feedback required
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
- ET292768 3mo agoWhen will it be possible to test Logtotal?
- andriimb 3mo agofirst phase, sanitizer is already on GitHub, and will be rolled to the website tomorrow. Rollout will have a few phases, and once it is live there are no conditions to test, just visit the website and try it out. there's also a sample log file preloaded to see how engine works.
- toolali 3mo ago[flagged]
- vikramshwetabh2 3mo agoThe stable token part is interesting. It solves something that simple redaction doesn't, since you can still tell that the same value appeared in multiple logs. But I wonder if there's a trade-off here: repeated tokens also reveal that two events are related, even though the original value is hidden. For example, you could still see that the same user/email/customer appears many times. Do you see this being handled with different keys/scopes for different datasets or tenants, or is the assumption that correlation across the whole dataset is desirable?
- Securelytixdev 3mo ago[dead]