Atlantiraptor Docs

Windows.Detection.Service.Upload

Type: Client event (monitoring)

Uploads the service binary to the server when a new service is installed.

Precondition: SELECT OS From info() where OS = 'windows'

Source

Defined in artifacts/definitions/Windows/Detection/Service/Upload.yaml.

name: Windows.Detection.Service.Upload
description: |
  Uploads the service binary to the server when a new service is
  installed.

type: CLIENT_EVENT

precondition: SELECT OS From info() where OS = 'windows'

sources:
  - query: |
      // Sometimes the image path contains the full command line - we
      // try to extract the first parameter as the binary itself. Deal
      // with two options - either quoted or not.
      SELECT ServiceName, upload(file=regex_replace(
                    source=ImagePath,
                    replace="$2",
                    re='^("([^"]+)" .+|([^ ]+) .+)')) AS Upload,
               Timestamp, _EventData, _System
      FROM Artifact.Windows.Events.ServiceCreation()