Skip to content

Authentication and VPN Session Records

Authentication and VPN logs connect account outcomes, tunnel lifecycles and assigned addresses within clearly defined evidence limits.

By Reviewed by Jeevesh Kumar

Last updated:

Authentication records describe an identity decision. Virtual private network (VPN) records describe a connection attempt and, when available, the lifecycle of a tunnel. Examined together, they can link an account identifier to a tunnel address during a bounded interval. Additional service or endpoint records are needed to establish the activity carried by that tunnel.

Start with the account or certificate identity reported by the system, the VPN gateway, and the event type and documented outcome. Separate the source address seen outside the tunnel from the address assigned within it. Use session identifiers where possible and keep each system’s time fields in the chronology.

Key terms

Principal
The account, service or device identity represented by a system’s record. Qualify it by the issuing identity domain.
Authorization
A policy decision about permitted access. Identify the component and stage that made the decision.
Tunnel address
An address assigned for traffic inside the VPN. Its meaning depends on gateway, route and assignment interval.
Session identifier
A source-scoped key for a session or accounting conversation. Preserve the originating service when joining records.
Authentication time (auth_time)
The time of end-user authentication recorded in an OpenID Connect claim when present.
Token issue time (iat)
The time a token was issued. It can be later than the event that satisfied authentication.
More key terms (3)
Multifactor authentication (MFA)
A requirement involving more than one authentication factor. A sign-in can satisfy it based on a previously established claim.
Child Security Association (Child SA)
IPsec state protecting a negotiated set of traffic. An IKE session can contain multiple Child SAs.
Traffic selector
A negotiated protocol, address and port range governing eligibility for an IPsec Child SA. It does not measure observed use.

Distinguish Authentication and Authorization Events

An identity provider can record a presentation of credentials and its result. A VPN gateway can record a separate connection or authorization outcome. An identity-provider success may be followed by a gateway failure or by further evaluation. Keep each outcome with its source and stage.

Correlate the identity-provider result with the gateway decision before reporting whether a tunnel came up.

Read the account identifier in its identity domain and preserve the event’s stated authentication method. A certificate common name, a user name and a device identifier describe different things. They can coincide in a deployment, but the mapping should come from a documented source. An authentication result establishes a credential or account event within the system’s visibility.

Compare the source’s documented coverage with the interpretation being tested. AWS, for example, lists failed mutual authentication attempts outside the scope of its Client VPN connection logs. An export with no failures therefore cannot resolve that kind of attempt on its own. In a defensive review, identify the authorized client, certificate or identity records that could provide the missing view. AWS Client VPN connection logging

Reconstruct the Tunnel Lifecycle

Identify whether the row represents an attempt, successful start, update, reset or disconnect. Keep the connection identifier and gateway together because identifiers can be scoped to the service. Use recorded start and end times to build the interval. An update can help bound the latest observed state if the ending event is unavailable.

A tunnel can remain open after a user starts another session or changes network access. Reconnects can produce new IDs and a different internal address. Check for overlapping sessions and compare the gateway’s endpoint time with the identity provider and service clocks. Keep the time uncertainty explicit when sessions fall near the same boundary.

A failed attempt may record a source address with no assigned tunnel address. A completed handshake and a later authorization reset can produce still other combinations. Preserve the documented difference between an unavailable value and a value presented as zero. Across exports, check whether repeated rows are updates to one connection or evidence of new attempts before counting sessions.

Map Addresses Across the Tunnel Boundary

The outer address identifies the network peer as seen by the VPN gateway. That address may be shared behind a translator or vary with network changes. The inner address comes from VPN configuration and may be reused by later clients. Use the appropriate address for each source, retaining ports and interval context when available.

Retain the gateway, connection identifier and matching time window when linking the address views.

An internal firewall or application can observe activity from the tunnel’s assigned address. Compare it to the assignment window and gateway routing. Traffic using other routes may be absent from the tunnel records. If the relevant service logs a distinct client, proxy or translated address, obtain the mapping before joining the session.

In networks where more than one VPN gateway can assign the same address pool, the inner address can appear in several sessions around the same time. Add gateway, route or tenant context before attributing the downstream traffic. If a target service receives requests through a proxy, its view of the network peer may identify that proxy. A time-bounded intermediary record can supply the missing link to the VPN address.

Test the Join With Independent Records

Prefer a common request or session identifier when the identity provider and gateway share one. When IDs differ, compare the principal, gateway or application identifier, event stage and times with documented clock uncertainty. Retain candidate matches when more than one record fits. A successful login and a tunnel at a similar time can be independent events.

A tunnel counter indicates traffic volume according to the product’s counting rules. To establish a specific resource or operation, seek the relevant service, endpoint or authorized network log. A final finding can describe a successful session tied to a principal and an assigned address. State explicitly when the evidence leaves the person operating the endpoint undetermined.

Prepare an exhibit with the identity event, tunnel start, tunnel end and internal service event as separately sourced observations. The chain may have a strong tunnel join and a weaker internal-service join. Give each relationship its own evidentiary basis, such as a shared ID or an address and time interval, so the reviewer can see exactly which conclusion depends on an unverified inference.

Identify Session and Identity Ambiguities

An account can have several successful tunnels at once, including one from an automated process and one from a managed endpoint. An account identifier alone leaves the specific tunnel unresolved. Correlate the relevant connection or device record and tie the expected route to the application activity. Retain both candidates in the chronology when the time and route evidence still fit more than one.

A short burst of authentication events can include waiting states, challenges, retries and a final result. Some deployments record those steps under different identifiers. Group by the documented correlation fields and preserve the order of timestamps. A challenge or a pending result can show that a decision process started, while the final event defines what the relevant system ultimately recorded.

Keep time and identity disclosures proportionate to the finding. For a review copy, use stable identifiers or document how sensitive values were redacted while retaining a protected reference to the original record. Show the clock basis and the fields used in the join. This preserves reproducibility for a permitted reviewer without including unrelated account activity or full identity assertions in the exhibit.

Recover Approximate Event Time From Accounting Delay

In deployments that use Remote Authentication Dial In User Service (RADIUS) accounting, the collector’s arrival timestamp can lag the underlying event. Acct-Delay-Time carries the number of seconds the sender has been trying to send an accounting record. Subtract it from arrival time to approximate event time. The calculation leaves network transit time outside the estimate. RADIUS accounting delay

In a hypothetical VPN practice export, an accounting Start arrives at 11:02:20 with Acct-Delay-Time 40. Its estimated event time is 11:01:40. A second Start arrives at 11:02:35 with a delay of 55 seconds, giving the same estimate. Both carry the same Acct-Session-Id and network access server identifier. Check for a retransmission or duplicate import before counting two starts.

Retain each arrival time and its delay. Check the session and gateway fields before treating the records as observations of the same start.

The RADIUS packet Identifier can change when Acct-Delay-Time changes. For session attribution, compare the accounting session identifier, gateway and event type, then compare independent gateway records and the historical time basis. Preserve both arrivals and calculated times so a reviewer can test whether apparent overlap with another session depends on accounting delay. RADIUS accounting session identifier

If an export timestamp comes from an ingestion pipeline downstream of the accounting server, locate the actual arrival record before making the subtraction. A collector receipt time and a forwarded copy can have different delays. Record an estimated event time with its source and precision beside the original timestamps.

Calculate Traffic Between Cumulative Accounting Updates

RADIUS Interim-Update accounting records can report cumulative statistics since the start of a session. To estimate what accrued between two snapshots, compare the same directional field and subtract the earlier count from the later one. Confirm the network access server, session ID and time basis before taking that difference. RADIUS Interim Accounting Updates

In a hypothetical VPN practice export, one session’s Acct-Input-Octets values are 120,000 at an estimated event time of 12:05 and 165,000 at 12:10. The difference is 45,000 octets, each an eight-bit byte. The input field counts bytes received from the service port by the accounting client, so keep that source’s direction definition with the result. Input counter definition

Subtract the earlier counter from the later one for the same session and directional field, accounting for documented resets or rollover.

If the later snapshot repeats at a second collector, compare its original event time and counter values before treating it as another update. If a count decreases, check record order and whether the counter rolled over or reset. Some exports retain Acct-Input-Gigawords, which counts wraps of the input octet field. RADIUS counter wrap field

The calculated volume covers the interval between the two accounting snapshots under their documented counting rules. The updates leave the timing of individual transfers open. A service log with a request identifier and the measured bytes for that operation can help address what portion belongs to a particular request.

Tell Original Authentication Time from Token Issue Time

An OpenID Connect (OIDC) ID token can expose timestamps that describe different stages. The iat claim gives the token issue time. The auth_time claim, when present, gives the time of end-user authentication. Keep the issuer, subject and intended audience with the recorded claim values. Pairing subject with issuer is important because the same subject string can have different meanings across issuers. OpenID Connect ID token claims

In a hypothetical export of an authorized gateway’s validation log, auth_time is displayed as 07:55 UTC and iat as 08:40 UTC. The gateway records session establishment at 08:41 UTC for an audience identifying that gateway. The evidence supports earlier authentication, later token issuance and a subsequent tunnel start. The 08:40 timestamp alone leaves the time of any human interaction open.

Read the two token claims and the gateway session record as separate stages. Confirm that the issuer, intended audience and transaction match.

Confirm that the claim summary came from a validated token for the relevant issuer, audience and transaction. If the gateway keeps a stable event key, preserve it as the link to the identity event. Compare the separate device or certificate context when the same account could establish sessions from multiple managed endpoints.

For a review copy, record only the claims that are needed and refer to protected originals through exhibit IDs. A later expiry time bounds when the token could be accepted under the applicable rules. The VPN session lifetime must come from gateway records and policy.

Establish Whether a Sign-In Included a Fresh Factor

A successful sign-in record can show that a multifactor authentication (MFA) requirement was satisfied through an existing token claim. Microsoft Entra sign-in details describe the methods and outcomes for authentication steps, including satisfaction through token claims where applicable. Review the individual steps and the relying application before treating a policy result as evidence of a new prompt. Microsoft Entra authentication details

In a hypothetical authorized export, one row for the managed VPN application records a completed interactive step at 08:00. A later sign-in to the same application at 08:50 records that its MFA requirement was satisfied through a claim. The VPN gateway establishes a tunnel at 08:51. Preserve the event time, application identity and step result for each entry.

Check any documented linking fields before associating the later claim with the earlier interactive event. In Entra, a Correlation ID groups activity from a sign-in session but derives from client-supplied parameters. Read it with request or token identifiers where available and with the application and tenant context. A claim result can identify the basis for the later decision while leaving its earlier source unresolved.

A review may find evidence that the operator interacted at 08:00 and that the gateway admitted a session at 08:51. To claim a new factor at 08:50, look for a corresponding authentication step. Record whether the export reflects one summary row or several step events before counting attempts.

Compare VPN Traffic Selectors with Observed Use

With Internet Key Exchange version 2 (IKEv2), an IPsec Child Security Association (Child SA) protects selected traffic. The TSi and TSr payloads describe traffic selectors on the initiator and responder sides. A selector can include an address range, port range and IP protocol. The responder can narrow the proposed selectors, so read what was accepted in the relevant Child SA. IKEv2 traffic selector negotiation

In a hypothetical authorized gateway export, the initiator proposes a responder range that covers 198.51.100.0/24. The accepted TSr covers only 198.51.100.32 through 198.51.100.47 for the questioned traffic. A server-side record concerns 198.51.100.50. Compare the proposed and accepted ranges and the applicable protocol and ports. The address falls outside the accepted range for that Child SA.

Check whether another Child SA for the same IKE session covered the address at the time or whether the event could have taken a different route. Preserve the gateway context and the recorded Child SA identifier, including a Security Parameter Index (SPI) and direction where available. Match the time window for the specific SA, since rekeying can create another association under the same session.

A selector describes eligibility for the association. To establish actual use, obtain an authorized gateway traffic record, a monitored inner-path observation or an application event joined to the corresponding address context. In the absence of those observations, the accepted selectors can still narrow the candidate paths without proving that any qualifying request occurred.

Casework Example

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
Which fields most directly link both sample AWS Client VPN events to one tunnel?

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.