Repository

AndrewAndrewsen/secmask

SecMask

2stars

Open github.com

AndrewAndrewsen/secmask

SecMask

A 66M parameter DistilBERT model for detecting secrets (credentials, tokens, keys, passwords) in source code, outputting character spans for masking. Designed to complement rule-based scanners.

Visit project

Show me a random project

First shared
Sep 2, 2026
HN activity
21

Show HN@AndrewAndrewsenSep 2, 2026

Show HN: SecMask – a 66M parameter model for finding secrets in source code

I started this project just to learn how to train and fine-tune models. I published my first version distilbert-secret-masker which currently averages 228 downloads per month. Some security company used it in a advertisement benchmark for their product, which it got the lowest score, but they called it one of the "five leading open-source scanners". So through spite I updated the model and should now be considered the #1 open-source secret detector ;) (according to my benchmarks)

Community

Hacker News discussion

Loading the thread…