Skip to content

CPG Query Examples

Konrad Weiss edited this page May 27, 2021 · 4 revisions

This page will show you how to query the CPG in Cypher to browse code and retrieve semantic specific information that is stored in the representation, such as data-flow and execution order. We will also give examples of real world bugs or improper programming that can be found through querying the cpg.

EOG

Identify Reachability of Code

Find Program Entry Points

Get Ordered Calls on Objects

DFG

Identify used Hardcoded Values

Identify User Input reaching a Source

Code Examples

Find unchecked Return Values