Seeing Attack Patterns in Network Traffic
A network analyst at a chain of neighborhood grocery stores sees a steady pulse of encrypted traffic leaving a central inventory server. The connections arrive about once a minute, travel to an address the team does not recognize, and continue overnight when no employee is using the application. A colleague calls it beaconing and recommends blocking the destination. The operations manager says that the inventory vendor uses a cloud service that reports status continuously. Both explanations are possible. The traffic pattern is real; the conclusion about its purpose is not yet earned.
Network evidence is unusually good at showing relationships between systems. It can reveal that an address communicated with another address, when the exchange began, which service and transport were involved, and sometimes how much data moved. Depending on the collection point and protocol, it may expose requested domain names, web requests, email delivery details, or only encrypted session metadata. Analysts use those observations to reconstruct communications, but a network record seldom establishes who was at the keyboard, which process made the request, or what the application did with the bytes it received.
Start with the address of the inventory server. The sensor identifies the internal source and a remote destination. At first that seems straightforward, but the network may translate addresses when traffic leaves the company. Several systems can appear externally under one public address, and a returning log from the internet may identify only that shared address. A firewall or translation record helps connect the external conversation back to the internal host. If an address was assigned dynamically, the time of the relevant address lease matters too. Looking up today's device assignment would be a poor way to attribute yesterday's traffic.
A useful independent study exercise is to take this opening case to the Bare Metal Cyber CCOA study guide after listening. Explain why a source address, a public translated address and an assigned device identity are related but not identical. Then ask what additional record would make the attribution stronger. The answer changes with the network design, which is precisely why a memorized port or address pattern is not enough.
The analyst first checks what the flow data actually contains. A flow record generally summarizes a conversation or group of packets: endpoints, ports, protocol, timing and volume, sometimes connection state and other fields. It may not retain the contents of any packet. The server's small periodic exchanges look regular, with consistent durations and low volumes. Those features are compatible with a software heartbeat. They are also compatible with malicious software checking for instructions. A pattern supports the decision to investigate; it does not choose between those possibilities.
Next come name-resolution records. When an application needs to contact a named service, a DNS resolver may record the requested name and the address returned. That can connect a recognizable vendor domain to the destination later seen in traffic, but only if the relevant queries were observable and the timing is consistent. One server can reuse a cached answer without making a fresh query. Some applications use preconfigured addresses, or send DNS through an encrypted or external resolver that a local sensor does not inspect. The absence of a visible DNS request is not a verdict about whether the connection happened.
In this case the inventory server requested a name under the vendor's documented service domain before the traffic began. The name later resolved to several addresses belonging to shared cloud infrastructure. That supports the vendor explanation, but it does not authenticate the application's behavior merely because the address belongs to a familiar provider. Cloud addresses can host unrelated customers, services change destinations, and malicious activity can operate through legitimate hosting platforms. The team needs the server's process and vendor configuration records before accepting the traffic as authorized inventory reporting.
A separate proxy record supplies a different view. For one of the connections, it shows a web request associated with the server account and records that the remote service responded successfully. Proxy logs may expose requested hostnames or paths, policy decisions, and sometimes user identity, depending on the deployment. When application traffic is end-to-end encrypted, the proxy may not see content. If a proxy does inspect traffic under an authorized organizational policy, its logs may provide more detail, but analysts should not assume every encrypted connection was decrypted. A successful network request and a successful inventory update are still different claims.
The endpoint team confirms that a signed inventory agent generated the periodic traffic and that the activity matches a recent vendor configuration. The source process, timing and expected business function all agree. The team documents the baseline instead of blocking the service and disrupting stock updates at stores that open early. It also records the limits of that finding: knowing this particular traffic is expected does not make every future connection to the vendor's infrastructure legitimate. The investigation has narrowed one uncertainty, not permanently trusted an entire destination.
On the following day, the same central sensor reports another pattern. A store manager's laptop contacted a newly observed domain shortly after a suspicious delivery-notice email arrived. Its network sessions are also encrypted, but they come in irregular clusters and continue after the manager says the message was deleted. The analyst might be tempted to reuse the inventory-server conclusion because encryption and cloud hosting are common. The second case has a different context, and the available evidence points to a different set of questions.
The mail system can establish when the message was accepted, which recipient received it, which sender identity it claimed, and what link or attachment it carried, if that information was logged. Email headers and message tracing can help show the systems that handled a message and the authentication results recorded by those systems. A displayed sender name alone proves very little. Even a message that passes an email authentication check can contain a harmful link if it comes from a compromised legitimate account. Delivery is not the same event as reading the message, and opening a message is not necessarily the same event as following its link.
The analyst correlates delivery with the laptop's later name-resolution and web access events. A request for a domain embedded in the message appears shortly after the message reached the mailbox. A proxy record shows the laptop established a session to a page on that domain. This combination gives more confidence that the device accessed the link, although determining whether the user interacted with it may require browser and endpoint evidence. The account could have automatic previewing or security-link inspection in the path. The team asks what actually generated the traffic before attributing the action to a person.
For optional follow-up practice, the CCOA Cyber Challenge material associated with Bare Metal Cyber can reinforce the difference between a message being delivered, a name being resolved, and a connection being established. Try to construct a case where all three happen but there is no compromise, then identify the extra evidence that would change your judgment. The exercise encourages restraint where the records stop short of proving execution or credential theft.
The laptop later connects several times to a second address. A flow system can expose when the connections start, how long they last, and approximate traffic volumes. A series of short periodic sessions might indicate automated communication, but timing alone cannot identify a command-and-control channel. Cloud synchronization, software agents, monitoring clients and even unstable connections can produce repeated patterns. If the outbound connections coincide with a newly launched process or a suspicious browser extension, confidence changes. If a legitimate updater used the same address during a documented maintenance event, the case points elsewhere.
The analyst is careful with transport details. A common web port does not certify that the traffic is ordinary browsing, and an uncommon port is not proof of malicious intent. A TCP connection involves a mechanism for establishing a reliable stream and acknowledging transmitted bytes. UDP often supports exchanges with less built-in connection state. A summarized flow may reflect a completed connection, an unsuccessful attempt, or repeated exchanges, depending on what the collector observed. To tell those apart, the analyst may need protocol-aware logs or packet evidence rather than the port number alone.
Encryption changes the evidence boundary. A network sensor might observe a connection to a remote address, the timing and sizes of packets, and certain handshake information. Depending on protocol versions and privacy features, a hostname may be available in one exchange and hidden in another. A certificate, when visible, supplies information about a cryptographic identity, not a guarantee that the site's purpose is harmless. The analyst must avoid claiming to have inspected a web request body that the sensor could not decrypt. If the investigation requires application contents, an authorized endpoint, application or proxy record may answer more safely and directly.
Volume deserves the same caution. The laptop shows a larger outbound exchange near the end of the day. That is compatible with an attempted upload, but its byte count cannot by itself distinguish confidential documents from encrypted backups, retransmissions, or ordinary application data. Network counters may include overhead and direction may be defined differently across products. A cloud service might acknowledge a transfer without processing or retaining it as the sender intended. To report actual exposure, the team needs a link from the activity to the data source and destination, and may need service-side access records as well.
What if the two different stores show the same suspicious remote destination? That can help the team broaden its scope, but addresses are shared and can change over time. A stronger comparison uses independent characteristics: the process responsible, a domain name, the timing relative to the suspicious email, the account context, and related endpoint behavior. Looking only for one exact address may miss redirected traffic or a changed service endpoint. Searching every employee device for the behavior has more investigative value when the team can state what that behavior is and how it differs from normal software.
The network path also determines what can be observed. A sensor on a branch internet connection may see traffic crossing that boundary but not conversations that remain inside a local segment. Remote employees may access cloud applications without sending traffic through corporate offices. An endpoint may change wireless networks or use a VPN, changing how the source appears in centralized logs. If an analyst reports no evidence of communication, the report should state which collection points and time windows were checked. It is a claim about observed coverage, not the entire possible network.
At the grocery chain, the laptop's endpoint history supplies the missing context. A browser session reached the suspect page, and an unfamiliar extension appeared afterward. The team cannot yet say that the extension stole information, but its installation and subsequent connections justify controlled response under the company's procedures. Investigators preserve the relevant host and browser evidence, restrict the extension or affected device as authorized, review the account session, and look for the same installation pattern elsewhere. They avoid blocking an entire cloud hosting range that also supports ordinary store operations.
The first inventory-server alert and the second laptop investigation began with outwardly similar encrypted network patterns. In one, vendor configuration and process evidence explained legitimate status traffic. In the other, message delivery, site access and a new browser component supported a possible intrusion requiring further action. The correct distinction emerged from sources that described different parts of the activity. Network data provided the path and timing. Email provided a possible starting point. Endpoint and identity evidence helped connect the path to a specific execution and account context.
For performance-based investigations, there is rarely a reason to examine every packet at the beginning. If the question concerns who received a harmful message, mail records are often the first useful source. If it concerns which hosts contacted a destination, flows and DNS may orient the search. If it concerns whether a device actually ran a suspicious program, endpoint events may be decisive. If it concerns the protocol details of a particular exchange, packet analysis may be worth the additional work. The choice follows the uncertainty that needs to be resolved, not the prestige of the tool.
A strong network finding stays close to its evidence. You may establish that a host made repeated connections, that one request followed a suspicious message, or that a transfer of a certain approximate volume crossed an observed boundary. You may not be able to establish what encrypted content was sent or who operated the device at that moment. Separating those conclusions helps an incident team contain genuine threats, preserve business communications, and tell decision-makers what remains unknown. That is the practical value of network traffic analysis.