diff --git a/capa/render/verbose.py b/capa/render/verbose.py index f8aa95b2..63b9b845 100644 --- a/capa/render/verbose.py +++ b/capa/render/verbose.py @@ -62,10 +62,12 @@ def format_address(address: frz.Address) -> str: assert isinstance(pid, int) return f"process ppid: {ppid}, process pid: {pid}" elif address.type == frz.AddressType.THREAD: - assert isinstance(address.value, int) - tid = address.value + assert isinstance(address.value, tuple) + ppid, pid, tid = address.value + assert isinstance(ppid, int) + assert isinstance(pid, int) assert isinstance(tid, int) - return f"thread id: {tid}" + return f"process ppid: {ppid}, process pid: {pid}, thread id: {tid}" elif address.type == frz.AddressType.CALL: assert isinstance(address.value, tuple) ppid, pid, tid, id_ = address.value