This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
9 changed files
with
243 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ LABEL maintainer="appthreat" \ | |
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.url="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.version="1.0.10" \ | ||
org.opencontainers.image.version="1.1.0" \ | ||
org.opencontainers.image.vendor="AppThreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="cpggen" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ LABEL maintainer="appthreat" \ | |
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.url="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.version="1.0.10" \ | ||
org.opencontainers.image.version="1.1.0" \ | ||
org.opencontainers.image.vendor="AppThreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="cpggen" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ LABEL maintainer="appthreat" \ | |
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.url="https://github.com/appthreat/cpggen" \ | ||
org.opencontainers.image.version="1.0.10" \ | ||
org.opencontainers.image.version="1.1.0" \ | ||
org.opencontainers.image.vendor="AppThreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="cpggen" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,15 +31,15 @@ Download the executable binary for your operating system from the [releases page | |
- cdxgen with Node.js 18 - Generates SBoM | ||
|
||
```bash | ||
curl -LO https://github.com/AppThreat/cpggen/releases/download/v1.0.10/cpggen-linux-amd64 | ||
curl -LO https://github.com/AppThreat/cpggen/releases/download/v1.1.0/cpggen-linux-amd64 | ||
chmod +x cpggen-linux-amd64 | ||
./cpggen-linux-amd64 --help | ||
``` | ||
|
||
On Windows, | ||
|
||
```powershell | ||
curl -LO https://github.com/appthreat/cpggen/releases/download/v1.0.10/cpggen.exe | ||
curl -LO https://github.com/appthreat/cpggen/releases/download/v1.1.0/cpggen.exe | ||
.\cpggen.exe --help | ||
``` | ||
|
||
|
@@ -131,12 +131,16 @@ To specify input and output directory. | |
cpggen -i <src directory> -o <CPG directory or file name> | ||
``` | ||
|
||
You can even pass a git url as source | ||
You can even pass a git or a package url as source | ||
|
||
``` | ||
cpggen -i https://github.com/HooliCorp/vulnerable-aws-koa-app -o /tmp/cpg | ||
``` | ||
|
||
``` | ||
cpggen -i "pkg:maven/org.apache.commons/[email protected]" -o /tmp/cpg | ||
``` | ||
|
||
To specify language type. | ||
|
||
``` | ||
|
@@ -265,22 +269,24 @@ optional arguments: | |
|
||
## Environment variables | ||
|
||
| Name | Purpose | | ||
| ----------------------- | ----------------------------------------------------------------- | | ||
| JOERN_HOME | Joern installation directory | | ||
| CPGGEN_HOST | cpggen server host. Default 127.0.0.1 | | ||
| CPGGEN_PORT | cpggen server port. Default 7072 | | ||
| CPGGEN_CONTAINER_CPU | CPU units to use in container execution mode. Default computed | | ||
| CPGGEN_CONTAINER_MEMORY | Memory units to use in container execution mode. Default computed | | ||
| CPGGEN_MEMORY | Heap memory to use for frontends. Default computed | | ||
| AT_DEBUG_MODE | Set to debug to enable debug logging | | ||
| CPG_EXPORT | Set to true to export CPG graphs in dot format | | ||
| CPG_EXPORT_REPR | Graph to export. Default all | | ||
| CPG_EXPORT_FORMAT | Export format. Default dot | | ||
| CPG_SLICE | Set to true to slice CPG | | ||
| CPG_SLICE_MODE | Slice mode. Default Usages | | ||
| SHIFTLEFT_ACCESS_TOKEN | Set to automatically submit the CPG for analysis by Qwiet AI | | ||
| CDXGEN_ARGS | Extra arguments to pass to cdxgen | | ||
| Name | Purpose | | ||
| ----------------------- | -------------------------------------------------------------------------- | | ||
| JOERN_HOME | Joern installation directory | | ||
| CPGGEN_HOST | cpggen server host. Default 127.0.0.1 | | ||
| CPGGEN_PORT | cpggen server port. Default 7072 | | ||
| CPGGEN_CONTAINER_CPU | CPU units to use in container execution mode. Default computed | | ||
| CPGGEN_CONTAINER_MEMORY | Memory units to use in container execution mode. Default computed | | ||
| CPGGEN_MEMORY | Heap memory to use for frontends. Default computed | | ||
| AT_DEBUG_MODE | Set to debug to enable debug logging | | ||
| CPG_EXPORT | Set to true to export CPG graphs in dot format | | ||
| CPG_EXPORT_REPR | Graph to export. Default all | | ||
| CPG_EXPORT_FORMAT | Export format. Default dot | | ||
| CPG_SLICE | Set to true to slice CPG | | ||
| CPG_SLICE_MODE | Slice mode. Default Usages | | ||
| SHIFTLEFT_ACCESS_TOKEN | Set to automatically submit the CPG for analysis by Qwiet AI | | ||
| CDXGEN_ARGS | Extra arguments to pass to cdxgen | | ||
| ENABLE_SBOM | Enable SBoM generation using cdxgen | | ||
| JIMPLE_ANDROID_JAR | Path to android.jar for use with jimple for .apk or .dex to CPG conversion | | ||
|
||
## GitHub actions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.