-
Notifications
You must be signed in to change notification settings - Fork 14
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
What is the incidents report for primus-checks doing here? #12
Comments
The incidents are reported using the
So you can grep your files for the list of incidents, e.g., in our case we have
This are the incidents from the Note, that the locations are expressed in terms of identifiers and you have to find an
The general form is,
The backtrace is a sequence of basic block addresses prefixed by the path number, e.g, Finally, you might want to know, what are the names for the incidents and what the locations mean. Well it depends on each particular analysis. It looks like that you're actually interested in the memcheck analysis, which is defined here:
And, as usual with documentation, it is outdated as it misses one more incident that it detects,
To summarize, the memcheck analysis detects UAF/DF and some out-of-bounds for heap allocated values. It doesn't do any stack analysis, so it wan't be able to detect a stack buffer overflow. |
Thanks so much @ivg |
@ivg so, I am actually trying to detect and evaluate the BAP with BAP-toolkit using the different checks. In the incidents, if i do not get any incidents on the juliet test suite for the Use-after-free as well. command i am using is using --recipe=use-after-free. There are no incidents of that what so ever. Does that mean this didn't detect any use-after-error in those benchmark suites?? Also these
|
The bitvector extract issue is definitely a bug, can you please create a separate issue on bap's issue tracker?
When I was developing this check I got 100% detection rate if I exclude C++. So something is very fishy going on here. Can you provide more information, e.g., the resulting binaries, log files, etc? |
Oh im sorry about putting primus-checks report here. But it was same error for both the checks use-after-free and primus-checks. I will send it to you asap after i reach home. Thanks @ivg |
Yes, I have added on the bap about it. #1579 About the Juliet test suite, here are the codes for UAF. NPD works fine but not use-after-free. And also here is the incidents for the UAF and log files. Please let me know if you need anything else |
Trying to check for primus-checks. I gave the binary with stack buffer overflow error. Here is the binary
2.zip
And again the incidents i got :
incidents.zip
I am not able to make sense out of it. Did it detect, or if it did, how do i go about understanding the output.( This is my first time using this tool.)
bap-version = 2.6.0-alpha+7d79f7f
using docker from bap-toolkit.
The text was updated successfully, but these errors were encountered: