Skip to content

okba14/Super-RNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš™๏ธ Super RNN: Advanced AI System for Kali Linux Security Analysis โš™๏ธ

Custom-built Recurrent Neural Network (RNN) in pure C for advanced threat prediction, system learning, and security intelligence.


๐Ÿ“˜ Overview

Super RNN is an advanced artificial intelligence system specifically designed for security analysis on Kali Linux.
It implements a custom Recurrent Neural Network (RNN) from scratch in C to analyze system configurations, logs, and security patterns.
The system learns from Linux environments, predicts security threats, and generates comprehensive security reports.


๐Ÿš€ Key Features

  • ๐Ÿง  Custom RNN Implementation: Built entirely in C with no external dependencies
  • โš™๏ธ Adam Optimizer: Momentum + adaptive learning rate with bias correction
  • ๐Ÿ” Security Analysis: Deep inspection of logs, configs, and system behavior
  • ๐Ÿ“Š Threat Prediction: Learns Linux patterns to estimate threat levels
  • ๐Ÿงพ Automated Reporting: Generates detailed reports with threat metrics
  • ๐Ÿ’ป Command Learning: Understands and executes Linux commands
  • โฑ๏ธ Real-time Monitoring: Tracks CPU, memory, and disk activity
  • ๐Ÿงฉ Early Stopping: Prevents overfitting dynamically
  • ๐Ÿ“ˆ Data Normalization: Stabilizes training & improves accuracy

๐Ÿ—๏ธ Technical Architecture

๐Ÿงฉ RNN Structure

  • Input-to-hidden weights (wxh)
  • Hidden-to-hidden weights (whh)
  • Hidden-to-output weights (why)
  • Biases (bxh, by)
  • Hidden state (h) and prediction (y_pred) buffers

โš™๏ธ Adam Optimizer

  • Maintains momentum (m) & velocity (v)
  • Bias correction for stability
  • Adaptive learning rates (ฮต smoothing)

๐Ÿงฎ Data Processing

  • Text-to-numeric log conversion
  • Normalization/denormalization
  • Gradient clipping (anti-explosion)

๐Ÿ›ก๏ธ Security Analysis

  • Config file analysis (/etc/passwd, /etc/group, etc.)
  • Log parsing (/var/log/syslog, /var/log/auth.log, etc.)
  • Command learning from Linux utilities
  • Threat prediction & report generation

๐Ÿง  Training Process

๐Ÿ”ง Initialization

  • Xavier weight initialization
  • Adam parameters reset
  • Memory allocation for RNN states

๐Ÿ” Training Loop

  • Forward pass with dropout
  • Loss via MSE
  • BPTT (Backpropagation Through Time)
  • Adam updates
  • Early stopping (validation loss)

๐Ÿงฐ Installation & Compilation

๐Ÿงฉ Prerequisites

  • ๐Ÿง Linux OS (tested on Kali Linux)
  • ๐Ÿงฑ GCC compiler
  • ๐Ÿ“š Standard C libs (math.h, stdlib.h, etc.)

โšก Compilation

gcc -O3 -Wall -Wextra -o super_rnn super_rnn.c -lm

โ–ถ๏ธ Execution

./super_rnn
sudo ./super_rnn

๐Ÿงพ Usage

1๏ธโƒฃ System Initialization

  • Trains RNN with sample sequence (1โ†’2โ†’3โ†’...)

2๏ธโƒฃ System Learning

  • Reads /etc files

  • Parses /var/log

  • Learns Linux commands

  • Monitors CPU/memory

3๏ธโƒฃ Security Analysis

  • Detects anomalies

  • Predicts threat levels

  • Generates /tmp/security_report.txt

๐Ÿงช Example Output

=== LEGENDARY KALI LINUX AI SYSTEM ===
Initializing advanced RNN model...
Training initial model...
Epoch 0 | Loss = 0.248321 | Best: 0.248321
...
Security threat level: 0.32
System appears secure.
Security report saved to /tmp/security_report.txt

๐Ÿ“Š Security Report Sample

Includes:

  • System info (CPU cores, memory usage)

  • Files analyzed

  • Commands learned

  • Logs processed

Threat level: ๐ŸŸข LOW / ๐ŸŸ  MEDIUM / ๐Ÿ”ด HIGH



โš™๏ธ Dependencies

Type Description
๐Ÿงฉ Standard C Libraries math.h, stdio.h, stdlib.h, time.h, float.h, string.h, dirent.h, sys/stat.h, sys/types.h, unistd.h, fcntl.h, sys/wait.h
๐Ÿง  Linux System Files /proc/cpuinfo, /proc/meminfo, /etc, /var/log

๐Ÿ‘ค Author

๐Ÿ”— Field Information
๐Ÿง‘โ€๐Ÿ’ป Name GUIAR OQBA
๐Ÿ“ง Email techokba@gmail.com
๐ŸŒ ORCID 0009-0008-1629-0002
๐Ÿ’ผ LinkedIn guiar-oqba
๐Ÿ’ป GitHub okba14
๐Ÿ“š Zenodo 15786076
๐Ÿ“ Hashnode @okba
โœˆ๏ธ Telegram @okba_elkantara
๐Ÿ‡ฉ๐Ÿ‡ฟ Made in Algeria

๐Ÿ•“ Version History

๐Ÿ“„ See CHANGELOG.md for detailed release notes.
๐Ÿงฉ Current version: v1.0.0 (Stable Build)


๐Ÿ“œ License


Super RNN โ€” Advanced AI System for Kali Linux Security Analysis
Developed by GUIAR OQBA ๐Ÿ‡ฉ๐Ÿ‡ฟ | Empowering AI-based Security on Linux

About

race-dump

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages