This project demonstrates a basic ransomware prevention system by integrating encryption, anomaly detection, and alerting functionalities. The system encrypts sensitive data, detects anomalies in the data, and sends an alert if an anomaly is detected.
The project requires the following dependencies:
numpy
smtplib
encryption_module
anomaly_detection_module
alert_system
Ensure you have these dependencies installed. If the custom modules (encryption_module
, anomaly_detection_module
, alert_system
) are not standard packages, make sure they are available in your project directory or installed appropriately.
To install the required dependencies, run the following command:
pip install numpy
pip install pycryptodome scikit-learn
Note: Custom modules should be installed or available in your project directory.
- Encryption Example: Encrypts and decrypts a sensitive message.
- Anomaly Detection Example: Trains an anomaly detector on normal data and predicts anomalies in test data.
- Alert System: Sends an email alert if an anomaly is detected.
- Clone the repository or download the source code.
- Ensure you have the required dependencies installed.
- Navigate to the project directory.
- Run the main script:
python main.py
The project includes error handling for the alert system to ensure the rest of the script executes smoothly even if an error occurs while sending the alert.
Running the script will output the following:
- Encrypted message
- Decrypted message
- Predictions of anomalies
- An error message if there is an issue sending the alert
If you encounter any issues, ensure that:
- All custom modules are correctly installed or available in the project directory.
- The SMTP server details in
alert.py
are correctly configured.
For any other issues, please refer to the error messages printed by the script.