secure-llm-auditor: personal data scanner

secure-llm-auditor

A single-file Python script that finds personal data in text with regexes, anonymizes it and writes a report before a prompt goes to an AI

  • 1 ★ on the repository
  • Last commit
CLI

Extended access

Why this level

  • Reads local files that may contain real personal data and saves fragments of it into reports
  • Detection relies on simple regexes and can miss data, so it should not be trusted as the only safeguard
All reasons and checks
Russian stack

alinalutz/secure-llm-auditor

Install

Manual install

git clone https://github.com/alinalutz/secure-llm-auditor && cd secure-llm-auditor && pip install -r requirements.txt

Clone and install the colorama and pdfkit dependencies.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Reads local files that may contain real personal data and saves fragments of it into reports
  • Detection relies on simple regexes and can miss data, so it should not be trusted as the only safeguard

This is third-party code. Review the repository files before installing.

What it does

The audit.py script reads a text file and searches with regular expressions for full names, passport numbers, SNILS, INN and mentions of biometrics. Based on what it finds, it assigns a protection level from Russian government decree No. 1119 and a personal data category, replaces the matches with markers like "[NAME REMOVED]" and checks whether anything is left after the replacement. The result is saved as a dated markdown report in the reports folder, and pdfkit, if installed, also produces a PDF. The report prints reference lines about the GOST 28147-89 and GOST R 34.10-2012 algorithms, which the code does not actually check, just prints as a reminder.

Who it is for. For developers who manually check text for personal data before sending it to an LLM and want a quick rough scan rather than a finished legal opinion.

Good fit when

  • You want a quick check of a text file for obvious names, passport numbers, SNILS or INN before feeding it to a model
  • You need a rough anonymized version of the text for an experiment
  • You want a markdown report of what was found for an internal review

Not a fit when

  • You need a legally meaningful FZ-152 or GOST R 57580.2 compliance assessment: the script does not check encryption or signatures, it only prints algorithm names
  • You need accurate PII detection: the regexes are simple and produce both false positives and misses
  • You need a packaged CLI with flags and tests: this is one file without argparse

Example request

Check draft.txt for personal data before I send it to a model

Limitations

The repository has no stated license. It is a single audit.py file with no packaging, no tests and no error handling beyond a missing-file check. The regexes match Russian full names, 10-digit passport numbers, SNILS and 12-digit INN by shape only, without checksum validation or context, so both misses and false positives on ordinary words are likely. The GOST R 57580.2 section in the report is static text, not a check result. The README cuts off at the clone command and references a different repository name. PDF output needs pdfkit and a system wkhtmltopdf; without them only markdown is produced.

How to disable. Delete the local repository copy; nothing is installed system-wide besides the requirements.txt dependencies.

FAQ

Does the script actually verify GOST encryption?

No. The GOST 28147-89 and GOST R 34.10-2012 lines in the report are fixed text, there is no encryption check in the code.

What happens if colorama and pdfkit are missing?

colorama does not affect functionality, pdfkit only controls PDF output: without it only the markdown report is saved.

Discussion

No questions or reviews yet.

Security audit skill with GOST and FSTEC

Security Audit Skill for Claude Code

Russian stack

A security audit skill for Claude Code: OWASP Top 10 plus GOST R 56939, FSTEC Order No. 21 and 152-FZ, parallel subagents and a compliance matrix

SkillMinimal access1Repository stars
Russian stack

An agent skill that assembles or reviews a document per GOST standards and lists every issue with a reference to the exact clause

SkillMinimal access2Repository stars
Russian stack

A skill for formatting Russian student papers to GOST 7.32: the agent writes Markdown, a script builds a .docx with the university title page

SkillExtended access7Repository stars

Academic report formatting to GOST

Academic report formatting

Russian stack

A Codex and Claude skill that formats lab reports, coursework and explanatory notes per a guideline or GOST, without inventing the author's data

SkillMinimal access2Repository stars

Simplified Technical Russian

Упрощенный технический русский (УТР)

Russian stack

A skill that makes the agent write code comments, docs and error messages by the Simplified Technical Russian rules of GOST R 58049-2017, with a linter

SkillExtended access19Repository stars

README in short

The README calls the project a CLI tool for auditing text against FZ-152, decree No. 19/2024 and GOST R 57580.2, listing PII detection, protection-level classification, anonymization, a pre-LLM safety check, and markdown and PDF reports. The listed stack is Python 3.10+, regular expressions, FastAPI for a future web version and Docker for containerization, but the repository only contains the script itself and accumulated test reports. The install instructions cut off at a git clone command with a placeholder instead of the real repository name.

README badge

Report a problem