Custom-built Recurrent Neural Network (RNN) in pure C for advanced threat prediction, system learning, and security intelligence.
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.
- ๐ง 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
- 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
- Maintains momentum (
m) & velocity (v) - Bias correction for stability
- Adaptive learning rates (ฮต smoothing)
- Text-to-numeric log conversion
- Normalization/denormalization
- Gradient clipping (anti-explosion)
- 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
- Xavier weight initialization
- Adam parameters reset
- Memory allocation for RNN states
- Forward pass with dropout
- Loss via MSE
- BPTT (Backpropagation Through Time)
- Adam updates
- Early stopping (validation loss)
- ๐ง Linux OS (tested on Kali Linux)
- ๐งฑ GCC compiler
- ๐ Standard C libs (
math.h,stdlib.h, etc.)
gcc -O3 -Wall -Wextra -o super_rnn super_rnn.c -lm./super_rnn
sudo ./super_rnn- Trains RNN with sample sequence (1โ2โ3โ...)
-
Reads /etc files
-
Parses /var/log
-
Learns Linux commands
-
Monitors CPU/memory
-
Detects anomalies
-
Predicts threat levels
-
Generates /tmp/security_report.txt
=== 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-
System info (CPU cores, memory usage)
-
Files analyzed
-
Commands learned
-
Logs processed
| 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 |
| ๐ Field | Information |
|---|---|
| ๐งโ๐ป Name | GUIAR OQBA |
| ๐ง Email | techokba@gmail.com |
| ๐ ORCID | 0009-0008-1629-0002 |
| ๐ผ LinkedIn | guiar-oqba |
| ๐ป GitHub | okba14 |
| ๐ Zenodo | 15786076 |
| ๐ Hashnode | @okba |
| @okba_elkantara | |
| ๐ฉ๐ฟ Made in | Algeria |
๐ See CHANGELOG.md for detailed release notes.
๐งฉ Current version: v1.0.0 (Stable Build)
Super RNN โ Advanced AI System for Kali Linux Security Analysis
Developed by GUIAR OQBA ๐ฉ๐ฟ | Empowering AI-based Security on Linux