Skip to content

fix(recordedfuture): report creator is no longer added to Report object_refs (#7003) - #7333

Open
Romain GUIGNARD (romain-filigran) wants to merge 2 commits into
masterfrom
fix/7003
Open

fix(recordedfuture): report creator is no longer added to Report object_refs (#7003)#7333
Romain GUIGNARD (romain-filigran) wants to merge 2 commits into
masterfrom
fix/7003

Conversation

@romain-filigran

Copy link
Copy Markdown
Member

Proposed changes

  • The author identity is metadata referenced through 'created_by_ref', not report content. 'to_stix_objects()' now returns the entity only, and the author is added once per bundle by '_bundle_objects()'. This also fixes the dangling 'created_by_ref' in indicator and vulnerability risk list bundles, where the author identity was only present by accident.

Related issues

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

Copilot AI lite review requested due to automatic review settings August 20, 2026 20:54
@github-actions

Copy link
Copy Markdown

⚠️ Unused dependencies detected

The following packages appear to be unused:

  • antlr4-python3-runtime in external-import/recorded-future/src/requirements.txt
  • chardet in external-import/recorded-future/src/requirements.txt
  • datefinder in external-import/recorded-future/src/requirements.txt
  • idna in external-import/recorded-future/src/requirements.txt
  • pika in external-import/recorded-future/src/requirements.txt
  • python-dateutil in external-import/recorded-future/src/requirements.txt
  • PyYAML in external-import/recorded-future/src/requirements.txt
  • regex in external-import/recorded-future/src/requirements.txt
  • rfapi in external-import/recorded-future/src/requirements.txt
  • simplejson in external-import/recorded-future/src/requirements.txt
  • six in external-import/recorded-future/src/requirements.txt
  • sseclient in external-import/recorded-future/src/requirements.txt
  • stix2-patterns in external-import/recorded-future/src/requirements.txt
  • urllib3 in external-import/recorded-future/src/requirements.txt

How to fix: (1) if the package is used but under a different import name (e.g. PyYAMLyaml), add a mapping line to .github/deptry-package-map.txt. (2) if truly unused, remove it from the connector's requirements.txt.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

🔴 Connector Linter errors detected

@Filigran-Automation Filigran Automation (Filigran-Automation) changed the title fix(recordedfuture): Report creator is no longer added to Report object_refs (#7003) fix(recordedfuture): report creator is no longer added to Report object_refs (#7003) Aug 20, 2026
@Filigran-Automation Filigran Automation (Filigran-Automation) added the filigran team Item from the Filigran team. label Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Recorded Future STIX conversion so report authors are retained as bundle metadata rather than report content.

Changes:

  • Deduplicates author identities during bundle creation.
  • Removes authors from report object_refs.
  • Adds regression coverage for author handling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Summary
external-import/recorded-future/src/rflib/rf_to_stix2.py Updates STIX conversion and bundling; a trailing comma is required for Black formatting.
external-import/recorded-future/tests/tests_connector/test_rf_to_stix2.py Adds regression tests for author exclusion and bundle inclusion.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread external-import/recorded-future/src/rflib/rf_to_stix2.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team Item from the Filigran team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(recorded-future): Report creator is incorrectly added to Report object_refs

4 participants