Open Mcdostone opened 1 year ago
I wonder if you could achieve some of this via the threadFlowLocation "kinds" property (SARIF v2.1.0 section 3.38.8), perhaps with:
['acquire', 'taint']
and perhaps some new verb, say, 'use'
, for:
['use', 'taint']
See also https://github.com/oasis-tcs/sarif-spec/issues/530 for my suggestions about new "kinds" for that property, in case that's helpful.
David's suggestion is good to consider. More directly to your issue, wouldn't location.message
do what you need?
{
"locations": [
{
"location": {
"message": { // New property 👀
"text": "The tainted data enters the system here."
},
"physicalLocation": {
"artifactLocation": {
I think it would be interesting to consider adding an optional message to a threadFlowLocation. By doing so, we allow tool makers to give more information and significance regarding the result.
Example
related PR