0

How can I convert a code property graph(cpg) obtained from joern (https://joern.io/) from .bin format to .json format for feeding it to a graph machine learning library for classification.

Note: CPG = AST + Control Flow Graph + Program Dependency Graph

Task: Machine Learning on Source Code.

Roberto Caboni
  • 7,252
  • 10
  • 25
  • 39
Junk Gear
  • 21
  • 3

1 Answers1

0

You can use scala script 'graph-for-funcs.sc' which is included in the joern scripts directory. However you need to redirect the output in order to store it in file (since the output goes to stdout by default). I made a custom script to do so.