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

Test binja 4 0 #2017

Merged
merged 7 commits into from
Mar 21, 2024
Merged

Test binja 4 0 #2017

merged 7 commits into from
Mar 21, 2024

Conversation

xusheng6
Copy link
Contributor

@xusheng6 xusheng6 commented Feb 29, 2024

Close #2016

The PR contains:

  1. The binja version check update in bf4695c. Which is a standard operation after we release a new stable
  2. Fix the stack string detection code after 4.0 (58e4a30), and also simplify it a bit
  3. Added support for forwarded export in the binja feature extractor, and enabled the relevant unit tests. 92cfc0c. This is a bit funny, that I fixed a relevant bug on the binja end that blocks it, and prematurely asked Willi to close BN: parse forwarded exports #1646. Though, at that time, I have not actually added the support for forwarded export in binja extractor (I only fixed a blocker in binja itself). This time I fixed it

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

Copy link
Collaborator

@mr-tz mr-tz left a comment

Choose a reason for hiding this comment

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

changes looks good, but looks like tests didn't run fully in CI?

@xusheng6
Copy link
Contributor Author

xusheng6 commented Mar 1, 2024

changes looks good, but looks like tests didn't run fully in CI?

PRs do not have access to the action secrets, so it does not have the binja license to run the relevant tests. You will need to trigger a build as a maintainer of the project to enable a full test

@mr-tz
Copy link
Collaborator

mr-tz commented Mar 5, 2024

@williballenthin how should we go about versioning capa here? Do we need a new release if we break support for older Binary Ninja versions?

@xusheng6
Copy link
Contributor Author

xusheng6 commented Mar 5, 2024

@williballenthin how should we go about versioning capa here? Do we need a new release if we break support for older Binary Ninja versions?

Just FYI this PR does not bump the required binja version to 4.0. It does require the builtin outlining feature, which I remember is introduced in stable 3.4. Still quite new, though

@williballenthin
Copy link
Collaborator

Do we need a new release if we break support for older Binary Ninja versions?

@mr-tz In theory, this would be a breaking change requiring a new major version of capa. That seems extreme though. Perhaps we can do a point release that includes these changes? I'm definitely open to suggestions.

@mr-tz
Copy link
Collaborator

mr-tz commented Mar 7, 2024

@williballenthin how should we go about versioning capa here? Do we need a new release if we break support for older Binary Ninja versions?

Just FYI this PR does not bump the required binja version to 4.0. It does require the builtin outlining feature, which I remember is introduced in stable 3.4. Still quite new, though

Ok, should we maybe include a note which Binary Ninja version we support/require? Which makes me realize that we don't have any documentation/note on Binary Ninja support/usage anywhere?!

@mr-tz mr-tz merged commit 463f2f1 into mandiant:master Mar 21, 2024
25 checks passed
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.

Fix unit test for binary ninja 4.0 BN: parse forwarded exports
3 participants