GithubHelp home page GithubHelp logo

appthreat / cpggen Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 0.0 841 KB

Generate CPG for multiple languages for code and threat analysis

Home Page: https://discord.gg/tmmtjCEHNV

License: Apache License 2.0

Dockerfile 1.32% Python 20.61% Scala 0.06% C# 49.87% TypeScript 28.14%
code-analysis cpg joern security codepropertygraph

cpggen's People

Contributors

ianonymous3000 avatar mpollmeier avatar prabhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cpggen's Issues

Improve csharp parsing experience

  • Parse .csproj files to determine if the project requires a Windows OS for successful CPG conversion. Applicable to projects using .Net framework and the legacy .Net core
  • Recommend appropriate .Net version by looking for RollForward property

NOTICE: cpggen-oss would be renamed to atomgen

The OSS version used the atom distribution but was incorrectly called cpggen. To correct these error, I am renaming things as below:

Old name New name Purpose
cpggen-oss-bin atomgen-bin OCI artefact to be used with ORAS cli
cpggen-oss-linux-amd64 atomgen Single binary executable that bundles atom with Python
ghcr.io/appthreat/cpggen-slim ghcr.io/appthreat/atomgen Container image to generate atoms
cpggen-linux-musl atomgen-musl Single binary executable for alpine

The OCI image ghcr.io/appthreat/cpggen-oss uses joern so isn't affected.

PR to follow:

https://github.com/AppThreat/cpggen/pull/29/files

A detailed writeup on atom vs cpg would become available at some point. Please let me know if you think you might be affected by these changes or have further questions.

Best fix scan recommendations does not work with cpggen

As we do not pass any arguments in the workflow for cpggen, how do we work on the scan recommendations provided by 'Bestfix' ?
As an example, I used cpggen for the app 'Fineract' and then executed bestfix for this app. The scan recommendation were as below.
How do we work on those scan recommendations?

image

Support for config files

AT tools such as cpggen must support reading configuration values from a toml file called .at.toml. This ticket will be updated to show examples for this file.

cpggen errors out on windows, but displays a successful submission message in the end.

Executed the cpggen for windows. Errors out with proper messages, but shows a successful scan and submission towards the end.

[WinError 1314WinError 1314[]1314]WinError A required privilege is not held by the client: ] A required privilege is not held by the client:
.
.
INFO Error: Unable to access jarfile /usr/local/bin/java2cpg.jar
.
.

       INFO     shiftleft-java-demo-java uploaded successfully

Complete logs attached
cpggen-error-log.docx

Support for CPG per module

cpggen to support generating a graph per module or package. The module would be based on the directory structure and configurable via the toml config files.

#44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.