Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Currently the plugins B404, B602, B603 and B604 handle the general case of subproccesses within Python. These checks however do not cover anyio and I think it'd be useful to add support for this.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Expand upon the existing plugins so that they may handle anyio cases.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Manually conducting source code review to find and locate these calls.
Additional context
Add any other context or screenshots about the feature request here.
While not as common as direct subprocess calls, the anyio package still appears to be relatively popular by download counts at least. Not all users will use subprocesses per say, but I still think this feature may be useful for Bandit to contain. I am also possibly looking to PR this feature myself, however I figured opening an issue first for any discussions surrounding direction would be ideal.
Example checks
Example vulnerable code as currently seen by Bandit.
The following code examples are considered equivalent (source):
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Currently the plugins
B404, B602, B603 and B604
handle the general case of subproccesses within Python. These checks however do not cover anyio and I think it'd be useful to add support for this.Describe the solution you'd like A clear and concise description of what you want to happen. Expand upon the existing plugins so that they may handle anyio cases.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Manually conducting source code review to find and locate these calls.
Additional context Add any other context or screenshots about the feature request here. While not as common as direct subprocess calls, the
anyio
package still appears to be relatively popular by download counts at least. Not all users will use subprocesses per say, but I still think this feature may be useful for Bandit to contain. I am also possibly looking to PR this feature myself, however I figured opening an issue first for any discussions surrounding direction would be ideal.Example checks Example vulnerable code as currently seen by Bandit. The following code examples are considered equivalent (source):
With the following code Bandit outputs the following, only alerting on the subprocess call. Code:
Bandit output: