Atlantiraptor Docs

Windows.System.VBScript

Type: Client · Author: Matt Green - @mgreen27

Runs VBScript code on Windows endpoints using the Windows Script Host (cscript.exe).

This is a very powerful artifact since it allows for arbitrary command execution on the endpoints as SYSTEM. Therefore this artifact requires elevated permissions (specifically the EXECVE permission). Typically it is only available with the administrator role.

Note: Output is formatted to 1 row per line of Stdout. Ensure appropriately formatted scripts. Pasting scripts direct from word or webpages may lead to formatting issues when unicode characters are substituted. Copy script into a notepad, save as ASCII then try again.

Required permissions: EXECVE

Implied permissions: FILESYSTEM_WRITE

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

Parameters

Name Type Default Description
Script string Wscript.Echo "Hello world!"

Source

Defined in artifacts/definitions/Windows/System/VBScript.yaml.

name: Windows.System.VBScript
author: Matt Green - @mgreen27
description: |
  Runs VBScript code on Windows endpoints using the Windows Script
  Host (cscript.exe).
  
  This is a very powerful artifact since it allows for arbitrary
  command execution on the endpoints as SYSTEM. Therefore this
  artifact requires elevated permissions (specifically the EXECVE
  permission). Typically it is only available with the administrator
  role.

  Note: Output is formatted to 1 row per line of Stdout. Ensure
  appropriately formatted scripts. Pasting scripts direct from word or
  webpages may lead to formatting issues when unicode characters are
  substituted. Copy script into a notepad, save as ASCII then try
  again.

required_permissions:
  - EXECVE

implied_permissions:
  - FILESYSTEM_WRITE

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

parameters:
  - name: Script
    default: Wscript.Echo "Hello world!"

sources:
  - query: |
      LET temp_script <= tempfile(extension='.vbs', data=str(str=Script))

      SELECT Stdout
      FROM execve(argv=['cscript.exe','//NoLogo','/E:vbs',temp_script], sep='\n')

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.