Jarsight
See what's inside the jar.
An open source vulnerability scanner for Android apps. Give it an APK and it lists the libraries inside, their known vulnerabilities, insecure manifest settings, hard-coded secrets and tracking SDKs.
Alpha Jarsight is in early testing: expect false positives and missed libraries. Try it on your apps and tell us what it got wrong.
Know what ships in your app
App stores know which SDKs and versions each app contains. Developers and auditors usually don't. Jarsight rebuilds that list from the APK itself, as a standard SBOM.
Find vulnerabilities before attackers do
Every library it finds is checked against public vulnerability data, with severity and the version that fixes it.
Make it part of every build
One static binary that fits in CI pipelines and reports to the tools teams already use, free for anyone, including commercially.
How it works
Jarsight reads the APK on your machine. The app is never uploaded: the only network
request sends the names and versions of the open source libraries it found to OSV.dev, and
--offline turns even that off. The results go wherever your team already looks.
What it checks
An APK is a ZIP archive. Jarsight reads each part of it:
Manifest
Debuggable builds, backups, cleartext traffic, components exported without a permission, trust in user-installed CAs, task hijacking and old minimum SDKs, following Android's own defaults for the app's SDK levels.
Code
Library versions from string tables, libraries and tracking SDKs from their class names, and API keys compiled into the app.
Native libraries
OpenSSL, SQLite, curl and other C libraries bundled inside, with the exact version they were built from, and whether they were built with exploit mitigations (NX, RELRO, stack canaries).
Resources
Secrets hidden in string resources and config files, and the network security configuration.
Web code
In hybrid apps (Cordova, Capacitor, Ionic), JavaScript libraries such as jQuery or moment, recognized with Retire.js patterns along with their known vulnerabilities, and Cordova plugins with their exact versions.
Build metadata
Versions of AndroidX, Kotlin, Google Play services and Firebase recorded at build time, and the signing certificates: debug keys, v1-only signatures, weak keys.
Known vulnerabilities
Every library and Cordova plugin with a version is checked against OSV.dev, with severity, fixed version and references. JavaScript libraries are checked offline with the Retire.js data.
APKs can be built to attack the tools that open them, so Jarsight uses its own parsers with size limits, never runs code from the app, and escapes anything it prints.
Usage
$ jarsight scan demo.apk Package: com.example.demo 1.4.2 · minSdk 24 · targetSdk 34 Findings: 5 (CRITICAL: 1, HIGH: 2, MEDIUM: 1, LOW: 1) CRIT AWS access key ID JRS-SECRET-AWS… classes2.dex · AKIAFA…FNO6 HIGH Application is debuggable JRS-MANIFEST-001 AndroidManifest.xml › application (line 4) HIGH OkHttp can accept the wrong cert GHSA-3cqm-mf7h-prrj okhttp 3.12.0 (fixed in 4.9.2) MEDIUM Exported service, no permission JRS-MANIFEST-004 LOW Tracker: AppsFlyer JRS-TRACKER-12 Components: 2 com.squareup.okhttp3:okhttp 3.12.0 classes2.dex openssl 1.1.1w lib/arm64-v8a/libcrypto.so
- table
The default, for reading in a terminal.
- sarif
SARIF 2.1.0, for GitHub code scanning.
- cyclonedx
CycloneDX 1.6 SBOM, for Dependency-Track and similar tools.
- json
Everything in one file, for your own scripts.
- --exit-code
Fail a CI job when findings reach
--severity, or use the GitHub Action.
Every finding links to its rule in the documentation: what it detects, why it matters and how to fix it. See also every flag and how severities are assigned.
Where it fits
Jarsight does one job: software composition analysis for compiled Android apps, the way Trivy does it for container images. It is meant to run on every build, not to replace a full audit.
In your pipeline
A single static binary with no runtime, server or account. A typical APK takes about a second.
Results go to GitHub code scanning (SARIF), Dependency-Track (CycloneDX SBOM) or a failing exit code.
On GitHub, add the Jarsight action:
uses: jarsight/action@v1.
Next to MobSF
MobSF is the reference for in-depth audits: decompiled code review, iOS apps and dynamic analysis. Jarsight is smaller and narrower. It answers which libraries and versions ship in the app and which of them are vulnerable, in a form that CI and SBOM tools understand.
On any APK
It works on the release APK itself, after minification, so auditors can check third-party
apps and teams can check what their build really contains, not only what Gradle declared.
It also reads Android App Bundles (.aab) and, with the build's R8 mapping,
recognizes obfuscated classes.
Jarsight is open source
Jarsight is licensed under the Apache License 2.0 and is free for anyone to use, including commercially. It has no paid edition and needs no account.
Found a bug, a missed library or a false positive, or have an idea? Open an issue or send a pull request.