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

remove dynamic return address concept #1716

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

williballenthin
Copy link
Collaborator

please review and merge #1709 first

remove the return address concept, since it wasn't really used by any scripts or capa analysis. this reduces the amount of code to maintain.

i think the intent was to potentially assist analysts that encounter an interesting API call in mapping that back to the input binary. we can do this by recording more details, including return address, about API calls in the "layout", and then referencing this during rendering.

Checklist

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

@williballenthin williballenthin added enhancement New feature or request gsoc Work related to Google Summer of Code project. dynamic related to dynamic analysis flavor labels Aug 11, 2023
Copy link
Collaborator

@yelhamer yelhamer left a comment

Choose a reason for hiding this comment

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

I agree with this change. I think that the return address would likely change anyways (due to aslr and other factors), and is not a reliable way to point at features found in the sample. I also think that using the call's sequence number (CallAddress) is a better option(since two calls might have the same return address anyways, i.e. using a hashtable to make the call.

@yelhamer yelhamer merged commit 88aa17f into dynamic-feature-extraction Aug 15, 2023
7 of 15 checks passed
@yelhamer yelhamer deleted the fix/issue-1697-2 branch August 15, 2023 06:55
@yelhamer
Copy link
Collaborator

Thanks @williballenthin !

@yelhamer yelhamer mentioned this pull request Aug 16, 2023
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamic related to dynamic analysis flavor enhancement New feature or request gsoc Work related to Google Summer of Code project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants