APSA mobile app security audit

v1.7.0
io.github.ictechgy/apsa Checked 16 hours ago Published 1 month ago

Local, 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…

ParameterTypeDescription
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.

ParameterTypeDescription
path *string
report_id *string
tool *string
sarif_rootstring

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.

ParameterTypeDescription
checkliststring
report_idstring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
target *string
line
path
report_id
rescanboolean
rule
weakness

intelligence_sync

Fetch official public mobile advisories and update local cache. Returns per-source failures and scope.

ParameterTypeDescription
limitinteger
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…

ParameterTypeDescription
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.

ParameterTypeDescription
job_id *string

jobs_cancel

Request cancellation of an authorized job; poll jobs_status until terminal.

ParameterTypeDescription
job_id *string

jobs_list

List background jobs visible inside this server's configured roots.

ParameterTypeDescription
limitinteger

intelligence_get

Read an exact CVE; refresh=true fetches its official CNA record into cache.

ParameterTypeDescription
cve_id *string
refreshboolean

reports_list

List saved audit IDs for exact follow-up reads.

ParameterTypeDescription
limitinteger

reports_get

Read bounded context pages. Continue using the returned immutable report_id; finding_id pages its evidence. Oversized records remain in local exports.

ParameterTypeDescription
cursorinteger
finding_id
limitinteger
max_bytesinteger
report_idstring
sectionstring
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.

ParameterTypeDescription
after *string
before *string
max_bytesinteger
portable_inputsboolean
verificationboolean

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.

ParameterTypeDescription
after *string
before *string
finding_id *string
portable_inputsboolean

audit_reassess

Re-evaluate a saved inventory against current cached intelligence and save a new report.

ParameterTypeDescription
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.

ParameterTypeDescription
exclude_coordinates
exclude_ecosystems
exclude_names
query_modestring
report_idstring

runtime_plan

Generate an editable test scenario. Does not run it or log out the app automatically.

ParameterTypeDescription
package
platform
report_idstring

policy_evaluate

Evaluate team thresholds, explicit coverage requirements and expiring waivers without changing reports.

ParameterTypeDescription
policy_path *string
baseline_id
baseline_path
baseline_sha256
report_idstring

reports_export_baseline

Export an explicitly approved baseline inside configured roots. Do not invent approval; pin the returned artifact hash in reviewed CI configuration.

ParameterTypeDescription
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.