Module 9 of 17

Offline Network Evidence

Reconstruct DNS, flow, HTTP, and TLS stories from sanitized network records without contacting a real destination.

6 hours1 exercisesFree

Start here

Learning objectives

  • Verify that a course network record set is sanitized and limited to reserved domains and documentation address ranges.
  • Build a flow-first network timeline from DNS, connection, HTTP, and TLS metadata.
  • Recognize evidence consistent with C2, botnets, worms, web shells, miners, and cloud workload compromise without treating a pattern as proof.
  • Turn a network hypothesis into a scoped detection and an evidence-preserving response decision.
Offline Network Evidence defensive workflow A four-step flow from Verify records through Test hypothesis. The diagram describes defensive analysis only. Offline Network Evidence Observe evidence, test a hypothesis, choose a control, and record uncertainty. Verify records step 1 Summarize flows step 2 Correlate context step 3 Test hypothesis step 4 Course rule: no live malware, weaponized payloads, stealth, persistence, credential access, or public callbacks.

Read Captures as Evidence

A packet capture is a record from one observation point. It can show that a frame or packet crossed that point, but it may not show the originating user, the responsible process, or the meaning of encrypted content. Begin with capture location, start and end time, interface, filter, truncation settings, clock quality, and chain of custody. These details determine which conclusions the capture can support.

Work from broad to narrow. Summarize endpoints, protocols, volumes, duration, and direction before opening individual conversations. Then correlate DNS answers, connection timing, HTTP metadata, TLS metadata, proxy records, endpoint process events, and workload identity. This avoids selecting one dramatic packet and building the whole story around it.

Use a Safe Evidence Vocabulary

Every course network record is offline, synthetic, or sanitized capture-derived metadata. Domain names end in .example or .invalid. IPv4 endpoints come from the TEST-NET ranges 192.0.2.0/24, 198.51.100.0/24, and 203.0.113.0/24. No packet payload or replayable capture is supplied. Learners must stop if a record contains a globally routable endpoint or an unlisted domain.

Evidence layerIt can supportIt cannot establish alone
DNSRequested name, answer, timing, resolver path, and repetitionWhich process made the request or whether the answer was used
FlowEndpoints, ports, direction, byte counts, duration, and recurrenceApplication intent or encrypted content
HTTP metadataMethod, host, path category, status, size, and timing when visibleTrustworthiness merely because the protocol is common
TLS metadataHandshake properties, server name when present, certificate context, and session timingThe plaintext request or response

Patterns Worth Investigating, Not Labeling

  • RAT, botnet, or C2 hypothesis: repeated low-volume sessions, a rare destination, or a consistent interval can justify correlation with process and identity evidence. Monitoring, health checks, update agents, and message consumers can look similar.
  • Worm hypothesis: one source contacting many peers or services over a short period may indicate propagation, but discovery, inventory, patching, and load testing are common alternatives.
  • Web-shell hypothesis: an unusual inbound request followed by a new server-side child process and outbound flow is stronger than any one event. The course represents the request and action with harmless labels only.
  • Cryptominer hypothesis: long-lived pool-like sessions plus sustained compute and an unexplained process deserve review. Long sessions are normal for many streaming and messaging systems.
  • Cloud or container compromise: combine egress with pod, workload identity, image digest, deployment, and policy records. An address alone does not identify the responsible container.

Encrypted traffic shifts the analysis toward metadata and endpoint correlation. Do not weaken production encryption or deploy interception casually to recover visibility. Decide which application-level audit events can provide the missing context while respecting privacy.

Move From Packet to Testable Hypothesis

  1. State the observation without intent: who communicated, when, for how long, and how much.
  2. Add context: expected service, asset role, process, workload identity, change window, and destination history.
  3. Write a primary hypothesis and at least one benign alternative.
  4. Name the next evidence that could support or weaken each explanation.
  5. Choose a proportionate control, such as preserving evidence, isolating one workload, or restricting an unapproved destination.

A good network report survives loss of payload visibility. It explains why the sequence matters, which evidence is missing, and how the proposed detection will be tested against normal software behavior.

Protect Privacy and Evidence Quality

Real captures may contain personal information, authentication material, internal names, application content, and regulated data. Do not upload employer captures to public tools or use them in this course. Sanitization must preserve the relationship needed for learning while replacing identities and content. Record what was transformed so later reviewers do not mistake a sanitized value for original evidence.

Keep original authorized evidence separate, access controlled, and governed by the incident process. The learner works only with the provided derivative JSONL metadata and its documented sanitization rules.

Suggested Study Plan (6 hours)

The published duration includes active practice, not video playback alone. Complete each block with the course-owned evidence and retain the stated deliverable so another reviewer can reproduce your reasoning.

Study blockTimeRequired evidence
Guided lesson and primary-source review1h 26mAnnotated notes that separate observations, hypotheses, limits, and version-sensitive facts.
Worked evidence walkthroughs1h 11mReproduce the lesson's tables or decision flow and challenge at least two assumptions.
Independent practice rounds1h 11mApply the method to two alternate records in the sanitized evidence pack and compare the conclusions.
Required lab1h 15mA flow summary, a correlated timeline, a three-hypothesis evidence matrix, and a privacy-aware detection and response recommendation.
Knowledge check and review57 minutesAnswer the evidence check, review the rubric, and record one production follow-up.

Evidence Check

Question: A host connects to the same destination every sixty seconds. Is that enough to call the traffic command and control?

Reveal the defensive reasoning

No. Periodicity is one feature shared by health checks, telemetry, updates, queues, and malicious control traffic. Correlate destination rarity, process and workload identity, bytes, protocol metadata, deployment history, and surrounding endpoint behavior. Record both the C2 hypothesis and legitimate alternatives.

Primary References

Use these primary sources for the current standard or tool behavior. The course records framework versions so mappings can be reviewed when upstream guidance changes.

Real world

Where this shows up

  • Scoping unexpected egress from a container or build runner
  • Distinguishing a health check from a periodic control-channel hypothesis
  • Correlating a suspicious server request with a web process and outbound connection
  • Finding which telemetry is missing when encryption hides application content

Production notes

Keep these close

  • Retain flow, DNS, proxy, workload identity, and deployment records with synchronized time and clear ownership.
  • Collect the least content necessary and apply access control, minimization, and retention to network evidence.
  • Test detections against periodic services, scanners, update systems, and batch jobs before production rollout.
  • Prefer application audit events and workload identity over broad decryption when they answer the same question.

Common mistakes

What usually breaks

  • Calling periodic traffic C2 without process, identity, or destination context
  • Ignoring capture location, packet loss, truncation, time drift, or asymmetric routing
  • Assuming a familiar port proves the application or a valid certificate proves trust
  • Uploading a real capture containing sensitive content to a public analyzer

Security risks

Threats to watch

  • Opening or replaying unknown captured content can expose tools and networks to unnecessary risk.
  • Real packet captures can disclose credentials, personal data, internal topology, and business content.
  • Broad blocking based on weak network features can interrupt healthy production services.
  • Encrypted traffic can create false confidence when endpoint and workload context is absent.

Tradeoffs

Design choices you should be able to defend

Collect packet content broadly

Pros

  • May answer some protocol questions directly
  • Can support deep investigation when authorized

Cons

  • Creates privacy and credential exposure
  • Adds storage, access-control, and legal obligations

Use metadata plus application and identity telemetry

Pros

  • Reduces sensitive content collection
  • Often scales better across encrypted services

Cons

  • Needs consistent instrumentation
  • May leave gaps for unknown or unmanaged applications

Think like an engineer

Questions to answer before shipping

  • Which application event would explain this connection without recording sensitive payload content?
  • How would autoscaling, retries, or a service mesh change the apparent network pattern?
  • What is the narrowest safe containment action while ownership remains uncertain?

Key terms

Vocabulary used in this module

Flow

A summarized network conversation described by endpoints, protocol, timing, direction, and volume.

TEST-NET

IPv4 address ranges reserved for documentation and examples rather than normal public use.

Beaconing

Repeated communication with a timing pattern; a feature that requires context and is not proof of command and control.

Observation point

The location and interface from which network evidence was collected.

Sanitization

A documented transformation that removes sensitive or operational content while preserving relationships needed for analysis.

Exercises

Practice inside the lesson

75 minutesIntermediate

Reconstruct a Sanitized Network Story

Analyze provided offline network records and supporting synthetic logs to explain a fictional workload incident without contacting any destination.

  1. Verify the sanitized network-record and evidence-pack hashes against the supplied manifest before opening them.
  2. Confirm that every domain ends in .example or .invalid and every IPv4 endpoint belongs to an approved TEST-NET range. Stop on any exception.
  3. Use an offline JSON or text-analysis tool to summarize conversations, protocols, byte counts, durations, DNS activity, and time distribution.
  4. Join the network sequence with the supplied synthetic endpoint, proxy, deployment, and workload-identity events.
  5. Write one primary hypothesis, two alternatives, the evidence for and against each, and a narrow detection or containment recommendation.

Expected evidence

A flow summary, a correlated timeline, a three-hypothesis evidence matrix, and a privacy-aware detection and response recommendation.

Assessment criteria

  • The preflight proves that all names and addresses are reserved for examples or documentation.
  • The analysis begins with record provenance, collection limits, and a flow summary before individual events.
  • Claims distinguish observable network facts from process, user, and intent hypotheses.
  • The detection proposal includes legitimate alternatives and a privacy impact note.

Teardown

  1. Delete temporary working copies.
  2. Retain only the written defensive analysis.

Recap

Key takeaways

  • A packet capture reflects one observation point and must be interpreted with its collection scope.
  • Flow, DNS, HTTP, and TLS metadata gain meaning when correlated with process, identity, and deployment evidence.
  • Periodicity, rarity, fan-out, and long duration are investigative features, not malware verdicts.
  • Course network records use only sanitized metadata, reserved domains, and TEST-NET addresses with networking disabled.

Related resources

Keep learning across CodersSecret