Identify and extract TLS/SSL libraries from running processes using dynamic instrumentation.
pip install tlsLibHunter# List TLS libraries in a local process
tlsLibHunter firefox -l
# Scan and extract TLS libraries
tlsLibHunter firefox
# Android device
tlsLibHunter com.example.app -m -l
# JSON output
tlsLibHunter firefox -l -f json
# Full, unfiltered diagnostic scan (show known false positives + low-confidence hits)
tlsLibHunter com.example.app -m -l --scan-everything
# Debug run — also writes everything shown in the terminal to a log file
tlsLibHunter com.example.app -m -l -dtlslibhunter -m -l Chrome
INFO: Platform: android
INFO: Found 324 loaded modules
INFO: Pattern match in libssl.so: 1 hits
INFO: Detected: libssl.so (boringssl, system)
INFO: Pattern match in libmonochrome_64.so: 1 hits
INFO: Fingerprint: libmonochrome_64.so identified as boringssl
INFO: Detected: libmonochrome_64.so (boringssl, app)
INFO: Scan complete: 2 TLS libraries found in 298 modules (8.06s)
TLS Libraries in'Chrome' (android) ┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ # ┃ Library ┃ Type ┃ Class ┃ Size ┃ Path ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ libssl.so │ boringssl │ system │ 376.0 KiB │ /apex/com.… │
│ 2 │ libmonochrome_64.so │ boringssl │ app │ 119.1 MiB │ /data/app/~~NlI… │
└──────┴─────────────────────┴───────────┴────────┴───────────┴────────────────────────────┘
Scanned 298 modules in 8.06sfromtlslibhunterimportTLSLibHunter# Scan a local processhunter=TLSLibHunter("firefox")
result=hunter.scan()
forlibinresult.libraries:
print(f"{lib.name} ({lib.library_type}) - {lib.path}")
# Scan and extractresult=hunter.scan()
extractions=hunter.extract(result, output_dir="./extracted_libs")- Memory scanning for TLS string patterns
- Supports OpenSSL, BoringSSL, GnuTLS, wolfSSL, mbedTLS, NSS, SChannel, SecureTransport
- Multi-platform: Android, iOS, Windows, Linux, macOS
- Multiple extraction methods: disk copy, ADB pull, APK extraction, memory dump
- Clean Python API for programmatic use
- Backend abstraction (currently only frida but might be extended to other frameworks in the future)
By default the results table is curated to show only genuine, hookable TLS stacks so the output stays actionable:
- Confidence threshold — only
medium- andhigh-confidence detections are shown. The long tail oflow-confidence hits (coincidental 4-byte ASCII fragments) is hidden. - Known false positives — crypto-primitive and JNI-wrapper libraries that carry TLS strings
(and may even re-export
SSL_*symbols) but are not independently hookable TLS stacks are skipped during scanning. This currently coverslibcrypto.so/stable_cronet_libcrypto.so(BoringSSL/OpenSSL primitives) andlibjavacrypto.so(the Conscrypt JNI bridge). The real key-extraction targets —libssl.so,libcronet*,stable_cronet_libssl.so— are kept.
Hidden detections are never lost silently: the scan summary logs how many were hidden, and the
names are recorded in pipeline_stats (hidden_low_confidence_names,
hidden_false_positive_names, false_positive_skipped_names).
To see everything (known false positives, low-confidence rows, and the verbose weak-evidence
breakdown), run a full scan with --scan-everything. This is the only flag that disables the
default filters.
A module is scanned over the ranges it actually owns. Module.enumerateRanges('r') is the
starting point, but on Apple platforms it reports — for every dyld-shared-cache image — one
enormous read-only range belonging to the cache as a whole rather than to the module (measured on
macOS 26.3: the same 587 MB region for all of them). Scanning that once per module per pattern
made a six-module macOS scan read ~106 GB and take ~113 s, with a 6 KB module scanning 587 MB.
moduleScanRegions in tlslibhunter/scripts/scanner_agent.js therefore drops ranges that are
implausibly large for the module in question, keeping everything else. A skipped range is always
logged with its size — coverage decisions are never silent. Detection is unaffected: the shared
region is by definition not attributable to any one module, and scanning it actually produced
false fingerprints, since every image "matched" strings that merely lived in the cache.
If a pattern scan does not finish within its safety-net window, the affected modules are listed in
ScanResult.errors — an incomplete scan is reported as incomplete rather than as "no TLS library
found".
Passing -d / --debug additionally tees all terminal output (the results table plus every
log line) into a timestamped, ANSI-stripped file in the current directory, named
tlslibhunter_<target>_<YYYYmmdd-HHMMSS>.log.
