Installation
Performing these procedures alone will configure Metasponse in a Standalone configuration that does not interact with the Metasponse Server.
Install Metasponseβ
- Login to the Windows VM on the MIP
- Transfer the latest Metasponse installer ZIP archive to it and unzip the archive (the default password is
m3tasp0nse) - Run the installer as an administrator with its default install settings
- At the end of the install, click
Next, thenLaunch Settings Managerwhen presented and reconfigure the following settings: (don't forget to click the save icon for each change)-
β Analysis Option Defaults
Elasticsearch: Server URL
elastic.urlhttps://elasticsearch.<KIT_DOMAIN>:9200Elasticsearch: Pipeline name
elastic.pipelinemetasponseElasticsearch: Export Data Model
elastic.modelecsElasticsearch: Version
elastic.versionElasticSearchMockingbird: URL
mockingbird.urlhttp://mockingbird.<KIT_DOMAIN>:8090Mockingbird: Verify SSL Certificate
mockingbird.ssl.verifyUNCHECKED (False) -
β Authentication Option Defaults
Elasticsearch: Username
elastic.auth.usermetasponseElasticsearch: Password
elastic.auth.password<KIT_PASSWORD>Elasticsearch: Verify SSL Certificate
elastic.ssl.verifyUNCHECKED (False) -
β Deployment Option Defaults
Setting Value Network Root
job.netroot\%WinDir%\Temp\262Physical Root
job.phyroot%WinDir%\Temp\262Unix Physical Root
ssh.phyroot/tmp/262Windows Physical Root
ssh.win32.phyrootC:\Windows\Temp\262NOTE: Changing the
Network RootandPhysical Rootfolders to a path with a known unique string will aid in whitelisting alerts that spawn from Metasponse activity
-
Elasticsearch 9 Compatability Fixβ
9 Compatability FixThe following procedures must be accomplished to force Metasponse to allow data to be imported into Elasticsearch 9+. Failure to perform this step will prevent any Metasponse data from being imported into Elasticsearch 9+.
From an administrative PowerShell prompt, execute the following commands to patch the elastic.py script:
$File="C:\Program Files\Metasponse\Core\metasponse\data\elastic.py"
(gc $File) -replace 'major_version == 8','major_version > 7' | sc $File
Create an Elasticsearch user for Metasponseβ
This step is already accomplished if the Metasponse Server has already been setup IAW 262COS-DIP-SOP-001.
-
Using a web browser, navigate to Kibana and login via SSO as
admin -
Navigate to the (
Management)Stack Managementsection of Kibana -
Navigate to the (
Security)Userssub-section within Management -
Click on
Create User, and enter:Username metasponsePassword <KIT_PASSWORD>Confirm Password <KIT_PASSWORD>Roles superuser -
Click on
Create
Install custom pluginsβ
- Copy the
contribfolder from\\fileserver\share\SCRIPTS\262COS-Metasponse_Plugins-PACKAGE-001\to the Metasponse folderC:\Program Files\Metasponse\Core\ - Restart Metasponse to view the loaded plugins
Semi-Centralized Configurationβ
Stop here if you only wish to configure the MIP's Metasponse in a Standalone configuration, otherwise perform these additional procedures to use the Metasponse server as a central database for a Semi-Centralized configuration.
- Open the MIP's Metasponse Web UI and navigate to β Settings
- Reconfigure the following settings:
- (π Database Options) Address:
metasponse
- (π Database Options) Address:
The C:\Program Files\Metasponse\Core\.key file is used to encrypt and decrypt passwords within Metasponse β if all Metasponse instances sharing the same MongoDB do not have the same .key file, then job cloning will not clone any password fields and you will receive an error similar to: failed to decrypt option job.password
- Sync encryption keys with the Metasponse server by copying the
C:\Program Files\Metasponse\Core\.keyfile from the Metasponse Server Windows Server 2019 VM and replacing the MIP's Windows VMC:\Program Files\Metasponse\Core\.keyfile - Restart Metasponse
v1.6.4.6464 Elastic Bug FixThe following procedures fix a bug specific to Metasponse v1.6.4.6464 that prevents data from being imported into Elasticsearch 8+.
From an administrative PowerShell prompt, execute the following commands to patch the elastic.py script:
$File="C:\Program Files\Metasponse\Core\metasponse\data\elastic.py"
(gc $File) -replace 'yyyy-MM-ddTHH:mm:ss', 'yyyy-MM-dd\\''T\\''HH:mm:ss' | sc $File
(gc $File) -replace 'major_version == 7','major_version > 6' | sc $File