Skip to content

Audit log and attribution

Harbor suiteRole: viewerDescribes Onboard 0.58.0 / Health 0.21.0

Harbor records every action it takes, and every sign-in event, in an activity log that shows tampering. It names who acted, and which vault identity did the work, so Harbor’s trail and CyberArk’s own audit can be matched up.

Threat Control
“Who created this safe?” has no answer Every record names the actor and carries the run ID of the operation.
A record is quietly edited or deleted to hide an action Each record is chained to the one before by a SHA-256 hash. Altered, removed, reordered or inserted records break the chain, and the integrity check says where.
Harbor’s trail and CyberArk’s disagree When an operator works through the service account, the record names both.

Each console writes, per day, into the profile’s logPath folder:

File Content
harbor-YYYYMMDD.log A readable line per event: UTC time stamp, level, run ID, message.
harbor-YYYYMMDD.jsonl The same events as JSON records, hash-chained. This is the audit log.

The shipped profiles use .\Logs under each module folder (for example HarborOnboard\Logs). Harbor Health keeps its scan history in the same folder.

Harbor does not delete or rotate these files. Keep and archive them according to your own retention policy.

{
"timestamp": "2026-11-24T09:15:02Z",
"level": "SUCCESS",
"runId": "6b274634",
"message": "...",
"seq": 412,
"prevHash": "<hash of record 411>",
"hash": "<hash of this record>"
}
Field Meaning
level DEBUG, INFO, SUCCESS, WARN or ERROR.
runId The run the event belongs to. Every event one run wrote shares it, so it shows exactly what that run did; to reverse a run, see Reverse a whole run.
actor Who acted (see below).
seq, prevHash, hash The hash chain.
unserialized Present (and covered by the hash) when the log’s lock was busy and the record was written without it. The verifier reports these as such, not as tampering.
Situation actor reads
An operator works in their own vault session (single sign-on accepted by the vault) <operator>
An operator works through the console’s service account <operator> (vault: <service identity>)
No signed-in operator: the PowerShell cmdlets, a scheduled scan anonymous-local (vault: <identity>), or empty without a vault session

So for each CyberArk event that names the service account, the Harbor record says which person caused it.

These are always written, and the rare ones also go to the profile’s webhook (see Webhooks / notifications):

Event Webhook
An emergency (break-glass) sign-in break-glass-used
An emergency account created or its password changed break-glass-changed
First run completed bootstrap-complete
Failed sign-ins and refused setup codes Audit log only, rate-limited to a few lines a minute plus a summary
Tenant saves Audit log: the actor and the names of the changed fields, never their values
Service account changes Audit log
Single sign-on saves Audit log: the actor and the count per role (admin n, operator n, viewer n), never the names

The configuration change history (Standards, Change history) is readable by every signed-in user, so it records single sign-on changes with the role lists and allowedUsers as counts, never names.

  • Console: Activity (under Overview), Verify integrity.

  • PowerShell:

    Terminal window
    Test-PAMAuditLog # today
    Test-PAMAuditLog -Date 20261124 # another day

It recomputes every record’s hash and reports:

Finding Means
Hash mismatch The record’s content was altered.
Broken prevHash link A record was removed or reordered.
Sequence gap A record was removed.
Chain restart in the middle The file was truncated and restarted.
Unchained lines Written before the chain existed. Counted, not failures.

It works offline; no vault session needed.

Terminal window
Get-HarborActivity -Tail 20 # the latest events as objects
Get-HarborActivity -RunId 6b274634 # one run
Export-HarborLog -Format csv | Set-Content harbor-today.csv

The Activity page shows the same feed, and exports a day’s log.

Export-HarborSiemEvents forwards a day of the audit log:

Terminal window
# An NDJSON file for an agent (Splunk Universal Forwarder, Sentinel AMA, Filebeat)
Export-HarborSiemEvents -OutFile .\harbor-feed.ndjson
# Splunk HTTP Event Collector
Export-HarborSiemEvents -HttpUrl https://<splunk host>:8088/services/collector/event -AuthHeader ('Splunk ' + $hecToken) -Format hec

The json format keeps the records exactly as logged, so the chain can still be verified downstream. Delivery is in batches and best-effort per batch. Schedule it daily for yesterday’s file: -Date (Get-Date).AddDays(-1).ToString('yyyyMMdd').

  • The hash chain proves the log was not altered after it was written. It does not stop someone with write access to the log folder from deleting whole day files: ship the logs to a SIEM or an archive you control.
  • Keep the log folder writable only by the accounts that run Harbor.

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.