frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Dbmask – Discover, mask, and verify sensitive data in SQL databases

https://github.com/sealandseacat/dbmask
3•SiyuanFeng•2h ago
Hi HN

I developed *dbmask*, an open-source Python tool designed to discover sensitive columns in SQL databases, masking them with deterministic fake values, and validate the masking results.

The motivation behind this tool stems from a common issue I encountered when handling test data: existing masking tools often assume the user already knows exactly which columns contain sensitive information. Furthermore, the successful completion of a masking task does not guarantee that all sensitive values have actually been replaced.

dbmask aims to integrate these steps into a unified workflow rather than treating them as three separate tasks.

During the detection phase, the tool makes determinations by combining column names, sampled values, database type/context, historical decisions, and optionally LLMs. While LLM functionality is disabled by default, it supports local execution via Ollama or other services compatible with the OpenAI API. If the tool cannot determine a column's nature with confidence, it marks it as `UNKNOWN` rather than simply classifying uncertain cases as "non-sensitive."

I also wanted to incorporate human decision-making into the system. Detection results can be exported for manual review, and confirmed decisions can be saved in CSV, XLSX, or Markdown formats, or stored in a SQL history decision table. The system logs information about both the analyst and the reviewer and re-evaluates past decisions if column types change or review results expire.

The masking process employs deterministic mapping, ensuring that identical original values consistently map to the same synthetic values across different tables. Once masking is complete, the `dbmask validate --strict` command compares the masked copy with the original data, checking row counts and table structures, and verifying sensitive values row-by-row using primary keys wherever possible.

The project is currently in its early stages (version 0.1.x). The current CI (Continuous Integration) pipeline covers SQLite testing; integration tests for PostgreSQL and MySQL, as well as public detection benchmarks, are included in the future development roadmap.

I would particularly appreciate feedback on the detection rules, the manual review/history tracking workflows, and the verification methods. Please let me know if you encounter any usability issues or potential security risks while testing on the temporary database.

Install:

pip install dbmask

Show HN: MultiMatte, a Promptable Image Background Removal Model

https://usefeyn.com/blog/multimatte/
7•snyy•1h ago•0 comments

Show HN: What if the speed of light was 5 km/h?

https://rivendell.dmitrybrant.com/relativity/
540•dmitrybrant•15h ago•231 comments

Show HN: Syq – copy files between machines fast (better than rsync)

https://greaber.github.io/syq/
11•greaber•2h ago•7 comments

Show HN: I created a translation service prompt

https://github.com/AlkalineGarrett/language-root-translator
2•alkaline9•7m ago•0 comments

Show HN: Filament – Fast data movement engine in Go

https://github.com/galaxy-io/filament
19•ikswolzok•2d ago•3 comments

Show HN: Art – draw one stroke, let symmetry complete it

https://mrdee.in/mandala/
76•cyb0rg0•5d ago•31 comments

Show HN: We served 5k dynamic websites from a 2-vCPU, 4 GB VPS

https://github.com/Kooboo/Kooboo/blob/main/Docs/5000-sites-benchmark.md
5•zguoqi•2h ago•0 comments

Show HN: Turn wire protocols into structured statements LLMs can understand

4•andriosr•56m ago•0 comments

Show HN: I built an AI 'Fog of War' for life goals

https://www.tryworthit.app
2•AvityN•1h ago•1 comments

Show HN: Symphony – a live map of your AI coding agents

https://github.com/itsloganmann/symphony
2•loganmann0324•1h ago•0 comments

Show HN: Talleyrand – Open-source AI thinking workspace built as a question tree

https://talleyrand.app/
2•steshinss•1h ago•0 comments

Show HN: Pascal's Pager – Webhooks In. Push Notifications Out

https://www.pascalspager.com/
2•mflake93•1h ago•0 comments

Show HN: MySamantha – a productivity app where the AI is optional

3•thejasonsamuel•1h ago•0 comments

Show HN: I built an AI 'Fog of War' to kill my 3AM Notion templates

https://www.tryworthit.app/about
2•AvityN•1h ago•1 comments

Show HN: Math Gambling

https://kuber.studio/math-gambling/
3•kuberwastaken•2h ago•0 comments

Show HN: ObserverBench – Test internal AI monitors by the harm they miss

https://kwisatzh.github.io/observerbench/try/
4•kwisatzh•1h ago•1 comments

Show HN: EterDB, a Postgres fork that makes it easy to recover from incidents

https://eterdb.com/
3•fdeth•1h ago•0 comments

Show HN: An app for passively watching Product Hunt launches as a video playlist

https://github.com/OlegIGalkin/ProductTrailers
3•cantouch•1h ago•0 comments

Show HN: Compute polynomials twice as fast

https://thomasahle.com/fast-polynomials/
117•thomasahle•1d ago•37 comments

Show HN: Subnet Calc, visual subnet planning for teams

https://www.subnetcalc.com
3•RossMason•1h ago•1 comments

Show HN: Calmscroll – a reader that shows the current paragraph in the library

https://calmscroll.com
3•amadeuspagel•3h ago•0 comments

Show HN: Matcha Filter Remover – browser-first green cast correction

https://matchafilterremover.net/
3•robot1996•1h ago•0 comments

Show HN: ShipCheck – Catch when AI breaks old fixes

https://useshipcheck.dev
2•karunsarvajith•1h ago•0 comments

Show HN: Post-graph-RAG – your RAG still thinks the old CFO is the CFO

https://github.com/crajah/post-graph-rag
2•chandanrajah•2h ago•0 comments

Show HN: Manage flexible access profiles for your personal context

https://lanes.sh/docs/link/access-profiles
2•s-xyz•2h ago•0 comments

Show HN: Dbmask – Discover, mask, and verify sensitive data in SQL databases

https://github.com/sealandseacat/dbmask
3•SiyuanFeng•2h ago•0 comments

Show HN: Give Agents your design system to build artifacts you're proud of

https://www.valet.dev/blog/work-that-looks-like-yours
2•miradu•2h ago•1 comments

Show HN: Xfinlab – a financial intelligence API with an MCP server for AI agents

https://github.com/lnanology/Xfinlab
2•lnanology•2h ago•0 comments

Show HN: Model pricing board for DeepSeek Harness: 7k models, cheapest route

https://github.com/vitas/dsh-model-pricing
2•vitass•2h ago•0 comments

Show HN: Skillctl – audit context cost and conflicts across your agent skills

https://github.com/zongwu233/skillctl
2•zongwu233•2h ago•0 comments