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

How to use harnessgen as described in the paper? #43

Open
RLee063 opened this issue Apr 17, 2022 · 17 comments
Open

How to use harnessgen as described in the paper? #43

RLee063 opened this issue Apr 17, 2022 · 17 comments
Assignees

Comments

@RLee063
Copy link

RLee063 commented Apr 17, 2022

Is this the final version of the code? I took a rough look at the code and didn't find where some functions are implemented, such as

  • WINNIE also identifies library functions that do not open or read the file themselves but instead accept a file descriptor or an in-memory buffer as input.
  • WINNIE analyzes the control-flow between two API calls for paths from the return value of the invoked function to a termination condition. If such a path is found, WINNIE duplicates the decompiled control-flow code.
  • Harness Validation and Finalization.

And I don't understand how the LCA results are used to guide the generation of the harness, and how to pass the seed when the APIs parameters do not contain the sample name. Maybe some complete examples would be very helpful :)

By the way, although "WINNIE's harness generator focuses testing shared libraries", many of the 59 harnesses target the executable. I am very interested in how to apply harnessgen to the main executable.

@stong stong assigned stong and jinhojun and unassigned stong Apr 17, 2022
@stong
Copy link
Member

stong commented Apr 17, 2022

I believe jinho would be the person to ask for this as he is the first author of the paper and also responsible for the harness generation component.

@jinhojun
Copy link
Collaborator

I will help him with my code (uncleaned though). Thanks.

@RLee063
Copy link
Author

RLee063 commented Apr 18, 2022

Thanks for your prompt reply, since Jinho has contacted me via email, I will close this issue.
Appreciate your work!

@RLee063 RLee063 closed this as completed Apr 18, 2022
@gonbbb
Copy link

gonbbb commented Apr 18, 2022

As I am also interested in this topic, I would like you to communicate with us on GitHub as much as possible... Would it be possible? Thank you.

@RLee063 RLee063 reopened this Apr 18, 2022
@RLee063
Copy link
Author

RLee063 commented Apr 18, 2022

I reopened this issue for further discussion.

@omkarbhat1995
Copy link

As I am also interested in this topic, I would like you to communicate with us on GitHub as much as possible... Would it be possible? Thank you. I was trying to get harness gen to work on 7z.exe as its described in the paper.

@mineechor
Copy link

As I am also interested in this topic, can I get more details on Github?If so,Thank you very much!

@mineechor
Copy link

@RLee063 Can you give me more details about harness?

@jinhojun
Copy link
Collaborator

Hey, I am working on the code cleaning as well as documentation. It should be released soon.

Sorry for the late work.

@william31212
Copy link

@jinhojun Excuse me, does you have any contact ?
I'm using the harnessgen for a pictureViewer, but cannot collect any method logs.

@jinhojun
Copy link
Collaborator

jinhojun commented Nov 24, 2022 via email

@william31212
Copy link

@jinhojun,
I tidy up my problem, and send email to you.
Thanks.

@gdynamics
Copy link

Hey, I am working on the code cleaning as well as documentation. It should be released soon.

Sorry for the late work.

Any update on this? I am happy to do a read through and test of what is there so far, if you would like.

@KB-bit
Copy link

KB-bit commented Dec 26, 2022

I am very interested in this topic and trying to generate the harness,but failed. Could you please give me more details about generating harness,like some complete examples? Thank you very much : )

@william31212
Copy link

@jinhojun
Is there any follow up with harness generating code?

@mineechor
Copy link

@jinhojun I am also interested.

@Zrzzzz
Copy link

Zrzzzz commented Dec 7, 2023

@jinhojun I am interested in harness generating, can we communicate via email?

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

No branches or pull requests

10 participants