Skip to content

About

The O-RAN Security Test Case Generator is a cutting-edge AI-powered platform designed to revolutionize security testing and threat analysis for Open Radio Access Networks (O-RAN). This comprehensive tool combines advanced machine learning, deep learning, and artificial intelligence techniques to provide automated security analysis and comprehensive

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

O-RAN Security Test Case Generator πŸ›‘οΈ

O-RAN Logo Python TensorFlow PyTorch License

Advanced AI-Powered O-RAN Network Security Analysis Platform

Comprehensive security test case generation and threat analysis for Open Radio Access Networks

πŸš€ Quick Start β€’ πŸ“Š Features β€’ πŸ› οΈ Installation β€’ πŸ“– Documentation β€’ 🀝 Contributing

🎯 Overview

The O-RAN Security Test Case Generator is a cutting-edge AI-powered platform designed to revolutionize security testing and threat analysis for Open Radio Access Networks (O-RAN). This comprehensive tool combines advanced machine learning, deep learning, and artificial intelligence techniques to provide automated security analysis and comprehensive network optimization.pen RAN Security Test Case Generator

A comprehensive O-RAN security analysis tool that generates security test cases using AI and provides quantitative dataset analysis from O-RAN free sources.

βœ… COMPLETED FEATURES

πŸ”§ Core Migration

  • βœ… Complete Gemini 2.5 Flash Migration: Replaced all OpenAI API usage with Google Gemini
  • βœ… Environment Setup: Updated .env and .env.template for Gemini-only operation
  • βœ… Dependencies: Updated Pipfile with all required data analysis libraries
  • βœ… Testing: Comprehensive test suite for all components

πŸ” O-RAN Dataset Analysis & Quantitative Assessment

  • βœ… Multi-Dataset Support: Analyze 10+ O-RAN datasets simultaneously

    • Performance metrics (Near-RT RIC, E2 traces, xApp performance)
    • Security metrics (vulnerability assessments, threat analysis)
    • Configuration data (O-RAN components, RIC configuration)
    • Standards compliance (ASVS, CAPEC, CWE)
  • βœ… Security Analysis:

    • Vulnerability assessment with CVSS scoring
    • Threat pattern analysis and categorization
    • Security score calculation (0-10 scale)
    • Component-level security analysis
  • βœ… Performance Analysis:

    • Latency, throughput, and availability metrics
    • Resource utilization tracking (CPU, memory, network)
    • SLA compliance monitoring
    • Performance trend analysis
  • βœ… Interactive Visualizations:

    • Security dashboards with gauge charts
    • Performance trend graphs
    • Vulnerability distribution charts
    • Component analysis visualizations

πŸ“Š O-RAN Free Source Data Collection

  • βœ… O-RAN Alliance Specifications: Automated collection of official O-RAN specs
  • βœ… 3GPP Standards: Integration with 3GPP technical specifications
  • βœ… Cybersecurity Frameworks: NIST, MITRE ATT&CK, CWE, CAPEC integration
  • βœ… Export Capabilities: JSON and CSV format support
  • βœ… Metadata Tracking: Complete audit trail of collected data

🎯 Enhanced User Interface

  • βœ… Multi-Page Navigation: Seamless switching between:
    • Security Test Case Generator
    • O-RAN Dataset Analysis
    • Data Collection Interface
  • βœ… Interactive Controls: Real-time analysis configuration
  • βœ… Progress Monitoring: Live updates during data collection and analysis
  • βœ… Results Export: One-click export of analysis results

πŸ§ͺ Comprehensive Testing

  • βœ… Integration Testing: End-to-end system verification
  • βœ… Component Testing: Individual module validation
  • βœ… API Testing: Gemini integration verification
  • βœ… Data Validation: Dataset integrity checking

πŸš€ GETTING STARTED

Prerequisites

  • Python 3.8+
  • Gemini API key from Google AI Studio

Quick Setup

# Clone repository
git clone https://github.com/sachin-deshik-10/O-RAN-Security-Test-Case-Generator.git
cd O-RAN-Security-Test-Case-Generator

# Install dependencies
pip install -r requirements.txt
# OR use pipenv
pipenv install && pipenv shell

# Set up environment
cp .env.template .env
# Edit .env and add your GEMINI_API_KEY

# Run comprehensive tests
python test_integration.py

# Launch application
streamlit run app.py

πŸ“ˆ USAGE EXAMPLES

Security Test Case Generation

  1. Navigate to the main page
  2. Input your O-RAN use case scenario
  3. Select relevant attack patterns (CAPEC, CWE)
  4. Choose security requirements (ASVS)
  5. Generate AI-powered test cases

Dataset Analysis

  1. Navigate to "O-RAN Dataset Analysis"
  2. Select datasets: Performance, Security, E2 Traces, etc.
  3. Configure analysis options:
    • Basic Statistics βœ“
    • Security Metrics βœ“
    • Performance Metrics βœ“
    • Interactive Visualizations βœ“
  4. View comprehensive analysis results

Data Collection

  1. Navigate to "Data Collection"
  2. Select sources: O-RAN Alliance, 3GPP, NIST, etc.
  3. Configure collection parameters
  4. Start automated data collection
  5. Export results in JSON/CSV format

πŸ“Š QUANTITATIVE RESULTS

Sample Analysis Output

{
  "security_analysis": {
    "total_vulnerabilities": 50,
    "critical_issues": 12,
    "security_score": 4.4,
    "cvss_distribution": {
      "critical": 12,
      "high": 18,
      "medium": 15,
      "low": 5
    }
  },
  "performance_analysis": {
    "avg_latency": 4.8,
    "throughput": 1050.5,
    "availability": 99.7,
    "resource_utilization": {
      "cpu": 68.5,
      "memory": 72.1,
      "network": 45.3
    }
  }
}

Collected Data Sources

  • O-RAN Alliance: 4 specifications (E2AP, A1AP, O1, xApp SDK)
  • 3GPP Standards: 15+ relevant technical specifications
  • NIST Framework: 108 cybersecurity controls
  • MITRE ATT&CK: 185 ICS-specific attack techniques
  • CWE Database: 900+ weakness patterns
  • CAPEC: 544 attack patterns

πŸ”§ TESTING

Run All Tests

# Comprehensive integration test
python test_integration.py

# Individual component tests
python test_gemini.py           # Gemini API integration
python test_data_analysis.py    # Data analysis functionality
python test_data_collection.py  # Data collection functionality
python test_comprehensive.py    # Additional comprehensive tests

Test Results

  • βœ… 8/8 Integration Tests Passed (100% success rate)
  • βœ… All imports successful
  • βœ… Data files validated
  • βœ… Gemini API integration working
  • βœ… NLTK data available
  • βœ… Analysis functionality verified
  • βœ… Data collection operational

🎯 WHAT'S NEXT: RECOMMENDED ENHANCEMENTS

1. Advanced Machine Learning Integration

  • Anomaly Detection: ML-based detection of unusual O-RAN behavior patterns
  • Predictive Analytics: Forecast security threats and performance issues
  • Automated Classification: AI-powered categorization of vulnerabilities and threats
  • Real-time Monitoring: Continuous analysis of live O-RAN data streams

2. Enhanced Data Sources

  • O-RAN SC Integration: Connect to O-RAN Software Community live repositories
  • Real-time Telemetry: Integration with actual O-RAN deployments
  • Vendor-specific Data: Support for major O-RAN vendor datasets
  • 5G Core Integration: Extend analysis to 5G Core network components

3. Advanced Analytics & Reporting

  • Compliance Dashboards: Automated compliance reporting for O-RAN standards
  • Risk Assessment: Comprehensive risk scoring and mitigation recommendations
  • Executive Reports: High-level security and performance summaries
  • Trend Analysis: Historical analysis and forecasting capabilities

4. Integration & Automation

  • API Endpoints: RESTful API for programmatic access to analysis capabilities
  • CI/CD Integration: Automated security testing in O-RAN development pipelines
  • SIEM Integration: Export findings to security information and event management systems
  • Ticketing System: Automated issue creation for identified vulnerabilities

5. User Experience Enhancements

  • Role-based Access: Different interfaces for developers, security analysts, and executives
  • Custom Dashboards: User-configurable analysis dashboards
  • Notification System: Real-time alerts for critical security issues
  • Mobile Interface: Responsive design for mobile access

6. Cloud & Scalability

  • Azure Integration: Deploy on Azure with auto-scaling capabilities
  • Multi-tenant Support: Support for multiple O-RAN deployments
  • Big Data Processing: Handle large-scale O-RAN datasets efficiently
  • Global Deployment: Multi-region deployment for global O-RAN analysis

7. Advanced Security Features

  • Threat Intelligence: Integration with commercial threat intelligence feeds
  • Attack Simulation: Automated attack scenario generation and testing
  • Incident Response: Automated response recommendations for security incidents
  • Forensic Analysis: Deep-dive analysis capabilities for security investigations

πŸ—οΈ ARCHITECTURE OVERVIEW

Current Implementation

O-RAN Security Test Case Generator
β”œβ”€β”€ Core Application (app.py)
β”‚   β”œβ”€β”€ Security Test Case Generation
β”‚   β”œβ”€β”€ Dataset Analysis Interface
β”‚   └── Data Collection Interface
β”œβ”€β”€ Data Analysis Engine (oran_data_analyzer.py)
β”‚   β”œβ”€β”€ Statistical Analysis
β”‚   β”œβ”€β”€ Security Metrics
β”‚   β”œβ”€β”€ Performance Metrics
β”‚   └── Visualization Generation
β”œβ”€β”€ Data Collection Engine (collect_oran_data.py)
β”‚   β”œβ”€β”€ O-RAN Alliance Specs
β”‚   β”œβ”€β”€ 3GPP Standards
β”‚   β”œβ”€β”€ Cybersecurity Frameworks
β”‚   └── Export Capabilities
β”œβ”€β”€ Testing Framework
β”‚   β”œβ”€β”€ Integration Tests
β”‚   β”œβ”€β”€ Component Tests
β”‚   └── API Tests
└── Data Repository (./data/)
    β”œβ”€β”€ O-RAN Components
    β”œβ”€β”€ Security Standards
    β”œβ”€β”€ Performance Data
    └── Compliance Frameworks

Recommended Future Architecture

Cloud-Native O-RAN Security Platform
β”œβ”€β”€ Frontend (React/Vue.js)
β”‚   β”œβ”€β”€ Executive Dashboard
β”‚   β”œβ”€β”€ Analyst Interface
β”‚   └── Developer Console
β”œβ”€β”€ API Gateway
β”‚   β”œβ”€β”€ Authentication
β”‚   β”œβ”€β”€ Rate Limiting
β”‚   └── Request Routing
β”œβ”€β”€ Microservices
β”‚   β”œβ”€β”€ Data Collection Service
β”‚   β”œβ”€β”€ Analysis Engine
β”‚   β”œβ”€β”€ ML/AI Service
β”‚   └── Notification Service
β”œβ”€β”€ Data Layer
β”‚   β”œβ”€β”€ Time-series Database
β”‚   β”œβ”€β”€ Graph Database
β”‚   └── Document Store
└── Integration Layer
    β”œβ”€β”€ O-RAN SC Connector
    β”œβ”€β”€ Cloud APIs
    └── SIEM Integrations

🀝 CONTRIBUTING

Adding New Data Sources

  1. Extend ORANDataCollector class with new collection methods
  2. Add data source configuration to the UI
  3. Implement data validation and transformation
  4. Add comprehensive tests

Adding New Analysis Metrics

  1. Extend ORANDataAnalyzer class with new analysis methods
  2. Add visualization components using Plotly
  3. Update the Streamlit interface
  4. Add unit tests and integration tests

Adding New Visualizations

  1. Create new Plotly chart components
  2. Integrate with the analysis dashboard
  3. Add export functionality
  4. Test across different datasets

πŸ“„ LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ ACKNOWLEDGMENTS

  • O-RAN Alliance for open specifications
  • 3GPP for technical standards
  • NIST for cybersecurity framework
  • MITRE Corporation for ATT&CK framework
  • Google for Gemini AI API
  • Streamlit for the web framework

About

The O-RAN Security Test Case Generator is a cutting-edge AI-powered platform designed to revolutionize security testing and threat analysis for Open Radio Access Networks (O-RAN). This comprehensive tool combines advanced machine learning, deep learning, and artificial intelligence techniques to provide automated security analysis and comprehensive

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages