keyhog-scanner 0.5.50

keyhog-scanner: high-performance SIMD-accelerated secret detection engine
Documentation
#![allow(clippy::needless_borrow, clippy::needless_update, clippy::useless_vec)]

mod support;

#[path = "gap/adversarial_bulk_lacks_per_detector_hostile_twins.rs"]
mod adversarial_bulk_lacks_per_detector_hostile_twins;
#[path = "gap/alphabet_targets_no_per_pattern_clone.rs"]
mod alphabet_targets_no_per_pattern_clone;
#[path = "gap/analyze_keyword_only_must_assert.rs"]
mod analyze_keyword_only_must_assert;
#[path = "gap/anchored_candidate_verify_single_owner.rs"]
mod anchored_candidate_verify_single_owner;
#[path = "gap/assignment_keyword_for_line_selection_exact.rs"]
mod assignment_keyword_for_line_selection_exact;
#[path = "gap/assignment_keyword_normalize_and_secret_suffix_exact.rs"]
mod assignment_keyword_normalize_and_secret_suffix_exact;
#[path = "gap/assignment_keyword_owned_binary_search_exact.rs"]
mod assignment_keyword_owned_binary_search_exact;
#[path = "gap/aws_finding_metadata_reexport_decodes.rs"]
mod aws_finding_metadata_reexport_decodes;
#[path = "gap/backend_dispatch_cpu_path_single_owner.rs"]
mod backend_dispatch_cpu_path_single_owner;
#[path = "gap/backend_override_values_parse_coherence.rs"]
mod backend_override_values_parse_coherence;
#[path = "gap/backend_worst_case_parity_sample_only.rs"]
mod backend_worst_case_parity_sample_only;
#[path = "gap/bigram_bloom_log_bit_count_coherence.rs"]
mod bigram_bloom_log_bit_count_coherence;
#[path = "gap/boundary_guard_split_lossless_and_precise.rs"]
mod boundary_guard_split_lossless_and_precise;
#[path = "gap/byte_distribution_base64_blob_admit_policy_exact.rs"]
mod byte_distribution_base64_blob_admit_policy_exact;
#[path = "gap/caesar_shift_rotation_exact.rs"]
mod caesar_shift_rotation_exact;
#[path = "gap/candidate_embeds_owned_assignment_key_composition_exact.rs"]
mod candidate_embeds_owned_assignment_key_composition_exact;
#[path = "gap/candidate_starts_with_owned_assignment_key_prefix_exact.rs"]
mod candidate_starts_with_owned_assignment_key_prefix_exact;
#[path = "gap/checksum_github.rs"]
mod checksum_github;
#[path = "gap/checksum_gitlab_npm_slack_stripe.rs"]
mod checksum_gitlab_npm_slack_stripe;
#[path = "gap/compact_keyword_eq_and_ends_with_exact.rs"]
mod compact_keyword_eq_and_ends_with_exact;
#[path = "gap/compiler_inline_tests_in_src.rs"]
mod compiler_inline_tests_in_src;
#[path = "gap/compiler_prefix_inline_tests_in_src.rs"]
mod compiler_prefix_inline_tests_in_src;
#[path = "gap/compiler_prefix_tuning_thresholds_exact.rs"]
mod compiler_prefix_tuning_thresholds_exact;
#[path = "gap/confidence_calibration_uncalibrated_passthrough.rs"]
mod confidence_calibration_uncalibrated_passthrough;
#[path = "gap/confidence_floor_policy.rs"]
mod confidence_floor_policy;
#[path = "gap/contains_evasion_single_owner_classification.rs"]
mod contains_evasion_single_owner_classification;
#[path = "gap/context_cfg_test_attribute_marks_test_code.rs"]
mod context_cfg_test_attribute_marks_test_code;
#[path = "gap/context_example_suffix_ascii_ci.rs"]
mod context_example_suffix_ascii_ci;
#[path = "gap/context_false_positive_inline_tests_in_src.rs"]
mod context_false_positive_inline_tests_in_src;
#[path = "gap/context_inference_cfg_test_string_breaks_gate.rs"]
mod context_inference_cfg_test_string_breaks_gate;
#[path = "gap/context_sequential_placeholder_strips_prefix.rs"]
mod context_sequential_placeholder_strips_prefix;
#[path = "gap/context_tokio_async_fn_test_body_is_test_code.rs"]
mod context_tokio_async_fn_test_body_is_test_code;
#[path = "gap/context_window_local_slice.rs"]
mod context_window_local_slice;
#[path = "gap/cross_platform_cfg_gates_absent.rs"]
mod cross_platform_cfg_gates_absent;
#[path = "gap/csr_build_exact_capacity.rs"]
mod csr_build_exact_capacity;
#[path = "gap/csr_hot_maps_adopted.rs"]
mod csr_hot_maps_adopted;
#[path = "gap/deadline_cadence_tick_dedup.rs"]
mod deadline_cadence_tick_dedup;
#[path = "gap/deadline_leaf_predicates_truth_table.rs"]
mod deadline_leaf_predicates_truth_table;
#[path = "gap/decode_encoded_value_extraction.rs"]
mod decode_encoded_value_extraction;
#[path = "gap/decode_pipeline_exceeds_modularity_cap.rs"]
mod decode_pipeline_exceeds_modularity_cap;
#[path = "gap/decode_splice_payload_window.rs"]
mod decode_splice_payload_window;
#[path = "gap/decode_structure_protobuf_fixed_width_fields.rs"]
mod decode_structure_protobuf_fixed_width_fields;
#[path = "gap/decoder_registry_default_composition.rs"]
mod decoder_registry_default_composition;
#[path = "gap/detector_contract_coverage_100pct.rs"]
mod detector_contract_coverage_100pct;
#[path = "gap/detector_precision_decoys.rs"]
mod detector_precision_decoys;
#[path = "gap/detector_recall_prefixes.rs"]
mod detector_recall_prefixes;
#[path = "gap/docs_megakernel_env_claim_matches_engine.rs"]
mod docs_megakernel_env_claim_matches_engine;
#[path = "gap/engine_backend_parity.rs"]
mod engine_backend_parity;
#[path = "gap/entropy_authorization_scheme_ci.rs"]
mod entropy_authorization_scheme_ci;
#[path = "gap/entropy_candidate_owned_by_named_assignment_composition_exact.rs"]
mod entropy_candidate_owned_by_named_assignment_composition_exact;
#[path = "gap/entropy_keyword_anchor_lazy_lowercase.rs"]
mod entropy_keyword_anchor_lazy_lowercase;
#[path = "gap/entropy_keyword_only_requires_keyword_line.rs"]
mod entropy_keyword_only_requires_keyword_line;
#[path = "gap/entropy_keywords_inline_tests_in_src.rs"]
mod entropy_keywords_inline_tests_in_src;
#[path = "gap/entropy_unique_byte_count_dedup.rs"]
mod entropy_unique_byte_count_dedup;
#[path = "gap/entropy_universal_rejection_rules_exact.rs"]
mod entropy_universal_rejection_rules_exact;
#[path = "gap/entropy_xml_close_tag_search.rs"]
mod entropy_xml_close_tag_search;
#[path = "gap/file_gate_matrix_scanner_adversarial_unmarked.rs"]
mod file_gate_matrix_scanner_adversarial_unmarked;
#[path = "gap/file_gate_matrix_scanner_missing_submodule_rows.rs"]
mod file_gate_matrix_scanner_missing_submodule_rows;
#[path = "gap/findings_registry_integrity.rs"]
mod findings_registry_integrity;
#[path = "gap/fragment_assignment_syntax_prefilter.rs"]
mod fragment_assignment_syntax_prefilter;
#[path = "gap/fragment_cache_reassemble_join.rs"]
mod fragment_cache_reassemble_join;
#[path = "gap/fragment_prefilter_single_source.rs"]
mod fragment_prefilter_single_source;
#[path = "gap/generic_keyword_owner_service_name_floor.rs"]
mod generic_keyword_owner_service_name_floor;
#[path = "gap/generic_keyword_prefilter_stem_precedence_exact.rs"]
mod generic_keyword_prefilter_stem_precedence_exact;
#[path = "gap/generic_secret_confidence_formula.rs"]
mod generic_secret_confidence_formula;
#[path = "gap/github_checksum_token_structure.rs"]
mod github_checksum_token_structure;
#[path = "gap/gitlab_checksum_body_length_floors.rs"]
mod gitlab_checksum_body_length_floors;
#[path = "gap/gpu_moe_readback_bounded.rs"]
mod gpu_moe_readback_bounded;
#[path = "gap/gpu_region_presence_anchorless_gap_surfaced.rs"]
mod gpu_region_presence_anchorless_gap_surfaced;
#[path = "gap/gpu_routing_profile_tier_table.rs"]
mod gpu_routing_profile_tier_table;
#[path = "gap/gpu_threshold_mib_units.rs"]
mod gpu_threshold_mib_units;
#[path = "gap/hcl_identifier_single_owner.rs"]
mod hcl_identifier_single_owner;
#[path = "gap/homoglyph_expand_exact_and_reserved.rs"]
mod homoglyph_expand_exact_and_reserved;
#[path = "gap/hot_loop_deadline_cadence_single_owner.rs"]
mod hot_loop_deadline_cadence_single_owner;
#[allow(dead_code)]
#[path = "gap/inline_gate.rs"]
mod inline_gate;
#[path = "gap/inline_migrated_tests_not_wired.rs"]
mod inline_migrated_tests_not_wired;
#[path = "gap/io_uring_kernel_version_gate_exact.rs"]
mod io_uring_kernel_version_gate_exact;
#[path = "gap/is_likely_concatenation_fragment_exact.rs"]
mod is_likely_concatenation_fragment_exact;
#[path = "gap/json_scalar_literal_single_owner.rs"]
mod json_scalar_literal_single_owner;
#[path = "gap/jwt_finding_metadata_reserve_and_typ_coherence.rs"]
mod jwt_finding_metadata_reserve_and_typ_coherence;
#[path = "gap/keyword_span_owner_boundary_expansion_exact.rs"]
mod keyword_span_owner_boundary_expansion_exact;
#[path = "gap/leading_assignment_key_terminator_and_bounds_exact.rs"]
mod leading_assignment_key_terminator_and_bounds_exact;
#[path = "gap/line_assignment_owned_by_named_detector_exact.rs"]
mod line_assignment_owned_by_named_detector_exact;
#[path = "gap/ml_features_comment_context_single_owner.rs"]
mod ml_features_comment_context_single_owner;
#[path = "gap/ml_score_cache_memoized.rs"]
mod ml_score_cache_memoized;
#[path = "gap/multiline_fragment_prefix_extraction.rs"]
mod multiline_fragment_prefix_extraction;
#[path = "gap/multiline_large_file_keyword_gate.rs"]
mod multiline_large_file_keyword_gate;
#[path = "gap/multiline_preprocess_join_contract.rs"]
mod multiline_preprocess_join_contract;
#[cfg(feature = "multiline")]
#[path = "gap/multiline_reassembly.rs"]
mod multiline_reassembly;
#[path = "gap/multiline_structural_template_resolve.rs"]
mod multiline_structural_template_resolve;
#[path = "gap/nightly_exports_all_strict_env_vars.rs"]
mod nightly_exports_all_strict_env_vars;
#[path = "gap/nightly_matrix_has_fourteen_runner_binaries.rs"]
mod nightly_matrix_has_fourteen_runner_binaries;
#[path = "gap/no_cwd_relative_source_reads.rs"]
mod no_cwd_relative_source_reads;
#[path = "gap/no_suppress_test_fixtures_clears_generic_fallback_haircut.rs"]
mod no_suppress_test_fixtures_clears_generic_fallback_haircut;
// KH-1308: folder-contract gate must run through gap_floor/all_tests.
#[path = "gap/no_inline_tests_in_src.rs"]
mod no_inline_tests_in_src;
#[path = "gap/normalized_assignment_keyword_is_credential_exact.rs"]
mod normalized_assignment_keyword_is_credential_exact;
#[path = "gap/npm_checksum_token_structure.rs"]
mod npm_checksum_token_structure;
#[path = "gap/orphan_github_pat_contract.rs"]
mod orphan_github_pat_contract;
#[path = "gap/path_basename_mixed_separator_extraction.rs"]
mod path_basename_mixed_separator_extraction;
#[path = "gap/pattern_signals_keyword_invariant_hoisted.rs"]
mod pattern_signals_keyword_invariant_hoisted;
#[path = "gap/phase2_always_active_sparse.rs"]
mod phase2_always_active_sparse;
#[path = "gap/phase2_ascii_fold_shared.rs"]
mod phase2_ascii_fold_shared;
#[path = "gap/phase2_extract_loop_single_owner.rs"]
mod phase2_extract_loop_single_owner;
#[path = "gap/pipeline_exceeds_modularity_cap.rs"]
mod pipeline_exceeds_modularity_cap;
#[path = "gap/pipeline_hot_path_allocs.rs"]
mod pipeline_hot_path_allocs;
#[path = "gap/placeholder_word_entropy_collision_threshold.rs"]
mod placeholder_word_entropy_collision_threshold;
#[path = "gap/prefix_trie_propagation_move_on_last.rs"]
mod prefix_trie_propagation_move_on_last;
#[path = "gap/probabilistic_gate_bigram_diversity_gate_exact.rs"]
mod probabilistic_gate_bigram_diversity_gate_exact;
#[path = "gap/profile_relaxed_ordering_single_reference.rs"]
mod profile_relaxed_ordering_single_reference;
#[path = "gap/r5_adversarial_expansion_total_floor_155.rs"]
mod r5_adversarial_expansion_total_floor_155;
#[path = "gap/r5_adversarial_one_test_per_file.rs"]
mod r5_adversarial_one_test_per_file;
#[path = "gap/r5_checksum_invalid_drops_named_service_match.rs"]
mod r5_checksum_invalid_drops_named_service_match;
#[path = "gap/r5_chunk_boundary_adversarial_floor_12.rs"]
mod r5_chunk_boundary_adversarial_floor_12;
#[path = "gap/r5_chunk_boundary_not_only_aws.rs"]
mod r5_chunk_boundary_not_only_aws;
#[path = "gap/r5_chunk_boundary_subdir_wired.rs"]
mod r5_chunk_boundary_subdir_wired;
#[path = "gap/r5_concat_adversarial_floor_7.rs"]
mod r5_concat_adversarial_floor_7;
#[path = "gap/r5_concat_beyond_engine_cases.rs"]
mod r5_concat_beyond_engine_cases;
#[path = "gap/r5_concat_subdir_wired.rs"]
mod r5_concat_subdir_wired;
#[path = "gap/r5_decode_hostile_adversarial_floor_15.rs"]
mod r5_decode_hostile_adversarial_floor_15;
#[path = "gap/r5_decode_hostile_not_only_engine_cases.rs"]
mod r5_decode_hostile_not_only_engine_cases;
#[path = "gap/r5_gap_expansion_total_floor_55.rs"]
mod r5_gap_expansion_total_floor_55;
#[path = "gap/r5_handwritten_twin_gap_vs_detector_load.rs"]
mod r5_handwritten_twin_gap_vs_detector_load;
#[path = "gap/r5_homoglyph_adversarial_floor_7.rs"]
mod r5_homoglyph_adversarial_floor_7;
#[path = "gap/r5_homoglyph_beyond_single_aws.rs"]
mod r5_homoglyph_beyond_single_aws;
#[path = "gap/r5_homoglyph_subdir_wired.rs"]
mod r5_homoglyph_subdir_wired;
#[path = "gap/r5_near_miss_handwritten_twin_floor_50.rs"]
mod r5_near_miss_handwritten_twin_floor_50;
#[path = "gap/r5_per_detector_near_miss_runner_present.rs"]
mod r5_per_detector_near_miss_runner_present;
#[path = "gap/r5_reverse_adversarial_floor_7.rs"]
mod r5_reverse_adversarial_floor_7;
#[path = "gap/r5_reverse_beyond_unit_misc.rs"]
mod r5_reverse_beyond_unit_misc;
#[path = "gap/r5_reverse_subdir_wired.rs"]
mod r5_reverse_subdir_wired;
#[path = "gap/r5_top50_near_miss_wired_in_adversarial_mod.rs"]
mod r5_top50_near_miss_wired_in_adversarial_mod;
#[path = "gap/resolution_known_prefix_service_bonus_named.rs"]
mod resolution_known_prefix_service_bonus_named;
#[path = "gap/resolution_service_detector_predicate_dedup.rs"]
mod resolution_service_detector_predicate_dedup;
#[path = "gap/reverse_decoder_admission_gate.rs"]
mod reverse_decoder_admission_gate;
#[path = "gap/santh_contract_dir_exists.rs"]
mod santh_contract_dir_exists;
#[path = "gap/scan_error_display_messages.rs"]
mod scan_error_display_messages;
#[path = "gap/scan_filters_grouped.rs"]
mod scan_filters_grouped;
#[path = "gap/scanner_src_files_exceed_standard_500_loc.rs"]
mod scanner_src_files_exceed_standard_500_loc;
#[path = "gap/shared_assign_regex_contract.rs"]
mod shared_assign_regex_contract;
#[cfg(feature = "simd")]
#[path = "gap/simd_no_hit_multiline_fast_path.rs"]
mod simd_no_hit_multiline_fast_path;
#[cfg(feature = "multiline")]
#[path = "gap/single_line_implicit_concat_not_appended.rs"]
mod single_line_implicit_concat_not_appended;
#[path = "gap/slack_checksum_token_shapes.rs"]
mod slack_checksum_token_shapes;
#[path = "gap/standard_base64_shape_classification_exact.rs"]
mod standard_base64_shape_classification_exact;
#[path = "gap/startup_banner_exact_shape.rs"]
mod startup_banner_exact_shape;
#[path = "gap/static_intern_seed_source_types.rs"]
mod static_intern_seed_source_types;
#[path = "gap/stripe_token_checksum_contract.rs"]
mod stripe_token_checksum_contract;
#[path = "gap/strong_keyword_anchored_encoded_text_secret_exact.rs"]
mod strong_keyword_anchored_encoded_text_secret_exact;
#[path = "gap/structured_line_offsets_shared_builder.rs"]
mod structured_line_offsets_shared_builder;
#[path = "gap/structured_line_resolver_needle_attribution.rs"]
mod structured_line_resolver_needle_attribution;
#[path = "gap/suffix_gate_literals_contract.rs"]
mod suffix_gate_literals_contract;
#[path = "gap/suppression_postprocess_exceeds_modularity_cap.rs"]
mod suppression_postprocess_exceeds_modularity_cap;
#[path = "gap/suppression_shape_gate_pipeline_twins_incomplete.rs"]
mod suppression_shape_gate_pipeline_twins_incomplete;
#[path = "gap/trigger_bitmap_words_for_single_source.rs"]
mod trigger_bitmap_words_for_single_source;
#[path = "gap/unicode_homoglyph_matrix.rs"]
mod unicode_homoglyph_matrix;
#[path = "gap/value_shaped_group_boundaries.rs"]
mod value_shaped_group_boundaries;
#[path = "gap/value_shaped_group_shared_heuristic.rs"]
mod value_shaped_group_shared_heuristic;
#[path = "gap/vyre_usage_matches_workspace_pin.rs"]
mod vyre_usage_matches_workspace_pin;
#[path = "gap/windowed_triggered_slice_no_per_window_clone.rs"]
mod windowed_triggered_slice_no_per_window_clone;
#[path = "gap/xml_assignment_tag_open_close_match_exact.rs"]
mod xml_assignment_tag_open_close_match_exact;
#[path = "gap/yaml_scalar_mapping_single_owner.rs"]
mod yaml_scalar_mapping_single_owner;