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

Synapse not functional with TheHive4 #54

Open
marpoe opened this issue Jun 26, 2020 · 1 comment
Open

Synapse not functional with TheHive4 #54

marpoe opened this issue Jun 26, 2020 · 1 comment

Comments

@marpoe
Copy link

marpoe commented Jun 26, 2020

The String(query_string) https://thehive-project.github.io/TheHive4py/reference/query/#thehive4py.query.StartsWith) is not supported in TheHive4, but used in

"query['_string'] = 'description:"{}"'.format(string)" in "TheHiveConnector.py"

Fix-Recommendation:
Delete: "query['_string'] = 'description:"{}"'.format(string)
and add e.g.: query = ContainsString('description', format(string))

As well, the hard coded user "synapse" has to be changed. In TheHive 4 the users needs to be created in e-mail format, e.g. [email protected] --> for this change the users to your created synapse-user in

  1. TheHiveConnector --> def craftCommTask(self): --> owner ='<-thehive4-user.'
  2. EWS2Case --> connectEWS --> assignee = '-thehive4-user.'

Related to TheHive4 and Synapse

@blainedw
Copy link

I updated the code to use the ContainsString recommendation above but it doesn't seem to do matches on the conversation ID. Has anyone else seen this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants