Advertisement
Guest User

Keystone Bandit Profile

a guest
Mar 3rd, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. # optional: after how many files to update progress
  2. #show_progress_every: 100
  3.  
  4. # optional: plugins directory name
  5. #plugins_dir: 'plugins'
  6.  
  7. # optional: plugins discovery name pattern
  8. plugin_name_pattern: '*.py'
  9.  
  10. # optional: terminal escape sequences to display colors
  11. #output_colors:
  12. # DEFAULT: '\033[0m'
  13. # HEADER: '\033[95m'
  14. # INFO: '\033[94m'
  15. # WARN: '\033[93m'
  16. # ERROR: '\033[91m'
  17.  
  18. # optional: log format string
  19. #log_format: "[%(module)s]\t%(levelname)s\t%(message)s"
  20.  
  21. # globs of files which should be analyzed
  22. include:
  23. - '*.py'
  24. - '*.pyw'
  25.  
  26. # a list of strings, which if found in the path will cause files to be excluded
  27. # for example /tests/ - to remove all all files in tests directory
  28. exclude_dirs:
  29. - '/tests/'
  30. - '/doc/'
  31.  
  32. profiles:
  33. keystone_conservative:
  34. include:
  35. - blacklist_functions
  36. - blacklist_imports
  37. - request_with_no_cert_validation
  38. - exec_used
  39. - set_bad_file_permissions
  40. - subprocess_popen_with_shell_equals_true
  41. - linux_commands_wildcard_injection
  42. - ssl_with_bad_version
  43.  
  44.  
  45. keystone_verbose:
  46. include:
  47. - blacklist_functions
  48. - blacklist_imports
  49. - request_with_no_cert_validation
  50. - exec_used
  51. - set_bad_file_permissions
  52. - hardcoded_tmp_directory
  53. - subprocess_popen_with_shell_equals_true
  54. - any_other_function_with_shell_equals_true
  55. - linux_commands_wildcard_injection
  56. - ssl_with_bad_version
  57. - ssl_with_bad_defaults
  58.  
  59.  
  60. blacklist_functions:
  61. bad_name_sets:
  62. - pickle:
  63. qualname: pickle.loads, pickle.dumps
  64. message: "Pickle library appears to be in use, possible security issue."
  65. - md5:
  66. qualname: hashlib.md5
  67. message: "Use of insecure MD5 hash function."
  68. - os_popen:
  69. qualname: os.popen
  70. message: "Use of insecure / deprecated system call function (os.popen)."
  71. - os_startfile_q:
  72. qualname: os.startfile
  73. message: "Use of insecure system function (os.startfile)."
  74. - mktemp_q:
  75. qualname: tempfile.mktemp
  76. message: "Use of insecure and deprecated function (mktemp)."
  77. - eval:
  78. name: eval
  79. message: "Use of possibly insecure function - consider using safer ast.literal_eval."
  80. - httpsconnection:
  81. qualname: httplib.HTTPSConnection
  82. message: "Use of HTTPSConnection does not provide security, see https://wiki.openstack.org/wiki/OSSN/OSSN-0033"
  83. - yaml_load:
  84. qualname: yaml.load
  85. message: "Use of unsafe yaml load. Allows instantiation of arbitrary objects. Consider yaml.safe_load()."
  86.  
  87. blacklist_imports:
  88. bad_import_sets:
  89. - telnet:
  90. import: telnetlib
  91. level: ERROR
  92. message: "Telnet is considered insecure. Use SSH or some other encrypted protocol."
  93.  
  94. ssl_with_bad_version:
  95. bad_protocol_versions:
  96. - 'PROTOCOL_SSLv2'
  97. - 'SSLv2_METHOD'
  98. - 'SSLv23_METHOD'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement