Atlantiraptor Docs

Admin.Client.Upgrade.Debian

Type: Client

Upgrades Velociraptor clients on Debian hosts by installing a new Debian package.

NOTE: This artifact requires that you supply a client Debian package by using the tools interface. Click on the tool button in the GUI and upload a package.

Implied permissions: EXECVE, FILESYSTEM_WRITE

Parameters

Name Type Default Description
SleepDuration int 600 The package is typically large and we do not want to overwhelm the server so we stagger the download over this many seconds.
ServiceName str velociraptor_client The name of the service to restart after the upgrade.

Tools

This artifact uses these external tools, managed by the server’s tool inventory (see Managing external tools):

  • VelociraptorDebian

Source

Defined in artifacts/definitions/Admin/Client/Upgrade/Debian.yaml.

name: Admin.Client.Upgrade.Debian
description: |
  Upgrades Velociraptor clients on Debian hosts by installing a new
  Debian package.

  NOTE: This artifact requires that you supply a client Debian package
  by using the tools interface. Click on the tool button in the GUI
  and upload a package.

tools:
  - name: VelociraptorDebian

parameters:
  - name: SleepDuration
    default: "600"
    type: int
    description: |
      The package is typically large and we do not want to
      overwhelm the server so we stagger the download over this many
      seconds.

  - name: ServiceName
    default: "velociraptor_client"
    type: str
    description: |
      The name of the service to restart after the upgrade.

implied_permissions:
  - EXECVE
  - FILESYSTEM_WRITE

sources:
  - precondition:
      SELECT OS From info() where OS =~ 'linux'

    query:  |
      // FetchBinary downloads to /tmp on linux
      LET bin <= SELECT OSPath AS Dest
      FROM Artifact.Generic.Utils.FetchBinary(
         ToolName="VelociraptorDebian", IsExecutable=FALSE,
         SleepDuration=SleepDuration)

      // Version handling for older clients.
      LET Rm(X) = if(
        condition=version(function='rm')!=NULL,
        then=rm(filename=X),
        else={ SELECT * FROM execve(argv=["rm", "-f", X]) })

      // Call the binary and return all its output in a single row.
      // If we fail to download the binary we do not run the command.
      SELECT * FROM foreach(row=bin,
      query={
        SELECT * FROM chain(
          // Remove the existing prerm - Previous versions had a bug that
          // would shutdown the service during uninstall. See #3122
          a={SELECT * FROM Rm(X="/var/lib/dpkg/info/velociraptor-client.prerm")},

          // Install the new client
          b={SELECT * FROM execve(argv=["dpkg", "-i", str(str=Dest)])},

          // Restart the client
          c={SELECT * FROM execve(argv=["systemctl", "restart", ServiceName])}
        )
      })

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.