Jarsight

Getting started

Jarsight is an open source scanner for Android apps. Give it an APK and it lists the libraries inside, their known vulnerabilities, insecure settings, hard-coded secrets and tracking SDKs.

Alpha Jarsight is in early testing: expect false positives and missed libraries. Tell us what it got wrong.

Install

Download the archive for your system from the releases page, check it against the checksums file of the release, and put jarsight in your PATH:

gh attestation verify jarsight_*_linux_amd64.tar.gz --repo jarsight/jarsight   # optional: built by our CI
sha256sum --ignore-missing -c jarsight_*_checksums.txt
tar xzf jarsight_*_linux_amd64.tar.gz jarsight
./jarsight version

Or build it from source with Go:

git clone https://github.com/jarsight/jarsight.git
cd jarsight
make build
./jarsight version

Scan an app

jarsight scan app.apk

The table lists each finding with its severity and rule ID. Every finding links to its entry in Rules, which explains what it means and how to fix it. Start with the CRITICAL and HIGH ones:

jarsight scan --severity high app.apk

Jarsight works on the release APK itself, after minification, so it sees what your build really ships, not only what Gradle declared. It also scans Android App Bundles (.aab), split APKs and .apks, .xapk and .apkm bundles: see Usage. For obfuscated release builds, pass the build's R8 mapping with --mapping (details).

Add it to CI

On GitHub, the Jarsight APK scan action installs a verified release, scans your APK, uploads the findings to Security → Code scanning and can fail the build:

jobs:
  scan:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      security-events: write
    steps:
      - uses: actions/checkout@v7
      # ... build your app
      - uses: jarsight/action@v1
        with:
          app: app/build/outputs/apk/release/app-release.apk
          fail-on: high
          sbom-file: jarsight.cdx.json

In other CI systems, run the binary with --format sarif or --format cyclonedx and --exit-code:

jarsight scan --format sarif --output jarsight.sarif --severity high --exit-code 1 app.apk

Next steps