Subscribe to the Non-Human & AI Identity Journal
Home Glossary Cyber Security HAR File
Cyber Security

HAR File

← Back to Glossary
By NHI Mgmt Group Updated August 2, 2026 Domain: Cyber Security

A HAR file is a browser-generated record of network activity that captures requests, responses, headers, cookies, and timings. Security teams use it to replay authenticated navigation or dynamic application flows so scans can reach paths that crawlers may miss.

Expanded Definition

A HAR file, short for HTTP Archive, is a structured export of browser network traffic that preserves the sequence and metadata of page interactions. For security testing, it is used to reconstruct authenticated or multi-step application behaviour so tools can observe requests that a simple crawl would miss. That makes it different from a packet capture, which records lower-level traffic, and different from a script, which attempts to imitate the flow rather than preserve it exactly.

In practice, a HAR file is most useful when the application depends on session state, dynamic JavaScript, anti-bot checks, or hidden navigation paths. Security teams may capture a HAR from a real user session and use it to seed scanning, verify endpoint coverage, or troubleshoot why a control failed to inspect a page. The term is also relevant when handling sensitive data, because HAR exports can contain session cookies, bearer tokens, URLs, and request bodies. Guidance varies by toolchain, but no single standard governs how much sanitisation is performed before sharing a HAR outside the team. See the NIST Cybersecurity Framework 2.0 for the governance context around protecting application access and operational data.

The most common misapplication is treating a HAR file as a safe diagnostic artefact, which occurs when teams share it without checking for exposed cookies, API keys, or personal data.

Examples and Use Cases

Implementing HAR-based testing rigorously often introduces privacy and handling overhead, requiring organisations to weigh better scan coverage against the risk of exposing session material.

  • A web application scan stalls behind a login and several AJAX calls, so analysts capture a HAR from an authenticated session and use it to replay the full path.
  • A developer investigates why a control is failing to reach a search result page, then compares the HAR against the intended workflow to identify a missing header or redirect.
  • A security engineer sends a HAR to a support team to reproduce a client-side issue, while first removing cookies and any bearer tokens from the export.
  • An API gateway review uses HAR data to verify which endpoints are called by a browser-based workflow and whether any sensitive parameters are exposed in the URL.
  • A red team or QA team uses a HAR to understand dynamic content loading, then builds a more accurate test case for a scanner that would otherwise miss the path.

For teams building repeatable test coverage, HAR data should be handled with the same care as other operational evidence. The browser export may include enough detail to reconstruct authenticated activity, so sharing it broadly can create unnecessary risk.

Why It Matters for Security Teams

HAR files matter because they can close visibility gaps in testing, but they also create a new handling obligation. If security teams rely only on crawling, they may miss stateful paths, client-side routes, or authenticated functions that are critical to risk analysis. That matters in vulnerability management, application testing, and incident investigation because the evidence gathered from a HAR can show the exact sequence required to reach a sensitive function.

The governance issue is not just technical coverage. HAR exports often carry headers, cookies, and request bodies that can reveal secrets, personal data, or identity session material. That makes them relevant to access control, data minimisation, and secure sharing practices under frameworks such as NIST Cybersecurity Framework 2.0, particularly where organisations need to protect operational artefacts and validate that the right assets are being tested. Teams should treat HAR files as sensitive evidence, not casual logs, and set rules for redaction, retention, and transfer.

Organisations typically encounter the operational impact of HAR files only after a scan misses a critical authenticated path or a shared export leaks session data, at which point the format becomes unavoidable to manage.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5, NIST SP 800-63 and NIST AI RMF set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-1Access artifacts in HAR files can expose session data and entitlements.
NIST SP 800-53 Rev 5SC-28HAR exports may contain sensitive data requiring protection at rest and in transit.
ISO/IEC 27001:2022A.5.15ISO 27001 access control guidance applies when HAR files contain sensitive session details.
NIST SP 800-63IAL2Authenticated sessions captured in HARs may reflect identity assurance in testing workflows.
NIST AI RMFAI-assisted testing workflows can use HARs as input evidence for evaluation and traceability.

Store HAR artifacts securely and encrypt them wherever they are retained or transferred.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org