Command line interception

Since version 5.5, command line interception is available, including those related to executing commands on behalf of other users or escalating privileges.

Enable interception

By default, command line interception is disabled.

To enable interception:

  1. Go to Control Panel → Computer Configuration → your configuration → Keyboard and Clipboard.

  2. Activate the Command input control switches.

  3. Save your changes.

Event Viewer

After enabling interception, the agent creates the Command Terminal event:

  • when executing a command,

  • running the script on the command line.

To view events:

  1. In the Designer tab, select the event type Command input terminal.

  2. Optional. Select an agent, user, application to filter events.

  3. Ready. Events will appear on the right side of the screen in the Event Lens.

The event records:

  • team;

  • result of command execution;

  • computer name;

  • user;

  • application;

  • local time.

The command is displayed in the Event field.

Illustration 1 — Command line interception

Example: intercepting a command as another user

A user can run a command as another user with:

  • PsExec - utilities from Sysinternals for remotely running commands with the rights of another account,

  • runas is a built-in Windows command for running programs with the rights of another account.

The agent will intercept both commands and generate an event about the command running, indicating the name of the user who initiated the execution. For PsExec the executable file name psexec.exe will be displayed, for runas the built-in command runas will be displayed.