grand-security

bySeju Chodry

Build a full-stack AI-powered real-time mobile/web security application that detects risky calls, messages, links, and transactions instantly and provides intelligent alerts and automatic actions. 1. Technology Stack (Must Use) Frontend Use Next.js (React) Use Tailwind CSS for UI Use Framer Motion for animations Use Chart.js for risk graphs Use shadcn/ui for UI components Backend Use Node.js with Express.js Use Socket.IO for real-time updates REST APIs for communication Database Use MongoDB to store: User data Risk history Transaction logs Call/message logs AI Microservice Use FastAPI ML Models: Random Forest LSTM NLP: Use Rasa for AI assistant Use scikit-learn for risk scoring Real-time WebSocket based communication 2. Authentication Module Login Page Signup Page OTP Verification Forgot Password Logout Delete Account JWT Authentication 3. Dashboard Risk Meter (Gauge style) Overall Risk Score (0–100%) Risk Status: Safe Low Medium High Real-time updates using WebSockets Charts: Daily risk graph Weekly risk graph Quick buttons: Scan Link Check Number Analyze Message 4. Message Detection Module Monitor incoming messages Detect phishing links NLP scam keyword detection Risk percentage calculation Show reason for risk Auto actions: High risk → Block Medium risk → Ask user Low risk → Notification 5. Call Detection Module Incoming call risk detection Spam number check Real-time popup alert Risk score Auto block high-risk calls User approval for medium risk 6. Link Detection Module URL scanning Domain reputation check AI risk scoring Real-time alert before opening link Risk percentage display 7. Transaction Monitoring Detect online payment activity Set money threshold Alert before payment completion (1–2 sec) Risk scoring for receiver Suspicious transaction detection 8. AI Assistant Chat-based AI assistant Built using Rasa NLP Answer: Why call blocked? Why message risky? Why transaction unsafe? Suggest actions: Block Report Ignore 9. Decision Engine High Risk → Auto block Medium Risk → Alert + ask user Low Risk → Notification only Learning from user behavior 10. Settings Page Enable/Disable: Call monitoring Message monitoring Transaction alerts Link detection Permission manager: SMS Calls Contacts Storage Camera Notification toggles Risk threshold slider 11. Real-time Requirements Detection within 1–2 seconds WebSocket live updates Background monitoring service Push notifications 12. UI Requirements Modern clean UI Dark/Light mode Animated risk meter Graph analytics Smooth transitions 13. AI Model Requirements Random Forest for classification LSTM for sequential message detection NLP keyword detection Risk scoring output: 0–30 → Low 31–70 → Medium 71–100 → High 14. Extra Features Alert history page Manual scan option Risk explanation popup User feedback learning Emergency protection mode Expected Output Full frontend (Next.js) Backend API (Node.js) AI microservice (FastAPI) Database schema (MongoDB) ML model integration Real-time alert system Fully working project

LandingMessagesLogin
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 6

System Requirements Document (SRD)

Project Name: grand-security

1. Introduction

The grand-security project is a full-stack AI-powered real-time mobile and web security application designed to detect risky calls, messages, links, and transactions instantly. It provides intelligent alerts and automatic actions to protect users from potential threats. This document outlines the system requirements, features, and technical specifications for the development of the application.

The application will be tailored for both web and Android native platforms, ensuring seamless functionality and user experience across devices.

Page 2 of 6

2. System Overview

The grand-security application aims to enhance user safety by leveraging AI and real-time monitoring to detect and mitigate risks associated with communication and online transactions. The system will include:

  • Real-time Risk Detection: AI-powered modules to analyze calls, messages, links, and transactions.
  • Intelligent Alerts: Notifications and automatic actions based on risk levels.
  • Customizable Settings: Users can configure monitoring preferences and thresholds.
  • AI Assistant: A chat-based assistant to explain risks and suggest actions.
  • Cross-Platform Support: A web application built with Next.js and an Android native app developed in Kotlin.

The system will operate in the Indian context, considering local preferences, currency (INR), and timezone (IST).

3. Functional Requirements

As a User:

  • I should be able to log in, sign up, and manage my account securely.
  • I should be able to monitor incoming calls and messages for risks.
  • I should be able to scan links and analyze their safety before opening them.
  • I should be alerted about risky transactions before they are completed.
  • I should be able to view my overall risk score and history on a dashboard.
  • I should be able to interact with an AI assistant to understand risks and take actions.
  • I should be able to customize settings for monitoring and alerts.
Page 3 of 6

As an Admin:

  • I should be able to manage user accounts and permissions.
  • I should be able to monitor system performance and logs.
  • I should be able to update AI models and risk thresholds.

4. User Personas

1. End-User

  • Description: Regular users who want to secure their communication and transactions.
  • Goals: Stay protected from scams, phishing, and fraud.
  • Technical Proficiency: Moderate.

2. Admin

  • Description: System administrators managing the backend and AI models.
  • Goals: Ensure system reliability and update AI models as needed.
  • Technical Proficiency: High.

5. Visuals Colors and Theme

Color Palette:

  • Background: #1E1E2F (Deep Midnight Blue)
  • Surface: #2A2A3D (Charcoal Gray)
  • Text: #E8E8F2 (Soft White)
  • Accent: #FF6F61 (Vivid Coral)
  • Muted Tones: #6C6C80 (Muted Slate Gray)
Page 4 of 6

Theme:

The application will feature a modern, clean UI with a focus on usability and accessibility. Both dark and light modes will be supported, with smooth transitions between themes.

6. Signature Design Concept

Interactive Risk Galaxy

The homepage will feature an interactive galaxy visualization where each "star" represents a different feature or module (e.g., Call Detection, Message Monitoring, Transaction Alerts).

  • Animation: Stars will gently pulse and rotate in a 3D space, creating a dynamic and engaging experience.
  • Interaction: Users can hover over a star to see a brief description of the feature, and clicking on it will navigate them to the respective module.
  • Color Shifts: The galaxy background will subtly change colors based on the time of day (e.g., warm tones in the morning, cool tones at night).
  • Micro-Interactions: Smooth transitions and hover effects will make the interface feel alive and responsive.

This concept will make the application visually striking and memorable while providing intuitive navigation.

7. Non-Functional Requirements

  • Performance: Risk detection and alerts must occur within 1–2 seconds.
  • Scalability: The system should handle up to 1 million users concurrently.
  • Security: All data must be encrypted in transit and at rest.
  • Availability: 99.9% uptime with failover mechanisms.
  • Localization: Support for Indian languages and INR currency.

8. Tech Stack

Page 5 of 6

Frontend:

  • Web: Next.js (React), Tailwind CSS, Framer Motion, Chart.js, shadcn/ui
  • Mobile: Kotlin for Android

Backend:

  • Server: Node.js with Express.js
  • Real-Time Updates: Socket.IO
  • APIs: REST APIs

Database:

  • Primary: MongoDB
  • Schema: User data, risk history, transaction logs, call/message logs

AI Microservice:

  • Framework: FastAPI
  • Models: Random Forest, LSTM, Rasa NLP
  • Tools: scikit-learn for risk scoring

Orchestration:

  • Local: Docker, docker-compose
  • Server-Side: Kubernetes
Page 6 of 6

9. Assumptions and Constraints

  • Assumptions:

    • Users will have stable internet connections for real-time updates.
    • The Android app will be compatible with devices running Android 8.0 (Oreo) and above.
  • Constraints:

    • Limited to Indian regulatory requirements for data storage and privacy.
    • AI models must be optimized for low-latency performance.

10. Glossary

  • AI: Artificial Intelligence
  • NLP: Natural Language Processing
  • JWT: JSON Web Token
  • WebSocket: A protocol for real-time communication
  • LSTM: Long Short-Term Memory (a type of neural network)
  • Rasa: An open-source NLP framework

This SRD provides a comprehensive foundation for the development of the grand-security application. Let’s move forward to bring this vision to life!

Landing design preview
Login: Sign In
Admin Dashboard: View System Stats
Admin Dashboard: Monitor Logs
Users: Manage Accounts
Users: Edit Permissions
AI Models: Update Thresholds
AI Models: Deploy Updates