MCPcopy Create free account

hub / github.com/ParzivalHack/PySpector / functions

Functions455 in github.com/ParzivalHack/PySpector

Methodtest_app_run_debug_fires
(self)
tests/unit/test_missing_rules.py:258
Methodtest_ast_chunk_is_immutable
(self)
tests/unit/ast_cache_test.py:618
Methodtest_async_function
(self)
tests/unit/ast_cache_test.py:49
Methodtest_auth711_flagged_in_production_code
Hardcoded admin username assignment in production code should still trigger AUTH711.
tests/unit/test_false_positive_reductions.py:214
Methodtest_auth711_not_flagged_in_tests
username='admin' in test files should not trigger AUTH711.
tests/unit/test_false_positive_reductions.py:197
Methodtest_auto_add_policy_fires
(self)
tests/unit/test_missing_rules.py:190
Methodtest_bare_compile_or_exec_flagged
exec(compile(user_code, ...)) IS dangerous — PY305 (exec) or compile rules must fire.
tests/unit/test_false_positive_reductions.py:158
Methodtest_bare_statement
(self)
tests/unit/ast_cache_test.py:55
Methodtest_cache_output_matches_ast_encoder
The cache path and the direct AstEncoder path must be identical.
tests/unit/ast_cache_test.py:547
Methodtest_cache_version_stored_in_disk_file
(self)
tests/unit/ast_cache_test.py:632
Methodtest_center_constant_safe
(self)
tests/unit/test_a_sink_rules.py:119
Methodtest_center_silent_disabled
(self)
tests/unit/test_a_sink_rules.py:116
Methodtest_chunk_reuse_skips_encoding
(self)
tests/unit/ast_cache_test.py:98
Methodtest_class
(self)
tests/unit/ast_cache_test.py:52
Methodtest_cli_path_no_PATH813
(self)
tests/unit/test_missing_rules.py:431
Methodtest_comment_line_safe
(self)
tests/unit/test_missing_rules.py:144
Methodtest_comment_line_safe
(self)
tests/unit/test_missing_rules.py:158
Methodtest_commented_joblib_model_load_safe
(self)
tests/unit/test_ai_rules.py:174
Methodtest_commented_keras_h5_model_load_safe
(self)
tests/unit/test_ai_rules.py:156
Methodtest_constant_attr_not_flagged
Hardcoded string attribute name is safe.
tests/unit/test_taint_engine_extension.py:135
Methodtest_constant_attr_safe
(self)
tests/unit/test_group_a_rules.py:73
Methodtest_constant_attr_safe
(self)
tests/unit/test_group_a_rules.py:92
Methodtest_constant_fstring_safe
(self)
tests/unit/test_group_a_rules.py:151
Methodtest_constant_literal_assignment_is_developer_defined
String literal assignment → DeveloperDefined → does not reach SQL sink.
tests/unit/test_semantic_provenance.py:168
Methodtest_constant_object_safe
(self)
tests/unit/test_group_a_rules.py:236
Methodtest_constant_plus_http_in_binop_is_http
Constant + HttpRequest in BinOp → result is HttpRequest (unsafe).
tests/unit/test_semantic_provenance.py:175
Methodtest_constant_replace_safe
(self)
tests/unit/test_group_a_rules.py:174
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:41
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:50
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:59
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:68
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:76
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:85
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:93
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:102
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:111
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:133
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:142
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:150
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:158
Methodtest_constant_safe
(self)
tests/unit/test_a_sink_rules.py:166
Methodtest_constant_seed_safe
(self)
tests/unit/test_group_a_rules.py:216
Methodtest_constant_table_safe
(self)
tests/unit/test_group_a_rules.py:195
Methodtest_constant_template_safe
(self)
tests/unit/test_group_a_rules.py:119
Methodtest_constant_write_safe
(self)
tests/unit/test_missing_rules.py:289
Methodtest_corrupted_cache_recovers_gracefully
A corrupted JSON cache file must be discarded and rebuilt without error.
tests/unit/ast_cache_test.py:425
Methodtest_create_with_tainted_password_fires
(self)
tests/unit/test_missing_rules.py:328
Methodtest_csrf_exempt_not_flagged_in_tests
@csrf_exempt in test views is acceptable and should not fire.
tests/unit/test_false_positive_reductions.py:255
Methodtest_csrf_exempt_still_flagged_in_production
@csrf_exempt in production code still warrants a warning.
tests/unit/test_false_positive_reductions.py:265
Methodtest_debug_env_var_safe
(self)
tests/unit/test_missing_rules.py:356
Methodtest_debug_false_safe
(self)
tests/unit/test_missing_rules.py:266
Methodtest_debug_false_safe
(self)
tests/unit/test_missing_rules.py:352
Methodtest_debug_true_fires
(self)
tests/unit/test_missing_rules.py:348
Methodtest_defusedxml_safe
(self)
tests/unit/test_missing_rules.py:244
Methodtest_deserialize_raises_on_garbage
(self)
tests/unit/ast_cache_test.py:204
Methodtest_developer_defined_fstring_silent
DeveloperDefined literal in f-string → silent.
tests/unit/test_semantic_provenance.py:156
Methodtest_developer_defined_literal_to_sql_silent
DeveloperDefined string literal → SQL → silent (no injection risk).
tests/unit/test_semantic_provenance.py:121
Methodtest_dill_loads_fires
(self)
tests/unit/test_missing_rules.py:154
Methodtest_disable_warnings_fires
(self)
tests/unit/test_missing_rules.py:172
Methodtest_disk_cache_file_extension_is_json
(self)
tests/unit/ast_cache_test.py:418
Methodtest_disk_cache_uses_json_not_pickle
Disk cache must store JSON, not pickle (no arbitrary code execution).
tests/unit/ast_cache_test.py:397
Methodtest_disk_write_failure_does_not_crash
A disk write failure must issue a warning but not abort the scan.
tests/unit/ast_cache_test.py:530
Methodtest_django_cache_code_only_pickle_flagged
Code resembling Django's cache backend should only flag pickle.loads, not re.compile, json.loads, or other false positives.
tests/unit/test_false_positive_reductions.py:378
Methodtest_django_redirect_fires
(self)
tests/unit/test_missing_rules.py:309
Methodtest_duplicate_names_get_suffix
(self)
tests/unit/ast_cache_test.py:58
Methodtest_empty_body_goes_to_fields
(self)
tests/unit/ast_cache_test.py:140
Methodtest_empty_module
(self)
tests/unit/ast_cache_test.py:75
Methodtest_empty_type_ignores_goes_to_fields
(self)
tests/unit/ast_cache_test.py:150
Methodtest_encode_node_matches_ast_encoder_for_single_node
encode_node() must produce the same output as json.dumps(..., cls=AstEncoder).
tests/unit/ast_cache_test.py:563
Methodtest_environ_to_open_no_finding
os.environ.get() is now OperatorConfig — opening a path the operator set via environment variable is intentional, not a vulnerability.
tests/unit/test_taint_engine_extension.py:245
Methodtest_etree_fromstring_fires
(self)
tests/unit/test_missing_rules.py:240
Methodtest_etree_parse_fires
(self)
tests/unit/test_missing_rules.py:236
Methodtest_exclude_pattern_suppresses_safe_or_comment_cases
(self, code)
tests/unit/test_ai_rules.py:207
Methodtest_file_cache_entry_is_immutable
FileCacheEntry must be frozen so callers cannot mutate shared state.
tests/unit/ast_cache_test.py:604
Methodtest_flask_redirect_fires
(self)
tests/unit/test_missing_rules.py:302
Methodtest_from_string_silent_removed
(self)
tests/unit/test_missing_rules.py:66
Methodtest_fstring_in_text_fires
(self)
tests/unit/test_missing_rules.py:89
Methodtest_function
(self)
tests/unit/ast_cache_test.py:46
Methodtest_g101_fires_on_lowercase_secret
Lowercase secret variable must still fire.
tests/unit/test_semantic_provenance.py:74
Methodtest_g101_uppercase_constant_not_flagged
INTERNAL_RESET_SESSION_TOKEN = "_password_reset_token" is a module constant. Python: UPPER_CASE = "literal" → DeveloperDefined proven
tests/unit/test_semantic_provenance.py:64
Methodtest_generate_routes_to_correct_format
(self)
tests/unit/reporting_test.py:311
Methodtest_generate_unknown_format_falls_back_to_console
(self)
tests/unit/reporting_test.py:319
Methodtest_get_changed_chunks_detects_addition
(self)
tests/unit/ast_cache_test.py:352
Methodtest_get_changed_chunks_detects_deletion
(self)
tests/unit/ast_cache_test.py:360
Methodtest_get_changed_chunks_detects_modification
(self)
tests/unit/ast_cache_test.py:343
Functiontest_get_default_rules_includes_ai_rules_when_enabled
(capsys)
tests/unit/test_config.py:74
Functiontest_get_default_rules_loads_parseable_builtin_rules
()
tests/unit/test_config.py:66
Functiontest_get_default_rules_substitutes_shared_placeholder_regex
()
tests/unit/test_config.py:83
Methodtest_get_python_file_asts_handling_default
Test that by default SyntaxWarnings are ignored and files are included.
tests/unit/test_get_asts.py:44
Methodtest_get_python_file_asts_handling_enabled
Test that when enabled, SyntaxWarnings are treated as errors and files are excluded.
tests/unit/test_get_asts.py:56
Methodtest_getattr828_still_fires
(self)
tests/unit/test_group_a_rules.py:248
Methodtest_getattr_with_keyword_name_arg
Phase 3: getattr(obj, name=attr) with tainted attr must fire.
tests/unit/test_taint_engine_extension.py:219
Methodtest_global_exclusion_does_not_suppress_production_code
Global defaults only exclude test files, not production code.
tests/unit/test_false_positive_reductions.py:327
Methodtest_global_exclusion_suppresses_any_rule_in_tests
The [defaults] exclude_file_patterns applies to ALL rules without needing to repeat exclude_file_pattern on each rule individually.
tests/unit/test_false_positive_reductions.py:314
Methodtest_hardcoded_path_not_flagged
Hardcoded file path is safe.
tests/unit/test_taint_engine_extension.py:191
Methodtest_hardcoded_redirect_safe
(self)
tests/unit/test_missing_rules.py:316
Methodtest_hashed_password_safe
(self)
tests/unit/test_missing_rules.py:335
Methodtest_http_binop_to_sql_fires
HttpRequest → BinOp % formatting → SQL sink → fires.
tests/unit/test_semantic_provenance.py:128
Methodtest_http_fstring_silent_disabled
FSTRING867 disabled — taint propagates to downstream sinks (PY101, LOG741, etc.).
tests/unit/test_semantic_provenance.py:149
Methodtest_http_path_fires_PATH813
(self)
tests/unit/test_missing_rules.py:422
← previousnext →201–300 of 455, ranked by callers