Commit 002a375d by Enkelmann Committed by Thomas Barabosch

Simple recipe for standard run (#9)

* Simple recipe for standard run
parent 5ce77d7d
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
- Refactoring: Unification of cwe_checker function interface - Refactoring: Unification of cwe_checker function interface
- Refactoring: Created utils module for JSON functionality - Refactoring: Created utils module for JSON functionality
- Added check for CWE 248: Uncaught Exception - Added check for CWE 248: Uncaught Exception (PR #5)
- Added automated test suite (run with make test) - Added automated test suite (run with make test) (PR #7)
- Improved cross compiling for acceptance test cases by using dockcross (PR #8)
- Added BAP recipe for standard cwe_checker run (PR #9)
0.1 (2018-10-08) 0.1 (2018-10-08)
===== =====
......
...@@ -54,7 +54,11 @@ The usage is straight forward: adjust the `config.json` (if needed) and call BAP ...@@ -54,7 +54,11 @@ The usage is straight forward: adjust the `config.json` (if needed) and call BAP
``` bash ``` bash
bap PATH_TO_BINARY --pass=cwe-checker --cwe-checker-config=src/config.json bap PATH_TO_BINARY --pass=cwe-checker --cwe-checker-config=src/config.json
``` ```
*cwe_checker* outputs to stdin. This output is parsable (sexep). There is a script `cwe_checker_to_ida` to visualize the results in IDA Pro. For common use cases you can find some recipes in the recipes folder. These can be run with
```
bap PATH_TO_BINARY --recipe=recipes/RECIPE_FOLDER_NAME
```
*cwe_checker* outputs to stdout. This output is parsable (sexep). There is a script `cwe_checker_to_ida` to visualize the results in IDA Pro.
## How to extend cwe_checker? ## ## How to extend cwe_checker? ##
New plugins should be added to src/checkers. Implement a .ml and .mli file. See the existing modules for an interface description. If necessary add a section to `config.json` to allow users to configure your plugin. Finally, add your plugin to `cwe_checker.ml`. New plugins should be added to src/checkers. Implement a .ml and .mli file. See the existing modules for an interface description. If necessary add a section to `config.json` to allow users to configure your plugin. Finally, add your plugin to `cwe_checker.ml`.
### Contribute ### ### Contribute ###
......
Runs those checks of the cwe-checker plugin that rely on static analysis.
(option pass cwe-checker)
(option rooter internal)
(option cwe-checker-config $prefix/../../src/config.json)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment