---
title: "Open-sourcing Mariana Trench: Analyzing Android and Java app security in depth"
description: "Mariana Trench is Meta's open-sourced static taint-analysis tool for Android and Java apps that finds security and privacy bugs by tracing data flows from sources (e.g., Intent.getData) to sinks (e.g., Log.w, Runtime.exec)."
url: "https://swe.quest/articles/open-sourcing-mariana-trench-analyzing-android-and-java-app-security-in-depth-6f84a56369fe533f"
canonical: "https://engineering.fb.com/2021/09/29/security/mariana-trench/"
source: "Meta Engineering"
published: "2021-09-29"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 6
tags: ["static-analysis","appsec","mobile","jvm","open-source"]
---

# Open-sourcing Mariana Trench: Analyzing Android and Java app security in depth

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2021-09-29, 6 min read, Announcement. Original: [https://engineering.fb.com/2021/09/29/security/mariana-trench/](https://engineering.fb.com/2021/09/29/security/mariana-trench/)

## Summary

Mariana Trench is Meta's open-sourced static taint-analysis tool for Android and Java apps that finds security and privacy bugs by tracing data flows from sources (e.g., Intent.getData) to sinks (e.g., Log.w, Runtime.exec). It computes per-method models via abstract interpretation and lets security engineers write rules such as user-controlled input reaching an intent-redirection sink. Rules are refined until high-signal and then run on every pull request. Meta deliberately tolerates more false positives to catch rare exploitable edge cases, and triages results with SAPP, a post-processor that groups similar traces and visualizes source-to-sink paths. Mobile apps get this extra pre-release scrutiny because fixes depend on users installing updates.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [Application security](https://swe.quest/tags/appsec.md) (Security)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- taint analysis basics
- Android app development ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))

## Keywords

Mariana Trench, SAPP, Pysa, Zoncolan, abstract interpretation, Android

## Related posts

- [An open source compositional deadlock detector for Android Java](https://swe.quest/articles/an-open-source-compositional-deadlock-detector-for-android-java-baaa0219c7853320.md): Meta Engineering · 2022-03-08 · Hard · 2 min read · Static analysis, Concurrency, Java & JVM, Mobile
  Meta built a compositional static analyzer, now part of the open source Infer framework, that detects deadlocks in Android Java code without running it.
- [Building secure mobile apps in the agentic era](https://swe.quest/articles/building-secure-mobile-apps-in-the-agentic-era-7500fbc38f176116.md): Shopify Engineering · 2026-11-18 · Medium · 6 min read · Application security, Mobile, AI agents, Security, LLMs
  Shopify keeps pace with an 11x jump in mobile code output (~434k lines changed per week during a 12-week agent-driven rewrite) by maintaining a per-app attack surface map covering deep links, WebViews, stored data, permissions and dependencies, where every item carries one of five verdicts and a code link.
- [Exploiting vulnerabilities in Cellebrite UFED and Physical Analyzer from an app's perspective](https://swe.quest/articles/exploiting-vulnerabilities-in-cellebrite-ufed-and-physical-analyzer-from-an-app-3c77e1bc69516f8f.md): Signal · 2021-04-21 · Easy · 6 min read · Vulnerability research, Application security, Mobile, Security
  Cellebrite's UFED and Physical Analyzer, whose main job is parsing untrusted app data pulled from seized phones, lack standard exploit mitigations and bundle FFmpeg DLLs from 2012 that miss over a hundred security fixes.
- [Protecting user data through source code analysis at scale](https://swe.quest/articles/protecting-user-data-through-source-code-analysis-at-scale-357585a0d96f83c8.md): Meta Engineering · 2025-02-18 · Medium · 4 min read · Static analysis, Threat detection, Application security, Python
  Meta's Anti-Scraping team encodes known scraping attack vectors as taint-analysis rules in its in-house static analyzers, Zoncolan for Hack and Pysa for Python, so potential vectors are flagged before code ships.
- [Retrofitting null-safety onto Java at Meta](https://swe.quest/articles/retrofitting-null-safety-onto-java-at-meta-9ef65f9615ca03e4.md): Meta Engineering · 2022-11-22 · Medium · 15 min read · Static analysis, Java & JVM, Type systems, Mobile
  Nullsafe is a static analyzer built at Meta to catch NullPointerExceptions in Java, implemented as an extra compiler pass via the JSR-199 compiler API.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
