Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TheHive -> MISP works. MISP -> TheHive not. #1761

Closed
WingerHusar opened this issue Jan 25, 2021 · 1 comment
Closed

[Bug] TheHive -> MISP works. MISP -> TheHive not. #1761

WingerHusar opened this issue Jan 25, 2021 · 1 comment
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@WingerHusar
Copy link

WingerHusar commented Jan 25, 2021

Work Environment

Name Version
MISP 2.4.136
TheHive 4.0.4-1

Problem Description

Hi, I have problem with MISP and TheHive. Export case from TheHive to MISP works. When I published event on MISP, TheHive get nothing.

Note: Event is published to All communities (on MISP side) so it should works.

Configuration

play.modules.enabled += org.thp.thehive.connector.misp.MispModule

misp {
interval: 5m
servers: [
{
name = "MISP" # MISP name
url = "https://x.x.x.x" # URL or MISP
auth {
type = key
key = "API"
}
wsConfig {}
caseTemplate = "MISP-EVENT"
tags = ["MISP"]
}
]
}

LOGS FROM apache2

File -> misp.local_access.log

The only log from a MISP is getting version by TheHive

x.x.x.x - - [25/Jan/2021:10:13:24 +0100] "GET /servers/getVersion HTTP/1.1" 200 805 "-" "AHC/2.1"

@WingerHusar WingerHusar added TheHive4 TheHive4 related issues bug labels Jan 25, 2021
@IrArTr
Copy link

IrArTr commented Jan 28, 2021

i have the same error, and when i ran thehive i found this

thehive4_1 | [warn] o.t.t.c.m.s.MispImportSrv [|24ed9208] Unable to create alert from MISP event misp_server#1
thehive4_1 | org.thp.scalligraph.CreateError: Alert misp: ****** :1 already exist in organisation *****
thehive4_1 | at org.thp.thehive.services.AlertSrv.create(AlertSrv.scala:79)
thehive4_1 | at org.thp.thehive.services.AlertSrv.$anonfun$create$2(AlertSrv.scala:65)
thehive4_1 | at scala.util.Success.flatMap(Try.scala:251)
thehive4_1 | at org.thp.thehive.services.AlertSrv.create(AlertSrv.scala:65)
thehive4_1 | at org.thp.thehive.connector.misp.services.MispImportSrv.$anonfun$updateOrCreateAlert$2(MispImportSrv.scala:348)
thehive4_1 | at scala.util.Success.flatMap(Try.scala:251)
thehive4_1 | at org.thp.thehive.connector.misp.services.MispImportSrv.updateOrCreateAlert(MispImportSrv.scala:338)

the problem is that I don't have any alerts in thehive, even if I create new events in misp they don't appear in thehive

@To-om To-om self-assigned this Feb 3, 2021
@To-om To-om added this to the 4.0.5 milestone Feb 3, 2021
To-om added a commit that referenced this issue Feb 3, 2021
@To-om To-om closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

3 participants