Skip to content
CVE-2026-130771 CrowdStrike LogScale · LogScale

Detect Incus Backup/Image Metadata Path-Traversal via Special Files, Hard Links, or Symlinks (CVE-2026-130771) in CrowdStrike LogScale

Detects potential exploitation of CVE-2026-130771, a CWE-59 (link following) flaw in Incus before 7.6.0. Incus fails to reject special files (device nodes, FIFOs), hard links, or symlinks embedded in backup archives or image metadata. A restricted project user who imports a crafted backup or image can cause the Incus daemon (running as root on the host) to follow a link or special file during unpack, reading or overwriting arbitrary host files outside the project boundary. Because Incus does not log archive member types, detection focuses on host-level telemetry: image/backup import API calls from restricted projects, incusd (root) file writes/reads outside its normal storage directories, and creation of symlinks/hard links/device nodes under storage unpack paths. Tune to your Incus storage pool layout.

MITRE ATT&CK

Tactic
Stealth Privilege Escalation Discovery

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
// df00tech DF00-2d52595fdc · https://df00tech.com/detections/CVE-2026-130771 · licence: https://df00tech.com/detections/licence
#event_simpleName=/^(NewFileWritten|SymlinkCreated|HardlinkCreated)$/
| in(field="FileName", values=["incusd", "incus"], ignoreCase=true)
| case {
    TargetFileName=/^\/var\/lib\/incus\// and #event_simpleName=/Symlink|Hardlink/ | linkInStorage := "1" ;
    TargetFileName=/^\/(etc|root|home|boot)\// and TargetFileName!=/^\/var\/lib\/incus\// | writeOutside := "1" ;
    * | drop := "1" ;
  }
| linkInStorage=1 or writeOutside=1
| table([@timestamp, ComputerName, event_simpleName, TargetFileName, UserName])
high severity medium confidence

CQL matching Incus process link/special-file creation under storage or writes into sensitive host paths outside storage.

Data Sources

CrowdStrike FalconLinux sensor file events

Required Tables

Falcon LTR

False Positives & Tuning

  • Storage pool maintenance relocating files.
  • Trusted backup restores with internal symlinks.
  • Image publishing creating internal links.

Other platforms for CVE-2026-130771


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Backup archive containing a symlink escaping the project (lab)

    Expected signal: File-event telemetry shows a symlink member being unpacked by incusd under the storage pool; tar listing shows a symlink member.

  2. Test 2 Image metadata tarball with a special (device) file (lab)

    Expected signal: Creation of a character-device special file during unpack is recorded by auditd/osquery with process incusd.

  3. Test 3 Hard link to a root-owned host file in a backup (lab)

    Expected signal: Hard-link creation event with initiating process incusd is captured during unpack.


Response Playbook

Triage

  1. Confirm the Incus version on the host (`incus version` / package manager); versions before 7.6.0 are vulnerable to CVE-2026-130771.
  2. Correlate the alert with recent image or backup import API calls (`incus image import`, `incus import`, POST /1.0/images, POST /1.0/instances with a backup source) and identify the originating project and user.
  3. Determine whether the project is a restricted project (`incus project show <project>` → restricted=true); restricted project users are the threat model for this CVE.
  4. Inspect the flagged file path: if incusd created a symlink/hard link/device node inside the storage pool, or wrote to a sensitive host path (/etc, /root, server.key), treat as likely exploitation.

Containment

  1. Disable image/backup imports for untrusted projects (restrict project permissions or pause the affected project) until the daemon is patched.
  2. Isolate the affected host from the management network if host file overwrite is confirmed, and freeze the storage pool to preserve evidence.
  3. Rotate any host secrets that may have been read or overwritten (incus server.key/server.crt, SSH keys under /root/.ssh, credentials under /etc).

Evidence Collection

  1. Capture the imported backup archive or image tarball and enumerate its members with type info (`tar -tvf` / `bsdtar -tvf`) to confirm presence of symlinks, hard links, or special files.
  2. Collect auditd/osquery file-event logs for incusd around the import timestamp, plus the Incus daemon log (`journalctl -u incus`).
  3. Snapshot the affected host filesystem metadata (timestamps/inodes) for sensitive paths to document any overwrite.

Escalation Criteria

  • !Escalate to IR if incusd is confirmed to have read or overwritten a file outside the storage pool (host compromise).
  • !Escalate if the import originated from a restricted/untrusted project user or an unexpected API token, indicating deliberate exploitation.

Investigation Guide

Forensic Artifacts

  • >The imported backup/image archive containing special files, hard links, or symlinks.
  • >Incus daemon log entries (journalctl -u incus) around the import.
  • >auditd/osquery records of incusd file operations outside the storage pool.
  • >Modified-time/inode changes on sensitive host files (/etc, /root, incus server.key).

Tuning Guidance

Baseline your Incus storage pool layout (default /var/lib/incus/storage-pools, but ZFS/btrfs/dir backends differ) and whitelist legitimate internal symlinks created during normal snapshot/publish operations. Focus high-confidence alerting on incusd writes/links that resolve OUTSIDE the storage pool and on device-node creation, which is never expected during normal unpack. Correlate with import API audit events to reduce noise.


Hunting Queries

Hunt for Incus daemon creating links/special files or touching sensitive host paths, aggregated by host.

Hunting — KQL
kql
// df00tech DF00-2d52595fdc · https://df00tech.com/detections/CVE-2026-130771 · licence: https://df00tech.com/detections/licence
DeviceFileEvents | where InitiatingProcessFileName in~ ("incusd","incus") | where ActionType in ("SymbolicLinkCreated","HardLinkCreated") or FolderPath startswith "/etc/" or FolderPath startswith "/root/" | summarize count() by DeviceName, FolderPath, ActionType, bin(Timestamp, 1h)
Hunting — SPL
spl
``` df00tech DF00-2d52595fdc · https://df00tech.com/detections/CVE-2026-130771 · licence: https://df00tech.com/detections/licence ```
index=linux_osquery (process_name=incusd OR process_name=incus) (file_type="symbolic link" OR file_type="special" OR file_path="/etc/*" OR file_path="/root/*") | stats count by host, file_path, file_type

Atomic Red Team Tests

Test 1 Backup archive containing a symlink escaping the project (lab)
linux

Builds a tar backup whose member is a symlink pointing at a host file, simulating a crafted Incus backup. Lab-only; do not run against production Incus.

Command

bash
mkdir -p /tmp/cve130771/backup && cd /tmp/cve130771/backup && ln -s /etc/shadow leak_link && tar -cvf /tmp/cve130771/malicious-backup.tar --format=gnu leak_link && echo 'Now: incus import /tmp/cve130771/malicious-backup.tar in a restricted project (vuln <7.6.0)'

Cleanup

bash
rm -rf /tmp/cve130771

Expected Telemetry

File-event telemetry shows a symlink member being unpacked by incusd under the storage pool; tar listing shows a symlink member.

Expected Detection

The symlink-in-storage branch of the queries fires when incusd unpacks the archive.

Test 2 Image metadata tarball with a special (device) file (lab)
linux

Creates an image-style tarball containing a character device node, simulating a special file in image metadata that Incus fails to reject.

Command

bash
mkdir -p /tmp/cve130771/img && cd /tmp/cve130771/img && mknod dev_node c 1 3 2>/dev/null || sudo mknod dev_node c 1 3 && tar -cvf /tmp/cve130771/malicious-image.tar dev_node && echo 'Import as image metadata into Incus <7.6.0 to test'

Cleanup

bash
rm -f /tmp/cve130771/img/dev_node /tmp/cve130771/malicious-image.tar; rmdir /tmp/cve130771/img 2>/dev/null; rm -rf /tmp/cve130771

Expected Telemetry

Creation of a character-device special file during unpack is recorded by auditd/osquery with process incusd.

Expected Detection

The device/special-file branch of the queries fires on special-file creation under the storage pool.

Test 3 Hard link to a root-owned host file in a backup (lab)
linux

Builds a tar backup containing a hard link to a sensitive root-owned file, simulating hard-link following during Incus restore.

Command

bash
mkdir -p /tmp/cve130771/hl && cd /tmp/cve130771/hl && cp /etc/hostname realfile && ln realfile hardlink_to_real && tar -cvf /tmp/cve130771/malicious-hl.tar --hard-dereference=no realfile hardlink_to_real && echo 'Import into Incus <7.6.0 restricted project to test hard-link handling'

Cleanup

bash
rm -rf /tmp/cve130771

Expected Telemetry

Hard-link creation event with initiating process incusd is captured during unpack.

Expected Detection

The hard-link branch of the queries fires on HardLinkCreated/hardlink actions within the storage pool.

Related Detections