# Do not treat a Borg passphrase change as repository-key rotation

> Distinguish a changed Borg passphrase from replacement of compromised repository secrets.

- Canonical URL: https://update.dsesecurity.com/updates/do-not-treat-a-borg-passphrase-change-as-repository-key-rotation/
- Publisher: Detection Systems & Engineering (DSE Security)
- Author: DSE Security Editorial Team
- Published: 2026-10-15T13:33:02+00:00
- Modified: 2026-10-15T13:36:16+00:00
- Last reviewed by DSE: 2026-10-15
- Resource type: Guide
- DSE priority: Information
- Topics: Business Continuity, IT
- Reading time: 2 minutes

## What you need to know

Distinguish a changed Borg passphrase from replacement of compromised repository secrets.

## Potentially affected

This applies to Borg 1.4.5 encrypted-key administration. It distinguishes wrapper-passphrase changes from compromised repository secrets, rather than providing a complete incident-response or data-migration procedure.

## DSE recommendation

DSE recommends recording what was exposed before choosing the recovery action: a passphrase, an encrypted key file, or usable repository secrets together.

## Article

Distinguish a changed Borg passphrase from replacement of compromised repository secrets.

## Source facts

Borg 1.4.5 key change-passphrase changes protection of the stored key, not the underlying encryption or authentication secrets or chunker seed. If an attacker already obtained both key and passphrase, changing only that passphrase does not protect past or future backups in the same repository. The key-export procedure also leaves the exported key encrypted and does not include its passphrase; regaining access requires both. Passphrase management and repository-secret compromise are therefore different operational cases.

Source: [Borg 1.4.5 — Key Management](https://borgbackup.readthedocs.io/en/stable/usage/key.html).

## Applicability

This applies to Borg 1.4.5 encrypted-key administration. It distinguishes wrapper-passphrase changes from compromised repository secrets, rather than providing a complete incident-response or data-migration procedure.

## DSE recommendation

DSE recommends recording what was exposed before choosing the recovery action: a passphrase, an encrypted key file, or usable repository secrets together. Escalate confirmed secret compromise for a reviewed replacement-repository and recovery plan rather than closing the issue after a password prompt succeeds. Keep exported key custody and passphrase custody deliberate and independently recoverable. Document the scope of any exposure assessment, including historical backups, without claiming a new passphrase has retroactively secured already compromised material.

## Verification

In a disposable repository, change the passphrase and verify the documented key-handling and recovery procedure with authorized operators. Confirm the incident worksheet distinguishes passphrase replacement from repository-secret replacement. Retain only nonsecret identifiers and test outcomes; never place real keys or passphrases in the public evidence record.

## Official reference

[Borg 1.4.5 — Key Management](https://borgbackup.readthedocs.io/en/stable/usage/key.html). Reviewed October 15, 2026.

## Primary reference

- Name: Borg 1.4.5 — Key Management
- Authority: borgbackup.readthedocs.io
- URL: https://borgbackup.readthedocs.io/en/stable/usage/key.html
- Source publication date: Not stated by the source

## Citation and use

Preferred citation: “Do not treat a Borg passphrase change as repository-key rotation,” DSE Security, https://update.dsesecurity.com/updates/do-not-treat-a-borg-passphrase-change-as-repository-key-rotation/
Publishing principles: https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/
Usage and citation policy: https://update.dsesecurity.com/usage/
Copyright © 2026 Detection Systems & Engineering. All rights reserved.
