As the adoption of Large Language Models (LLMs) accelerates, employees often inadvertently expose highly sensitive corporate data—such as API keys, Patient Health Information (PHI), proprietary code snippets, and customer PII—by pasting them into generic AI prompt boxes.
SentriX AI is a lightweight, strictly on-device browser extension that automatically monitors web text boxes (ChatGPT, Claude, Gemini, Copilot, etc.) and seamlessly intercepts document uploads (PDF, DOCX, Images). Before data ever leaves your computer, SentriX strictly pattern-matches and algorithms to detect vulnerabilities, offering users the ability to instantly Redact the information or heed a strict warning. All processing happens locally, maintaining a true zero-trust architecture.
-
Local-First Interception Architecture
- Employs
MutationObserverand Shadow DOM to dynamically inject interactive warning overlays without breaking the host application's UI. - Overrides
fetchandXMLHttpRequestto catch attached files and documents pre-submission.
- Employs
-
Multi-Format Document Parsing
- PDF: Extracts text dynamically utilizing
pdf.jsand securely draws graphical redaction blocks over sensitive terms usingpdf-lib.js. - Images (OCR): Implements local Tesseract.js WebAssembly workers to identify text within screenshots or scanned images, masking exact bounding boxes using HTML5 Canvas.
- DOCX / TXT: unzips and alters XML directly inside the browser using
jszipandmammoth.jsprinciples to swap sensitive terms on the fly.
- PDF: Extracts text dynamically utilizing
-
High-Precision Data Detection Pipeline
- Comprehensive Regular Expressions leveraging precise capture groups to limit false positives.
- Native detection for: PII (SSN, Phone, Email, PAN), Credentials (AWS/OpenAI/Stripe keys, Database URIs), Financials (Credit Cards), and Medical PHI (ICD-10, RxNorm patterns).
-
Context-Aware Smart Redaction
- Doesn't just print
[REDACTED]. It contextually masks data (e.g., swapping a real Stripe key forsk_test_your_stripe_key_here, generating dummy IP addresses, or leaving the database scheme intact while swapping the password).
- Doesn't just print
- Framework: React + TypeScript via Vite (
vite-plugin-web-extension) - Background Processes: Chrome Extension Service Workers (MV3)
- DOM Manipulation: Custom Shadow DOM injection for absolute UI isolation
- Document Processing:
pdfjs-dist&pdf-lib(PDF manipulation)tesseract.js(Optical Character Recognition)jszip(DOCX parsing)
-
Clone the repository:
git clone https://github.com/Vedant03k/sentix-ai-llm.git cd sentix-ai-llm -
Install dependencies:
npm install
-
Build the extension:
npm run build
-
Load into Browser (Chrome/Brave/Edge):
- Navigate to
chrome://extensions/ - Turn on "Developer mode" in the top right.
- Click "Load unpacked" and select the
/distdirectory generated by the build command.
- Navigate to
Many Enterprise DLP (Data Loss Prevention) software solutions cost thousands per seat, require proxy routing, and send your data to third-party analysis servers. SentriX AI entirely eliminates the middleman. By analyzing entropy, context, and regex formats directly in the user's volatile RAM via WASM, no server infrastructure is required, meaning the extension itself mathematically cannot become a new vector for data breaches.
- Vedant Kale: PII detection
- Amrita Kumari: Extension Core, Shadow DOM architecture, and Platform routing.
- Pruthviraj Rajput: Complex Credentials Engine (Tokens, DB Strings, Credit Cards).
- Omkar Madkar: Internal File Override Engine, Multi-format Parsing (PDF/PNG/DOCX), and Medical Data Scanning.