Skip to main content

A project to analyze the behavior of AI models in post-quantum cybersecurity.

Project description

RooR: AI Behavior Analysis in Post-Quantum Cybersecurity

Overview

RooR is a Python R&D package designed to analyze the behavior of AI models in the context of post-quantum cybersecurity. It provides tools to:

  • Simulate post-quantum cryptographic attacks.
  • Analyze system logs for anomalies.
  • Evaluate the resilience of AI models against emerging threats.

This package is intended for research and development purposes in cybersecurity and AI resilience.


Key Features

  • AI Behavioral Analysis: Detect anomalies in logs using advanced machine learning techniques.
  • Post-Quantum Attack Simulation: Simulate lattice-based and code-based cryptographic attacks.
  • Resilience Evaluation: Assess AI model performance under post-quantum threat scenarios.
  • Report Generation: Export results in JSON and CSV formats for easy integration and analysis.

Installation

Install RooR using pip:

# Clone the repository
git clone https://github.com/eurocybersecurite/RooR.git
cd RooR

# Install the package
pip install .

Note: For development purposes, you can also install in editable mode:

pip install -e .

Running Tests

To run the automated tests for this project, activate the virtual environment and use the unittest module:

# Activate the virtual environment
source venv/bin/activate

# Run tests
python3 -m unittest discover tests

Usage Examples

Here’s a quick example demonstrating the main functionalities:

from RooR import behavioral_analysis, attack_simulation, report_generation
import pandas as pd

# --- 1. Simulate a post-quantum attack ---
target_model = "Quantum-Resistant AI Model"
attack_result = attack_simulation.simulate_lattice_based_attack(target_model)
report_generation.generate_json_report(attack_result, "attack_report.json")

# --- 2. Analyze logs for anomalies ---
log_data = {
    'timestamp': ['2023-10-27 10:00:00', '2023-10-27 10:05:00', '2023-10-27 10:10:00'],
    'event_type': ['login', 'logout', 'login']
}
pd.DataFrame(log_data).to_csv('dummy_logs.csv', index=False)

anomalies = behavioral_analysis.analyze_logs('dummy_logs.csv')
report_generation.generate_csv_report(anomalies, "anomalies_report.csv")

# --- 3. Evaluate model resilience ---
predictions = [1, 0, 1, 1, 0]
ground_truth = [1, 0, 1, 0, 1]

resilience = behavioral_analysis.evaluate_post_quantum_resilience(predictions, ground_truth)
report_generation.generate_json_report(resilience, "resilience_report.json")

Contributing

Contributions are welcome!

  • Open an issue to report bugs or request features.
  • Submit a pull request for improvements.

Please follow standard Python packaging and testing practices.


License

This project is licensed under the MIT License.


Developer Information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roor-0.0.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roor-0.0.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file roor-0.0.4.tar.gz.

File metadata

  • Download URL: roor-0.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for roor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6771a782503daa496a7cbaac3a86715fb5a67f572b2e091e3277fc1de0aa3747
MD5 accb3687a8e70c247d504e38d481c951
BLAKE2b-256 5a924151237be74f0c7a08e3f5b5e940a5781df66cc30c03e863c08a5c9e9883

See more details on using hashes here.

File details

Details for the file roor-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: roor-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for roor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8718ee96a5aef5207638512e45ef8bbe8166449eff55b4be9ed3cbfa08e15abc
MD5 8fc51825ef8ab114b83b360810d9319e
BLAKE2b-256 33b78eaaae218e7735cd9131377e57486a3ef6fc7dd1f3d85d97758108bbb852

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page