Repository navigation
Closed
Labels
pluginImplementing a known but unsupported Ruff plugin
Description
-
S101:assert_used -
S102:exec_used -
S103:set_bad_file_permissions -
S104:hardcoded_bind_all_interfaces -
S105:hardcoded_password_string -
S106:hardcoded_password_funcarg -
S107:hardcoded_password_default -
S108:hardcoded_tmp_directory -
S109:password_config_option_not_marked_secret -
S110:try_except_pass -
S111:execute_with_run_as_root_equals_true -
S112:try_except_continue -
S113:request_without_timeout -
S201:flask_debug_true -
S202:tarfile_unsafe_members -
S301:pickle -
S302:marshal -
S303:md5 -
S304:ciphers -
S305:cipher_modes -
S306:mktemp_q -
S307:eval -
S308:mark_safe -
S311:random -
S312:telnetlib -
S313:xml_bad_cElementTree -
S314:xml_bad_ElementTree -
S315:xml_bad_expatreader -
S316:xml_bad_expatbuilder -
S317:xml_bad_sax -
S318:xml_bad_minidom -
S319:xml_bad_pulldom -
S320:xml_bad_etree -
S321:ftplib -
S323:unverified_context -
S324:hashlib -
S310:urllib_urlopen -
S401:import_telnetlib -
S402:import_ftplib -
S403:import_pickle -
S404:import_subprocess -
S405:import_xml_etree -
S406:import_xml_sax -
S407:import_xml_expat -
S408:import_xml_minidom -
S409:import_xml_pulldom -
S410:import_lxml -
S411:import_xmlrpclib -
S412:import_httpoxy -
S413:import_pycrypto -
S415:import_pyghmi -
S501:request_with_no_cert_validation -
S502:ssl_with_bad_version -
S503:ssl_with_bad_defaults -
S504:ssl_with_no_version -
S505:weak_cryptographic_key -
S506:yaml_load -
S507:ssh_no_host_key_verification -
S508:snmp_insecure_version -
S509:snmp_weak_cryptography -
S601:paramiko_calls -
S602:subprocess_popen_with_shell_equals_true -
S603:subprocess_without_shell_equals_true -
S604:any_other_function_with_shell_equals_true -
S605:start_process_with_a_shell -
S606:start_process_with_no_shell -
S607:start_process_with_partial_path -
S608:hardcoded_sql_expressions -
S609:linux_commands_wildcard_injection -
S610:django_extra_used -
S611:django_rawsql_used -
S612:logging_config_insecure_listen -
S701:jinja2_autoescape_false -
S702:use_of_mako_templates -
S703:django_mark_safe
Reacted by deadnews, Pieter Gijsbers, Eugene, Gaspard Charles, Nam Tonthat, Kurt von Laven, Garrett Reynolds, T-256, Alexandru Constantin Cardas, Petr Přikryl and 8 more
Reacted by Andreas Motl, Colin Delahunty, Noorhteen Raja NJ, Pieter Gijsbers, Nam Tonthat, Garrett Reynolds, Christian Ledermann, Ricardo Madriz, hmorao95, Matthieu LAURENT and 1 more
Metadata
Metadata
Assignees
Labels
pluginImplementing a known but unsupported Ruff plugin
Activity
charliermarsh commentedon Jan 5, 2023
\cc @edgarrmondragon - easier to track here than to keep incrementing the count in the README. I'll populate the checklist.
edgarrmondragon commentedon Jan 5, 2023
thanks @charliermarsh!
charliermarsh commentedon Jan 5, 2023
By the way: the scripts are pretty bad right now, but it might save you some time (and would love help improving):
The main limitations right now are:
registry.rs, so has to be manually resorted (else checks appear out-of-order in the docs and elsewhere).plugins.rsfile, instead of individual files for each check or achecks.rsfile or whatever else, so that also requires manual tweaks.edgarrmondragon commentedon Jan 5, 2023
Thanks, I'll take a look at those. They might be really helpful for bandit's blacklist tests.
[`flake8-bandit`] Add Rule for `S324` (Insecure hash functions in `ha…
[`flake8-bandit`] Add Rule for `S506` (unsafe use of yaml load) (#1664)
[`flake8-bandit`] Add Rule for `S113` (requests call without timeout) (…
[`flake8-bandit`] Add Rule for `S501` (request call with `verify=Fals…
ahmedbilal commentedon Jan 10, 2023
Please implement the configurations for it as well e.g
exclude_dirs.https://bandit.readthedocs.io/en/latest/config.html#bandit-settings
charliermarsh commentedon Jan 10, 2023
@ahmedbilal - I think
exclude_dirscan be accomplished with theper-file-ignoressettings, like:[`flake8-bandit`] Add Rule for `S508` (snmp insecure version) & `S509…
[`flake8-bandit`] Add Rule for `S701` (jinja2 autoescape false) (#1815)
colin99d commentedon Jan 12, 2023
Not sure if this is the best place to ask, but do flake8-bandit and bandit have the same linters?
colin99d commentedon Jan 12, 2023
Also @charliermarsh do you think it would be helpful to pin all of the issues that are trackers for implementing a package to the top? It would make it easier for people to understand our progress, and to contribute to one.
71 remaining items
[`flake8-bandit`] Add Rule for `S113` (requests call without timeout)…
[`flake8-bandit`] Add Rule for `S501` (request call with `verify=Fals…
[`flake8-bandit`] Add Rule for `S508` (snmp insecure version) & `S509…
[`flake8-bandit`] Add Rule for `S701` (jinja2 autoescape false) (#1815)
[`flake8-bandit`] Added Rule `S612` (Use of insecure `logging.config.…
Implement bandit's 'hardcoded-sql-expressions' S608 (#2698)
[`flake8-bandit`] Implement `mako-templates` (`S702`) (#8533)
[`flake8-bandit`] Implement `django-raw-sql` (`S611`) (#8651)
[flake8-bandit] Implement tarfile-unsafe-members (S202) (#8829)
[`flake8-bandit`] Implement `S4XX` suspicious import rules (#8831)
[`flake8-bandit`] Add `S504` `SslWithNoVersion` rule (#9384)
[`flake8-bandit`] Implement `S502` `SslInsecureVersion` rule (#9390)
[`flake8-bandit`] Implement `S503` `SslWithBadDefaults` rule (#9391)
[`flake8-bandit`]: Implement `S610` rule (#10316)
chore(ci): add ruff security ruleset, pip-audit scanning, and related…