Skip to content

Android 16: unable to capture TLS master keys #904

@jeromekleinen

Description

@jeromekleinen

Important

You can mention the @dosu AI robot, which can quickly answer your questions.

Describe the bug
ecapture fails to capture the TLS master keys on Android 16

To Reproduce
Steps to reproduce the behavior:

  1. run ecapture tls -m keylog
  2. observe no keys are being logged

Linux Server/Android (please complete the following information):

  • Device: Pixel 6a
  • Kernel Info: Linux localhost 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 #1 SMP PREEMPT Wed Mar 12 13:40:07 UTC 2025 aarch64 Toybox
  • eCapture Version: ecapture 1.5.1

Additional context
Tracing with a debug build shows bpf_trace_printk: bpf_probe_read ssl_s3_st_ptr pointer failed, ret :-14

I've tried commenting out the return instruction, but this naive fix doesn't work, it seems the value is really required. I've also looked into the offsets and regenerated the header file, but the offset seems to be correct and is used in several other projects as well (f.e. frida based TLS master key capturing tools).

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions