What Ports and Protocols Can Actually Tell You
Two security records show traffic to a service used for file sharing. In one record, an authorized deployment server contacts several workstations while employees are receiving a scheduled software update. In the other, a finance laptop contacts those same workstations minutes after a suspicious attachment opens. The protocol is similar. The pattern may even look similar. Yet the questions an analyst should ask are very different. A port number can tell you where a conversation was aimed, but it cannot tell you why that conversation happened.
This is where familiarity with network devices and protocols earns its value. You should recognize the usual role of a router, firewall, proxy, name resolver, and remote-access service. You should also understand what kind of evidence each can contribute. The goal is not to turn a security investigation into a memory test of port numbers. It is to use the network's structure to decide whether behavior fits the system's purpose and, when it does not, where a reliable explanation may be found.
Start with what a port actually represents. Computers can maintain several network conversations at once. A transport protocol such as TCP or UDP uses port numbers to help direct traffic to the appropriate service or conversation. A client commonly sends a request to a destination port associated with the desired service, using a temporary source port to keep its own conversations distinct. But a port is not a guarantee of which program received the traffic, and it certainly does not establish whether a request was authorized.
Take encrypted web traffic. The conventional destination is often port 443, spoken as four forty-three. That convention helps an analyst form an initial hypothesis about the service. A browser using an approved website might be entirely ordinary. A malicious program can also use encrypted web traffic. An enterprise application might expose a legitimate service on an unusual port. The observed destination number becomes useful only when combined with the process, destination, protocol behavior, and business context.
After listening, the Bare Metal Cyber flashcards can help you retrieve a few common service associations without effort. Use that recall to move quickly past a basic identification question, then challenge it. A card may remind you which protocol usually supports a type of communication; it cannot establish whether the particular device should have been making that communication. That second judgment belongs to the investigation.
Network devices matter because each occupies a different position in the evidence chain. A switch primarily forwards traffic within a local network according to the addressing information it uses. A router moves packets between networks using routing information. A firewall applies configured security policy to traffic at an enforcement point. Those roles can overlap in modern products, but the operational question remains: did this component forward the traffic, decide whether to permit it, or merely observe it?
Suppose a firewall shows an allowed connection from a workstation to a database. That record tells you the policy at that point permitted something about the connection. It does not show that the database accepted valid credentials or returned sensitive records. Suppose a router has a path to the database network. That explains potential reachability, but it does not prove access was granted. Suppose a monitoring sensor raises an alert about the same traffic. The sensor has identified a pattern worth investigating. Its alert does not replace the underlying events or application records.
The source of each record affects how you interpret the addresses. A device performing network address translation can replace an internal source address with one shared address as traffic leaves an environment. A load balancer may receive a client request and forward it to a backend service. A proxy may make a separate connection on the client's behalf, and its records may preserve a requested name that is not obvious in the firewall log. An analyst who ignores those intermediaries can blame the proxy for activity initiated by a user or assume that a public gateway identifies one particular workstation.
Consider an employee reporting that a company website opens to the wrong destination. The router may still be carrying traffic normally, and the firewall may still allow the connection. The issue could begin earlier, when the computer asks for the address of the service. Domain Name System, or DNS, translates names into information applications can use to find destinations. A resolver can answer from cached information or query other name servers. Its records may explain why the user went somewhere unexpected, but only if the relevant requests were observed and the timing matches.
DNS commonly uses port 53, or fifty-three, although the protocol can use different transports and protected forms in particular deployments. The analyst does not need to assume that every connection involving that port is a normal name lookup. The service could be misconfigured, or a program might use it in an unusual way. A conventional port provides a starting point, while query content, response behavior, client process, resolver role, and baseline activity determine what the observation means.
Now return to the finance laptop. Its network activity touches a series of internal devices using Server Message Block, commonly shortened to SMB. On many Windows networks, file-sharing activity is associated with TCP port 445, spoken as four forty-five. That makes SMB a plausible interpretation of the traffic. It does not establish whether the laptop opened a file share, copied data, attempted remote administration, or merely failed to connect. Nor does it prove that a particular Windows user initiated the requests.
The unusual part is the context. A finance laptop is not normally responsible for delivering software to a large group of computers. The behavior follows a suspicious attachment, and it crosses several internal systems in a short period. An analyst should validate the laptop's address at that time, identify the process that initiated the connections, and compare authentication records from the destinations. If the connections succeeded, look for file access or remote activity supported by the target logs. If all attempts failed, the risk and scope may be different, though failed attempts can still reveal hostile intent.
Imagine that the same pattern came instead from the approved deployment server, using its expected service account during a maintenance window. The protocol did not become safer. The surrounding evidence supplied a legitimate explanation. Even there, the team may verify the approved change because a compromised deployment system would have broad reach. A baseline is an aid to judging behavior, not a rule that trusted infrastructure can never be abused.
Remote administration offers a similar lesson. Secure Shell, often called SSH, commonly supports encrypted remote administration and is conventionally associated with port 22, or twenty-two. Remote Desktop Protocol supports interactive remote sessions in many Windows environments. These services are valuable for legitimate support, but they are also attractive to attackers who obtain credentials. A successful transport connection is only one piece of the story. Identity logs, session records, source-device context, and actions on the target help distinguish approved work from unauthorized access.
Suppose an engineer connects to a server from a managed administration workstation during an approved repair. The connection may be expected, even if it occurs outside normal business hours. Now suppose the same server receives a remote session from a finance employee's compromised device using an account with unexpected privileges. The protocol itself did not change. The relationship between source, identity, destination, authority, and recent activity did. That is the change a useful detection should surface.
A common response is to block the remote-management port everywhere. Sometimes emergency restriction is warranted, but blanket blocking can prevent the very administrators needed to contain an incident or keep essential services functioning. The better decision depends on the active threat, known access paths, authorized administrators, and available alternatives. The security objective is to remove unauthorized capability without creating avoidable damage to the organization.
At this stage the Bare Metal Cyber Cyber Challenge is useful for scenario practice. Choose questions about remote access, file sharing, or unusual network traffic, and explain why the device and user context changes the result. If two answers both name technically plausible tools, focus on which one can actually resolve the uncertainty in the story. This develops the judgment that a port-number quiz cannot supply.
Protocols also explain why two records showing a conversation may support different conclusions. TCP has recognizable connection-establishment behavior and reliability mechanisms. UDP does not use that same handshake. A monitor that sees a TCP connection attempt without a completed exchange should not describe it as an established session. A UDP request without an observed response may mean the request was ignored, the reply traveled elsewhere, or the sensor missed it. The investigation has to respect the transport behavior rather than use the same interpretation for every packet.
Web traffic adds another layer. Hypertext Transfer Protocol, or HTTP, describes application requests and responses. When protected with encryption, commonly known as HTTPS, the transport may reveal that communication took place while concealing the request content. A web proxy or application log might record a requested resource, a response status, or an authenticated user, depending on the system and its configuration. A firewall observing only an encrypted connection may have no way to determine whether the application returned an ordinary page, rejected a request, or exposed a sensitive record.
Picture a server making regular encrypted outbound connections every few minutes. Its network pattern resembles an automated callback. That could be a monitoring agent, software update service, managed backup, or malicious command and control. The useful next source is often endpoint telemetry showing the initiating process and its history. DNS records can explain the name it contacted. Service ownership and deployment records can account for legitimate changes. Threat intelligence can add context but should not be allowed to substitute for local evidence.
If the process was installed as part of an approved monitoring update, the timing and owner records may explain the traffic. If it appeared immediately after evidence of exploitation and executes from an unexpected location, concern rises. If the destination belongs to shared cloud infrastructure, an address-reputation match may be weaker than it first looks. Strong analysis does not depend on a dramatic label. It explains the connection between the observed behavior and the proposed conclusion.
Email has its own communication patterns and intermediaries. A message can pass through several mail systems before a user receives it. Investigating a suspicious message may require delivery records, sender authentication results, message identifiers, and the actual content of the mail. A network connection to a mail service proves little about whether the message was fraudulent or whether the recipient opened a malicious attachment. The relevant application evidence lives closer to the mail transaction and the endpoint where the recipient acted.
A directory service creates a different risk. Many organizations depend on directory systems to find accounts, authenticate users, and support access decisions. An internal server communicating with a directory service may be entirely normal. A workstation that suddenly performs unusual directory queries while a compromised account changes privileged membership is more concerning. Network records can help identify which system reached the directory, while identity and directory audit logs explain the requests and changes that actually occurred.
DNS deserves another look when its behavior changes dramatically. Suppose a workstation starts sending many requests for long, unfamiliar subdomains under one name. The pattern may suggest an attempt to send encoded information through DNS. It might also be legitimate telemetry or a badly configured application. Instead of declaring tunneling from the appearance of the names, compare volume and timing with normal behavior, identify the requesting process, examine what the resolver recorded, and look for correlated endpoint or outbound activity. If meaningful data transfer is suspected, explain what observation supports that inference.
The same restraint applies to scanning. Many short connection attempts across services or hosts can indicate reconnaissance, but inventory software and vulnerability assessments may create similar patterns. An analyst should identify the source asset, examine approved assessment windows, determine whether connections completed, and look for follow-on activity. Unauthorized scanning can be a serious finding even without successful exploitation, but it is not the same thing as proving that the targets were compromised.
Devices and protocols can also be involved in outages rather than attacks. A user may reach a server's address while the actual application is down. A firewall may allow a connection that later fails because a service is not listening. A resolver may return the old address after a migration, or a gateway may route traffic through a failed dependency. These cases teach an important discipline: success at one layer is not proof of success at the next. Reaching the host does not prove that the application works, just as reaching a login screen does not prove that authentication succeeded.
During an incident, the opposite assumption is equally dangerous. A failed connection recorded at one firewall does not prove that no alternate route exists. A host might reach the same service through a proxy, a separate interface, or another authorized network path. And an alert with a source address might identify a translated gateway rather than the device that initiated the behavior. Where the evidence was collected is inseparable from what it can establish.
When briefing another analyst about an unusual network pattern, keep the report grounded. Name the observed source and destination in the relevant network context, the service the traffic appears to use, the time and direction, the control's action, and the source of the record. Add the initiating process and account if they are supported by other evidence. Explain which behavior differs from the asset's expected role and which plausible legitimate explanation you tested. If the evidence does not show successful access, do not call the activity a confirmed compromise.
That last point is the reason to learn network technology in the first place. Routers, switches, firewalls, proxies, and resolvers are places where traffic is forwarded, evaluated, transformed, or recorded. Ports and protocols help identify the kind of conversation a system may be attempting. Neither device names nor port numbers tell you whether the underlying action was malicious. The analyst's work is to connect a technical observation to an identity, an asset role, a real result, and a business consequence before recommending a response.
The next topic is network access, where those questions become especially important. A remote connection may pass through a virtual private network, a device-posture check, and several authorization decisions before someone reaches a sensitive system. Knowing that the path exists is only the beginning. The investigation will need to establish who used it, which device was trusted, what access was granted, and whether the activity remained within that authority.