A machine learning based mobile app security testing framework
Project description
API Security Tester
A machine learning-based framework for testing and assessing mobile application security vulnerabilities.
Features
- Vulnerability detection using machine learning
- Security risk assessment
- Detailed security reports generation
- Advanced metrics calculation (ROC-AUC, PR-AUC)
- Support for multiple security features analysis
Installation
pip install api-security-tester
Quick Start
from api_security_tester import MobileAppSecurityFramework
# Initialize the framework
framework = MobileAppSecurityFramework()
# Example security features to analyze
app_features = {
'storage_encryption_level': 0.8,
'api_security_score': 0.7,
'data_transmission_security': 0.9,
'authentication_strength': 0.8,
'input_validation_score': 0.7,
'network_communication_security': 0.8,
'third_party_library_risk': 0.2,
'runtime_permissions_management': 0.7,
'code_obfuscation_level': 0.6,
'certificate_pinning_implementation': 0.8
}
# Detect vulnerabilities
results = framework.detect_vulnerabilities(app_features)
# Generate security report
report = framework.generate_security_report(results)
print(report)
Security Features
The framework analyzes the following security aspects:
- Storage Encryption Level
- API Security
- Data Transmission Security
- Authentication Strength
- Input Validation
- Network Communication Security
- Third-party Library Risk
- Runtime Permissions Management
- Code Obfuscation
- Certificate Pinning
Advanced Usage
Training Custom Models
# Generate and train with custom dataset
framework.generate_dataset(n_samples=1000)
framework.load_dataset('mobile_app_vulnerabilities.csv')
framework.build_ml_model()
framework.train_model()
# Save trained model
framework.save_model('custom_model.h5')
Calculating Advanced Metrics
# Get model performance metrics
metrics = framework.calculate_advanced_metrics()
print(f"ROC-AUC Score: {metrics['roc_auc']}")
print(f"PR-AUC Score: {metrics['pr_auc']}")
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please open an issue in the GitHub repository or contact contact@ashinno.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file api_security_tester-0.1.0.tar.gz.
File metadata
- Download URL: api_security_tester-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d30b57bbf2f7b68d4ab939e486e1e79960e576d1100dd5d7f13e1013f4d2a1
|
|
| MD5 |
10d3ae36c731d6e75a95e9042509f983
|
|
| BLAKE2b-256 |
b664e3ca2450eadfebb0fc80b25b394cba236e7501044f0e639ad02745ab45c1
|
File details
Details for the file api_security_tester-0.1.0-py3-none-any.whl.
File metadata
- Download URL: api_security_tester-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03518b70474ded0eb833eadcdb877a6582173c2ca48d50d025d7323f46b87d0f
|
|
| MD5 |
f6614198f3970b20d7969ed0e5626b17
|
|
| BLAKE2b-256 |
f4fcb5217e17bab21f903cf92cf7c3b7d502b96a25aeec1603c86e7f59750ae0
|