Questions tagged [joern]

A robust parser for a C/C++ code base that generates a large property graph stored in a Neo4J graph DB. This allows the code to be mined using complex queries formulated in the graph traversal languages Gremlin and Cypher.

9 questions
1
vote
1 answer

Run scala script based on joern, function parameter error!

I want to analyze the if-else structure of the demo.c file through joern and try to write a script with scala, but I found that the running results of scala1 and scala2 are different (the scala1 and scala2 want to express the same meaning). The…
kiki Shao
  • 19
  • 3
1
vote
0 answers

"graph-for-funcs.sc" script compilation error

I am trying to reproduce the devign experiment. When joern is updated, some error messages appear in the graph-for-funcs.sc script that parses the bin file into JSON. I modified some, and there are still some errors as shown in the figure below. Did…
0
votes
0 answers

Error while exporting graphs from source code using joern

I'm using joern with the command line functions, the following is my python script: parse_command = f"{joern_path}joern-parse {java_file} --output {output_path}/{file} " subprocess.call(parse_command, shell=True) export_command =…
Fares Ars
  • 7
  • 2
0
votes
0 answers

How to use joern to analysis memory leak?

How to query cpg of this code to find the location of un-free memory ? int bad(void) { OutsideType my; my.p = MyAlloc(); my.p = MyAlloc(); MyFree(my.p); return 0; } Try using joern to find the place where the free function…
0
votes
1 answer

How do I convert .bin code property graph to json?

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…
0
votes
0 answers

Scala: Object XXX is not a member of package XXX

Environment: java -version openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing) When I was using Joern (a scala…
Jaylen
  • 1
0
votes
1 answer

Issue running Joern

Spent the last few days meticulously attempting to get Joern to function properly to no avail. I've even used the docker image provided by mckeimic/joern/ with no resolution. Ubuntu 16.04 py2neo==2.0 neo4j (attempted versions 2.1.5 and…
Shawn
  • 353
  • 1
  • 14
0
votes
1 answer

Access neo4j via python-joern

When using Joern, I accessed the Neo4j database via python-joern with the following code. from joern.all import JoernSteps j = JoernSteps() j.setGraphDbURL('http://localhost:7474/db/data/') j.connectToDatabase() res = …
0
votes
1 answer

gremlin module not found

I followed the instructions at: http://joern.readthedocs.io/en/latest/installation.html to install joern, and then the following to test Joern: http://joern.readthedocs.io/en/latest/access.html And got this error (using ipython): import joern.all…
Peter Teoh
  • 6,337
  • 4
  • 42
  • 58