SPECTRA-X is an intelligent cyber-defense and telemetry platform designed to protect Wireless Sensor Networks (WSNs) and IoT devices against Broadband Jamming and Flood (Replay Packet) attacks. The system combines hardware-level threat detection, real-time spectrum monitoring, and Frequency Hopping Spread Spectrum (FHSS) capabilities to maintain communication reliability under hostile RF conditions.
By continuously analyzing RF activity, SPECTRA-X detects abnormal behavior, classifies threats, and automatically switches to a safer communication channel when necessary.
Real-time spectrum analysis, waterfall heatmaps, and AI-assisted threat classification dashboard.
- Hardware-based hysteresis filtering on STM32
- Statistical variance analysis on the Python backend
- Noise and interference discrimination
- Real-time anomaly detection
- Manual frequency switching
- Autonomous FHSS support
- Secure channel migration
- Communication continuity during attacks
- Live RSSI tracking
- Spectrum visualization
- Waterfall heatmap display
- Threat status indicators
- Continuous Wave (CW) Jamming detection
- Flood / Replay attack detection
- Statistical variance analysis
- Rule-based threat assessment
- CSV-based data recording
- Millisecond-resolution telemetry
- Machine learning dataset generation
- Historical attack analysis
RF Environment
│
▼
┌──────────────────┐
│ CC1101 │
│ RF Transceiver │
└────────┬─────────┘
│ SPI
▼
┌──────────────────┐
│ STM32F103C8T6 │
│ Detection Layer │
└────────┬─────────┘
│ UART
▼
┌─────────────────────────────────┐
│ Python Command & Control Center │
│ Threat Classification Engine │
│ Data Logger │
│ Visualization System │
└────────────────┬────────────────┘
│
▼
Frequency Hopping
Countermeasure
| Component | Description |
|---|---|
| STM32F103C8T6 | Main microcontroller |
| CC1101 | RF transceiver |
| USB-to-TTL Adapter | PC communication |
| Breadboard | Rapid prototyping |
| 3.3V Regulator | Power management |
| CC1101 Pin | STM32 Pin | Function |
|---|---|---|
| GND | GND | Ground |
| VCC | 3.3V | Power |
| CSN | PA4 | SPI Chip Select |
| SCK | PA5 | SPI Clock |
| MOSI | PA7 | SPI Master Out |
| MISO | PA6 | SPI Master In |
| STM32 | USB-TTL |
|---|---|
| PA9 (TX) | RX |
| GND | GND |
Baud Rate: 115200
The following settings were used:
- SPI1 Enabled
- Full Duplex Master Mode
- UART1 Enabled
- 115200 Baud Rate
- External HSE Crystal
- SWD Debug Interface
git clone https://github.com/CinarSamet/spectra-x.git
cd spectra-xpip install customtkinter matplotlib numpy pyserialOpen config.py and update your serial port:
Windows:
SERIAL_PORT = "COM3"Linux:
SERIAL_PORT = "/dev/ttyUSB0"macOS:
SERIAL_PORT = "/dev/cu.usbserial"python main.pyUnlike traditional systems that rely solely on a fixed threshold, SPECTRA-X evaluates multiple RF characteristics:
- Average RSSI
- RSSI rise rate
- Moving-window variance
- Standard deviation (σ)
RSSI > Threshold
σ < 3.0
A high-power signal with very low variance is classified as:
Continuous Wave Jamming
RSSI > Threshold
σ > 3.0
A high-power signal with irregular fluctuations is classified as:
Flood / Replay Attack
The platform can generate labeled RF telemetry datasets in CSV format:
timestamp,rssi,variance,label
1250,47,1.2,NORMAL
1260,91,0.8,JAMMING
1270,88,8.4,FLOODThese datasets can be used to train:
- Random Forest
- XGBoost
- Support Vector Machines (SVM)
- Neural Networks
- STM32 RF Telemetry
- Python Dashboard
- Waterfall Visualization
- CSV Data Logging
- Hysteresis-Based Detection
- Random Forest Integration
- XGBoost Classifier
- Autonomous Frequency Hopping
- Threat History Analysis
- ML Training Interface
- Multi-CC1101 Support
- Mesh Network Protection
- SDR Integration
- LoRa Support
- Edge AI Module
- Wireless Sensor Networks (WSN)
- Industrial IoT Systems
- Smart Agriculture Infrastructure
- Critical Telemetry Links
- Drone Communication Networks
- RF Security Research
- Embedded Security Platforms
- Defense and Aerospace Communication Systems
This project is licensed under the MIT License.
For more information, see:
LICENSE
Samet Çınar
Computer Engineer
Embedded Systems • RF Security • IoT • Artificial Intelligence
Detect. Analyze. Evade.
SPECTRA-X — Tactical RF Evasion System



