Skip to content

Security: BhaanuG/Zyndex-MS

.github/SECURITY.md

Security Policy for Zyndex

Zyndex was designed, engineered, and architected from first principles by Bhaanu G (Bhaanu Gali). All platform ownership, architectural direction, intellectual property, and administrative oversight reside solely with Bhaanu G. Academic data confidentiality, authentication integrity, document access controls, and infrastructure perimeter protection are rigorously enforced at every layer of the distributed system.

This policy outlines our supported release versions, multi-tier security architecture, perimeter defenses, data governance, and responsible vulnerability disclosure protocol.


Authorship & Platform Security Governance

Important

Sole Creator, Lead Architect & Security Lead: Bhaanu G (Bhaanu Gali)
Direct Administrative Contact: Bhaanugali@gmail.com
Institutional Security Contact: 2400030952@kluniversity.in
Production Status: v1.0.4-PROD | Enterprise Security Hardened
All platform intellectual property, security definitions, and cryptographic protocols remain under the exclusive stewardship of Bhaanu G.


1. Supported Releases & Maintenance Windows

Security maintenance, dependency patches, and critical hotfixes are actively provided for the following releases:

Version Status Supported SLA for Critical Hotfixes Deployment Target
1.0.x Active Production ✅ < 24 Hours Cloud Native (Oracle Cloud VM & Netlify Edge)
< 1.0 Deprecated ❌ Not Maintained Evaluation builds superseded by v1.0.x

2. Multi-Tier Security Architecture & Defense-in-Depth

Zyndex incorporates defense-in-depth principles across the presentation, network, application, and persistence tiers:

┌────────────────────────────────────────────────────────┐
│               PRESENTATION & CLIENT TIER               │
│  - WCAG 2.1 AA Contrast   - Secure Token Memory Storage│
│  - Canvas CAPTCHA Check   - Inactivity Session Trapping│
└───────────────────────────┬────────────────────────────┘
                            │ HTTPS / TLS 1.3
┌───────────────────────────▼────────────────────────────┐
│              EDGE PERIMETER (PORT 8080)                │
│  - Spring Cloud Gateway   - Stateless JWT Verification │
│  - Netty Non-Blocking IO  - Strict Path Whitelisting   │
└───────────────────────────┬────────────────────────────┘
                            │ Internal Network + X-Gateway-Secret
┌───────────────────────────▼────────────────────────────┐
│             MICROSERVICES INTER-SERVICE MESH           │
│  - auth-service (8081)    - content-service (8082)     │
│  - access-service (8083)  - usage-service (8084)       │
│  - subscription-service (8085)                         │
└───────────────────────────┬────────────────────────────┘
                            │ Encrypted SQL over JDBC
┌───────────────────────────▼────────────────────────────┐
│                PERSISTENCE TIER (PORT 3306)            │
│  - MySQL 8.4 LTS          - BCrypt Password Salt       │
│  - Isolated Schemas       - ACID Transaction Boundaries│
└────────────────────────────────────────────────────────┘

2.1 Multi-Factor & Dynamic Authentication

  • Dynamic 4-Digit Numeric OTP: Generated via cryptographically secure random number generator (java.security.SecureRandom) and dispatched via TLS-encrypted SMTP relay with a 120-second expiration and maximum 5-attempt brute-force protection.
  • 24-Hour Trusted Device Authorization: Device fingerprints and random tokens allow verified users to bypass repetitive OTP checks for exactly 24 hours on the same machine while strictly maintaining visual CAPTCHA verification.
  • Single-Session Token Versioning: Each user record contains a session_token_version. When a user logs out from all devices or an administrator invokes remote termination, the version increments, immediately invalidating all active JWTs across every device without waiting for token expiry.
  • Session Timeout Protection: Inactivity tracking terminates sessions after 2 hours and 30 minutes, prompting an interactive warning dialogue at the 2-hour mark to preserve session state.
  • BCrypt Password Hashing: Passwords require mixed case, numerical digits, and special characters, hashed using BCryptPasswordEncoder with salt rounds prior to persistence. Plaintext passwords are never logged or stored.

2.2 JWT & Inter-Service Boundary Security

  • HMAC-SHA256 Signed JWTs: Generated by auth-service and verified statelessly by api-gateway on all protected routes (/api/resources/**, /api/usage/**, /api/subscriptions/**, /api/users/**).
  • Internal Microservice Header Verification: Downstream microservices enforce a shared X-Gateway-Secret via GatewaySecretFilter, immediately rejecting direct non-gateway traffic with HTTP 403 Forbidden.
  • Role-Based Access Governance (RBAC): Strict role separation isolating Main Admin (Bhaanugali@gmail.com), regular Admin, and Student / User entitlements. Sensitive administrative endpoints (/api/usage/engagement/analytics, /api/subscriptions/admin/**, /api/users/export) strictly enforce primary administrative credentials.

2.3 Data Protection & Payment Reconciliation

  • Dynamic In-Memory PDF Slicing: Free and evaluation users are restricted to 10-page document previews sliced in-memory via Apache PDFBox, preventing unauthorized retrieval of complete files.
  • Asynchronous File Compression: Uploaded PDFs undergo lossless stream deflation via PDFBox asynchronously in background worker threads, preventing thread starvation and ensuring rapid client responses.
  • UPI QR Direct Settlement: Payment flows eliminate recurring card credentials from client storage. All transactions verify 12-digit bank UTRs with state transition logging, admin verification controls, and cross-portal synchronization.

2.4 Infrastructure & Cloud Isolation

  • Container Isolation: Dockerized backend running behind an internal Docker bridge network (zyndex-network). Microservices ports (8081, 8082, 8083, 8084, 8085) are not exposed to the public internet; traffic enters strictly via Nginx / Gateway (port 80 / 8080).
  • Environment Isolation: Production secrets (database passwords, mail credentials, JWT signing keys) are injected exclusively through runtime environment variables and excluded from source control.

3. Reporting a Vulnerability

If you identify a potential security vulnerability in Zyndex, please notify us through our dedicated private reporting channels. Do not create public GitHub issues or discussions for undisclosed security vulnerabilities.

Private Reporting Channels

Please send detailed reports directly to:

  • Primary Security Authority: Bhaanugali@gmail.com
  • Academic & Institutional Contact: 2400030952@kluniversity.in

Report Format

To help us triage and resolve the issue quickly, please include:

  1. Affected Subsystem: Specify whether the vulnerability affects the frontend web client, api-gateway, auth-service, content-service, access-service, usage-service, or subscription-service.
  2. Vulnerability Type: e.g., Authentication Bypass, Insecure Direct Object Reference (IDOR), SQL Injection, Cross-Site Scripting (XSS), Sensitive Data Exposure, Privilege Escalation.
  3. Step-by-Step Reproduction: Detailed steps, cURL requests, or proof of concept (PoC) illustrating the issue.
  4. Estimated Impact: An assessment of potential risk to user accounts, proprietary academic content, or system availability.

4. Response Timeframes & Disclosure Process

  • Initial Acknowledgment: Within 24 hours of submission.
  • Vulnerability Assessment & Triaging: Within 48 to 72 hours.
  • Remediation & Patch Deployment: Critical vulnerabilities are resolved and deployed within 24 to 72 hours.
  • Public Disclosure: Coordinated disclosure will occur only after a tested patch has been deployed to production. Contributors who responsibly report valid vulnerabilities will be credited in release notes.

There aren't any published security advisories