Hello,
I am looking into the S3649 SQL Injection rule for python and while trying it out with the clickhouse-connect library I realized it does not work with this library’s methods. So I tried to set a custom configuration for the Python SAST engine, that marks the query_df method of the Client class as a sink.
This did not work for me and I also tried to set some other python methods as sinks just for test and none worked. The configuration I used is the following:
{
"S3649": {
"sinks": [
{
"methodId": "clickhouse_connect.driver.client.Client.query_df",
"args": [
1
]
}
]
}
}
Maybe I set the methodId wrong or there is something else I missed.
Also below you can see that the rule works for mysql-connector.
And this is my test code for clickhouse where sonar does not detect any issue.
If you have any idea what is wrong, or what I missed, would be great!
Also I am running Sonarqube Server Enterprise Edition v2025.3.1.
Thanks!

