MCPcopy Create free account

hub / github.com/ParzivalHack/PySpector / functions

Functions455 in github.com/ParzivalHack/PySpector

Methodtest_http_request_to_getattr_fires
HttpRequest provenance → getattr sink → fires.
tests/unit/test_semantic_provenance.py:100
Methodtest_http_request_to_open_fires
HttpRequest provenance → open() sink → fires.
tests/unit/test_semantic_provenance.py:107
Methodtest_http_request_to_open_still_fires
HTTP request parameter → open() must still fire (attacker-controlled).
tests/unit/test_taint_engine_extension.py:257
Methodtest_http_to_setattr_fires
HttpRequest → setattr attribute name → fires.
tests/unit/test_semantic_provenance.py:142
Methodtest_imagmath_eval_via_sink
(self)
tests/unit/test_missing_rules.py:374
Methodtest_import_in_production_flagged
__import__() in production code should still be flagged.
tests/unit/test_false_positive_reductions.py:286
Methodtest_import_in_tests_not_flagged
__import__() used in test discovery should not be flagged.
tests/unit/test_false_positive_reductions.py:277
Methodtest_input_to_getattr
input() → attr → getattr() must fire (TS006 source).
tests/unit/test_taint_engine_extension.py:236
Methodtest_invalidate_clears_l1_and_disk
(self)
tests/unit/ast_cache_test.py:328
Methodtest_joblib_model_load_fires
(self)
tests/unit/test_ai_rules.py:168
Methodtest_joblib_model_load_metadata
(self)
tests/unit/test_ai_rules.py:162
Methodtest_json_load_supply_chain_fires
(self)
tests/unit/test_missing_rules.py:442
Methodtest_json_loads_severity_reduced
json.loads() findings should be Low severity, not High.
tests/unit/test_false_positive_reductions.py:174
Methodtest_json_matches_direct_encoder
(self)
tests/unit/ast_cache_test.py:91
Methodtest_jsonpickle_decode_fires
(self)
tests/unit/test_missing_rules.py:140
Methodtest_keras_h5_model_load_fires
(self)
tests/unit/test_ai_rules.py:150
Methodtest_keras_h5_model_load_metadata
(self)
tests/unit/test_ai_rules.py:144
Methodtest_l1_hash_hit_updates_mtime
(self)
tests/unit/ast_cache_test.py:244
Methodtest_l1_lru_access_updates_recency
Accessing an entry should protect it from eviction.
tests/unit/ast_cache_test.py:489
Methodtest_l1_lru_eviction
L1 must evict LRU entries when max_l1_entries is exceeded.
tests/unit/ast_cache_test.py:471
Methodtest_l1_mtime_hit_skips_hash
(self)
tests/unit/ast_cache_test.py:231
Methodtest_l2_disk_survives_l1_eviction
(self)
tests/unit/ast_cache_test.py:264
Methodtest_l2_stale_on_content_change
(self)
tests/unit/ast_cache_test.py:275
Methodtest_large_file_smoke
Cache must handle files with many top-level functions without error.
tests/unit/ast_cache_test.py:574
Methodtest_ljust_silent_disabled
(self)
tests/unit/test_a_sink_rules.py:121
Functiontest_load_config_defaults_are_copied_before_user_updates
(tmp_path)
tests/unit/test_config.py:49
Functiontest_load_config_merges_valid_pyspector_section
(tmp_path)
tests/unit/test_config.py:11
Functiontest_load_config_uses_defaults_for_invalid_toml
(tmp_path, capsys)
tests/unit/test_config.py:39
Functiontest_load_config_uses_defaults_when_file_is_missing
(tmp_path)
tests/unit/test_config.py:30
Methodtest_local_path_not_flagged
Path derived from local constants is safe.
tests/unit/test_taint_engine_extension.py:200
Methodtest_local_variable_attr_not_flagged
Local variable not derived from request is safe.
tests/unit/test_taint_engine_extension.py:143
Methodtest_matcher_targets_true_keyword_only
(self)
tests/unit/test_ai_rules.py:118
Methodtest_mixed
(self)
tests/unit/ast_cache_test.py:62
Methodtest_mkdir_failure_degrades_to_no_disk
If the cache directory cannot be created, the cache runs L1-only.
tests/unit/ast_cache_test.py:513
Methodtest_module_metadata
(self)
tests/unit/ast_cache_test.py:155
Methodtest_moved_chunk_not_reused
(self)
tests/unit/ast_cache_test.py:114
Methodtest_non_empty_body_goes_to_children
(self)
tests/unit/ast_cache_test.py:134
Methodtest_non_empty_type_ignores_goes_to_children
(self)
tests/unit/ast_cache_test.py:145
Methodtest_open1149_still_fires
(self)
tests/unit/test_group_a_rules.py:262
Methodtest_order_by_literal_safe
(self)
tests/unit/test_missing_rules.py:128
Methodtest_order_by_tainted_fires
(self)
tests/unit/test_missing_rules.py:121
Methodtest_output_is_valid_json
(self)
tests/unit/ast_cache_test.py:161
Methodtest_output_is_valid_json
(self)
tests/unit/ast_cache_test.py:378
Methodtest_output_matches_direct_encode
Cache output must be semantically identical to direct AstEncoder output.
tests/unit/ast_cache_test.py:385
Methodtest_path_join_dotdot_in_tests_not_flagged
os.path.join with '..' in test data paths should not be flagged.
tests/unit/test_false_positive_reductions.py:300
Methodtest_path_join_propagates_to_open
(self)
tests/unit/test_missing_rules.py:366
Methodtest_pattern_matches_torch_load_calls
(self, code)
tests/unit/test_ai_rules.py:194
Methodtest_percent_format_in_text_fires
(self)
tests/unit/test_missing_rules.py:96
Methodtest_pickle_loads_still_flagged_py002
pickle.loads() MUST still be flagged — it's a true positive.
tests/unit/test_false_positive_reductions.py:353
Methodtest_pickle_not_suppressed_by_global_defaults
pickle.loads is a TRUE POSITIVE even in test files — it should still fire because the [defaults] deliberately excludes test paths, an
tests/unit/test_false_positive_reductions.py:333
Methodtest_py102_still_fires
(self)
tests/unit/test_group_a_rules.py:255
Methodtest_pyyaml_unsafe_fires
(self)
tests/unit/test_missing_rules.py:389
Methodtest_raw_tainted_sql_fires
(self)
tests/unit/test_missing_rules.py:114
Methodtest_re_compile_not_flagged_py515
re.compile() is regex, not Python code execution — no PY515.
tests/unit/test_false_positive_reductions.py:129
Methodtest_re_compile_not_flagged_shell645
re.compile() must not trigger SHELL645.
tests/unit/test_false_positive_reductions.py:139
Methodtest_re_compile_not_flagged_shell670
re.compile() must not trigger SHELL670.
tests/unit/test_false_positive_reductions.py:148
Methodtest_reject_policy_safe
(self)
tests/unit/test_missing_rules.py:194
Methodtest_render_template_string_tainted_fires
(self)
tests/unit/test_missing_rules.py:59
Methodtest_resolve_entities_false_safe
(self)
tests/unit/test_missing_rules.py:248
Methodtest_resolved_path_used_as_l1_key
The L1 key must always be the resolved (canonical) path.
tests/unit/ast_cache_test.py:445
Methodtest_rjust_silent_disabled
(self)
tests/unit/test_a_sink_rules.py:124
Methodtest_roundtrip
(self)
tests/unit/ast_cache_test.py:182
Methodtest_ruamel_yaml_suppressed
(self, tmp_path)
tests/unit/test_missing_rules.py:394
Methodtest_rule_metadata
(self)
tests/unit/test_ai_rules.py:112
Methodtest_rule_metadata
(self)
tests/unit/test_ai_rules.py:180
Methodtest_safe_loader_not_flagged_py107
yaml.load(..., Loader=SafeLoader) is safe — should not trigger PY107.
tests/unit/test_false_positive_reductions.py:79
Methodtest_safe_loader_not_flagged_py302
yaml.load(..., Loader=SafeLoader) should not trigger PY302.
tests/unit/test_false_positive_reductions.py:89
Methodtest_safe_parameterized_text_safe
(self)
tests/unit/test_missing_rules.py:102
Methodtest_same_file_via_resolve_hits_same_entry
Calling get_ast_json with an already-resolved path must hit L1.
tests/unit/ast_cache_test.py:456
Methodtest_sanitizer_clears_http_taint
quote_name sanitizer clears HttpRequest taint → SQL sink silent.
tests/unit/test_semantic_provenance.py:135
Methodtest_serialized_is_json_not_pickle
(self)
tests/unit/ast_cache_test.py:192
Methodtest_session_data_write_not_flagged
Writing data to request.session is normal Django usage, not session fixation.
tests/unit/test_false_positive_reductions.py:229
Methodtest_session_key_assignment_narrowed
After fix, SESS744 has a narrow pattern and no longer fires on data writes.
tests/unit/test_false_positive_reductions.py:240
Methodtest_single_function_structure
(self)
tests/unit/ast_cache_test.py:82
Methodtest_singleton_reset_yields_new_instance
(self)
tests/unit/ast_cache_test.py:594
Methodtest_singleton_same_instance
(self)
tests/unit/ast_cache_test.py:587
Methodtest_stale_version_triggers_rebuild
(self)
tests/unit/ast_cache_test.py:291
Methodtest_static_template_safe
(self)
tests/unit/test_missing_rules.py:77
Methodtest_subprocess_taint_still_fires
PY102 taint flow must still work after engine changes.
tests/unit/test_taint_engine_extension.py:274
Methodtest_subscript_source_fires
(self)
tests/unit/test_group_a_rules.py:66
Methodtest_symlink816_fires_on_user_controlled_path
Symlink with HttpRequest-tainted source must fire via taint engine.
tests/unit/test_semantic_provenance.py:89
Methodtest_symlink816_hardcoded_path_not_flagged
SYMLINK816 is now taint-driven only — no pattern. os.symlink() with non-tainted arguments must not fire.
tests/unit/test_semantic_provenance.py:80
Methodtest_syntax_error_not_cached
(self)
tests/unit/ast_cache_test.py:317
Methodtest_syntax_error_propagates
(self)
tests/unit/ast_cache_test.py:311
Methodtest_system_generated_to_open_silent
SystemGenerated (tempfile.mkstemp) → open() → silent.
tests/unit/test_semantic_provenance.py:114
Methodtest_tainted_arg_safe
(self)
tests/unit/test_group_a_rules.py:125
Methodtest_tainted_attr_name_fires
(self)
tests/unit/test_group_a_rules.py:59
Methodtest_tainted_attr_name_fires
(self)
tests/unit/test_group_a_rules.py:85
Methodtest_tainted_attr_propagation_through_variable
Taint must propagate through intermediate variables.
tests/unit/test_taint_engine_extension.py:122
Methodtest_tainted_attr_via_django_GET
request.GET.get() → attr → getattr() must fire (Phase 1 new source).
tests/unit/test_taint_engine_extension.py:77
Methodtest_tainted_attr_via_django_POST
request.POST.get() as source.
tests/unit/test_taint_engine_extension.py:86
Methodtest_tainted_attr_via_flask_args
Flask request.args.get() as source.
tests/unit/test_taint_engine_extension.py:95
Methodtest_tainted_attr_via_request_get
request.get() → attr → getattr(obj, attr) must fire.
tests/unit/test_taint_engine_extension.py:68
Methodtest_tainted_attr_via_subscript_django
Phase 2: request.GET['key'] subscript as source.
tests/unit/test_taint_engine_extension.py:104
Methodtest_tainted_attr_via_subscript_flask
Phase 2: request.args subscript as source.
tests/unit/test_taint_engine_extension.py:113
Methodtest_tainted_object_fires
(self)
tests/unit/test_group_a_rules.py:229
Methodtest_tainted_parts_silent_disabled
(self)
tests/unit/test_a_sink_rules.py:138
Methodtest_tainted_path_via_django_GET_subscript
Phase 2: request.GET['file'] subscript → open().
tests/unit/test_taint_engine_extension.py:169
Methodtest_tainted_path_via_flask_form
Flask request.form.get() → open().
tests/unit/test_taint_engine_extension.py:179
Methodtest_tainted_path_via_request_get
request.get() → path → open(path) must fire.
tests/unit/test_taint_engine_extension.py:159
← previousnext →301–400 of 455, ranked by callers