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
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| lemonadesaltbagel / veil | 154 | 17 days ago | Apache-2.0 | No downloads |
| DobermanCore / Doberman-Core | 243 | 13 days ago | Apache-2.0 | No 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
