Configuration Installation
The first stage is designed to automate the deployment and setup of dependent module objects for Smart EDR. The setup is performed by the make_smart_edr.py utility. The utility is provided in the smart_edr_ko_maker package and located in the bin directory. The utility performs the following tasks:
- Deploying knowledge objects (
Smart Monitorentities) - Creating index templates
- Creating index patterns
- Loading rules from CSV file
Requirements
- Python 3.10+
- Installed dependencies:
requests,urllib3,jinja2 - Access to
Smart Monitorcluster with administrator credentials
Utility Structure
The script contains the following directory structure:
./
├── data/ # Main directory with configurations
│ ├── sm_*/ # Directories with `Smart Monitor` entities (starting with sm_)
│ ├── index_templates/ # Index templates
│ ├── index_patterns/ # Index patterns
└── lookups/
└── rules.csv # CSV file with rules
File Formats
-
Smart MonitorEntities (insm_*directories): JSON files with metadata in_metafield and unique identifier -
Index Templates (
index_templates):{
"name": "template_name",
"index_template": {
// template configuration
}
} -
Index Patterns (
index_patterns):{
"attributes": {
"title": "pattern_name"
},
"references": []
} -
Rules (
rules.csv): Actual list of threat detection rulesBI.ZONE EDR
Installation Sequence
1. Running Configuration Installation
Installation is performed by running the make_smart_edr.py utility:
python make_smart_edr.py --sm_host <host> --sm_user <user> --sm_password <password> [--sm_port <port>]
Command line parameters:
| Parameter | Required | Type | Default Value | Description |
|---|---|---|---|---|
--sm_host | Yes | str | - | Smart Monitor host (one of the cluster nodes) |
--sm_port | No | int | 9200 | Smart Monitor port |
--sm_user | Yes | str | - | Username |
--sm_password | Yes | str | - | User password |
Example run:
python make_smart_edr.py --sm_host open-search-host-1.my_company.ru --sm_user admin --sm_password securepassword --sm_port 9200
2. Checking Configuration Application
-
In the
Templatessection: (Navigation Menu-System Settings-Index Management-Templates) module templates are displayed:
-
In the
Index Patternssection: (Navigation Menu-System Settings-Module Settings-OPENSEARCH-Index Patterns) module index patterns are displayed:
-
In the lookup list
Lookup List: (Navigation Menu-Lookup Manager-Lookup List) module lookups are displayed:bizone_alert_settingdim_bizone_hostdim_bizone_ruledim_bizone_tasklink_bizone_alert_severity_incident_severity
-
The
dim_bizone_rulelookup contains a list of threat detection rules