security automation,

Integrating Cortex and MISP with Thehive

Follow Feb 15, 2025 · 2 mins read
Integrating Cortex and MISP with Thehive
Share this

INTEGRATING CORTEX MISP AND THEHIVE

REQUIREMENT

  • Active theHive VM
  • Active Cortex VM
  • Active MISP VM.

STEPS

VM SETUP

INTEGRATION

MISP SETUP FOR INTEGRATION

Create an Organization on MISP

Click "administration"
Click "add organization"

"organization"

Enter Organization details as desired
Generate UID
Click "Submit"

"organization"

Add User to Organization

Click on "administration"
Click "Add user"

"User"

Enter User details
Chose the created organization
Set user role
click "create"

NOTE: It is required that you enter your login in an email format. example:user@organizationname.local

Create an Auth Key

Click on the view icon at the righthand side of the user

"Auth key"

Click on "Auth Keys"
Click "Add Authentication Key"

"Auth Key"

Enter details as desired.
click submit.

"Auth key" Depending on desired level of restriction, you can add allowed IP addresses and also set a read only token.

NOTE: Setting a read-only will determine if user can only read content on MISP or also post on it.

Copy the displayed authkey
Click "I have noted down my key, take me back now"

"Auth Key"

CORTEX SETUP FOR INTEGRATION Add Organization

Click "Add organization"

"Cortex-organization"

Enter Organization details

"Cortex-organization"

Add User

Click on "users"
Click "Add users"

"Cortex-user"

Enter the user details as desired
Click "save user"

"Cortex-user"

Create user password

Click "new password"
Enter password
press Enter.

"Cortex-user password"

Create API Key

Click "Create API Key"

"Cortex-API-Key"

Click "reveal" to see the API Key

"Cortex-API-Key"

INTEGRATION ON THEHIVE

Add Cortex Integration to thehive configuration file

Enter this comand

sudo nano /etc/thehive/application.conf

Add the following configuration

play.modules.enabled += org.thp.thehive.connector.cortex.CortexModule
cortex {
 Servers: [
    {
        name: "CORTEX-SERVER" 
        url: "<cortex ip address>:9001"
        auth {
            type: "bearer"
            key: "<put the generated key here>"
        }
        wsConfig {}
    }
 ]
}

Add MISP Integration

play.modules.enabled += org.thp.thehive.connector.misp.MispModule
misp {
 interval: 1 hour
 Servers: [
    {
        name = "MISP" 
        url =  "<cortex ip address/>"
        auth {
            type =  "bearer"
            key =  "<put the generated key here>"
        }
        wsConfig {}
            wsConfig.ssl.loose.acceptAnyCertificate: true
            tags = ["misp"]
            caseTemplate = "MISP-EVENT"
    }
 ]
}

Confirm Both MISP and Cortex Integration

Login to Hive dashboard
Click on the Username at the top right corner
Click about

"Integration confirmed"

Written by
--->