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

Examples of Primus execution #1601

Open
Hirrolot opened this issue Apr 3, 2024 · 1 comment
Open

Examples of Primus execution #1601

Hirrolot opened this issue Apr 3, 2024 · 1 comment

Comments

@Hirrolot
Copy link
Contributor

Hirrolot commented Apr 3, 2024

I've just read about the Primus framework and I'm wondering how can I write my own program analysis (in OCaml) that takes advantage of Primus. Are there any tests/examples that I can look into? Thanks.

@ivg
Copy link
Member

ivg commented Apr 15, 2024

There is a whole set of analyses that utilize primus in bap-toolkit, but if you want something more low-level and in OCaml, you can take a look at symbolic executor. In fact, any plugin with a name that starts with primus_ is either a primus component or analysis that utilizes Primus. It's worth noticing that Primus is written in such a way that you can use Primus Lisp as a high-level analysis specification language, so if you look at primus-test plugin (which is not about testing Primus but about using Primus for testing programs), you can see that it has implementation of use-after-free, memchek (like in Valgrind) and many other analyses all implemented in Primus Lisp.

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

2 participants