Skip to content

[Flare] Flare Connector Update#1

Open
ireydiak wants to merge 3 commits into
Flared:masterfrom
ireydiak:jc/flare-connector
Open

[Flare] Flare Connector Update#1
ireydiak wants to merge 3 commits into
Flared:masterfrom
ireydiak:jc/flare-connector

Conversation

@ireydiak
Copy link
Copy Markdown

@ireydiak ireydiak commented May 1, 2026

Proposed changes

  • Improved overall robustness of the flare connector.
  • Improved error logging by adding meaningful context.
  • Added pycti as a Flare connector dependency.
  • Fixed an issue preventing Leaked Credentials ingestion.

Related issues

None

Checklist

  • I consider the submitted work as finished
  • I have signed my commits using GPG key.
  • 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

xvaier and others added 2 commits April 30, 2026 09:45
…stness

- Fall back to identity_name when username is empty for leaked
credential observables
- Add identity_name field to LeakedCredentialEvent dataclass
- Pin pycti==7.260401.0 in requirements.txt
- Improved error messages to include more context
Comment thread external-import/flare/.claude/settings.local.json Outdated
Comment thread external-import/flare/__metadata__/connector_manifest.json
Comment thread external-import/flare/src/connector/converter_to_stix.py
Comment thread external-import/flare/src/connector/settings.py
@ireydiak ireydiak force-pushed the jc/flare-connector branch 6 times, most recently from 31b5e57 to a633f66 Compare May 11, 2026 20:12
@ireydiak ireydiak changed the title Flare Connector Update [Flare] Flare Connector Update May 11, 2026
) -> int:
processed_count = 0

for event in events:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for the future: OpenCTI recommends batching calls to stix2_create_bundle. This minimizes network stress and improves ingestion rate. We might implement the suggested _collect_intelligence method to retrieve and map events to stix2 and batch calls to stix2_create_bundle.

event_actions=self.config.flare.event_actions,
)
imported_count = self.process_events(events, work_id)
self.helper.set_state({"last_run": datetime.now(timezone.utc).isoformat()})
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for the future: we might need a more granular control over the management state. Right now successful events can be retried. If we implement batching we might also want to store its state and avoid processing and sending successful batches.

COPY src /opt/opencti-connector-flare

# Install Python modules
# hadolint ignore=DL3003
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this lint ignore required? From what I can see it checks that we are not using cd, but we aren't here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pas mal mieux cette nouvelle manière de faire là!

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

Successfully merging this pull request may close these issues.

2 participants