Atlantiraptor Docs

Linux.Forensics.ImmutableFiles

Type: Client

Locates immutable files on Linux by checking ext4 filesystem flags.

Attackers sometimes enable immutable files in Linux. This prevents files from being modified. However this is sometimes a strong signal.

NOTE: Uses the ext4 accessor to parse the low level filesystem.

Precondition: SELECT * FROM info() where OS = 'linux'

Parameters

Name Type Default Description
SearchFilesGlob string /home/* Use a glob to define the files that will be searched.
OneFilesystem bool N When set we do not follow a link to go on to a different filesystem.
DoNotFollowSymlinks bool N If specified we are allowed to follow symlinks while globbing

Source

Defined in artifacts/definitions/Linux/Forensics/ImmutableFiles.yaml.

name: Linux.Forensics.ImmutableFiles
description: |
  Locates immutable files on Linux by checking ext4 filesystem flags.

  Attackers sometimes enable immutable files in Linux. This prevents
  files from being modified. However this is sometimes a strong
  signal.

  NOTE: Uses the `ext4` accessor to parse the low level filesystem.

precondition: |
  SELECT * FROM info() where OS = 'linux'

parameters:
  - name: SearchFilesGlob
    default: /home/*
    description: Use a glob to define the files that will be searched.
  - name: OneFilesystem
    default: N
    type: bool
    description: When set we do not follow a link to go on to a different filesystem.

  - name: DoNotFollowSymlinks
    type: bool
    default: N
    description: If specified we are allowed to follow symlinks while globbing

column_types:
  - name: ATime
    type: timestamp
  - name: MTime
    type: timestamp
  - name: CTime
    type: timestamp


sources:
- query: |
    SELECT OSPath,
           Sys.mft as Inode,
           Mode.String AS Mode, Size,
           Mtime AS MTime,
           Atime AS ATime,
           Ctime AS CTime,
           IsDir, Mode, Data
    FROM glob(globs=SearchFilesGlob,
              one_filesystem=OneFilesystem,
              accessor="ext4", nosymlink=DoNotFollowSymlinks)
    WHERE Data.Flags =~ "IMMUTABLE"

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.