Jarsight

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.

Get started View on GitHub

Note Jarsight is in early development. The first release is not out yet.

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

How Jarsight connects to other tools An APK goes into jarsight scan, which checks the manifest, the library inventory, secrets and trackers. It asks OSV.dev about the libraries it found, and writes reports for the terminal, GitHub code scanning, Dependency-Track, CI pipelines and custom scripts. app.apk your Android app OSV.dev vulnerability database library names + versions ↑ known vulnerabilities ↓ jarsight scan ▸ manifest checks ▸ library inventory ▸ secret detection ▸ tracker signatures rules and tracker data built in Terminal table GitHub code scanning SARIF 2.1.0 Dependency-Track CycloneDX 1.6 SBOM CI pipelines exit code on findings Your scripts JSON

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:

app.apk
├─ AndroidManifest.xml

Manifest

Debuggable builds, backups, cleartext traffic, components exported without a permission, trust in user-installed CAs and old minimum SDKs, following Android's own defaults for the app's SDK levels.

debuggableexportedcleartext
├─ classes*.dex

Code

Library versions from string tables, tracking SDKs from their class names, and API keys compiled into the app.

okhttp 3.12.0AppsFlyerAWS key
├─ lib/<abi>/*.so

Native libraries

OpenSSL, SQLite, curl and other C libraries bundled inside, with the exact version they were built from.

openssl 1.1.1w
├─ resources.arsc · assets/

Resources

Secrets hidden in string resources and config files, and the network security configuration.

Stripe keyFirebase URL
└─ META-INF/ · *.properties

Build metadata

Versions of AndroidX, Kotlin, Google Play services and Firebase recorded at build time.

androidx.core 1.13.1
⇢ OSV.dev

Known vulnerabilities

Every library with a version is checked against OSV.dev, with severity, fixed version and references.

GHSA-3cqm-mf7h-prrj

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

  1. table

    The default, for reading in a terminal.

  2. sarif

    SARIF 2.1.0, for GitHub code scanning.

  3. cyclonedx

    CycloneDX 1.6 SBOM, for Dependency-Track and similar tools.

  4. json

    Everything in one file, for your own scripts.

  5. --exit-code

    Fail a CI job when findings reach --severity.

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.

Get involved