Finds the risky pattern on the line
Static analysis runs through semgrep and, without executing the code, looks for known unsafe patterns: command injection, insecure deserialization, weak crypto use and the like. Each finding comes with its file, line and rule id.
- rule
- python.lang.security.dangerous-subprocess-use
- loc
- config.py:45
- map
- CWE-78 · OWASP A03:2021 · Injection
semgrep runs when it is configured in your installation. If it is not, static analysis is skipped; the secret scan still runs. Supported languages are limited to the languages semgrep supports.