Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@shaswat2031/zero-trust-engine

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shaswat2031/zero-trust-engine

Advanced Behavioral Zero-Trust Security Middleware with Dynamic Configs, DDoS protection, & Sarvam AI Integration

latest
npmnpm
Version
1.1.7
Version published
Maintainers
1
Created
Source

Zero-Trust Engine (Behavioral Security Middleware)

An advanced Express.js middleware implementing Behavioral Zero-Trust Architecture. Instead of relying on static IP blocks, this engine evaluates a dynamic trust score (0-100) for every user session based on request velocity, heuristics, and deep AI reasoning via Sarvam AI.

Architecture: The Three-Layer Defense

Layer 1: Heuristic Analysis: Instant evaluation of request frequency, failed authentication attempts, and user-agent consistency. Layer 2: AI Reasoning Layer: Traffic in the "Grey Area" (Score 40-89) is analyzed by a 105B Reasoning LLM (Sarvam AI). Layer 3: Enforcement & Override: Confirmation or rescue of confirmed threats.

Key Features

  • Dynamic Trust Scoring: Real-time behavioral scoring.
  • Micro-Velocity Tracking: Identifies automated scripts.
  • Bot/Scraper Detection: Native signatures for common scraper libraries.
  • Geo-Jump Protection: Alerts on impossible travel.
  • Event-Driven Alerts: Real-time hooks for SOC integration.

Installation

npm install @shaswat2031/zero-trust-engine

Basic Quick-Start

Protecting your routes:

import { trustMiddleware, setConfig } from '@shaswat2031/zero-trust-engine';

setConfig({
  sarvamApiKey: 'your_api_key_here',
  logging: true
});

app.post('/api/auth/login', trustMiddleware, (req, res) => {
  res.send('Done.');
});

Keywords

zero-trust

FAQs

Package last updated on 31 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts