Skip to content

It is an AI-powered security analysis tool that scans code, logs, and text inputs to detect exposed API keys, tokens, and sensitive credentials, helping developers prevent secret leaks, enhance secure coding practices, and strengthen overall application security.

Notifications You must be signed in to change notification settings

LoganthP/CipherSentinel-Secret-API-Key-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 CipherSentinel - Advanced Secret & API Key Detector

πŸ” A futuristic DevSecOps platform designed to detect API keys, hardcoded secrets, tokens, and configuration leaks with a stunning cyberpunk command-center UI.


✨ Key Highlights

  • πŸ”‘ Advanced Secret & API Key Detection Engine\
  • 🧠 Heuristic + Signature-Based Scanning\
  • 🌌 Futuristic Cyberpunk Dashboard UI\
  • πŸ—„οΈ Lightweight SimpleDB (JSON-based storage)\
  • πŸ“Š Interactive Risk Analytics & Visualization\
  • πŸ”’ Privacy Mode & Secret Masking\
  • ⚑ Fast, Modular & Git-Friendly Architecture

πŸš€ Overview

CipherSentinel is a next-generation Secret & Vulnerability Detection platform built for developers, security researchers, and DevSecOps teams.
It scans files, code snippets, and configuration data to proactively identify exposed credentials before they become real-world security risks.


🧠 System Block Diagram

flowchart TD
    A[User Uploads File / Pastes Code] --> B[React Frontend]
    B --> C[Validation Layer]
    C --> D[REST API Call]
    D --> E[Express Backend]
    E --> F[Input Sanitization]
    F --> G[Heuristic Detection Engine]
    G --> H[Signature Library]
    G --> I[Entropy & Pattern Analysis]
    H --> J{Secrets Found?}
    I --> J
    J -->|Yes| K[Risk Scoring Engine]
    J -->|No| L[Safe Result Response]
    K --> M[Severity Classification]
    M --> N[Store Scan Metadata]
    N --> O[(SimpleDB JSON Database)]
    E --> P[Return Structured JSON Report]
    P --> Q[Frontend Visualization]
    Q --> R[Monaco Highlight]
    Q --> S[Risk Gauge & Charts]
Loading

πŸ—οΈ Project File Architecture

CipherSentinel-Secret-API-Key-Detector/
β”‚
β”œβ”€β”€ client/                         # React Cyberpunk Frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ animations/
β”‚   β”‚   └── styles/
β”‚   └── package.json
β”‚
β”œβ”€β”€ server/                         # Express Backend
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ detectors/
β”‚   β”œβ”€β”€ simpledb/
β”‚   └── utils/
β”‚
β”œβ”€β”€ simpledb-data/                  # JSON Database Storage
β”‚   β”œβ”€β”€ scans.json
β”‚   └── settings.json
β”‚
β”œβ”€β”€ test-files/
β”œβ”€β”€ public/
β”œβ”€β”€ README.md
└── package.json

πŸ” Core Features Breakdown

1️⃣ Heuristic Scanner Engine

  • Detects AWS Keys, JWT Tokens, Stripe Secrets, Google API Keys, Private Keys (.pem), Slack Tokens
  • Regex + Heuristic Analysis
  • Drag & Drop File Scanning
  • Paste Code Instant Analysis

2️⃣ Command Center Dashboard

  • Total Scans Overview
  • Critical Threat Counter
  • Risk Trend Graphs (Recharts)
  • Recent Scan Activity Panel

3️⃣ Vulnerability Lab (Results Page)

  • 🎯 Dynamic Risk Score (0--100 Gauge)
  • πŸ”΄ Highlighted Secrets in Monaco Editor
  • 🧾 Detailed Detection Metadata (File, Line, Type)
  • πŸ”’ Secret Masking Toggle (**** Protection)

4️⃣ Scan Archive (History)

  • Stored securely using SimpleDB JSON
  • Search & Filter Past Scans
  • Two-Step Secure Deletion Flow

5️⃣ Settings & DevSecOps Controls

  • Deep Scan Mode
  • Sensitivity Slider
  • Privacy Mode (No File Storage)
  • Detection Signature Toggles
  • SimpleDB Data Management

βš™οΈ Running the Fully Functional Project

πŸ“¦ 1️⃣ Install All Dependencies (Client + Server)

From the root directory, run:

npm run install:all

πŸš€ 2️⃣ Start the Full Development Environment

npm run dev

Frontend Dashboard:

http://localhost:5173

Backend API:

http://localhost:5000

πŸ—„οΈ SimpleDB Schema Example

{
  "scanId": "uuid",
  "fileName": "sample.env",
  "secretsDetected": [],
  "severity": "Critical",
  "riskScore": 87,
  "createdAt": "timestamp"
}

πŸ› οΈ Tech Stack

Layer Technologies
Frontend React 19, TypeScript, TailwindCSS 4, Framer Motion
Backend Node.js, Express 5, Multer
Database SimpleDB (JSON File-Based)
Visualization Recharts, Monaco Editor
UI Design Cyberpunk Glassmorphism + Neon UI
Icons Material Symbols

🎨 UI/UX Philosophy

  • Cyberpunk Command Center Theme\
  • Glassmorphism + Neon Glow\
  • Interactive Risk Intelligence\
  • Beginner-Friendly but Enterprise-Level Feel

πŸ”’ Security Notice

CipherSentinel is designed for internal auditing and research purposes.
Ensure simpledb-data/ is excluded from public repositories if containing sensitive results.

Built as a DevSecOps Vulnerability Research Platform.

About

It is an AI-powered security analysis tool that scans code, logs, and text inputs to detect exposed API keys, tokens, and sensitive credentials, helping developers prevent secret leaks, enhance secure coding practices, and strengthen overall application security.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors