Daniel Bae
Menu

Concept art from Arcane

Four layers of a VoIP capture, each one handing over the key to the next: FTP, TLS 1.3, SDES-keyed SRTP and the tones a caller presses on a keypad.

The prompt

DEADFACE is trying to get data out of Aurora Health, whose perimeter is locked down, so the suspicion is that they are “working it from the inside out”. The head of security noticed anomalous activity on the help-desk subnet and shared a packet capture. The answer format is deadface{deadface alias}.

The provided file is DontLeaveMeHanging.pcap (about 80 MB, SHA-256 93bf96711676fa3675d0bd8729ccdf00ffc80ef4ddcc4e1892dfa1a45f11e6f2). Check the hash before starting. A truncated or partly zeroed download still opens in most tools, but packets go missing in the middle of the capture.

The title says a lot: “don’t leave me hanging” is a phone joke, and the subnet belongs to a help desk. The capture is VoIP traffic, and the flag turns out to be a phone call. Getting to that call takes four layers: a careless FTP download, a TLS key log, SDES-keyed SRTP, and in-band DTMF tones. Each layer gives you the key to the next one.

The commands below use Python with dpkt, cryptography and numpy, so they run anywhere. Wireshark/tshark covers the first two layers, but it cannot decrypt SRTP, so the last two layers need a script whatever tool you start with.

1. Triage: what is on the wire

Summarise the capture by transport and port first:

Shell
python3 overview.py challenge.pcap
linktype 1
packets 255991 duration 19809.32596898079
('tcp', 443) 27894
('udp', 7078) 26586
('udp', 8504) 26223
...

The capture covers about 5.5 hours of a small office network (10.20.200.0/24). The most frequent items are HTTPS, a long tail of high UDP ports, TLS on tcp/5061 and a little FTP, SSH and HTTP. Port 5061 is SIP over TLS, and the high UDP ports (7078, 4000–4007, 8000–19000) are RTP media. The PBX is 10.20.200.5, and the help-desk phones are 10.20.200.21–.24.

The signalling is encrypted, and so is the media: RTP headers are readable, but the payloads are noise. Listening to a call needs two things. The first is the SIP TLS session keys, to read the SDP. The second is the SRTP master keys carried inside that SDP. So the first question is whether the capture leaks key material.

2. The FTP download that leaks everything

Cleartext FTP on an internal network is always worth reading. The script below prints the control channel. It also follows the 227 Entering Passive Mode replies and reassembles the matching data connections:

Python
# ftp.py - print FTP control channel, carve passive-mode data connections
import sys, dpkt, socket, re, os, datetime
pcap, outdir = sys.argv[1], sys.argv[2]
ctrl, data = [], {}
for i, (ts, buf) in enumerate(dpkt.pcap.Reader(open(pcap, 'rb')), 1):
    ip = dpkt.ethernet.Ethernet(buf).data
    if not isinstance(ip, dpkt.ip.IP) or not isinstance(ip.data, dpkt.tcp.TCP): continue
    t = ip.data
    if not t.data: continue
    if 21 in (t.sport, t.dport):
        ctrl.append((i, ts, socket.inet_ntoa(ip.src), socket.inet_ntoa(ip.dst), t.data))
    else:
        data.setdefault((socket.inet_ntoa(ip.src), t.sport), {})[t.seq] = t.data
for i, ts, s, d, p in ctrl:
    line = p.decode('latin1').rstrip()
    print(f"{i:>7} {datetime.datetime.fromtimestamp(ts, datetime.timezone.utc):%H:%M:%S} {s} -> {d}  {line}")
    m = re.search(r'227 .*\((\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\)', line)
    if m:
        k = ('.'.join(m.group(1, 2, 3, 4)), int(m.group(5)) * 256 + int(m.group(6)))
        if k in data:
            segs = data[k]
            open(os.path.join(outdir, f'ftp-data-{k[1]}.bin'), 'wb').write(b''.join(segs[x] for x in sorted(segs)))
 221229 15:49:19 10.20.200.60 -> 10.20.200.5  USER mkowalski
 221235 15:49:23 10.20.200.60 -> 10.20.200.5  PASS Aur0ra!Helpdesk25
 221237 15:49:25 10.20.200.5 -> 10.20.200.60  530 Login incorrect.
 221277 15:49:50 10.20.200.60 -> 10.20.200.5  USER mkowalski
 221288 15:49:55 10.20.200.60 -> 10.20.200.5  PASS Aur0ra!Helpdesk26
 221290 15:49:56 10.20.200.5 -> 10.20.200.60  230 Login successful.
 221301 15:50:00 10.20.200.60 -> 10.20.200.5  CWD /var/log/asterisk/diag
 221306 15:50:00 10.20.200.5 -> 10.20.200.60  227 Entering Passive Mode (10,20,200,5,156,104).
 221310 15:50:00 10.20.200.60 -> 10.20.200.5  LIST
 221335 15:50:08 10.20.200.5 -> 10.20.200.60  227 Entering Passive Mode (10,20,200,5,156,143).
 221339 15:50:08 10.20.200.60 -> 10.20.200.5  RETR pbx-diag-20261008.tar.gz
 221340 15:50:08 10.20.200.5 -> 10.20.200.60  150 Opening BINARY mode data connection for pbx-diag-20261008.tar.gz (8593 bytes).
 221352 15:50:08 10.20.200.5 -> 10.20.200.60  226 Transfer complete.

Host 10.20.200.60 guesses the help-desk admin’s password on its second try, the year bumped from 25 to 26. It then downloads a diagnostics bundle from the PBX. This is the “inside out” activity. In Wireshark, File → Export Objects → FTP-DATA gives the same file.

Unpack the 8593-byte archive:

Shell
mkdir diag && tar -xzf ftp-data-40079.bin -C diag && ls diag/pbx-diag-20261008
cat diag/pbx-diag-20261008/README.txt
messages.log  pjsip_endpoints.txt  README.txt  tls-keys.log  tls-keys.log.1

PBX diagnostics bundle for INC0041877 (one-way audio on help-line inbound).
Collected from pbx01. tls-keys.log = SSLKEYLOGFILE output from the pjsip TLS transport,
needed by the vendor to read the SIP signalling in the span capture. tls-keys.log.1 is from
yesterday's aborted run (transport was restarted, keys are useless).
DELETE THIS BUNDLE after the vendor confirms receipt. -mk

The bundle holds three things you need:

  • tls-keys.log, an NSS key log (SSLKEYLOGFILE) for the PBX’s SIP TLS transport. Its entries are CLIENT_HANDSHAKE_TRAFFIC_SECRET, SERVER_TRAFFIC_SECRET_0 and so on, which means TLS 1.3. The 48-byte secrets point to TLS_AES_256_GCM_SHA384. As the README says, tls-keys.log.1 decrypts nothing in this capture.
  • pjsip_endpoints.txt, the phone configuration. Three help lines use dtmf_mode: rfc4733, but one does not:
 Endpoint:  2003/"Help Line 3" <2003>                           Not in use    0 of inf
      Contact:  2003/sips:2003@10.20.200.23             5b8d480b54 Avail         1.399
   dtmf_mode            : inband
   media_encryption     : sdes
  • messages.log, the Asterisk log. It identifies the call that matters:
[2026-10-08 10:39:04] VERBOSE[1403][C-0000009a] app_queue.c: Called PJSIP/2003
[2026-10-08 10:39:10] VERBOSE[1403][C-0000009a] app_queue.c: PJSIP/2003-697966fb answered SIP/trunk-f42d6561
[2026-10-08 10:39:10] VERBOSE[1403][C-0000009a] res_srtp.c: SRTP AES_CM_128_HMAC_SHA1_80 negotiated on PJSIP/2003-697966fb (SDES)
[2026-10-08 10:39:13] WARNING[1403][C-0000009a] res_rtp_asterisk.c: PJSIP/2003-697966fb: endpoint dtmf_mode=inband; DTMF from caller is passed through in audio, not as RFC 4733 events

Two facts follow. The media is SRTP keyed with SDES, so the SRTP master key is sent in the SDP a=crypto: line, which is inside the TLS-protected SIP. Call C-0000009a to extension 2003 carries the caller’s DTMF as audio, so no RTP event packets will show it. The tones can only be recovered by decoding the voice stream itself. The log is in local time (UTC−7), so 10:39:04 here is 17:39:04 UTC in the capture.

3. Decrypting SIP over TLS 1.3

In Wireshark, set Preferences → Protocols → TLS → (Pre)-Master-Secret log filename to tls-keys.log (for tshark: -o tls.keylog_file:tls-keys.log), then filter on sip. Without Wireshark, TLS 1.3 record decryption takes very little code. Reassemble each direction of every tcp/5061 connection. Take the client random from the ClientHello to look up its secrets in the key log, and the cipher suite from the ServerHello. Derive key/iv with HKDF-Expand-Label. Then AES-GCM-decrypt each application-data record with the record header as AAD and iv XOR sequence_number as the nonce. Each direction first uses its handshake secret and then switches to *_TRAFFIC_SECRET_0:

Python
# sip_tls.py - decrypt SIP over TLS 1.3 from an SSLKEYLOGFILE
import sys, dpkt, socket, struct, collections
from cryptography.hazmat.primitives.ciphers.aead import AESGCM, ChaCha20Poly1305
from cryptography.hazmat.primitives.kdf.hkdf import HKDFExpand
from cryptography.hazmat.primitives import hashes
pcap, outfile = sys.argv[1], sys.argv[2]
keys = collections.defaultdict(dict)
for fn in sys.argv[3:]:
    for line in open(fn):
        p = line.split()
        if len(p) == 3: keys[bytes.fromhex(p[1])][p[0]] = bytes.fromhex(p[2])
SUITES = {0x1301: (AESGCM, 16, hashes.SHA256()), 0x1302: (AESGCM, 32, hashes.SHA384()),
          0x1303: (ChaCha20Poly1305, 32, hashes.SHA256())}
def hkdf_label(secret, label, length, h):
    full = b'tls13 ' + label
    return HKDFExpand(h, length, struct.pack('>H', length) + bytes([len(full)]) + full + b'\x00').derive(secret)
streams, first = collections.defaultdict(dict), {}
for i, (ts, buf) in enumerate(dpkt.pcap.Reader(open(pcap, 'rb')), 1):
    ip = dpkt.ethernet.Ethernet(buf).data
    if not isinstance(ip, dpkt.ip.IP) or not isinstance(ip.data, dpkt.tcp.TCP): continue
    t = ip.data
    if 5061 not in (t.sport, t.dport) or not t.data: continue
    k = (socket.inet_ntoa(ip.src), t.sport, socket.inet_ntoa(ip.dst), t.dport)
    streams[k].setdefault(t.seq, (i, ts, t.data)); first.setdefault(k, i)
def records(segs):                      # yield (type, header, body, frame, ts)
    data, marks = b'', []
    for s in sorted(segs):
        i, ts, d = segs[s]; marks.append((len(data), i, ts)); data += d
    off = 0
    while off + 5 <= len(data):
        ct, _, ln = struct.unpack('>BHH', data[off:off + 5])
        m = max((m for m in marks if m[0] <= off), key=lambda m: m[0])
        yield ct, data[off:off + 5], data[off + 5:off + 5 + ln], m[1], m[2]
        off += 5 + ln
out, conns, msgs = open(outfile, 'w'), 0, 0
for k in sorted(streams, key=lambda k: first[k]):
    if k[3] != 5061: continue           # k = client -> server direction
    rev = (k[2], k[3], k[0], k[1])
    rc, rs = list(records(streams[k])), list(records(streams.get(rev, {})))
    ch = next((r for r in rc if r[0] == 22 and r[2][0] == 1), None)
    sh = next((r for r in rs if r[0] == 22 and r[2][0] == 2), None)
    if not ch or not sh: continue
    sidl = sh[2][38]; suite = struct.unpack('>H', sh[2][39 + sidl:41 + sidl])[0]
    ks = keys.get(ch[2][6:38])
    if not ks or suite not in SUITES: continue
    conns += 1; aead, klen, h = SUITES[suite]
    for d, recs, side in ((k, rc, 'CLIENT'), (rev, rs, 'SERVER')):
        states = [[aead(hkdf_label(ks[l], b'key', klen, h)), hkdf_label(ks[l], b'iv', 12, h), 0]
                  for l in (f'{side}_HANDSHAKE_TRAFFIC_SECRET', f'{side}_TRAFFIC_SECRET_0')]
        for ct, hdr, body, frame, ts in recs:
            if ct != 23: continue
            for st in states:
                nonce = bytes(a ^ b for a, b in zip(st[1], st[2].to_bytes(12, 'big')))
                try: pt = st[0].decrypt(nonce, body, hdr)
                except Exception: continue
                st[2] += 1; pt = pt.rstrip(b'\x00')
                if pt[-1] == 23:        # inner content type: application data
                    msgs += 1
                    out.write(f'=== frame {frame} t={ts:.3f} {d[0]}:{d[1]} -> {d[2]}:{d[3]}\n')
                    out.write(pt[:-1].decode('utf-8', 'replace') + '\n')
                break
print(f'decrypted TLS connections: {conns}, application records: {msgs}')
Shell
python3 sip_tls.py challenge.pcap sip.txt diag/pbx-diag-20261008/tls-keys.log
grep -c '^INVITE' sip.txt
decrypted TLS connections: 5, application records: 5245
32

All five PBX-to-phone TLS connections decrypt, giving 32 INVITEs. Look for the 2003 INVITE at 17:39:04 UTC:

=== frame 163958 t=1791470344.186 10.20.200.5:5061 -> 10.20.200.23:58405
INVITE sip:2003@10.20.200.23:58405;transport=tls SIP/2.0
From: "MARGARET OKAFOR" <sip:+17168859009@10.20.200.5>;tag=cc6d0476-60c6-4818-8de7-9d69d08ea0bc
Call-ID: 06826701-6637-4eb5-b9dc-2cd970a4cd0b

m=audio 14740 RTP/SAVP 0 8 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:6Kfv2L8Ox5SyjPMENXNamcCD2CQ3bu4OoGK/G8t2
a=rtpmap:0 PCMU/8000

The phone’s 200 OK (frame 164609, User-Agent: LinphoneAndroid/5.2.5 (Sunstalker S14)) answers with m=audio 7078 RTP/SAVP 0 101 and its own key inline:yKNk2Pvhevanq8GmBd7Y8U+SmetgP/gGo44V5pwk. The SDP has everything for the media layer. The caller’s audio goes 10.20.200.5:14740 → 10.20.200.23:7078 as PCMU (G.711 µ-law, 8 kHz). Its SDES inline value is 30 bytes once base64-decoded: a 16-byte master key and a 14-byte master salt.

In SDES, each side announces the key it uses to send. So the caller’s stream (PBX → phone) is protected with the key in the PBX’s INVITE, and the phone’s stream uses the key from its 200 OK.

4. Finding the stream

SRTP leaves the 12-byte RTP header in the clear, so streams can be listed without keys by (source, destination, SSRC):

905 RTP streams
frame  164614  10.20.200.23:7078 -> 10.20.200.5:14740  ssrc=0xa7f37694  pkts=1272  pt={0: 1272}
frame  164619  10.20.200.5:14740 -> 10.20.200.23:7078  ssrc=0x6530347a  pkts=1272  pt={0: 1272}
frame  122671  10.20.200.5:14904 -> 10.20.200.21:4004  ssrc=0x768d63a8  pkts=4626  pt={0: 4571, 101: 55}

The target call is 1272 packets each way, about 25 seconds at 20 ms per packet, all payload type 0. Note what is missing: payload type 101 (telephone-event) never appears on this call, which matches the PBX warning. Only one stream in the whole capture has RFC 4733 events, a call to extension 2001 (see the decoys section).

5. Decrypting SRTP and decoding the tones

SRTP with AES_CM_128_HMAC_SHA1_80 (RFC 3711) is easy to do by hand:

  1. Key derivation. With key-derivation rate 0, each session key is AES-CTR keystream under the master key. The IV is (master_salt XOR label<<48) << 16. Label 0 gives the 16-byte encryption key, label 1 the 20-byte HMAC key and label 2 the 14-byte session salt.
  2. Authentication. The last 10 bytes of each packet are HMAC-SHA1(auth_key, header || payload || ROC) truncated to 80 bits. Checking it proves that the right key is on the right stream.
  3. Decryption. The payload is XORed with AES-CTR keystream. The IV is (session_salt << 16) XOR (SSRC << 64) XOR (packet_index << 16), where packet_index = ROC·2¹⁶ + seq.

The decrypted payload is µ-law audio, which expands to 16-bit PCM. In-band DTMF is a pair of sine waves, one from the row group (697/770/852/941 Hz) and one from the column group (1209/1336/1477/1633 Hz). The Goertzel algorithm measures power at those eight frequencies with very little work. A 20 ms block (160 samples, one RTP packet) is labelled with a key when the strongest row tone and the strongest column tone together hold most of the block’s energy. A digit is counted once per run of tone blocks, so repeated digits such as the 00 in 100 stay separate as long as there is silence between them.

The complete decoder:

Python
#!/usr/bin/env python3
"""Decrypt one SRTP (AES_CM_128_HMAC_SHA1_80, SDES) stream from a pcap,
decode G.711 mu-law audio and read in-band DTMF digits with the Goertzel algorithm.
usage: dtmf.py capture.pcap SRC_IP:PORT DST_IP:PORT <inline-key-b64> [out.wav]"""
import sys, socket, struct, base64, hmac, hashlib, wave
import dpkt, numpy as np
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes

pcap, src, dst, inline = sys.argv[1:5]
wav_out = sys.argv[5] if len(sys.argv) > 5 else None
(sip, sport), (dip, dport) = [(a, int(p)) for a, p in (x.split(':') for x in (src, dst))]

# --- RFC 3711 key derivation (key_derivation_rate = 0) ---------------------
km = base64.b64decode(inline)
master_key, master_salt = km[:16], km[16:30]
def aes_cm(key, iv16, n):
    return Cipher(algorithms.AES(key), modes.CTR(iv16)).encryptor().update(b'\0' * n)
def derive(label, n):
    x = int.from_bytes(master_salt, 'big') ^ (label << 48)
    return aes_cm(master_key, (x << 16).to_bytes(16, 'big'), n)
k_e, k_a, k_s = derive(0, 16), derive(1, 20), derive(2, 14)

# --- collect the RTP packets of the stream ---------------------------------
pkts = []
for ts, buf in dpkt.pcap.Reader(open(pcap, 'rb')):
    ip = dpkt.ethernet.Ethernet(buf).data
    if not isinstance(ip, dpkt.ip.IP) or not isinstance(ip.data, dpkt.udp.UDP): continue
    u = ip.data
    if (socket.inet_ntoa(ip.src), u.sport, socket.inet_ntoa(ip.dst), u.dport) == (sip, sport, dip, dport):
        pkts.append(bytes(u.data))

# --- SRTP unprotect --------------------------------------------------------
MULAW = np.array([0] * 256, dtype=np.int16)
for b in range(256):                       # ITU-T G.711 mu-law expansion table
    v = ~b & 0xFF; t = ((v & 0x0F) << 3) + 0x84; t <<= (v & 0x70) >> 4
    MULAW[b] = (0x84 - t) if v & 0x80 else (t - 0x84)
roc, last_seq, ok, bad, ptypes, audio, events = 0, None, 0, 0, {}, [], []
for p in pkts:
    cc = p[0] & 0x0F; hlen = 12 + 4 * cc
    if p[0] & 0x10:                        # header extension
        hlen += 4 + 4 * struct.unpack('>H', p[hlen + 2:hlen + 4])[0]
    pt = p[1] & 0x7F; seq, _, ssrc = struct.unpack('>HII', p[2:12])
    if last_seq is not None and seq < last_seq and last_seq - seq > 0x8000: roc += 1
    last_seq = seq
    body, tag = p[:-10], p[-10:]
    calc = hmac.new(k_a, body + struct.pack('>I', roc), hashlib.sha1).digest()[:10]
    if calc != tag: bad += 1; continue
    ok += 1; ptypes[pt] = ptypes.get(pt, 0) + 1
    index = (roc << 16) | seq
    iv = (int.from_bytes(k_s, 'big') << 16) ^ (ssrc << 64) ^ (index << 16)
    ks = aes_cm(k_e, iv.to_bytes(16, 'big'), len(body) - hlen)
    payload = bytes(a ^ b for a, b in zip(body[hlen:], ks))
    if pt == 0: audio.append(MULAW[np.frombuffer(payload, np.uint8)])
    elif pt == 101 and payload[1] & 0x80 and (not events or events[-1][1] != struct.unpack('>I', p[4:8])[0]):
        events.append(('0123456789*#ABCD'[payload[0]], struct.unpack('>I', p[4:8])[0]))  # RFC 4733 end-of-event
print(f'SSRC 0x{ssrc:08x}: {len(pkts)} packets, auth OK {ok}, auth FAIL {bad}, payload types {ptypes}')
if events: print('RFC 4733 telephone-events:', ''.join(e[0] for e in events))
pcm = np.concatenate(audio).astype(np.float64)
print(f'decoded {len(pcm)} samples = {len(pcm) / 8000:.2f} s of 8 kHz audio')
if wav_out:
    with wave.open(wav_out, 'wb') as w:
        w.setnchannels(1); w.setsampwidth(2); w.setframerate(8000)
        w.writeframes(pcm.astype('<i2').tobytes())

# --- Goertzel DTMF detection on 20 ms blocks -------------------------------
ROWS, COLS = [697, 770, 852, 941], [1209, 1336, 1477, 1633]
KEYS = ['123A', '456B', '789C', '*0#D']
def goertzel(x, f):
    w = 2 * np.pi * f / 8000; c = 2 * np.cos(w); s1 = s2 = 0.0
    for v in x: s1, s2 = v + c * s1 - s2, s1
    return s1 * s1 + s2 * s2 - c * s1 * s2
N = 160; symbols = []
for i in range(0, len(pcm) - N + 1, N):
    blk = pcm[i:i + N]; energy = np.dot(blk, blk) * N / 2
    if energy < 1e9: symbols.append(None); continue          # silence
    r = [goertzel(blk, f) for f in ROWS]; c = [goertzel(blk, f) for f in COLS]
    ri, ci = int(np.argmax(r)), int(np.argmax(c))
    # require both tones to dominate the block (rejects speech / noise)
    symbols.append(KEYS[ri][ci] if (r[ri] + c[ci]) > 0.6 * energy else None)
digits, prev = [], None
for s in symbols:                           # one digit per contiguous tone burst
    if s and s != prev: digits.append(s)
    prev = s
d = ''.join(digits)
print(f'{len(d)} DTMF digits: {d}')
if len(d) % 3 == 0 and d.isdigit():
    print('as 3-digit decimal ASCII:', ''.join(chr(int(d[i:i + 3])) for i in range(0, len(d), 3)))

Run it on the caller leg of call C-0000009a:

Shell
python3 dtmf.py challenge.pcap 10.20.200.5:14740 10.20.200.23:7078 \
    6Kfv2L8Ox5SyjPMENXNamcCD2CQ3bu4OoGK/G8t2 caller.wav
SSRC 0x6530347a: 1272 packets, auth OK 1272, auth FAIL 0, payload types {0: 1272}
decoded 203520 samples = 25.44 s of 8 kHz audio
96 DTMF digits: 100101097100102097099101123080114051053053095048110051095102048114095068051052100102052099051125
as 3-digit decimal ASCII: deadface{Pr355_0n3_f0r_D34df4c3}

All 1272 HMAC tags check out, so the key and stream are correct. The written caller.wav plays as about 25 seconds of keypad tones with no speech. An FFT of the first burst peaks at about 700 Hz and 1210 Hz, the 1 key (697 + 1209 Hz). Measuring the bursts gives 96 tones of 120–160 ms each, separated by 40 ms or more of silence. That spacing is why repeated digits can be counted reliably.

6. Reading the digits

96 digits does not split into 2-digit codes in any meaningful way, but it splits into 32 groups of three: 100 101 097 100 102 097 099 101 123 .... Every group is between 048 and 125, the printable ASCII range. Zero-padded three-digit decimal ASCII is a common way to “type” text on a phone keypad, and the first eight groups spell deadface. The full decode is deadface{Pr355_0n3_f0r_D34df4c3}, leetspeak for “Press one for Deadface”. That fits a help-line phone tree and the title.

For completeness, the other leg of the call (10.20.200.23:7078 → 10.20.200.5:14740, key yKNk…pwk) decrypts cleanly (1272/1272 authenticated). It is near-silent (peak sample 276, RMS about 59) and has no tones. The help-desk phone stays quiet while the caller keys in the message.

7. Decoys and dead ends

The capture contains several distractions, and each is there on purpose:

  • The “Sunstalker” device. The phone at 10.20.200.23 identifies as Sunstalker-S14 in DHCP and as LinphoneAndroid/5.2.5 (Sunstalker S14) in SIP. It also browses with the User-Agent SunstalkerDFBrower/2.0. Those strings appear in the raw capture (grep -a finds Sunstalker-S14 three times and the browser UA 23 times). They point at the right device, but the prompt asks for a DEADFACE alias, and a hardware name is not one.
  • maudeai.deadface. Plain HTTP requests go to a host named maudeai.deadface (Host: and Referer: headers). A DEADFACE-looking hostname like that is an obvious guess, and the wrong one.
  • The RFC 4733 call. One call, from “LINDA FAIRWEATHER” to extension 2001, does carry proper telephone-event packets. Its key, aExqWU+rr7Z5HABF+6nrWPGDBd1jjhu1oK5gb67t, comes from its INVITE (m=audio 14904), and the same decoder reads the events:
SSRC 0x768d63a8: 4626 packets, auth OK 4626, auth FAIL 0, payload types {0: 4571, 101: 55}
RFC 4733 telephone-events: 40917#

40917# looks like an account or menu entry, not text. It is a normal caller using the IVR, and it only teaches that RFC 4733 events are the expected DTMF path on this PBX. The flag uses the one path that pjsip_endpoints.txt and messages.log mark as different: in-band audio on extension 2003. (The Goertzel pass on this call’s speech also prints a few random “digits”. This is why the 60% energy rule and the tone-run requirement matter, and why the 2003 call’s clean, evenly spaced tones stand out.)

  • tls-keys.log.1. It looks like more key material, but none of its client randoms match a handshake in this capture. Run on its own, the decryptor reports decrypted TLS connections: 0, application records: 0.
  • No plaintext flag. grep -a 'deadface{' on the raw capture finds nothing. The flag only exists as sound.

Summary of the chain

Layer                           Artifact                                                               What it unlocks
FTP (cleartext)                 mkowalski / Aur0ra!Helpdesk26, RETR pbx-diag-20261008.tar.gz           diagnostics bundle
Bundle                          tls-keys.log, pjsip_endpoints.txt, messages.log                        TLS 1.3 secrets; ext 2003 = dtmf_mode: inband; call C-0000009a
SIP over TLS (tcp/5061)         INVITE frame 163958, SDP m=audio 14740, a=crypto ... inline:6Kfv…G8t2  SRTP master key/salt for the caller leg
SRTP (AES-CM-128/HMAC-SHA1-80)  10.20.200.5:14740 → 10.20.200.23:7078, SSRC 0x6530347a                 25 s of G.711 µ-law audio
In-band DTMF (Goertzel)         96 digits                                                              32 × 3-digit decimal ASCII

Flag: deadface{Pr355_0n3_f0r_D34df4c3}