opyeb harview

What to strip from a HAR before you share it: a checklist

2026-11-29 · 2 min read

One-line answer: a HAR is a recording, not anonymous statistics. Remove the credentials and personal data the recipient does not need, and tell them what you removed.

What one HAR file holds

Start with URLs and query strings

The most common leak is the query string: a password-reset code, an invite token, or an API key and secret appended to a URL. Log collectors store the whole URL, so it survives into the HAR.

harview clears parameters named token, key, secret, auth, code or password, including the same names in the URL. Tokens under other names (id_token, for example) need your own check.

Headers: what is actually dangerous

Headers to remove before sharing
HeaderWhat it carriesIf you leave it in
AuthorizationBearer JWT or Basic credentialsThe recipient can call the API with the same rights until it expires.
CookieSession ID, CSRF tokenA live session is equivalent to being signed in.
Set-CookieNew sessions, tracking cookiesThe session the server issued can be reused as is.
X-API-Key / X-Auth-TokenService-to-service keysThe key allows calls until it is rotated.

Bodies: JSON and base64

The usual suspects are password in a login request, access_token in a response and customer e-mails in a list. harview can remove Bearer tokens, JWTs, e-mail addresses and JSON values under password, token, secret and similar keys.

Response bodies encoded as base64 are left untouched in this version, with a count of how many were skipped. Decode those and review them separately.

Checklist before sharing

Verify after exporting

Reopen the sanitised HAR in harview and search for a fragment of a token, a cookie name and an e-mail domain. The quickest check is comparing what the receipt counted with what is actually gone.

Keep the original in a controlled location and attach only the sanitised copy to mail or an issue tracker.

Questions

Is masking enough to make a HAR safe?

It removes most credentials, but tokens under unexpected names, base64 bodies and metadata such as server IPs can remain. Check once more against the recipient and purpose.

A vendor asks for the original HAR.

Check the contract and access controls, and try to solve it with a masked copy first. If the original is unavoidable, reproduce the issue with a short-lived test account.

Are screenshots safe?

No. If tokens and e-mails are on screen, they are exposed. Blur them by the same standard before sharing a screenshot.

Sources

Every example here can be opened in the workbench as it is.

Open the workbench