AppThreat / AppThreat/chen

Generating a CPG for a codebase and exporting in .dot format

Open
#100 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
34
Forks
5
Avg merge
1h 56m
Merged PRs (30d)
3

Description

How do I export a CPG for a codebase and export it in .dot format using Chen?

I am able to do generate a CPG using Joern with the following commands:
```
# Codebase in ./app, generates ./graph/export/export.dot
podman run --rm -it -v $(pwd)/app:/app -v $(pwd)/graph:/graph:rw ghcr.io/joernio/joern:nightly joern-parse -o /graph/cpg.bin /app
podman run --rm -it -v $(pwd)/app:/app -v $(pwd)/graph:/graph:rw ghcr.io/joernio/joern:nightly joern-export --repr all --format dot --out /graph/export /graph/cpg.bin
```

Is there an equivalent with Chen, ideally a simple Python API to do something similar?

Additional info:
I'm open to other formats than .dot as long as they're supported by the NetworkX python package.
I don't necessarily need the whole codebase, backward/forward CPG slices around a specific point in the codebase will work for me as well.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.