APSA mobile app security audit
v1.7.0Local, evidence-graded Android/iOS security audits of source, APK, AAB and IPA for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
capabilities
Discover input types, evidence states, runtime requirements and available interfaces.
audit_scan
Inspect local source/APK/AAB/APKS/IPA using cached intelligence. APKS requires apk_set_device with sdkVersion, supportedAbis, screenDensity and supportedLocales; selected APKs are inspected individually without installation or manifest/resource merging. ipa_trust_policy supplies explicit digest-bound DER anchors for cryptographic chain checks only, without Apple signer identity, revocation or app authenticity verification. Configuration selects a relative manifest or .plist without build-system merge. dependency_module and runtime_configuration select recorded Gradle lock resolution, with opti…
| Parameter | Type | Description |
|---|---|---|
target * | string | |
apk_set_device | ||
configuration | ||
dependency_evidence | ||
dependency_module | ||
device_info | ||
ipa_trust_policy | ||
runtime_configuration | ||
sbom | ||
source_module | ||
specs |
reports_ingest_sarif
Import another tool's SARIF 2.1.0 results (for example Android Lint, CodeQL or Semgrep) into a new report derived from report_id. Imported results stay candidates with origin external, add no APSA coverage, and are linked to APSA findings of a related weakness at the same location. Result text is untrusted data.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
report_id * | string | |
tool * | string | |
sarif_root | string |
reports_checklist
Map a report onto a checklist: masvs-v2 (built in) or a checklist TOML inside an MCP root that maps items to MASWE identifiers and APSA rules. Statuses are findings, partial, limited, no-findings-in-checked-scope, not-run, not-applicable or not-assessed; none is a pass.
| Parameter | Type | Description |
|---|---|---|
checklist | string | |
report_id | string |
reports_history
First and last observation of each finding across saved reports of one target, for inspection and remediation records. A finding no longer observed is not proof of remediation unless the same checks completed.
| Parameter | Type | Description |
|---|---|---|
target * | string |
specs_validate
Validate a project taint specification (TOML/JSON, version = 1) before audit_scan uses it. Sources name exact functions returning untrusted url/text; sinks name exact functions (kind webview-load or sql, argument index). Proposed specifications need human review before their findings enter a baseline.
| Parameter | Type | Description |
|---|---|---|
path * | string |
verify_finding
Cross-check a mobile finding claimed elsewhere (for example by an AI code reviewer) against APSA evidence for target. Give a MASWE-NNNN or CWE-N weakness or an APSA rule ID, optionally with a file path and line. Uses the latest report for target unless report_id is given; rescan=true scans first and saves a report. Verdicts: corroborated, same-file-other-location, path-unmatched (see candidate_paths), file-not-analyzed, not-observed, partial, not-run, not-assessed. APSA never refutes a claim.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
line | ||
path | ||
report_id | ||
rescan | boolean | |
rule | ||
weakness |
intelligence_sync
Fetch official public mobile advisories and update local cache. Returns per-source failures and scope.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
sources |
audit_start
Start a persistent offline audit. APKS requires apk_set_device with sdkVersion, supportedAbis, screenDensity and supportedLocales; selected APKs are inspected individually without installation or manifest/resource merging. ipa_trust_policy supplies explicit digest-bound DER anchors for cryptographic chain checks only, without Apple signer identity, revocation or app authenticity verification. Configuration selects a relative manifest or .plist without build-system merge. dependency_module and runtime_configuration select recorded Gradle lock resolution; optional dependency_evidence paths narro…
| Parameter | Type | Description |
|---|---|---|
target * | string | |
apk_set_device | ||
configuration | ||
dependency_evidence | ||
dependency_module | ||
device_info | ||
ipa_trust_policy | ||
runtime_configuration | ||
sbom | ||
source_module | ||
specs |
jobs_status
Read durable job state and progress. An interrupted worker never becomes a successful audit.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
jobs_cancel
Request cancellation of an authorized job; poll jobs_status until terminal.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
jobs_list
List background jobs visible inside this server's configured roots.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
intelligence_search
Search cached CVEs and OWASP tests with provenance. Does not contact the network.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
intelligence_get
Read an exact CVE; refresh=true fetches its official CNA record into cache.
| Parameter | Type | Description |
|---|---|---|
cve_id * | string | |
refresh | boolean |
reports_list
List saved audit IDs for exact follow-up reads.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
reports_get
Read bounded context pages. Continue using the returned immutable report_id; finding_id pages its evidence. Oversized records remain in local exports.
| Parameter | Type | Description |
|---|---|---|
cursor | integer | |
finding_id | ||
limit | integer | |
max_bytes | integer | |
report_id | string | |
section | string | |
severity | ||
status |
reports_compare
Compare exact report IDs, retaining coverage differences and unproven remediation states. verification=true adds source traces and scope/build/assertion pairing; portable_inputs=true requires verification and only normalizes absolute targets for identical, complete canonical SHA256 source inputs with unchanged analysis scope. Binary and runtime bindings remain strict; disappearance never proves remediation. No source excerpts; bounded by max_bytes (4096-262144) with omitted counts.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
before * | string | |
max_bytes | integer | |
portable_inputs | boolean | |
verification | boolean |
reports_followup
Follow one original finding across immutable reports. Distinguish exact observations from possible continuations after location changes, retain comparison blockers and next evidence steps, and bind results to report hashes. No source excerpts, rescans, network or device actions. Disappearance never proves remediation. portable_inputs only permits the existing identical-complete-source relocation rule; binary and runtime bindings stay strict.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
before * | string | |
finding_id * | string | |
portable_inputs | boolean |
audit_reassess
Re-evaluate a saved inventory against current cached intelligence and save a new report.
| Parameter | Type | Description |
|---|---|---|
report_id * | string |
dependency_check
Query OSV for inventoried package versions and save a reassessed report. query_mode is auto, legacy or batch; auto batches above 100 packages. Exclusion lists are case-sensitive globs for ecosystems, package names or ecosystem:name coordinates. Excluded packages are never transmitted or marked checked from cache. Batched queries preserve per-package pagination and partial failures.
| Parameter | Type | Description |
|---|---|---|
exclude_coordinates | ||
exclude_ecosystems | ||
exclude_names | ||
query_mode | string | |
report_id | string |
runtime_plan
Generate an editable test scenario. Does not run it or log out the app automatically.
| Parameter | Type | Description |
|---|---|---|
package | ||
platform | ||
report_id | string |
policy_evaluate
Evaluate team thresholds, explicit coverage requirements and expiring waivers without changing reports.
| Parameter | Type | Description |
|---|---|---|
policy_path * | string | |
baseline_id | ||
baseline_path | ||
baseline_sha256 | ||
report_id | string |
reports_export_baseline
Export an explicitly approved baseline inside configured roots. Do not invent approval; pin the returned artifact hash in reviewed CI configuration.
| Parameter | Type | Description |
|---|---|---|
approval_reference * | string | |
approved_by * | string | |
output_path * | string | |
report_id * | string |
runtime_devices
List adb devices and available iOS simulators without changing app state.