Atlantiraptor Docs

Windows.Detection.PsexecService.Kill

Type: Client event (monitoring)

Kills all child processes of a detected PsExec service using taskkill.

Psexec can launch a service remotely. This artifact implements a client side response plan whereby all the child processes of the service are killed.

NOTE: There is an inherent race between detection and response. If the PsExec is very quick we will miss it.

Implied permissions: EXECVE

Parameters

Name Type Default Description
yaraRule yara (see the artifact source)

Source

Defined in artifacts/definitions/Windows/Detection/PsexecService/Kill.yaml.

name: Windows.Detection.PsexecService.Kill
description: |
  Kills all child processes of a detected PsExec service using
  taskkill.

  Psexec can launch a service remotely. This artifact implements a
  client side response plan whereby all the child processes of the
  service are killed.

  NOTE: There is an inherent race between detection and response. If
  the PsExec is very quick we will miss it.

type: CLIENT_EVENT

implied_permissions:
  - EXECVE

parameters:
  - name: yaraRule
    type: yara
    default: |
        rule Hit {
           strings:
             $a = "psexec" nocase wide ascii
           condition:
             any of them
        }

sources:
  - query: |
        SELECT * FROM foreach(
          row={ SELECT * FROM Artifact.Windows.Detection.PsexecService() },
          query={
             SELECT ServiceName, PathName, Modified, FileSize, Timestamp,
                    ServiceType, ChildProcess, Stdout, Stderr FROM execve(
               argv=["taskkill", "/PID", PID, "/T", "/F"])
        })

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.