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.2.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.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file api_security_tester-0.2.0.tar.gz.

File metadata

  • Download URL: api_security_tester-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 f6e740375e6e0d90f35616256d0d5863d3a2b3123ce6aea17a95843828aa8a15
MD5 5bcf5095086ba09b0eefca09509ff003
BLAKE2b-256 ef6115dedccf13851e8e1c03414abe85104766ff46ef7caca7ec1c5a1b321329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for api_security_tester-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9844112dfc6097b9d3f3730de6e73b5db1d248ba450efd35e0e869b4657a9413
MD5 ec3f935d1ce8bf27eb99d95af00c406f
BLAKE2b-256 15b764ffe75e5161c0d7782ce52123832e69bdca01d762674a0a2bf644b41bb8

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