codeql
codeql copied to clipboard
multiple databases
A data flow involves multiple databases, can their data flows be linked together?
For example, partial filtering is done at python, and eventually the functionality is implemented at the go repository. Writing only the go data stream without considering the python data stream will generate a lot of false positives.
A database can only support one language. If the interface between the 2 languages is well specified (i.e data passed is always user controlled data or must not be user controlled) then you could add the interface as either a source or a sink and get the place where the problem occurs.
For more complex interfaces It is also possible to write a query that generates data that you then use in the source of another query.
How do I correlate query results from two databases? Or is it only possible to troubleshoot manually.
You would need to export results as either CSV or SARIF according to your needs (https://codeql.github.com/docs/codeql-cli/analyzing-databases-with-the-codeql-cli/) and relate them outside of CodeQL.