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

[Cofense] NEW Cofense connector from Cofense #2524

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Conversation

helene-nguyen
Copy link
Member

@helene-nguyen helene-nguyen commented Aug 24, 2024

Proposed changes

  • Add new connector for integration with Cofense

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

@helene-nguyen helene-nguyen added the filigran team use to identify PR from the Filigran team label Aug 24, 2024
@helene-nguyen helene-nguyen self-assigned this Aug 24, 2024
@helene-nguyen helene-nguyen added the do not merge Do not merge this PR until this tag will be removed label Aug 24, 2024
@helene-nguyen helene-nguyen removed the do not merge Do not merge this PR until this tag will be removed label Aug 26, 2024
@SamuelHassine SamuelHassine merged commit 7f1d9df into master Aug 28, 2024
3 checks passed
@SamuelHassine SamuelHassine deleted the issue/2522 branch August 28, 2024 14:23
- CONNECTOR_ID=ChangeMe
- CONNECTOR_TYPE=EXTERNAL_IMPORT
- CONNECTOR_NAME=CofenseIntel
- CONNECTOR_SCOPE= cofenseintel
Copy link
Member

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
Copy link
Member

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'
Copy link
Member

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))
Copy link
Member

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?
Copy link
Member

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” ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants