Regular Expression Analysis

Regular expression (regex) analysis provides the ability for using regular expression rules to detect vulnerabilities in both file content and file names. This analysis can detect vulnerable secrets such as passwords, keys, and credentials in project files. The Configuration Analyzer includes the regex analysis capability.

Important! Regex analysis is language agnostic and therefore it might detect vulnerabilities in file types that Fortify Static Code Analyzer does not officially support.

Regex analysis recursively examines all file paths and path patterns included in the translation phase. Every file, for each directory found is analyzed unless it is specifically excluded from the translation. To manage the files that are included in regex analysis, the following options are available:

To disable regex analysis, add the following property to the fortify-sca.properties file or include it on the command line:

com.fortify.sca.regex.Enable = false

See Also

Mobile Build Sessions

Regex Analysis Properties