Skip to content

BySimi/Ghost-Layer

Repository files navigation

🕶️ Ghost Layer

An Invisible Privacy Shield for AI Conversations

Ghost Layer is a privacy-first system that protects users from unintentionally sharing sensitive personal information while interacting with AI tools like ChatGPT. It works silently in the background, anonymizing data before it reaches the AI—so users get the full power of AI without compromising privacy.


Inspiration

As AI tools become part of everyday workflows, users frequently paste raw text containing personal data such as names, emails, phone numbers, or locations. Once shared, this data is no longer under user control. Ghost Layer was built to solve this gap by adding an invisible privacy layer between users and AI systems.


What It Does

  • Detects personally identifiable information (PII) in real time
  • Anonymizes data using redaction or realistic fake replacements
  • Sends only privacy-safe text to AI models
  • Stores reversible mappings locally for optional de-anonymization
  • Ensures no personal data is sent to external servers

How It Works

  1. User types a message into an AI chat interface
  2. Ghost Layer (Chrome extension) intercepts the input
  3. A local Flask backend analyzes the text using NLP
  4. Sensitive data is anonymized
  5. Clean text is sent to the AI model

All processing happens locally on the user’s machine.


Tech Stack

  • Backend: Python, Flask
  • NLP & Privacy: Microsoft Presidio, spaCy
  • Anonymization: Faker
  • Frontend: Chrome Extension (Manifest V3), JavaScript, HTML, CSS
  • Data Storage: Local JSON files
  • APIs: REST APIs (Localhost)

Demo Video

https://youtu.be/KZwkNK-vzec

The demo showcases:

  • Real-time anonymization
  • Chrome extension workflow
  • Backend processing
  • Privacy-safe AI interaction

Privacy & Security

  • All data is processed locally
  • No cloud services or third-party servers involved
  • No tracking, logging, or external data transmission
  • Designed using privacy-by-design principles

Future improvements include encrypted local storage and automatic data expiration.


What’s Next

  • Mobile phone integration (app or keyboard-level protection)
  • Support for more AI platforms
  • Encrypted and time-bound mapping storage
  • Enterprise-grade privacy controls

Why Ghost Layer Matters

Ghost Layer empowers users to use AI responsibly and safely by protecting their identity without affecting usability.

Ghost Layer doesn’t fight AI — it makes AI safe for humans.


License

This project is licensed under the terms specified in the LICENSE file.

About

Ghost Layer is a privacy protection system that safeguards users’ personal information (PII) while interacting with AI tools like ChatGPT, Claude, or Gemini. It automatically detects sensitive data (like your name, email, phone number, or location) and anonymizes it before it’s sent to the AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors