-
-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write a package for data flow analysis #192
Comments
Very excited to see this package in a discussion. Here are some basic requirements:
I'll think more thru this and provide some basic requirements. |
I think @dominikh has looked at data flow analysis for staticcheck. |
Think this makes a lot of sense and I've wanted to explore this for a while. We may be able to leverage some functionality from here as well: "golang.org/x/tools/go/callgraph" |
I believe using also the SSA representation in addition to AST, it would make such an analysis achievable. |
SSA refers to: https://pkg.go.dev/golang.org/x/tools/go/ssa. |
Hi! Is there anyone working on this issue now? If not, I'd like to contribute to this. Maybe I can start from improving the taint analysis using dataflow analysis with go SSA? |
@yunwei37 Please feel free to work on this, this will be a really valuable contribution. If you have any questions, don't hesitate to raise them here. Thanks! |
gosec supports now Analysers and SSA code representation. |
Summary
Write a package which implements various primitives for data flow analysis. This package can be used by the rules to perform taint analysis, or other security checks.
godoctor/analysis has already some data flow analysis on which can be built as a starting point.
I will be very interested to get more suggestions for you. What do you think are the basic requirements?
cc @gcmurphy @coredefend
The text was updated successfully, but these errors were encountered: