Real-time key extraction and traffic decryption for security research
friTap

friTap is a powerful tool designed to assist researchers in analyzing network traffic encapsulated in SSL/TLS. With its ability to automate key extraction, friTap is especially valuable when dealing with malware analysis or investigating privacy issues in applications. By simplifying the process of decrypting and inspecting encrypted traffic, friTap empowers researchers to uncover critical insights with ease.
Key features include seamless support for automated SSL/TLS key extraction, making it an ideal choice for scenarios requiring rapid and accurate traffic analysis. Whether you’re dissecting malicious network behavior or assessing data privacy compliance, friTap streamlines your workflow.
For more details, explore the OSDFCon webinar slides or check out our blog post.
This project was inspired by SSL_Logger and currently supports all major operating systems: Linux, Windows, Android, with partial support for macOS and iOS (still under development). More platforms and libraries will be added in future releases.
Key Features
The main features of friTap are:
- TLS key extraction in real time (
-k key.log)
- Decryption of TLS payload as PCAP in real time (
-p plaintext.pcap) — coverage varies by platform/library; see the support table below
- Interactive TUI mode with guided setup wizard (just run
fritap)
- Store plaintext hook output in its own .tap capture format and replay it (
fritap -r saved_capture.tap)
- Integration with Python. Learn more
- Support for custom Frida scripts. Details
- Support of most common SSL libraries (OpenSSL, BoringSSL, NSS, GnuTLS, etc.)
- Library scanning to discover renamed/statically linked libraries (
--library-scan)
- Heap memory scanning to recover TLS secrets without hooking the TLS library (
-ms/--memory-scan) — see USAGE.md
- Telegram/MTProto cloud + E2E secret-chat key recovery from heap memory (
-ms mtproto / -ms telegram) — see USAGE.md
Installation
Installation is simply a matter of pip3 install fritap. This will give you the fritap command. You can update an existing fritap installation with pip3 install --upgrade fritap.
Usage
On Linux/Windows/MacOS we can easily attach to a process by entering its name or its PID:
$ sudo fritap --pcap mycapture.pcap thunderbird
For mobile applications we just have to add the -m parameter to indicate that we are now attaching (or spawning) an Android or iOS app:
$ fritap -m -k keys.log com.example.app
Further ensure that the frida-server is running on the Android/iOS device.
friTap can also be used as a Python library within your project:
from friTap import SSL_Logger
For more details on integrating friTap into your Python project, check out the INTEGRATION.md guide.
friTap allows you to enhance its functionality by providing a custom Frida script during your session. This custom script will be invoked just before friTap applies its own hooks. To do so, use the -c parameter (more).
More examples on using friTap can be found in the USAGE.md. A detailed introduction using friTap on Android is under EXAMPLE.md as well.
Interactive TUI Mode
Running fritap without any arguments launches an interactive Terminal User Interface (TUI):
$ fritap