Skip to main content

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:

  1. Storage Encryption Level
  2. API Security
  3. Data Transmission Security
  4. Authentication Strength
  5. Input Validation
  6. Network Communication Security
  7. Third-party Library Risk
  8. Runtime Permissions Management
  9. Code Obfuscation
  10. 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


Download files

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

Source Distribution

api_security_tester-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

api_security_tester-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for api_security_tester-0.1.0.tar.gz
Algorithm Hash digest
SHA256 18d30b57bbf2f7b68d4ab939e486e1e79960e576d1100dd5d7f13e1013f4d2a1
MD5 10d3ae36c731d6e75a95e9042509f983
BLAKE2b-256 b664e3ca2450eadfebb0fc80b25b394cba236e7501044f0e639ad02745ab45c1

See more details on using hashes here.

File details

Details for the file api_security_tester-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for api_security_tester-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03518b70474ded0eb833eadcdb877a6582173c2ca48d50d025d7323f46b87d0f
MD5 f6614198f3970b20d7969ed0e5626b17
BLAKE2b-256 f4fcb5217e17bab21f903cf92cf7c3b7d502b96a25aeec1603c86e7f59750ae0

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