SentinelAI

Privacy-preserving AI for regulated enterprises

Visit Repo
SentinelAI banner

About

## The problem it solves

🔐 Compliance-Aligned Enterprise AI Layer — Sentinel-AI

Sentinel-AI is a secure intermediary abstraction layer that enables LLM inference on sensitive enterprise documents by performing structured entity-level data sanitization with reversible mapping, ensuring zero exposure of raw confidential data to downstream AI systems.

It is designed for regulated environments where direct transmission of PII/PHI/financial data to external models is prohibited.

Instead of blocking AI usage or permanently redacting information, Sentinel-AI preserves semantic structure while enforcing identity isolation through deterministic placeholder substitution and secure rehydration mapping.

🧠 Core Capability

Sentinel-AI introduces a pipeline that decouples:

Semantic content (what the document means) Sensitive entities (who/what it refers to)

This allows LLMs to operate on fully contextualized inputs without ever accessing raw identifiers.

⚙️ System Workflow

1. Ingestion Layer (Document Parser) Accepts structured and unstructured enterprise documents (PDF, text, reports) Performs tokenization and entity boundary detection Identifies sensitive classes: PII (names, addresses, IDs) PHI (medical records, patient metadata) Financial identifiers (account numbers, transactions) Organizational metadata 2. Entity Recognition & Classification Engine Uses NER-based extraction + rule-based validation Classifies entities into deterministic categories: PERSON, ORG, LOCATION, ID, MEDICAL_ENTITY, FINANCIAL_ENTITY Assigns unique stable identifiers: PERSON_1, ORG_2, etc. 3. Privacy Sanitization Layer (Token Substitution) Replaces sensitive spans with lossless placeholders Maintains: syntactic structure document coherence contextual relationships

Example transformation:

“Sarah Mitchell treated at Apollo Hospital” → “[PERSON_1] treated at [ORG_1]”

This ensures the input remains fully LLM-compatible while removing identity leakage vectors.

4. LLM Processing Layer (Secure Inference Boundary) Sanitized document is passed to external or internal LLMs Model performs: summarization classification extraction reasoning tasks

Critical property:

The model never receives raw PII/PHI—only abstracted tokens with preserved semantics.

5. Rehydration Engine (Secure Mapping Resolution) Post-processing step in a trusted environment Maintains a secure key-value mapping table: [PERSON_1] → Sarah Mitchell [ORG_1] → Apollo Hospital Restores output while preserving AI-generated structure

Final output reconstruction:

“[PERSON_1] shows no abnormalities” → “Sarah Mitchell shows no abnormalities”

🔐 Security & Compliance Properties

Sentinel-AI is designed to satisfy enterprise-grade compliance constraints:

Data minimization: Only abstracted tokens leave the secure boundary Zero PII exposure to LLMs: No raw sensitive fields are transmitted Reversible transformation model: Controlled de-sanitization only in trusted layer Auditability: Entity mapping logs can be versioned for traceability Policy alignment: Compatible with HIPAA, GDPR, PCI-DSS, SOC2 constraints 🏢 Enterprise Use Case Fit

Sentinel-AI is applicable across domains where LLM adoption is blocked by data sensitivity:

Healthcare NLP pipelines (PHI-safe clinical summarization) Financial document intelligence (transaction-safe reasoning) Legal contract analysis (client confidentiality preservation) Insurance automation (claims processing at scale) Enterprise knowledge systems (internal document mining) 🚀 System-Level Impact

Sentinel-AI functions as a privacy enforcement middleware for LLM pipelines, enabling:

Secure LLM integration without infrastructure isolation Reduced need for private model deployment Scalable compliance-by-design architecture Deployment across multi-domain enterprise workflows 💡 Technical Essence

Sentinel-AI implements a reversible entity abstraction system that decouples semantic understanding from sensitive identity exposure, enabling compliant LLM inference on otherwise restricted enterprise datasets.

## Challenges we ran into

🧩 Challenges I Ran Into While Building Sentinel-AI

Building Sentinel-AI was not just an implementation challenge—it was about designing a system that preserves semantic meaning while guaranteeing zero sensitive data exposure to AI models. This introduced several technical and architectural hurdles.

⚠️ 1. Entity Preservation vs. Context Loss Problem:

Early versions of the sanitization pipeline simply removed sensitive entities instead of replacing them. This broke sentence structure and severely degraded LLM performance because the model lost context.

Example failure:

“Sarah Mitchell treated at Apollo Hospital” → “treated at”

The AI could no longer understand relationships between entities.

Solution:

I switched to a deterministic placeholder mapping system instead of deletion:

Sarah Mitchell → [PERSON_1]

Apollo Hospital → [ORG_1]

This preserved:

grammatical structure

entity relationships downstream reasoning quality ⚠️ 2. Inconsistent Entity Mapping Across Pipeline Problem:

During early testing, the same entity was being assigned different placeholders in different parts of the pipeline.

Example:

“Sarah Mitchell” → [PERSON_1] in input layer but became [PERSON_2] during rehydration

This caused incorrect output reconstruction.

Solution:

I implemented a centralized entity registry (mapping store) that:

assigns a single stable ID per entity per document persists mapping across sanitization → inference → rehydration stages ensures deterministic restoration of outputs ⚠️ 3. LLM Hallucination on Placeholder Tokens Problem:

Some models started “interpreting” placeholders incorrectly, e.g.:

treating [PERSON_1] as a real medical term or merging multiple placeholders into one entity

This reduced reliability of outputs.

Solution:

I standardized placeholder formatting and strengthened prompt constraints:

enforced strict token pattern: [ENTITY_TYPE_ID]

added explicit system-level instructions:

“Treat placeholders as atomic, non-semantic tokens.”

This significantly improved model stability.

⚠️ 4. Rehydration Alignment Errors

Problem:

In longer documents, sentence restructuring by the LLM sometimes changed entity ordering, causing incorrect mapping during restoration.

Solution:

I introduced:

position-aware entity tagging during sanitization stable reference IDs tied to token index positions post-processing alignment validation before rehydration

This ensured accurate mapping even in complex multi-sentence outputs.

⚠️ 5. Balancing Privacy with Usability

Problem:

Over-sanitization made documents “too abstract,” reducing AI usefulness in tasks like clinical summarization and contract analysis.

Solution:

I refined the pipeline to:

remove only identity-sensitive fields

preserve domain-critical attributes (symptoms, clauses, transactions, etc.) maintain semantic richness while enforcing privacy boundaries

This restored strong downstream AI performance without compromising compliance.

🚀 Final Outcome

By solving these issues, Sentinel-AI evolved into a stable privacy-preserving AI architecture where:

entity consistency is guaranteed

LLM context is preserved sensitive data never reaches external models outputs remain fully rehydrated and usable

The result is a system that is both technically reliable and enterprise-ready under strict compliance constraints.

Screenshots

SentinelAI screenshot 1SentinelAI screenshot 2

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Nothing

Training AI models on data that has been encrypted through FHE. The project tries to secure the privacy of user's data by encrypting it through FHE and yet ensuring that operations can be performed by any AI model on it.

KOVA

Kova is a privacy-first, AI-driven platform that connects users—investors, traders, and beyond—with AI agents based on their objectives and preferences, ensuring secure execution and data privacy.