Staring at a Bare Port Number
On call, you hit this kind of connection all the time: a machine is talking to an external address, the traffic is encrypted, and beyond the handshake there's little you can read. You stare at a row like tcp 10.0.3.21:51234 → 203.0.113.9:4444 for a few seconds. The application protocol doesn't resolve, the payload is opaque bytes, and the only vaguely human-readable thing left is the port numbers.
A port isn't a protocol, but it's a cheap clue. Server-side ports tend to be conventional: 443 suggests HTTPS, 53 suggests DNS, 3389 suggests Remote Desktop. Those mappings come from IANA's official port registry. Translating a port back to a service name gives you a low-cost starting point for "what is this traffic probably doing."
PcapDecoder has exactly that fallback: a knowledge base covering 6,064 ports that turns a port number back into a readable service name when protocol parsing comes up empty or the traffic is simply encrypted. It shows up right in the session list. Here's the real workflow, plus an honest look at how far the clue carries.
Where the Service Name Shows Up
Step 1 — open the capture and switch to the Sessions view. The session list is sorted by packet count, one session per row. On a phone in portrait, a header above the list labels the columns PROTO / SRC/DST / PKTS — familiar Wireshark-style shorthand.
Step 2 — look at the small text under the protocol name. Each session row leads with the protocol name, and just beneath it, in smaller type, sits a service name — this is what the port knowledge base filled in. For a row whose protocol reads TCP, if the server-side port is in the knowledge base, you'll see something like https, domain, or ms-wbt-server. It doesn't get its own column; it hugs the protocol name as an instant hint about what the connection probably is.
Step 3 — let both ends of the flow inform the result. The knowledge base looks at both endpoints when picking a name: it prefers the port on the side that's more likely to be the server, because ephemeral client ports usually have no IANA name while server ports do. So you don't have to decide whether to read the source or destination port — the small text already shows the more sensible answer. A high client port like 51234 returns nothing, but the well-known port on the other end tells you the service type.
The conclusion is immediate: is this row "looks like ordinary encrypted HTTPS," or "an uncommon service on an unusual port"? The first usually needs no follow-up; the second is worth opening.
How the Port Knowledge Base Falls Back
Understanding where this fallback comes from — and where it stops — helps you use it accurately.
The data comes from IANA's official registry. It's public-domain data with no redistribution restrictions. The app bundles it as a port-to-service map (TCP entries merged first, 6,064 ports total), loads it once at startup, and thereafter lookups are nearly free. It preloads asynchronously so list construction never stalls — the small text fills in once the table is ready in the background.
It provides readability, not identification. This matters: a service name is just a conventional label for a port number. It does not mean the app actually parsed that application protocol, still less that the traffic content matches the named service. Any program can claim any port — disguising a service on 443 is commonplace. So the honest role of this layer is: when deep parsing can't identify a protocol, or the traffic is encrypted and its contents unreadable, offer a cheap reading clue — not a security verdict.
It's a layer above and below deep protocol parsing. PcapDecoder already does field-level dissection for dozens of protocols, recognizing mainstream ones and expanding their field trees. The port knowledge base backstops that: when the layer above can't identify things, it keeps the bottom rung of readability from going blank. The two don't conflict and don't replace each other.
Trojan Ports: a Low-Confidence Hint, Not a Verdict
One class of ports deserves a separate mention: default ports of well-known historical trojans and backdoors — 31337 (Back Orifice), 12345 (NetBus), 7626 (Glacier), and similar, all widely documented in the security community.
The engine keeps a separate curated table of these defaults. Scanning walks the capture index, checking each connection's source and destination port for a hit. Note carefully how such a hit is ranked: it's a low-confidence signal (confidence 40). The reason is simple — any program can occupy any port, and even a "notorious trojan port" might just be a number some legitimate app happened to use. So by design it's a hint, not a verdict: a hit feeds into the merged threat findings as a "take a look here" lead, not a "you've been compromised" judgment.
That's also why the trojan table and the IANA service map are two separate tables. The former is curated, high-bar historical data whose hits carry a low-confidence marker; the latter is broad coverage that only translates numbers into names. The small service name in the session list comes from the latter; a trojan-port hit travels the threat-hint path. Don't conflate them — seeing a service name isn't a trojan hit, and vice versa.
When It's Worth Digging Deeper
With the port clue in hand, you can decide faster whether to go deeper.
Triage ordinary-looking encrypted traffic by port first. TLS on 443, DNS on 53 — if deep parsing and TLS handshake data show nothing unusual, the service name merely confirms "this is routine," and there's usually no need to chase it. Save the effort for uncommon combinations.
Be cautious when the port and the service name don't agree. If the small text names a common service but the byte shape, packet sizes, or timing clearly don't behave like that service, that mismatch is more suspicious than a bare odd port. Open the session and read the reassembled text, sequence diagram, and payload view.
Treat a trojan-port hit as a lead, not a conclusion. Low confidence means "look here first." Open it, cross-check payload, direction, and timing, and weigh it alongside other findings on the threat card. Condemning a flow on a port number alone produces a lot of false positives.
No name in the knowledge base? Don't panic. High ephemeral ports, private protocols, and new services may simply have no IANA name. That doesn't make the traffic suspicious — it means the official registry has no conventional name for that port. Look at the content itself instead of fixating on the number.
Back to that 203.0.113.9:4444: if the server-side port has a name in the IANA map, the small text in the session row gives you a reading starting point; if it also lands in the curated trojan-port table, you get a low-confidence hint on top. Both are clues to help you decide whether to open it — the real verdict still comes from payload and context. That's the value of the port knowledge base fallback: moving from staring at a bare number to triaging on evidence.
