Skip to content
The Daily Repo

sherwinvishesh / SurrogateShield

A privacy-first guardrail for LLMs and RAG pipelines. SurrogateShield detects, redacts, and reconstructs sensitive PII data on the fly while defending against adversarial attacks.

Why this job: topics: llm-security, guardrails

What it does

  • Layered PII detection. regex patterns on the text and on rewritten views of it → a DeBERTa PII tagger for names, organisations and places → spaCy for places (and for a name only where no stage named anyone), with distilbert-NER as an option
  • Realistic surrogate generation. fake names look like names, fake SSNs pass format checks, fake Bitcoin addresses match Base58 format
  • AES-256-GCM encrypted ShadowMap. surrogate-to-original mappings never stored in plaintext
  • Multi-provider support. Claude, Gemini, ChatGPT, or fully offline via Ollama
  • Service-query intelligence. location queries (restaurants near X) get minimal address fuzzing instead of full replacement, preserving answer quality

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit 24 days ago
Stars
467
+433 this week
Licence
Apache-2.0
Allows business use
Downloads for
None listed
No release files
Latest tag
Production-Release
Released 5 months ago
Built with
Python
85% of the code

Is it looked after?

Contributors
1
Last 90 days
Issues
None
No issues filed
Pull requests
1 merged
0 waiting
Releases
2
2 in the last year

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
lemonadesaltbagel / veil15417 days agoApache-2.0No downloads
DobermanCore / Doberman-Core24313 days agoApache-2.0No downloads
More: languages, topics and project record

Languages

  • Python 85%
  • HTML 15%
  • Shell <1%

Topics

  • chatbot
  • chatgpt
  • claude
  • data-protection
  • gemini
  • generative-ai
  • guardrails
  • llm
  • llm-security
  • pii-redaction
  • privacy
  • rag

Project record

  • JobAI security
  • StatusListed
  • Commits329
  • Forks2
  • Watching0
  • Stars in 28 days+465
  • CreatedMay 13, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 9, 2026

Type to search.

Try