This website requires JavaScript.
e15bceaa7e541c77f26a1f11ee2cbddbc871cbf1
swift /bandit.yaml
2015年06月27日 23:26:47 +05:30
# optional: after how many files to update progress
#show_progress_every: 100
# optional: plugins directory name
# optional: plugins discovery name pattern
plugin_name_pattern:'*.py'
# optional: terminal escape sequences to display colors
# optional: log format string
#log_format: "[%(module)s]\t%(levelname)s\t%(message)s"
# globs of files which should be analyzed
# a list of strings, which if found in the path will cause files to be
# for example /tests/ - to remove all all files in tests directory
- linux_commands_wildcard_injection
- request_with_no_cert_validation
- set_bad_file_permissions
- subprocess_popen_with_shell_equals_true
- password_config_option_not_marked_secret
# - any_other_function_with_shell_equals_true
# - ssl_with_bad_defaults
# - jinja2_autoescape_false
# - use_of_mako_templates
# - subprocess_without_shell_equals_true
# - any_other_function_with_shell_equals_true
# - start_process_with_a_shell
# - start_process_with_no_shell
# - hardcoded_sql_expressions
# - hardcoded_tmp_director
# - linux_commands_wildcard_injection
#For now some items are commented which could be included as per use later.
# qualnames: [pickle.loads, pickle.load, pickle.Unpickler,
# cPickle.loads, cPickle.load, cPickle.Unpickler]
# message: "Pickle library appears to be in use, possible security
qualnames:[marshal.load, marshal.loads]
message:"Deserialization with the marshal module is possibly
# qualnames: [hashlib.md5]
# message: "Use of insecure MD5 hash function."
qualnames:[tempfile.mktemp]
message:"Use of insecure and deprecated function (mktemp)."
# message: "Use of possibly insecure function - consider using safer
message:"Use of mark_safe() may expose cross-site scripting
vulnerabilities and should be reviewed."
qualnames:[httplib.HTTPSConnection]
message:"Use of HTTPSConnection does not provide security, see
https://wiki.openstack.org/wiki/OSSN/OSSN-0033"
message:"Use of unsafe yaml load. Allows instantiation of
arbitrary objects. Consider yaml.safe_load()."
qualnames:[urllib.urlopen, urllib.urlretrieve, urllib.URLopener,
urllib.FancyURLopener, urllib2.urlopen, urllib2.Request]
message:"Audit url open for permitted schemes. Allowing use of
file:/ or custom schemes is often unexpected."
qualnames:[paramiko.exec_command, paramiko.invoke_shell]
message:"Paramiko exec_command() and invoke_shell() usage may
expose command injection vulnerabilities and should be reviewed."
# Start a process using the subprocess module, or one of its wrappers.
subprocess:[subprocess.Popen, subprocess.call, subprocess.check_call,
subprocess.check_output, utils.execute,
utils.execute_with_timeout]
# Start a process with a function vulnerable to shell injection.
shell:[os.system, os.popen, os.popen2, os.popen3, os.popen4,
popen2.popen2, popen2.popen3, popen2.popen4, popen2.Popen3,
popen2.Popen4, commands.getoutput, commands.getstatusoutput]
# Start a process with a function that is not vulnerable to shell
no_shell:[os.execl, os.execle, os.execlp, os.execlpe, os.execv,os.execve,
os.execvp, os.execvpe, os.spawnl, os.spawnle, os.spawnlp,
os.spawnlpe, os.spawnv, os.spawnve, os.spawnvp, os.spawnvpe,
message:"Telnet is considered insecure. Use SSH or some other
message:"Consider possible security implications associated with
word_list:"wordlist/default-passwords"
- 'PROTOCOL_SSLv3'# strict option
- 'PROTOCOL_TLSv1'# strict option
- 'SSLv3_METHOD'# strict option
- 'TLSv1_METHOD'# strict option
password_config_option_not_marked_secret: