-
Notifications
You must be signed in to change notification settings - Fork 451
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
[Cofense] NEW Cofense connector from Cofense #2524
Conversation
- CONNECTOR_ID=ChangeMe | ||
- CONNECTOR_TYPE=EXTERNAL_IMPORT | ||
- CONNECTOR_NAME=CofenseIntel | ||
- CONNECTOR_SCOPE= cofenseintel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An extra space after the egale
#!/bin/sh | ||
|
||
# Correct working directory | ||
cd /opt/opencti-cofense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"connector" is missing this here "opencti-connector-cofense"
log_level: 'info' | ||
|
||
cofense: | ||
user: 'ChangeMe' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cofense-specific environment variables have excessive indentation
new_interval = interval_sec - (timestamp - last_run) | ||
helper.log_info( | ||
"Connector will not run, next run in: " | ||
+ str(round(interval_sec / 60, 2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With interval_sec
the displayed interval will always be 60 min (defined by default), I think the idea is to use new_interval
instead to display the remaining time correctly.
str(round(interval_sec / 60, 2))
=> str(round(new_interval / 60, 2))
id=Incident.generate_id(mrti.label, created), | ||
name=mrti.label, | ||
description=f"{mrti.label}\n{mrti.executive_summary}", | ||
object_marking_refs=[stix2.TLP_RED], # TODO: Is this correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the original intention to define "TLP_RED" for all “intrusions set” and related “relationships” ?
Proposed changes
Related issues
Checklist
Further comments