openaev icon indicating copy to clipboard operation
openaev copied to clipboard

OpenBAS agent failed to install on windows machine

Open marckto-filigran opened this issue 1 year ago • 2 comments

Description

There is an error with the installation script.

Environment

OS: win 10 x86_64 OpenBAS version: 1.1.0 https://demo.obas.filigran.io/

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Copy the installation command to windows cmd (admin mode)

Expected Output

agent is installed

Actual Output

Error image

Additional information

I managed to install the agent by downloading it manually then executing the powershell commands separately

marckto-filigran avatar Jun 24 '24 15:06 marckto-filigran

Tested locally from demo, and it works well. Waiting for Mark's point to check.

savacano28 avatar Jul 02 '24 10:07 savacano28

Actions (07-08-24 With Mark):

  1. Update powershell: OK (this prevents SSL certificate errors: origin of this ticket)
  2. Create folder for agent : OK
  3. Create service : OK Next time
  4. Execute command iwr from demo

savacano28 avatar Jul 08 '24 16:07 savacano28

Actions (07-22-24 with Mark): Guide: https://www.notion.so/filigran/OpenBAS-Community-a276855e122b480cadacbb47133a508a We're still encountering errors when we try to install the agent on the Windows VM, possibly due to conflicts with services that are either not stopped or do not exist.

savacano28 avatar Jul 22 '24 13:07 savacano28

Actions (19-08-24):
I got access to a copy of Mark's VM and was able to install the OpenBas agent. The procedure was as follows: I created a folder at C:\Program Files (x86)\Filigran and used this path to create a service named 'OpenBas Agent Service'. Then, I used the following command to retrieve all the files for the OpenBas agent: iex (iwr "https://testing.obas.staging.filigran.io/api/agent/installer/openbas/windows/8aa00a10-9d01-4ca8-aa28-e225923f65f2").Content. After that, I was able to locate the machine on openbas-staging/endpoints/ and execute a custom payload.

image

image

image

savacano28 avatar Aug 20 '24 13:08 savacano28