Skip to content

Pradeo Mobile Security Executor

Category: Source Code Analysis Script: pradeo_mobile.py Integration: REST API (Bearer token) Faraday Plugin: Raw JSON Website: https://www.pradeo.com/

Description

Imports mobile application security (MAST) threats from Pradeo into Faraday. The executor reads the applications in your Pradeo tenant and their threats, and creates one Faraday host per application with the threats as vulnerabilities.

Prerequisites

  • A Pradeo Security Center tenant (or on-prem manager) with API access
  • A Pradeo API token, created in the Security Center under Settings, API
  • Network access from the agent to the Pradeo host

Configuration

Environment Variables (Setup)

Variable Required Description
PRADEO_HOST Yes Base URL of your Pradeo Security Center (e.g., https://api.pradeo.net). If you omit the scheme, https:// is used.
PRADEO_TOKEN Yes Pradeo API token

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
PRADEO_APP_BUNDLE_ID string No Only import the application with this bundle ID or Android package name (e.g., com.example.app). Default: all applications.
PRADEO_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)

YAML Configuration Example

executors:
  pradeo_mobile:
    repo_executor: pradeo_mobile.py
    max_size: 65536
    varenvs:
      PRADEO_HOST: "https://api.pradeo.net"
      PRADEO_TOKEN: "<pradeo_token>"
    params:
      PRADEO_APP_BUNDLE_ID:
        mandatory: false
        type: string
        base: string
      PRADEO_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Sends the token as a Bearer credential on every request
  2. Lists the applications from /api/v1/applications, filtered by PRADEO_APP_BUNDLE_ID if set, 100 per page
  3. For each application, reads its threats from /api/v1/threats
  4. Maps each threat to a vulnerability named [MAST] <threat title>:
    • Severity: Pradeo's rating (text or 0-4 scale), or the CVSS score when the rating is missing
    • Status: fixed or resolved threats become closed, and false-positive, accepted-risk or ignored threats become risk-accepted
    • References: CWE IDs, OWASP Mobile and MASVS categories, the Pradeo rule and any linked advisories
  5. Drops threats below PRADEO_MIN_SEVERITY

Notes

  • Each application becomes a host with IP 0.0.0.0, because mobile app findings do not belong to IP addresses. The hostname is the bundle ID or, if missing, the app name.
  • Applications without threats after filtering are not created.
  • TLS certificates are not verified when connecting to Pradeo.
  • A 401 response stops the run. Other errors on a request skip that request and are written to the agent log.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use PRADEO_MIN_SEVERITY to filter by severity.