security

Implementing Network Security

ENGINEERING GUIDE · NETWORK SECURITY

IPv4 & IPv6 Network Security — From Packet Filtering to Behavioural Defence

Modern network security is not a single firewall rule or access list. It is a layered control system that determines who can communicate, which traffic is permitted, where trust boundaries exist, how IPv4 and IPv6 behave differently, and how abnormal traffic is detected and investigated.

The Engineering Problem
Allowing connectivity is easy. Controlling communication is the challenge.

Networks must support legitimate application traffic while limiting unwanted access, protecting infrastructure protocols, controlling lateral movement, and maintaining visibility across both IPv4 and IPv6 paths.

01 · CONTROL

Define the Boundary

Identify trust zones, interfaces, identities, services and the traffic that should be permitted between them.

02 · PROTECT

Enforce Policy

Apply ACLs, firewall policy, segmentation and IPv6-specific protections at the points where traffic crosses a security boundary.

03 · OBSERVE

See Behaviour

Combine flow telemetry, packet visibility, DNS, connection metadata and infrastructure events to establish what normal looks like.

04 · RESPOND

Investigate Change

Correlate unusual behaviour with policy, topology and application context to determine whether an event is expected, suspicious or malicious.

Engineering View

Security follows the data flow.

A secure design starts with the communication path: source, destination, protocol, service, trust boundary and enforcement point. IPv6 introduces additional control-plane considerations such as Neighbor Discovery, Router Advertisements and multicast behaviour, while transition technologies introduce their own security boundaries.

Identity

Who or what is attempting the communication?

Policy

Should this source be allowed to reach this destination?

Telemetry

What does the traffic reveal about behaviour and change?

Threat

Does the observed behaviour indicate compromise or abuse?

The engineering question: Can we prove that the traffic we permit is expected, visible and appropriately controlled?
What This Guide Examines
IPv4 ACLs IPv6 ACLs Firewalls Segmentation NDP RA Guard DAD NAT64 NPTv6 GRE & IPsec NetFlow / IPFIX sFlow Threat Detection Incident Investigation
Widget 3 · Visibility & Behaviour

Behavioural Threat Detection Explorer

Security visibility turns network telemetry into intelligence. Explore how traffic patterns can expose beaconing, DNS tunnelling, lateral movement and abnormal east-west activity.

TELEMETRY → INTELLIGENCE
Detection Scenarios LIVE MODEL
Network Behaviour · Simulated Flow
Connections
42
Destinations
3
Pattern
Stable
Detection Engine CORRELATION
BEHAVIOURAL RISK 12
Traffic frequency NORMAL
Destination diversity NORMAL
Protocol behaviour NORMAL
East-west movement NORMAL
Threat correlation NONE
RECOMMENDED RESPONSE
ALLOW
Continue monitoring normal application behaviour.
Education Layer Network-derived intelligence is created by correlating patterns rather than examining a single packet. Frequency, destinations, protocols, identity and east-west behaviour can be combined to identify anomalies.
NETWORK SECURITY LAB

Network Security Control Plane Explorer

Modern network security is not enforced by a single firewall. Identity, segmentation, network controls, application inspection and detection work together to determine whether traffic should be allowed, blocked or isolated.

Security Enforcement Pipeline

POLICY ACTIVE
ID
Identity Validation Validate user identity, device posture and authentication context.
PASS
SG
Network Segmentation Determine whether the source can communicate with the destination segment.
READY
FW
Firewall Policy Evaluate source, destination, protocol, port and security policy.
READY
L7
Application Inspection Inspect application requests, paths and methods where required.
READY
AI
Detection & Analytics Correlate behaviour and telemetry to identify suspicious activity.
READY

Control Analysis

IDENTITY CONTROL

Establish who is requesting access

Identity is the first decision point in a modern security architecture. Authentication, device posture and contextual information establish whether the request can continue through the security pipeline.

Engineering question Can the requesting identity and device be trusted enough to continue?
Security principle Never assume trust simply because a device is already inside the network.
Current decision PASS — Continue Identity requirements are satisfied. Traffic can continue to the next security control.

Security Pipeline Outcome

READY

Select a control above to examine how that layer contributes to the overall network-security decision.

ENGINEERING INTRO · SECTION 01

Security Architecture — Follow the Data Flow

Start with the communication relationship before choosing the security control. Tap a component to see where the trust boundary and enforcement decision belong.

Trust Boundary Explorer
Trust boundary
01 · SOURCE Client
04 · CONTROL Firewall
02 · DESTINATION Service
03 · TRUST Boundary
Current Engineering Question

Who initiates the traffic?

Start at the source. Identify the system initiating the communication before deciding what should be permitted.

1 Identify the source
2 Define the destination
3 Locate the trust boundary
4 Choose the enforcement point
Engineering view: security policy should follow the data flow — not the other way around.
SECTION 01 · DEFINE

Security Architecture & Trust Boundaries

Network security begins before a firewall rule is written. The first task is to understand what is communicating, where trust changes, which traffic is expected, and where that communication can be controlled. This creates the security architecture that later filtering, inspection and monitoring mechanisms enforce.

Engineering Principle
Security policy should follow the data flow.

A useful security model connects the source, destination, application, protocol, trust zone and enforcement point rather than treating the network as a collection of isolated devices.

01 · SOURCE

Who initiates?

Identify the user, endpoint, server, workload or infrastructure device generating the traffic.

02 · DESTINATION

What is reached?

Determine the destination network, host, service or application being accessed.

03 · TRUST

Where does trust change?

Identify the boundary between users, servers, management, Internet, cloud and other security zones.

04 · CONTROL

Where is it enforced?

Place the appropriate ACL, firewall, segmentation or inspection control at the point where it can make the required decision.

Trust Boundaries

A trust boundary is the point at which traffic moves between different security assumptions. The boundary may exist between a user VLAN and server network, between an enterprise and the Internet, or between on-premises infrastructure and a cloud environment.

  • User and endpoint networks
  • Server and application zones
  • Management infrastructure
  • Internet and external services
  • Cloud and hybrid environments

Control Points

Once the boundaries are understood, security controls can be mapped to the traffic path. The objective is not simply to block traffic, but to make the policy decision explicit and observable.

  • Router and Layer 3 ACLs
  • Stateful firewall policy
  • Network segmentation
  • Identity and access controls
  • IDS/IPS and inspection systems
Engineering View

IPv4 and IPv6 must be secured as separate control planes.

A network can appear secure from an IPv4 perspective while IPv6 provides an overlooked path around the intended policy. Security architecture must therefore account for both protocol stacks, their control-plane behaviour, addressing model, routing, neighbour discovery and enforcement mechanisms.

Key takeaway: before deciding what traffic to block, establish what traffic should exist, which boundaries it crosses, and exactly where the security decision should be enforced.
ENGINEERING LAB · SECTION 01 · DEFINE

Trust Boundary Investigation

Follow a communication relationship from source to destination and prove where trust changes, where policy is enforced, and whether IPv4 and IPv6 follow the same security architecture.
INVESTIGATION READY
LIVE SECURITY PATH
IPv4 · EXPECTED
USER / SOURCE ZONE
SECURITY CONTROL ZONE
SERVER / SERVICE ZONE
◉
CLIENT
10.10.10.20
◇
ACCESS
VLAN / L2
▣
POLICY GATE
ACL + FIREWALL
▤
APPLICATION
10.20.10.40
⚠ SECURITY GAP IPv6 traffic reaches the application without crossing the intended policy gate.
TRUST INSPECTOR
LIVE EVIDENCE
CURRENT FINDING
Source identified
Begin the trace by identifying who initiates the communication.
SOURCE
CLIENT
DESTINATION
APPLICATION
PROTOCOL
IPv4
BOUNDARY
NOT YET VERIFIED
CONTROL
ACL + FIREWALL
DECISION
PENDING
DATA-FLOW TRACE
STEP 1 / 4
01
SOURCE
Identify the initiator.
02
DESTINATION
Confirm what is reached.
03
TRUST
Locate the boundary.
04
CONTROL
Prove enforcement.
ENGINEERING READOUT
ARCHITECTURE
SECURITY PRINCIPLE
Security policy should follow the data flow.
ENGINEERING INTRO · SECTION 02

Policy Decisions — Permit the Relationship, Not the Guess

Build a simple security decision by defining who is communicating, what protocol is being used and whether that relationship is actually required.

Build the traffic relationship
SOURCE
DESTINATION
PROTOCOL
RELATIONSHIP REQUIRED?
Security Policy Decision
POLICY REVIEW

Permit only required access

The selected relationship represents an intentional communication path. Enforce it at the appropriate ACL or firewall control point.

Source User
Destination Application
Protocol HTTPS
Control ACL / Stateful Firewall
Engineering principle: every security rule should represent an intentional communication relationship.
SECTION 02 · CONTROL

ACLs, Firewall Policy & Network Segmentation

Once trust boundaries and expected communication flows are defined, the next step is enforcement. ACLs and firewalls provide the decision logic that determines whether traffic is permitted, denied, inspected or logged. Segmentation then limits how far a compromised endpoint or workload can move through the network.

Engineering Principle
Every security rule should represent an intentional communication relationship.

A strong policy is specific about source, destination, protocol, service and direction. Broad rules may restore connectivity quickly, but they also make the security boundary difficult to understand and defend.

01 · FILTER

ACLs

Apply packet-level permit and deny decisions using addresses, prefixes, protocols and ports at routing or interface boundaries.

02 · INSPECT

Stateful Firewalls

Evaluate traffic in the context of connections, zones, applications and security policy rather than treating every packet independently.

03 · CONTAIN

Segmentation

Reduce unnecessary reachability between users, workloads, management systems and sensitive services.

Traffic Flow
Policy Question
Control
Engineering Objective
User → Server IPv4
Is the service required?
ACL / Firewall
Permit only required access
Client → Service IPv6
Does IPv6 follow the same policy?
IPv6 ACL / Firewall
Prevent an unintended alternate path
Server → Database TCP
Is this application relationship expected?
Segmentation
Limit lateral movement
Internet → DMZ External
Which service is intentionally exposed?
Firewall
Minimise attack surface
IPv4 / IPv6 Security

One policy. Two protocol stacks.

Deploying IPv6 does not automatically inherit the security posture of IPv4. IPv6 requires its own filtering and control-plane considerations, including Neighbor Discovery traffic and the protocols required for normal IPv6 operation.

Least Privilege

Reduce reachability before detecting compromise.

Segmentation provides a preventative control. If an endpoint is compromised, limiting which networks and services it can reach can reduce lateral movement before detection and response mechanisms take effect.

Engineering rule: a security policy should be understandable from the traffic flow alone. If nobody can explain why a rule exists, it should be reviewed rather than becoming permanent background configuration.
ENGINEERING LAB · SECTION 02 · CONTROL

Policy Decision Engine

Build a communication relationship and evaluate it against ACL, firewall and segmentation controls. The objective is not simply to permit traffic — it is to prove why that traffic should be permitted.
POLICY ENGINE READY
COMMUNICATION RELATIONSHIP
POLICY INPUT
◉
USER
SOURCE
◇
POLICY
ACL / FIREWALL
▤
APPLICATION
DESTINATION
Policy Rule
Match
Action
Service relationship
TCP/443
MATCH
Network boundary
USER → APP
CHECK
Protocol policy
IPv4
CHECK
DECISION ANALYSIS
ENGINE OUTPUT
SECURITY DECISION
PENDING
Define a source, destination, protocol and service, then evaluate the relationship.
POLICY CONFIDENCE 0%
SOURCE
—
DESTINATION
—
SERVICE
—
CONTROL
—
RATIONALE
—
FILTER
ACL / Stateless Control
Match source, destination, protocol and service. Keep the rule explicit and narrow.
SOURCE + DEST + SERVICE
INSPECT
Stateful Firewall
Evaluate the communication relationship at the security boundary and apply the intended policy.
STATE + POLICY
CONTAIN
Network Segmentation
Reduce unnecessary reachability so that a compromised system has fewer paths to other trust zones.
LIMIT LATERAL MOVEMENT
ENGINEERING INTRO · SECTION 03

IPv6 Control Plane — Follow the Discovery Sequence

IPv6 relies on Neighbor Discovery for router discovery, prefix discovery, address resolution, duplicate-address detection and neighbor reachability. Step through the sequence to see where security controls matter.

IPv6 host configuration sequence
Control-plane inspection
STEP 01 / 05
ROUTER DISCOVERY

Router Advertisement

Router Advertisements provide hosts with information about available IPv6 routers and network configuration. An unexpected RA can therefore influence how hosts configure and route traffic.

Security focus: control unauthorized Router Advertisements.
Engineering principle: protect the IPv6 control plane without breaking the discovery mechanisms that make IPv6 work.
SECTION 03 · PROTECT

IPv6 Control-Plane Security

IPv6 changes more than the address format. Core network functions such as address resolution, router discovery and duplicate-address detection are performed through Neighbor Discovery Protocol (NDP) and IPv6 multicast. These mechanisms are essential to normal operation, but they also create security considerations that do not have a direct IPv4/ARP equivalent.

Engineering Principle
Protect the IPv6 control plane without breaking the mechanisms that make IPv6 work.

Security controls must distinguish legitimate Neighbor Discovery and Router Advertisement traffic from malicious or unexpected control-plane behaviour.

01 · NDP

Neighbor Discovery

Provides neighbour discovery, address resolution, router discovery, prefix discovery and neighbour reachability functions.

02 · RA

Router Advertisements

Hosts learn IPv6 prefixes, default-router information and other configuration parameters through Router Advertisements.

03 · DAD

Duplicate Address Detection

Hosts use Neighbor Solicitation to determine whether an IPv6 address is already in use before assigning it to an interface.

04 · ENFORCE

RA Guard

Layer 2 infrastructure can filter unauthorized Router Advertisements at the access boundary before they reach end hosts.

IPv6 Host Configuration — Control-Plane Sequence
RA Router provides network information
Prefix Host learns the IPv6 prefix
Address Host forms an IPv6 address
DAD Host checks for duplication
Reachability NDP maintains neighbour state
Security Control

RA Guard at the access boundary

An unauthorized device sending Router Advertisements can influence how hosts select default routers or configure their IPv6 connectivity. RA Guard provides a Layer 2 enforcement mechanism that can block unwanted Router Advertisements on access ports while allowing them on trusted router-facing paths.

Threat Consideration

IPv6 attacks can begin with control traffic.

Security monitoring should not focus exclusively on application payloads. Unexpected Router Advertisements, abnormal Neighbor Discovery behaviour, duplicate-address events or unusual IPv6 multicast activity can provide valuable evidence during an investigation.

Key takeaway: IPv6 security includes the control plane. Filtering application traffic is not enough if an attacker can influence neighbour discovery, router discovery or other mechanisms required for normal IPv6 operation.
ENGINEERING LAB · SECTION 03 · PROTECT

IPv6 Control-Plane Investigation

Step through the IPv6 host configuration sequence and identify where Router Advertisements, Neighbor Discovery and Duplicate Address Detection become security-relevant control-plane events.
CONTROL PLANE READY
IPv6 HOST CONFIGURATION SEQUENCE
EVENT 1 / 5
01
⌁
ROUTER DISCOVERY
Host learns about available routers.
02
◇
PREFIX
Prefix information is learned.
03
◉
ADDRESS
The host forms its IPv6 address.
04
◎
DAD
Duplicate address detection runs.
05
⇄
REACHABILITY
Neighbor reachability is established.
CONTROL-PLANE EVENT STREAM
▣
IPv6 ROUTER
fe80::1
▤
IPv6 HOST
fe80::20
ROUTER ADVERTISEMENT
RA RECEIVED The host has received IPv6 router information.
SECURITY INSPECTOR
CONTROL PLANE
CURRENT EVENT
Router Advertisement
Router Advertisements allow hosts to learn about routers, prefixes and other configuration information.
SECURITY QUESTION
Is this router legitimate?
An unexpected RA can influence how hosts select routers and configure IPv6 connectivity.
MESSAGE
ROUTER ADVERTISEMENT
SOURCE
FE80::1
CONTROL
RA GUARD
OBSERVATION
MONITOR
NDP
Neighbor Discovery
IPv6 uses NDP for functions including router discovery, address resolution and neighbor reachability.
NO IPv6 BROADCAST
RA GUARD
Access-Layer Protection
RA Guard can filter unwanted Router Advertisements at an access-layer boundary.
FILTER UNEXPECTED RA
DAD
Address Validation
Duplicate Address Detection uses Neighbor Solicitation to check whether an IPv6 address is already in use.
NS → SOLICITED-NODE MULTICAST
ENGINEERING INTRO · SECTION 04

IPv6 Transition — Choose the Mechanism for the Problem

NAT64, NPTv6 and tunnelling solve different connectivity problems. Select a mechanism to see what changes in the packet path and where the new security boundary appears.

Select mechanism

NAT64 — IPv6 to IPv4 Translation

Protocol Translation
Client IPv6 Host
→
Boundary NAT64
→
Service IPv4 Server
Problem solved IPv6-only clients reaching IPv4 services
Security boundary Translation device and its policy/state
Visibility change Address and protocol context changes across the translator
Security focus Inspect and control the translated path
NAT64 is a translation mechanism for IPv6-to-IPv4 communication. It should not be treated as equivalent to IPv6 prefix translation or tunnelling.
Engineering principle: every transition mechanism changes what the network can see, enforce or troubleshoot. Secure the mechanism as well as the traffic crossing it.
SECTION 04 · TRANSITION

IPv6 Transition, Translation & Tunnelling

IPv4 and IPv6 will often coexist for many years. Security architecture therefore has to account for transition mechanisms as well as native IPv6 traffic. Translation, prefix translation and tunnelling solve different engineering problems and introduce different security boundaries.

Engineering Principle
Do not treat IPv6 transition technologies as interchangeable.

NAT64 provides IPv6-to-IPv4 communication, NPTv6 performs stateless IPv6-to-IPv6 prefix translation, while GRE can encapsulate traffic across an IPv4 underlay. Their security properties and control points are fundamentally different.

01 · TRANSLATE

NAT64

Allows IPv6-only clients to communicate with IPv4-only destinations through an IPv6-to-IPv4 translation function.

IPv6 Client → NAT64 → IPv4 Server
02 · PREFIX

NPTv6

Provides stateless IPv6-to-IPv6 prefix translation. It can be useful for prefix independence or multihoming designs, but it does not provide IPv4/IPv6 interoperability.

IPv6 Prefix A → NPTv6 → IPv6 Prefix B
03 · TUNNEL

GRE + IPsec

GRE can carry IPv6 traffic across an IPv4 transport network. GRE itself does not provide confidentiality; IPsec can be used to protect the encapsulated traffic.

IPv6 Traffic → GRE → IPsec → IPv4 Underlay
Security Boundary

Every translation or tunnel changes what you can see.

A security device may observe the original IPv6 flow, a translated IPv4 flow, or an encapsulated tunnel depending on where inspection occurs. Logging and policy therefore need to identify the correct enforcement point and preserve enough context to reconstruct the original communication.

Operational Design

Secure the transition mechanism itself.

Translation and tunnelling infrastructure should be treated as part of the security architecture. Restrict management access, monitor unusual translation or tunnel activity, apply appropriate filtering and ensure that security policy remains consistent across both sides of the transition boundary.

Important distinction: IPv6 support for IPsec does not mean IPv6 traffic is automatically encrypted. IPsec is a separate security mechanism that must be deliberately configured and applied to the required traffic or tunnel.
ENGINEERING LAB · SECTION 04 · TRANSITION

IPv6 Transition Architecture Explorer

Follow the packet path through NAT64, NPTv6 or GRE + IPsec. The architecture, address family and security boundary change depending on the transition mechanism selected.
NAT64 ARCHITECTURE READY
TRANSITION MECHANISM
SELECT ARCHITECTURE
01
⇄
NAT64
IPv6-only clients communicate with IPv4 services.
02
⇆
NPTv6
Stateless IPv6-to-IPv6 prefix translation.
03
◈
GRE + IPsec
IPv6 traffic carried through an IPv4 underlay.
LIVE PACKET PATH
▣
IPv6 CLIENT
2001:db8:10::20
◆
NAT64
TRANSLATION BOUNDARY
▤
IPv4 SERVER
192.0.2.40
IPv6 PACKET
TRANSLATION EVENT IPv6 traffic crosses a NAT64 translation boundary before reaching an IPv4 destination.
SECURITY INSPECTOR
ARCHITECTURE ANALYSIS
CURRENT TECHNOLOGY
NAT64
Protocol translation provides IPv6-only clients with access to IPv4 services. The translation point becomes an important security and visibility boundary.
ENGINEERING WARNING
Translation changes visibility
Security controls and telemetry must account for both sides of the translation boundary.
MECHANISM
NAT64
ADDRESSING
IPv6 → IPv4
BOUNDARY
TRANSLATION
SECURITY
INSPECT BOTH SIDES
NAT64
IPv6 → IPv4 Interoperability
Used when an IPv6-only client needs to reach an IPv4 service. The translation device becomes a significant policy and telemetry boundary.
DIFFERENT ADDRESS FAMILIES
NPTv6
IPv6 Prefix Translation
NPTv6 translates one IPv6 prefix to another IPv6 prefix. It is not an IPv4/IPv6 interoperability mechanism.
IPv6 → IPv6 · STATELESS
GRE + IPsec
Tunnel + Protection
GRE can carry IPv6 traffic across an IPv4 underlay. GRE itself provides no confidentiality; IPsec can protect the encapsulated traffic.
TUNNEL ≠ ENCRYPTION
ENGINEERING INTRO · SECTION 05

Security Visibility — Choose the Evidence

Different telemetry sources answer different questions. Select an evidence source to see what it can establish, what it cannot prove, and how it contributes to an investigation.

Select evidence source

NetFlow / IPFIX

FLOW EVIDENCE
Can establish Who communicated, which ports were used, protocol, volume and timing.
Best question Which systems communicated and did the traffic pattern change?
Limitation Flow records normally do not provide the full packet payload.
Investigation use Establish a communication baseline and identify unusual flows.
Evidence value HIGH
Flow evidence is particularly useful for understanding communication relationships at scale.
Engineering principle: visibility is not the same as collecting more data. The useful question is whether the evidence can answer the investigation question.
SECTION 05 · OBSERVE

Network Telemetry & Security Visibility

Prevention alone cannot establish whether a network is behaving as expected. Security operations require evidence from multiple visibility layers: flow records, packet observations, infrastructure telemetry, connection metadata and security events. The objective is to turn raw network activity into an evidence trail that can be investigated.

Engineering Principle
Visibility is not the same as collecting more data.

Effective monitoring means collecting the right evidence at the right observation point and correlating it with topology, identity, policy and application context.

01 · FLOW

NetFlow / IPFIX

Provides flow metadata such as endpoints, ports, protocol, byte counts, packet counts and timing information.

02 · SAMPLE

sFlow

Uses sampling to provide scalable visibility into traffic behaviour and interface activity across large networks.

03 · PACKET

SPAN / Capture

Provides packet-level evidence for deeper protocol analysis and investigation when flow metadata is insufficient.

04 · EVENT

Security Telemetry

Firewall, IDS/IPS, DNS, authentication and endpoint events add context around network behaviour and policy decisions.

What the Network Can Tell You

Flow and telemetry systems may not expose application payloads, but they can still reveal important behavioural signals.

Endpoints Who is communicating with whom?
Ports Which services or protocols are involved?
Volume Has traffic volume changed significantly?
Timing When does the communication occur?

Encrypted Traffic Still Leaves Signals

Encryption protects payload content, but network communication still produces observable metadata. Traffic volume, packet sizes, timing, destinations, connection frequency and DNS activity can contribute to behavioural analysis.

Metadata Addresses, ports and connection patterns remain visible.
Baseline Normal application behaviour provides comparison.
Deviation Unexpected patterns can become investigation signals.
Correlation Multiple weak signals can form stronger evidence.
Engineering Evidence Chain

Observe → Correlate → Baseline → Investigate

A useful security monitoring architecture does not stop at collecting telemetry. Evidence becomes valuable when network observations can be correlated with infrastructure state, identity, policy and application behaviour.

OBSERVE Collect traffic and infrastructure signals.
CORRELATE Connect events across systems and time.
BASELINE Understand expected behaviour.
INVESTIGATE Explain meaningful deviations.
Key takeaway: a security platform becomes more useful when telemetry can answer not only what happened, but also where it happened, what changed, and whether the behaviour was expected.
ENGINEERING LAB · SECTION 05 · OBSERVE

Network Telemetry & Security Evidence Lab

Select a telemetry source, inspect the evidence it provides, then correlate the observation to determine what the network can actually prove.
FLOW TELEMETRY SELECTED
TELEMETRY SOURCES
SELECT EVIDENCE TYPE
01
⇄
NetFlow / IPFIX
Endpoints, ports, protocol, bytes, packets and timing.
02
◌
sFlow
Sampling-based visibility for scalable traffic monitoring.
03
◈
Packet Capture
Packet-level evidence for detailed protocol investigation.
04
!
Security Events
Firewall, IDS/IPS, DNS, authentication and endpoint events.
OBSERVED NETWORK EVIDENCE 01 / 04
SOURCE
10.10.20.15
OBSERVED
DESTINATION
10.20.40.30
OBSERVED
PROTOCOL
TCP / 443
OBSERVED
PATTERN
184 MB / 12 MIN
SIGNAL
EVIDENCE CORRELATION
WHAT CAN WE PROVE?
CORRELATION CONFIDENCE
Current evidence strength
25%
CURRENT FINDING
A communication relationship exists.
Flow telemetry can establish who communicated, where they communicated and characteristics such as protocol, volume and timing.
VISIBILITY LIMIT
Flow records do not provide the complete packet payload. Additional evidence may be required.
FLOW
Metadata at Scale
Strong for endpoint relationships, ports, traffic volume, timing and behavioural baselines.
NETFLOW / IPFIX
SAMPLE
Scalable Observation
Sampling provides broad visibility without requiring every packet to be captured.
SFLOW
PACKET
Detailed Evidence
Packet capture can reveal protocol-level details unavailable from flow records alone.
SPAN / CAPTURE
EVENT
Security Context
Firewall, IDS/IPS, DNS, authentication and endpoint events add investigative context.
CORRELATE
ENGINEERING INTRO · SECTION 06

Behavioural Threat Detection — Investigate the Change

A security event becomes meaningful when it can be compared with normal behaviour. Step through the investigation from baseline to correlated evidence and determine whether the change needs investigation.

Investigation workflow
01
Baseline Understand the normal communication pattern.
02
Detect Identify a meaningful deviation.
03
Correlate Connect multiple independent signals.
04
Investigate Decide whether the change is expected or suspicious.
Investigation evidence
BASELINE
NORMAL BEHAVIOUR

Establish the baseline

The first question is not "is this malicious?" It is whether the observed communication differs from the expected operating pattern.

Observed User → Application over HTTPS
Signal Stable daily pattern
Current conclusion
No deviation established yet. Continue observing the baseline.
Engineering principle: incidents are often detected as changes in behaviour. Baseline first, then correlate the evidence before deciding what happened.
SECTION 06 · INVESTIGATE

Behavioural Threat Detection

Traditional security controls are designed around known policy: permitted destinations, approved services, trusted systems and expected communication paths. Behavioural detection adds another question: does the observed behaviour match the normal operating pattern? This allows security teams to identify suspicious change even when no single packet or rule violation provides the complete answer.

Engineering Principle
Security incidents are often detected as changes in behaviour.

A useful detection model establishes a baseline, identifies meaningful deviations and correlates several weak signals before escalating an event into an investigation.

01 · BASELINE

Know Normal

Understand normal hosts, services, destinations, traffic volumes and communication patterns.

02 · DETECT

Find Change

Identify unusual communication, volume, timing, destinations or access patterns.

03 · CORRELATE

Build Evidence

Combine network, DNS, identity, endpoint and security telemetry to strengthen the signal.

04 · INVESTIGATE

Explain the Change

Determine whether the deviation is expected activity, misconfiguration or evidence of compromise.

Behavioural Signals

Individual observations are rarely enough to establish an incident. Their value increases when several signals point toward the same behavioural change.

Scanning One host contacting an unusual number of destinations or ports.
Lateral Movement New east-west communication between systems that normally do not interact.
Command & Control Repeated outbound connections or unusual destination patterns may warrant investigation.
Data Movement Unexpected changes in transfer volume, destination or communication timing.

IPv4 & IPv6 Behaviour

Dual-stack environments create another investigation dimension. Security teams must determine whether IPv4 and IPv6 exhibit the same expected communication relationships.

IPv4 Path Is the expected IPv4 security policy being enforced?
IPv6 Path Does IPv6 expose an alternate route or service?
NDP Activity Are neighbour and router-discovery events consistent with the topology?
Correlation Does the same host behaviour appear across both protocol stacks?
Engineering Investigation Loop

Baseline → Detect → Correlate → Validate → Respond

Behavioural detection should produce an explainable evidence chain rather than an isolated alert. The investigator starts with the deviation, identifies the affected systems and communication paths, then validates whether the observed behaviour is expected before taking containment or response action.

BASELINE What normally happens?
DETECT What changed?
CORRELATE What other evidence supports it?
VALIDATE Is the activity legitimate?
RESPOND What control should change?
Key takeaway: behavioural security is not simply about generating more alerts. The goal is to identify meaningful changes, connect them to the network data flow and produce enough evidence to explain whether the behaviour represents normal activity, misconfiguration or a genuine security event.
ENGINEERING LAB · SECTION 06 · INVESTIGATE

Behavioural Threat Investigation Console

Security incidents often appear first as changes in behaviour. Build the investigation from baseline to detection, correlation and validation instead of treating a single alert as proof.
BASELINE ESTABLISHED
INVESTIGATION WORKFLOW
BUILD THE EVIDENCE
01
◉
Baseline
Establish expected behaviour.
02
!
Detect
Identify meaningful change.
03
⛓
Correlate
Connect independent signals.
04
◈
Investigate
Explain the observed change.
LIVE INCIDENT TIMELINE
09:10
Normal traffic baseline
Host normally communicates with a small set of internal services over predictable ports.
09:42
New destination observed
The host begins communicating with an endpoint outside its established behavioural baseline.
09:44
IPv6 activity increases
IPv6 flows and NDP activity appear alongside the changed communication pattern.
09:48
Cross-source correlation
Flow telemetry and security events independently support the behavioural deviation.
THREAT ASSESSMENT
CURRENT CONFIDENCE
BEHAVIOURAL SIGNAL
Change detected
A communication pattern has deviated from the established operating baseline.
INVESTIGATION CONFIDENCE
20%
CURRENT FINDING
Baseline established — no incident proven.
A baseline tells the investigator what normal looks like. The next question is whether the observed change is meaningful.
1 · Expected? Is the changed communication part of a legitimate operational activity?
2 · Correlated? Do independent telemetry sources show the same change?
3 · Explained? Can the behaviour be explained by configuration, maintenance or application activity?
SCANNING
Many Destinations
A sudden increase in destination diversity can represent reconnaissance or legitimate discovery activity.
DESTINATION CHANGE
LATERAL MOVEMENT
New Internal Paths
Unexpected east-west communication can indicate a change in the host's normal trust relationships.
EAST-WEST
C2 SIGNAL
Repeated Behaviour
Repeated timing, destination or connection patterns may become significant when correlated with other evidence.
PERIODICITY
DATA MOVEMENT
Volume Deviation
Unusual transfer volume or timing can provide another signal when compared with the established baseline.
VOLUME CHANGE
ENGINEERING INTRO · SECTION 07

Response Decisions — Automate What You Understand

Detection does not automatically justify containment. Select the confidence level and see how the response should become more controlled as evidence becomes stronger.

Evidence confidence

Validate Before Acting

LOW CONFIDENCE
01 Detect
02 Validate
03 Contain
04 Verify
05 Recover
CONTROLLED RESPONSE

Investigate — Do Not Automatically Contain

A single signal is not enough to justify a disruptive policy change. Gather additional evidence and validate the event first.

Recommended action Correlate telemetry and investigate
Automation boundary Human validation required
Engineering principle: automate the response that is understood — not the uncertainty.
SECTION 07 · RESPOND

Security Operations & Automated Response

Detection becomes valuable when it can drive a controlled response. Security operations connect the investigation evidence from the previous sections with enforcement systems such as firewalls, IDS/IPS, access controls, routing policy and endpoint controls. The objective is not to automate every decision, but to make response consistent, explainable and repeatable.

Engineering Principle
Automate the response that is understood — not the uncertainty.

High-confidence, well-defined actions can be automated. Ambiguous events should retain a human investigation step before disruptive controls are applied.

01 · DETECT

IDS / IPS

Identify suspicious traffic and, where appropriate, apply prevention or blocking controls.

02 · CONTAIN

Segmentation

Reduce the reachable attack surface by isolating affected systems or communication paths.

03 · ENFORCE

Policy Change

Update firewall, ACL, routing or access policy when evidence justifies a change.

04 · RECOVER

Restore State

Remove temporary controls and confirm that normal, validated behaviour has returned.

Response Decisions

Response should be proportional to confidence and impact. A suspicious signal does not automatically justify a disruptive network change.

LOW CONFIDENCE Collect additional telemetry and continue investigation.
MEDIUM Increase monitoring, restrict exposure or request analyst validation.
HIGH CONFIDENCE Apply a defined containment action with an auditable change record.
CRITICAL Execute approved emergency containment and escalate immediately.

Human + Automation

Automation is most effective when it operates inside clearly defined guardrails rather than replacing engineering judgement.

TRIGGER A detection reaches a defined confidence threshold.
VALIDATE Confirm affected asset, communication path and policy context.
EXECUTE Apply the approved response through a controlled automation workflow.
AUDIT Record what changed, why it changed and what evidence triggered it.
Engineering Response Loop

Detect → Validate → Contain → Verify → Recover

Automation platforms such as Ansible Automation Platform can orchestrate repeatable operational actions across network and security infrastructure. The important engineering control is the workflow around the automation: evidence, approval boundaries, execution, verification and rollback.

DETECT Identify a meaningful security event.
VALIDATE Confirm the evidence and affected scope.
CONTAIN Apply the minimum required control.
VERIFY Confirm the threat path is controlled.
RECOVER Return the environment to a known-good state.
Key takeaway: effective security operations connect detection to controlled action. The strongest response architecture combines telemetry, human judgement, policy enforcement and automation without allowing an uncertain detection to trigger an uncontrolled network change.
ENGINEERING LAB · SECTION 07 · RESPOND

Security Response Decision Engine

Choose the evidence confidence and proposed response. The engine determines whether the action can be automated, requires human approval, or should remain under investigation.
LOW CONFIDENCE · HOLD
RESPONSE POLICY BUILDER
SELECT CONFIDENCE + ACTION
01
LOW
Weak or incomplete evidence.
02
MEDIUM
Suspicious but requires context.
03
HIGH
Correlated evidence supports action.
04
CRITICAL
Immediate controlled containment.
Monitor
Increase observation without changing network state.
Segment
Restrict communication through a controlled boundary.
Policy Change
Modify a firewall or access-control policy.
Isolate
Apply immediate containment to the affected system.
RESPONSE CONTROL LOOP
DETECT
VALIDATE
EXECUTE
DECISION OUTPUT
POLICY EVALUATION
RECOMMENDED CONTROL
Hold action
Evidence is insufficient for an automated network change. Continue observation and gather additional context.
AUTOMATION: BLOCKED
CONFIDENCE
LOW
ACTION
MONITOR
APPROVAL
REQUIRED
ROLLBACK
AVAILABLE
AUTOMATE THE RESPONSE THAT IS UNDERSTOOD
A suspicious signal should not automatically become a destructive policy change. Validate first.
DETECT
Identify the Signal
Use telemetry and security events to establish what changed before deciding what should happen next.
EVIDENCE
VALIDATE
Confirm the Context
Check whether the behaviour is expected, authorised or already explained by an operational change.
HUMAN JUDGEMENT
EXECUTE
Apply Controlled Action
Automation can apply known response procedures when the evidence and action boundaries are well understood.
AUTOMATION
RECOVER
Verify & Roll Back
Confirm the desired state and preserve a rollback path when changing security policy.
AUDIT / ROLLBACK
ENGINEERING INTRO · SECTION 08

Continuous Security — Validate the Network You Actually Have

Security controls drift as networks change. Explore the assurance loop and see how expected data flows are compared with observed reality across IPv4 and IPv6.

Continuous assurance loop
Current stage MAP

Map the Expected Flow

ASSURANCE 01
DEFINE THE MODEL

Understand the communication relationship

Before validating security, establish which systems should communicate, across which protocol stack and through which control points.

Validation question What communication should exist?
Security focus Define the intended data flow.
IPv4 / IPv6 Model both protocol paths.
Drift signal Unexpected path or service.
Engineering principle: security controls must be continuously validated against the data flow, not simply assumed to remain correct after deployment.
SECTION 08 · VALIDATE

Continuous Security & Assurance

Network security is not a configuration that is completed once and then forgotten. Networks change, applications move, policies evolve and new IPv4 and IPv6 paths appear. Continuous security assurance validates that the intended communication model still matches the observed environment.

Engineering Principle
Security controls must be continuously validated against the data flow.

A policy can be syntactically correct while still being ineffective. Assurance therefore compares intended reachability, enforced controls and observed behaviour.

01 · MAP

Understand the Flow

Identify systems, services, trust boundaries and the communication paths that should exist.

02 · CHECK

Validate Policy

Confirm ACLs, firewalls, segmentation and IPv6 controls enforce the intended relationships.

03 · OBSERVE

Compare Reality

Use telemetry to determine whether actual communication matches the expected security model.

04 · IMPROVE

Close the Gap

Remove unnecessary reachability, improve visibility and update controls as the environment changes.

Continuous Validation Questions

Assurance should turn security policy into measurable engineering questions rather than relying only on configuration review.

REACHABILITY Can systems communicate with destinations they should not reach?
POLICY Does the enforced policy match the documented requirement?
VISIBILITY Can the resulting traffic be observed and investigated?
DUAL STACK Does IPv6 introduce a path that bypasses an IPv4 control?

Security Drift

Security drift occurs when the environment gradually moves away from the intended security model. This can happen through new applications, firewall changes, temporary exceptions, topology changes or previously unknown IPv6 connectivity.

NEW PATH A previously unseen communication relationship appears.
NEW SERVICE A service becomes reachable without an approved requirement.
POLICY GAP A control exists on one protocol stack but not the other.
VISIBILITY GAP Traffic exists but cannot be adequately investigated.
Engineering Assurance Loop

Model → Enforce → Observe → Compare → Improve

The strongest security architecture continuously compares the intended network model with observed behaviour. This turns security from a static collection of rules into an engineering feedback loop.

MODEL Define expected communication and trust.
ENFORCE Apply policy at the appropriate control points.
OBSERVE Collect evidence from actual traffic.
COMPARE Find deviations from the intended model.
IMPROVE Reduce exposure and strengthen controls.
Key takeaway: effective network security is a continuous engineering process. Define the expected data flow, enforce the required controls, observe what actually happens, investigate deviations and continuously validate the security model across both IPv4 and IPv6.
ENGINEERING LAB · SECTION 08 · VALIDATE

Continuous Security Assurance Lab

Compare the intended security model with observed network behaviour. Select a drift condition to see how a change in reachability, service exposure, policy or visibility affects assurance.
SECURITY POSTURE · ASSURED
SECURITY ASSURANCE MODEL
MODEL → ENFORCE → OBSERVE → COMPARE → IMPROVE
CONTROL LIFECYCLE
01
MODEL
Define expected flow
02
ENFORCE
Apply policy
03
OBSERVE
Collect evidence
04
COMPARE
Find deviations
05
IMPROVE
Close the gap
SELECT AN OBSERVED CHANGE
DRIFT-01
New Path
A previously unseen IPv4 or IPv6 communication path appears.
DRIFT-02
New Service
A service becomes reachable outside the intended model.
DRIFT-03
Policy Gap
Observed communication is not represented by an explicit rule.
DRIFT-04
Visibility Gap
Expected traffic exists but monitoring evidence is incomplete.
MODEL
INTENDED
OBSERVED
PATH
Defined
Additional path detected
POLICY
Explicit
Review required
VISIBILITY
Observable
Correlation required
ASSURANCE RESULT
CONTINUOUS VALIDATION
SECURITY ASSURANCE
82%
ASSURED
CURRENT FINDING
Communication path requires validation
The observed environment contains a path that should be compared against the intended communication model.
IPv4 POLICY
ALIGNED
IPv6 POLICY
ALIGNED
OBSERVABILITY
AVAILABLE
DRIFT
DETECTED
VALIDATE BEFORE CHANGING POLICY
A deviation is evidence for investigation, not automatic proof that the existing policy is wrong.
REACHABILITY
Can It Communicate?
Validate whether the observed IPv4 and IPv6 paths match the intended communication relationships.
DATA FLOW
POLICY
Is It Explicit?
Every expected relationship should map to an understandable ACL, firewall, segmentation or access-control decision.
ENFORCEMENT
VISIBILITY
Can We Prove It?
Flow, packet, security and infrastructure telemetry should provide enough evidence to explain important changes.
EVIDENCE
DUAL STACK
Check Both Paths
IPv6 must not become an unintended alternate route around an IPv4 security policy.
IPV4 + IPV6
```
☕
Support Network Insight
Help support independent engineering guides, interactive networking tools, and future learning labs.
Support Network Insight ```