A Language-Independent Analysis Platform for Source Code

Konrad Weiss, Christian Banse
3/16/2022
cs.CR

Official code: Fraunhofer-AISEC/cpg (473 stars, Kotlin, Apache-2.0, last commit 2026-11-14).

Abstract

In this paper, we present the CPG analysis platform, which enables the translation of source code into a programming language-independent representation, based on a code property graph. This allows security experts and developers to capture language level semantics for security analyses or identify patterns with respect to code compliance.

Show full abstract

Through the use of fuzzy parsing, also incomplete or non-compilable code, written in different programming languages, can be analyzed. The platform comprises an analysis library and interfaces to query, interact with or visualize source code graphs. This set of CPG tools allows finding common weaknesses in heterogeneous software environments, independently of the underlying programming language.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A library to extract Code Property Graphs from C/C++, Java, Go, Python, Ruby and every other language through LLVM-IR.

47396Kotlin, SvelteDec 2, 20192 weeks agoApache-2.0
analysisccodecode-property-graphcpg+7 more

Similar Papers

Cite this paper

@article{weiss2022languageindependent,
  title  = {A Language-Independent Analysis Platform for Source Code},
  author = {Konrad Weiss and Christian Banse},
  year   = {2022},
  eprint = {2203.08424},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08424}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08424.svg)](https://codeofpaper.com/paper/2203.08424)

Discussion