Introduction
Revision Historyβ
| Date | Author | Summary |
|---|---|---|
| 06-NOV-2022 | TSgt. Bernadotte | Initial draft |
| 12-DEC-2022 | TSgt. Bernadotte | Updated references to required scripts |
| 15-MAR-2023 | TSgt. Bernadotte | Added arguments for sending results to Elasticsearch |
| 13-JUN-2023 | TSgt. Bernadotte | Converted document to markdown |
| 22-DEC-2023 | TSgt. Bernadotte | Added common troubleshooting issues |
| 09-JAN-2024 | TSgt. Bernadotte | Enhanced procedures to include new script options |
| 06-FEB-2026 | CW2 Bernadotte | Removed CVA/H version from SOP title and updated content |
Purposeβ
The purpose of this SOP is to provide instructions, and a reference, on using the 262COS-CVAH_Agent_Deployer-SCRIPT-001 (Deploy-Agent.psm1) script to deploy host agents to Linux and Windows endpoints.
End-Stateβ
The purpose of this SOP is to install/uninstall host agents against both Windows and Linux hosts at mass in a multi-threaded fashion.
- If deploying - depending on the combination of agents chosen to be deployed, the following end-state can be achieved:
- Sysmon (Windows only)
- Endgame
- Winlogbeat (Windows only)
- Auditbeat
- Metricbeat
- Filebeat
- If uninstalling β agents deployed via TFPlenum or the
Deploy-Agent.psm1module used in this SOP will be uninstalled - If updating config files or certificates β agents deployed via TFPlenum or the
Deploy-Agent.psm1module used in this SOP will be updated and restarted for changes to take affect - The following output files will be produced by the
Deploy-Agent.psm1module used in this SOP:Deploy-Agent-#############.log- A timestamped execution logDeploy-Agent.summary-#############.csv- A per-target summary of actions taken and resultsDeploy-Agent.artifacts-#############.csv- A per-target summary of artifacts left on the target as part of deployment
Requirementsβ
262COS-CVAH_Agent_Deployer-SCRIPT-001- If deploying to Linix β PuTTy (
plink.exeandpscp.exe) installed on the deploying system (this installed by default on the CPT Windows 10 VM) - If deploying Endgame, a Sensor Profile created per
262COS-ENDGAME-SOP-001 - Endgame Sensor Deploymentin order to have an installer and API key to download - Authentication credentials for privileged accounts on the planned deployment targets
- The respective agent installer files:
- Endgame
- Installers/configs downloaded from the Endgame SMP
- API key copied from the Endgame SMP
- Sysmon
- Installer/config downloaded from TFPlenum
- Winlogbeat
- Installer/config downloaded from TFPlenum
- Filebeat/Auditbeat
- Windows installer/config downloaded from TFPlenum
- Linux RPM/DEB downloaded from the "Appstore" and/or https://www.elastic.co/downloads/beats/
- Metricbeat
- Linux RPM/DEB downloaded from the "Appstore" and/or https://www.elastic.co/downloads/beats/
- Endgame
Considerationsβ
- The
262COS-CVAH_Agent_Deployer-SCRIPT-001: Deploy-Agent.psm1script used in this SOP is not able to deploy to non-Fedora or Debian based operating systems when targeting Linux systems - The
262COS-CVAH_Agent_Deployer-SCRIPT-001: Deploy-Agent.psm1script used in this SOP is not able to account for reinstalling, updating, or uninstalling agents on endpoints where they have already been installed in a manner that did not involve using the script or TFPlenum in non-standard locations outside of:- Sysmon install location:
C:\Program Files\Sysmon
- ****Beat install location:
C:\Program Files\****beat/etc/****beat/usr/share/****beat
- Sysmon install location:
- The
262COS-CVAH_Agent_Deployer-SCRIPT-001: Deploy-Agent.psm1script used in this SOP deploys to3targets at a time in parallel and can be changed with the-BatchSizeoption β this can be increased but keep in mind that this will increase the processing strain on the deploying host - Reinstalling
Sysmonmultiple times on the same system may eventually cause the service to go into a state where it will not be removed until the machine reboots, preventing reinstallation until a reboot occurs. It is highly recommended to identify if Sysmon is already present, and if it is worth the risk to update the Sysmon install and potentially break the Sysmon install until reboot - The same version
Sysmonbinary that was used to install Sysmon is also often required to uninstall it - The same
Endgamebinary and config used to install Endgame is also required to uninstall it Sysmoncan be tuned IAW262COS-AID-HA-001 - Sysmon Config Tuningprior to deploymentEndgameshould be configured IAW262COS-AID-EG-001 - Endgame Sensor Deploymentprior to deployment- All beat agents should be configured with the following SOPs prior to deployment:
- Winlogbeat -
262COS-AID-HA-002 - Winlogbeat Config Tuning - Filebeat -
262COS-AID-HA-003 - Filebeat Config Tuning - Auditbeat -
262COS-AID-HA-004 - Auditbeat Config Tuning
- Winlogbeat -