# Prefer scoped restic service capabilities over a broadly executable privileged binary

> Keep elevated backup reading power attached to the intended Linux service and reviewed execution path.

- Canonical URL: https://update.dsesecurity.com/updates/prefer-scoped-restic-service-capabilities-over-a-broadly-executable-privileged-binary/
- Publisher: Detection Systems & Engineering (DSE Security)
- Author: DSE Security Editorial Team
- Published: 2026-10-15T13:33:12+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

Keep elevated backup reading power attached to the intended Linux service and reviewed execution path.

## Potentially affected

This applies to the documented Linux restic capability approaches. It addresses read privilege and executable scope, not authorization to expose backups or grant the service arbitrary system-management capabilities.

## DSE recommendation

DSE recommends reviewing the exact files the backup service needs to read and choosing the narrowest supervised privilege arrangement that meets that scope.

## Article

Keep elevated backup reading power attached to the intended Linux service and reviewed execution path.

## Source facts

Restic’s Linux examples describe CAP_DAC_READ_SEARCH as a way to bypass file-read and directory-search permission checks without running the whole backup process as root. They prefer ambient capabilities for the supervised process, including systemd service configuration. Granting that capability directly to an executable instead allows anyone who can execute it to use the elevated reading power, so execution must be restricted. File capabilities also disappear when that binary is replaced or self-updated.

Source: [restic — Linux Capability Examples](https://restic.readthedocs.io/en/stable/080_examples.html).

## Applicability

This applies to the documented Linux restic capability approaches. It addresses read privilege and executable scope, not authorization to expose backups or grant the service arbitrary system-management capabilities.

## DSE recommendation

DSE recommends reviewing the exact files the backup service needs to read and choosing the narrowest supervised privilege arrangement that meets that scope. Prefer service-bound capability configuration where appropriate, and treat the backup identity as sensitive even when its user ID is not root. Check repository write permissions separately. If file capabilities are unavoidable, restrict execution and include their verification in the binary-update procedure. Do not copy a capability-enabled executable into a generally accessible tools directory.

## Verification

In a disposable service configuration, verify access to required test files and confirm ordinary unrelated users cannot gain the same elevated read path. Replace the test binary and inspect the relevant capability behavior. Retain service configuration and access results without copying private backup credentials into the review record.

## Official reference

[restic — Linux Capability Examples](https://restic.readthedocs.io/en/stable/080_examples.html). Reviewed October 15, 2026.

## Primary reference

- Name: restic — Linux Capability Examples
- Authority: restic.readthedocs.io
- URL: https://restic.readthedocs.io/en/stable/080_examples.html
- Source publication date: Not stated by the source

## Citation and use

Preferred citation: “Prefer scoped restic service capabilities over a broadly executable privileged binary,” DSE Security, https://update.dsesecurity.com/updates/prefer-scoped-restic-service-capabilities-over-a-broadly-executable-privileged-binary/
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.
