Repository navigation
Agent KB_tests_p3
grisun0 edited this page Oct 17, 2026
·
22 revisions
Previous: KB_tests_p2.md
- Doc: Tests for cli/banner_config.py — registry, settings, renderer, wizard.
- Layer: testing
- Language: py
- Symbols:
-
registry(function, line 37)def registry() -
color_registry(function, line 42)def color_registry() -
glyph_registry(function, line 47)def glyph_registry() -
neutral_palette(function, line 52)def neutral_palette() -
test_registry_lists_every_canonical_segment(function, line 68)def test_registry_lists_every_canonical_segment(registry) -
test_registry_group_partition(function, line 88)def test_registry_group_partition(registry) -
test_registry_lookup_returns_none_for_unknown(function, line 96)def test_registry_lookup_returns_none_for_unknown(registry) -
test_settings_defaults_match_registry_defaults(function, line 103)def test_settings_defaults_match_registry_defaults(registry) -
test_settings_round_trip_through_payload_block(function, line 113)def test_settings_round_trip_through_payload_block(registry) -
test_settings_from_payload_falls_back_to_defaults_when_missing(function, line 120)def test_settings_from_payload_falls_back_to_defaults_when_missing(registry) -
test_settings_from_payload_ignores_unknown_ids(function, line 125)def test_settings_from_payload_ignores_unknown_ids(registry) -
test_settings_toggle_adds_then_removes(function, line 131)def test_settings_toggle_adds_then_removes() -
test_settings_enable_all_then_disable_all(function, line 139)def test_settings_enable_all_then_disable_all(registry) -
_make_ctx(function, line 150)def _make_ctx(palette) -
test_renderer_emits_three_lines_with_box_corners(function, line 176)def test_renderer_emits_three_lines_with_box_corners(registry, neutral_palette) -
test_renderer_omits_disabled_segments(function, line 187)def test_renderer_omits_disabled_segments(registry, neutral_palette) -
test_renderer_includes_kernel_and_version_when_enabled(function, line 198)def test_renderer_includes_kernel_and_version_when_enabled(registry, neutral_palette) -
test_renderer_drops_empty_value_segments(function, line 206)def test_renderer_drops_empty_value_segments(registry, neutral_palette) -
test_renderer_marks_dirty_git_with_dirty_glyph(function, line 214)def test_renderer_marks_dirty_git_with_dirty_glyph(registry, neutral_palette) -
test_render_prompt_uses_payload_banner_block(function, line 228)def test_render_prompt_uses_payload_banner_block() -
test_render_prompt_with_no_payload_uses_defaults(function, line 239)def test_render_prompt_with_no_payload_uses_defaults() -
test_banner_summary_lists_enabled_ids_sorted(function, line 248)def test_banner_summary_lists_enabled_ids_sorted() -
test_banner_summary_handles_empty(function, line 254)def test_banner_summary_handles_empty() -
test_context_resolver_uses_payload_rhost_and_lhost(function, line 261)def test_context_resolver_uses_payload_rhost_and_lhost(neutral_palette) -
test_context_resolver_public_ip_caches_within_ttl(function, line 275)def test_context_resolver_public_ip_caches_within_ttl(neutral_palette) -
test_configurator_returns_none_in_non_tty_environment(function, line 303)def test_configurator_returns_none_in_non_tty_environment(monkeypatch, registry, neutral_palette, color_registry... -
test_color_registry_exposes_named_palette(function, line 320)def test_color_registry_exposes_named_palette(color_registry) -
test_color_registry_cycle_wraps_around(function, line 327)def test_color_registry_cycle_wraps_around(color_registry) -
test_color_registry_resolve_unknown_falls_back(function, line 335)def test_color_registry_resolve_unknown_falls_back(color_registry) -
test_glyph_registry_exposes_canonical_slots(function, line 344)def test_glyph_registry_exposes_canonical_slots(glyph_registry) -
test_glyph_registry_cycle_returns_known_choice(function, line 350)def test_glyph_registry_cycle_returns_known_choice(glyph_registry) -
test_glyph_registry_cycle_preserves_unknown_value(function, line 357)def test_glyph_registry_cycle_preserves_unknown_value(glyph_registry) -
test_settings_round_trip_carries_colors_and_glyphs(function, line 364)def test_settings_round_trip_carries_colors_and_glyphs(registry, color_registry, glyph_registry) -
test_settings_from_payload_ignores_unknown_color_names(function, line 379)def test_settings_from_payload_ignores_unknown_color_names(registry, color_registry, glyph_registry) -
test_settings_from_payload_ignores_unknown_glyph_chars(function, line 385)def test_settings_from_payload_ignores_unknown_glyph_chars(registry, color_registry, glyph_registry) -
test_settings_cycle_color_uses_registry_order(function, line 391)def test_settings_cycle_color_uses_registry_order(registry, color_registry) -
test_settings_cycle_glyph_uses_registry_order(function, line 398)def test_settings_cycle_glyph_uses_registry_order(registry, color_registry, glyph_registry) -
test_settings_reset_color_and_glyph_for_specific_id(function, line 405)def test_settings_reset_color_and_glyph_for_specific_id(registry, color_registry, glyph_registry) -
test_renderer_emits_chosen_color_for_each_segment(function, line 418)def test_renderer_emits_chosen_color_for_each_segment(registry, color_registry, glyph_registry, neutral_palette) -
test_renderer_uses_glyph_overrides_in_box(function, line 438)def test_renderer_uses_glyph_overrides_in_box(registry, color_registry, glyph_registry, neutral_palette) -
test_render_prompt_honours_payload_colors_and_glyphs(function, line 458)def test_render_prompt_honours_payload_colors_and_glyphs() -
_FakeResp(class, line 281)class _FakeResp -
__enter__(method, line 282)def __enter__(self) -
__exit__(method, line 285)def __exit__(self) -
read(method, line 288)def read(self)
-
- Depends on:
cli/banner_config.py
- Doc: BDD scenarios for disposable infra, range, and executive reporting.
- Layer: testing
- Language: py
- Symbols:
-
test_bdd_redirector_spawn_registers_urls(function, line 15)def test_bdd_redirector_spawn_registers_urls() -
test_bdd_beacon_build_injects_fallback_urls(function, line 51)def test_bdd_beacon_build_injects_fallback_urls() -
test_bdd_range_compose_topology(function, line 65)def test_bdd_range_compose_topology() -
test_bdd_report_executive_summary_without_ai(function, line 83)def test_bdd_report_executive_summary_without_ai() -
Completed(class, line 28)class Completed
-
- Depends on:
cli/commands/infra.py,cli/commands/lab.py,modules/c2_builder.py,modules/professional_report.py
- Doc: Tests for modules/beacon_config_builder.py — BeaconConfig, BeaconConfigBuilder, and...
- Layer: testing
- Language: py
- Symbols:
-
TestBeaconConfig(class, line 22)class TestBeaconConfig -
TestBeaconConfigBuilder(class, line 141)class TestBeaconConfigBuilder -
TestGenerateBofExecutionCommand(class, line 205)class TestGenerateBofExecutionCommand -
test_default_construction(method, line 23)def test_default_construction(self) -
test_to_gen_beacon_args(method, line 36)def test_to_gen_beacon_args(self) -
test_to_go_implant_vars(method, line 59)def test_to_go_implant_vars(self) -
test_to_config_json(method, line 85)def test_to_config_json(self) -
test_to_dict_serialization(method, line 113)def test_to_dict_serialization(self) -
test_build_minimal(method, line 142)def test_build_minimal(self) -
test_build_with_malleable_route(method, line 157)def test_build_with_malleable_route(self) -
test_build_injects_tls_from_payload(method, line 170)def test_build_injects_tls_from_payload(self) -
test_build_injects_dns_from_payload(method, line 183)def test_build_injects_dns_from_payload(self) -
test_build_falls_back_on_missing_engines(method, line 197)def test_build_falls_back_on_missing_engines(self) -
test_basic_bof_command(method, line 206)def test_basic_bof_command(self) -
test_bof_with_args(method, line 214)def test_bof_with_args(self) -
test_custom_bofs_dir(method, line 224)def test_custom_bofs_dir(self)
-
- Depends on:
modules/beacon_config_builder.py
- Doc: BDD-style tests for persistent beacon command/result history storage.
- Layer: testing
- Language: py
- Symbols:
-
_config(function, line 19)def _config(tmp_path) -
TestSanitization(class, line 23)class TestSanitization -
TestAppendRead(class, line 38)class TestAppendRead -
test_sanitize_client_id_strips_unsafe_chars(method, line 24)def test_sanitize_client_id_strips_unsafe_chars(self) -
test_records_path_is_bounded_inside_sessions(method, line 29)def test_records_path_is_bounded_inside_sessions(self, tmp_path) -
test_append_then_read_round_trips(method, line 39)def test_append_then_read_round_trips(self, tmp_path) -
test_multiple_beacons_do_not_interleave(method, line 50)def test_multiple_beacons_do_not_interleave(self, tmp_path) -
test_skips_malformed_lines(method, line 59)def test_skips_malformed_lines(self, tmp_path) -
test_missing_history_reads_empty(method, line 72)def test_missing_history_reads_empty(self, tmp_path) -
test_record_without_client_id_is_rejected(method, line 75)def test_record_without_client_id_is_rejected(self, tmp_path)
-
- Depends on:
modules/beacon_history.py
- Doc: tests/test_blacksandbeacon_addon.py Validation suite for the blacksandbeacon and...
- Layer: testing
- Language: py
- Symbols:
-
_load(function, line 26)def _load(path) -
beacon(function, line 32)def beacon() -
bof(function, line 37)def bof() -
TestBeaconYamlExists(class, line 41)class TestBeaconYamlExists -
TestBeaconRequiredFields(class, line 55)class TestBeaconRequiredFields -
TestBeaconToolSection(class, line 67)class TestBeaconToolSection -
TestBeaconPathSafety(class, line 97)class TestBeaconPathSafety -
TestBeaconCategory(class, line 111)class TestBeaconCategory -
TestBeaconEnabled(class, line 119)class TestBeaconEnabled -
TestBeaconParams(class, line 127)class TestBeaconParams -
TestBeaconCommandTemplates(class, line 157)class TestBeaconCommandTemplates -
TestBeaconDescriptionQuality(class, line 192)class TestBeaconDescriptionQuality -
TestBeaconNoHardcodedSecrets(class, line 217)class TestBeaconNoHardcodedSecrets -
test_beacon_yaml_present(method, line 42)def test_beacon_yaml_present(self) -
test_bof_yaml_present(method, line 45)def test_bof_yaml_present(self) -
test_beacon_yaml_parses(method, line 48)def test_beacon_yaml_parses(self, beacon) -
test_bof_yaml_parses(method, line 51)def test_bof_yaml_parses(self, bof) -
test_beacon_has_field(method, line 59)def test_beacon_has_field(self, beacon, field) -
test_bof_has_field(method, line 63)def test_bof_has_field(self, bof, field) -
test_beacon_tool_has_key(method, line 71)def test_beacon_tool_has_key(self, beacon, key) -
test_bof_tool_has_key(method, line 75)def test_bof_tool_has_key(self, bof, key) -
test_beacon_repo_url(method, line 78)def test_beacon_repo_url(self, beacon) -
test_bof_repo_url(method, line 81)def test_bof_repo_url(self, bof) -
test_beacon_install_path(method, line 84)def test_beacon_install_path(self, beacon) -
test_bof_install_path(method, line 87)def test_bof_install_path(self, bof) -
test_beacon_install_command_is_make(method, line 90)def test_beacon_install_command_is_make(self, beacon) -
test_bof_install_command_is_make(method, line 93)def test_bof_install_command_is_make(self, bof) -
test_beacon_install_path_no_traversal(method, line 100)def test_beacon_install_path_no_traversal(self, beacon) -
test_bof_install_path_no_traversal(method, line 105)def test_bof_install_path_no_traversal(self, bof) -
test_beacon_category(method, line 112)def test_beacon_category(self, beacon) -
test_bof_category(method, line 115)def test_bof_category(self, bof) -
test_beacon_enabled(method, line 120)def test_beacon_enabled(self, beacon) -
test_bof_enabled(method, line 123)def test_bof_enabled(self, bof) -
_param_names(method, line 130)def _param_names(self, addon) -
test_beacon_has_lhost_param(method, line 133)def test_beacon_has_lhost_param(self, beacon) -
test_beacon_has_lport_param(method, line 136)def test_beacon_has_lport_param(self, beacon) -
test_beacon_has_c2_port_param(method, line 139)def test_beacon_has_c2_port_param(self, beacon) -
test_bof_has_lhost_param(method, line 142)def test_bof_has_lhost_param(self, bof) -
test_bof_has_lport_param(method, line 145)def test_bof_has_lport_param(self, bof) -
test_beacon_lhost_required(method, line 148)def test_beacon_lhost_required(self, beacon) -
test_bof_lhost_required(method, line 152)def test_bof_lhost_required(self, bof) -
test_beacon_lazycommand_has_lhost(method, line 160)def test_beacon_lazycommand_has_lhost(self, beacon) -
test_beacon_lazycommand_has_c2_port(method, line 164)def test_beacon_lazycommand_has_c2_port(self, beacon) -
test_bof_lazycommand_has_lhost(method, line 168)def test_bof_lazycommand_has_lhost(self, bof) -
test_bof_lazycommand_has_lport(method, line 172)def test_bof_lazycommand_has_lport(self, bof) -
test_beacon_execute_stages_to_sessions(method, line 176)def test_beacon_execute_stages_to_sessions(self, beacon) -
test_bof_execute_stages_to_sessions(method, line 180)def test_bof_execute_stages_to_sessions(self, bof) -
test_beacon_execute_resets_before_pull(method, line 183)def test_beacon_execute_resets_before_pull(self, beacon) -
test_bof_execute_resets_before_pull(method, line 187)def test_bof_execute_resets_before_pull(self, bof) -
test_beacon_description_mentions_bof(method, line 195)def test_beacon_description_mentions_bof(self, beacon) -
test_beacon_description_mentions_linux(method, line 199)def test_beacon_description_mentions_linux(self, beacon) -
test_bof_description_mentions_linux_bof(method, line 202)def test_bof_description_mentions_linux_bof(self, bof) -
test_bof_description_mentions_elf(method, line 206)def test_bof_description_mentions_elf(self, bof) -
test_beacon_name_is_correct(method, line 210)def test_beacon_name_is_correct(self, beacon) -
test_bof_name_is_correct(method, line 213)def test_bof_name_is_correct(self, bof) -
_yaml_text(method, line 220)def _yaml_text(self, path) -
test_beacon_no_hardcoded_ip(method, line 223)def test_beacon_no_hardcoded_ip(self) -
test_bof_no_hardcoded_ip(method, line 230)def test_bof_no_hardcoded_ip(self) -
test_beacon_no_hardcoded_port_numbers(method, line 237)def test_beacon_no_hardcoded_port_numbers(self) -
test_bof_no_hardcoded_port_numbers(method, line 241)def test_bof_no_hardcoded_port_numbers(self)
-
- Doc: Tests for modules/bof_registry.py — BofEntry, BofCatalog, BofRegistry, BofMarketplace...
- Layer: testing
- Language: py
- Symbols:
-
catalog(function, line 37)def catalog() -
tmp_sessions(function, line 42)def tmp_sessions() -
TestBofEntry(class, line 47)class TestBofEntry -
TestBofCatalog(class, line 101)class TestBofCatalog -
TestBofRegistry(class, line 174)class TestBofRegistry -
TestBofValidator(class, line 221)class TestBofValidator -
TestBofMarketplace(class, line 291)class TestBofMarketplace -
TestBofEnums(class, line 359)class TestBofEnums -
test_construction_and_properties(method, line 48)def test_construction_and_properties(self) -
test_immutability(method, line 65)def test_immutability(self) -
test_to_dict_roundtrip(method, line 70)def test_to_dict_roundtrip(self) -
test_from_dict_minimal(method, line 91)def test_from_dict_minimal(self) -
test_register_and_get(method, line 102)def test_register_and_get(self, catalog) -
test_get_missing_raises_keyerror(method, line 107)def test_get_missing_raises_keyerror(self, catalog) -
test_search_exact_match(method, line 111)def test_search_exact_match(self, catalog) -
test_search_by_category(method, line 116)def test_search_by_category(self, catalog) -
test_search_by_technique(method, line 121)def test_search_by_technique(self, catalog) -
test_search_empty_query_returns_all(method, line 127)def test_search_empty_query_returns_all(self, catalog) -
test_list_all_sorted(method, line 131)def test_list_all_sorted(self, catalog) -
test_list_by_platform(method, line 136)def test_list_by_platform(self, catalog) -
test_list_by_category(method, line 141)def test_list_by_category(self, catalog) -
test_save_load_roundtrip(method, line 147)def test_save_load_roundtrip(self, catalog, tmp_sessions) -
test_load_missing_file_returns_empty(method, line 153)def test_load_missing_file_returns_empty(self, tmp_sessions) -
test_empty_catalog(method, line 158)def test_empty_catalog(self) -
test_register_overwrites(method, line 165)def test_register_overwrites(self) -
test_install_and_check(method, line 175)def test_install_and_check(self, tmp_sessions) -
test_uninstall(method, line 182)def test_uninstall(self, tmp_sessions) -
test_uninstall_nonexistent(method, line 189)def test_uninstall_nonexistent(self, tmp_sessions) -
test_list_installed(method, line 193)def test_list_installed(self, tmp_sessions) -
test_get_install_info(method, line 201)def test_get_install_info(self, tmp_sessions) -
test_get_install_info_nonexistent(method, line 209)def test_get_install_info_nonexistent(self, tmp_sessions) -
test_manifest_persistence(method, line 213)def test_manifest_persistence(self, tmp_sessions) -
test_verify_with_empty_hash_skips(method, line 222)def test_verify_with_empty_hash_skips(self, tmp_sessions) -
test_compute_sha256_deterministic(method, line 230)def test_compute_sha256_deterministic(self, tmp_sessions) -
test_verify_mismatched_hash(method, line 238)def test_verify_mismatched_hash(self, tmp_sessions) -
test_validate_args_missing_required(method, line 253)def test_validate_args_missing_required(self) -
test_validate_args_all_present(method, line 266)def test_validate_args_all_present(self) -
test_validate_args_no_required(method, line 278)def test_validate_args_no_required(self) -
test_search_enriches_with_install_status(method, line 292)def test_search_enriches_with_install_status(self, tmp_sessions) -
test_info_returns_catalog_and_install_state(method, line 299)def test_info_returns_catalog_and_install_state(self, tmp_sessions) -
test_info_missing_bof(method, line 306)def test_info_missing_bof(self) -
test_install_and_uninstall(method, line 311)def test_install_and_uninstall(self, tmp_sessions) -
test_install_already_installed(method, line 321)def test_install_already_installed(self, tmp_sessions) -
test_install_missing_bof(method, line 327)def test_install_missing_bof(self) -
test_uninstall_missing_bof(method, line 332)def test_uninstall_missing_bof(self, tmp_sessions) -
test_list_installed_empty_initially(method, line 337)def test_list_installed_empty_initially(self, tmp_sessions) -
test_list_missing_dependencies(method, line 342)def test_list_missing_dependencies(self, tmp_sessions) -
test_list_missing_dependencies_unknown_bof(method, line 347)def test_list_missing_dependencies_unknown_bof(self) -
test_bulk_install(method, line 352)def test_bulk_install(self, tmp_sessions) -
test_platform_values(method, line 360)def test_platform_values(self) -
test_category_values(method, line 364)def test_category_values(self)
-
- Depends on:
modules/bof_registry.py
- Doc: Integration tests for the installer scripts (no network, no apt).
- Layer: testing
- Language: py
- Symbols:
-
_run_bootstrap(function, line 29)def _run_bootstrap(args, env, cwd) -
_git(function, line 44)def _git(args, cwd) -
test_bootstrap_help_lists_options(function, line 55)def test_bootstrap_help_lists_options() -
test_bootstrap_rejects_unknown_flag(function, line 63)def test_bootstrap_rejects_unknown_flag() -
test_bootstrap_rejects_bad_modes(function, line 75)def test_bootstrap_rejects_bad_modes() -
test_install_pipe_guard(function, line 88)def test_install_pipe_guard(tmp_path) -
_make_stub_repo(function, line 105)def _make_stub_repo(path) -
test_existing_checkout_abort_changes_nothing(function, line 118)def test_existing_checkout_abort_changes_nothing(tmp_path) -
test_debug_flag_traces_execution(function, line 138)def test_debug_flag_traces_execution(tmp_path) -
test_existing_checkout_update_reinstalls(function, line 153)def test_existing_checkout_update_reinstalls(tmp_path) -
test_existing_checkout_clean_backs_up_payload(function, line 170)def test_existing_checkout_clean_backs_up_payload(tmp_path) -
test_non_checkout_path_fails_without_tty(function, line 195)def test_non_checkout_path_fails_without_tty(tmp_path) -
test_install_uses_supported_pip_flags(function, line 208)def test_install_uses_supported_pip_flags() -
test_scripts_are_executable_and_clean(function, line 220)def test_scripts_are_executable_and_clean()
-
- Doc: Boy-scout contracts for critical shared surfaces.
- Layer: testing
- Language: py
- Symbols:
-
_bound_import_names(function, line 27)def _bound_import_names(tree) -
test_lazyown_has_no_unused_imports(function, line 42)def test_lazyown_has_no_unused_imports() -
_load_mcp_module(function, line 52)def _load_mcp_module() -
test_playbook_target_is_shell_quoted(function, line 110)def test_playbook_target_is_shell_quoted() -
test_replace_placeholders_matches_single_pass_engine(function, line 119)def test_replace_placeholders_matches_single_pass_engine() -
test_replace_placeholders_keeps_brace_values_literal(function, line 133)def test_replace_placeholders_keeps_brace_values_literal() -
test_deploy_has_no_todo_markers(function, line 141)def test_deploy_has_no_todo_markers() -
Tool(class, line 66)class Tool -
TextContent(class, line 73)class TextContent -
Server(class, line 83)class Server -
__init__(method, line 69)def __init__(self) -
__init__(method, line 76)def __init__(self) -
__init__(method, line 86)def __init__(self) -
list_tools(method, line 89)def list_tools(self) -
call_tool(method, line 93)def call_tool(self)
-
- Depends on:
skills/lazyown_mcp.py,utils.py
- Doc: tests/test_bridge_catalog_filtered.py Tests for
BridgeDispatcher.catalog_summary_filtered... - Layer: testing
- Language: py
- Symbols:
-
dispatcher(function, line 26)def dispatcher() -
TestCatalogSummaryFiltered(class, line 32)class TestCatalogSummaryFiltered -
TestBridgeCatalogToolFunction(class, line 111)class TestBridgeCatalogToolFunction -
test_no_args_matches_unfiltered_summary(method, line 33)def test_no_args_matches_unfiltered_summary(self, dispatcher) -
test_phase_arg_restricts_to_one_phase(method, line 38)def test_phase_arg_restricts_to_one_phase(self, dispatcher) -
test_phase_arg_accepts_world_model_alias(method, line 43)def test_phase_arg_accepts_world_model_alias(self, dispatcher) -
_entries_for(method, line 48)def _entries_for(self, dispatcher, phase, command_name) -
test_os_hint_linux_excludes_windows_only_entries(method, line 51)def test_os_hint_linux_excludes_windows_only_entries(self, dispatcher) -
test_os_hint_windows_excludes_linux_only_entries(method, line 61)def test_os_hint_windows_excludes_linux_only_entries(self, dispatcher) -
test_os_filter_shrinks_or_preserves_each_phase(method, line 71)def test_os_filter_shrinks_or_preserves_each_phase(self, dispatcher) -
test_phase_plus_os_combines_both_filters(method, line 81)def test_phase_plus_os_combines_both_filters(self, dispatcher) -
test_empty_phase_keeps_all_phases(method, line 89)def test_empty_phase_keeps_all_phases(self, dispatcher) -
test_phase_drops_smaller_than_unfiltered_total(method, line 94)def test_phase_drops_smaller_than_unfiltered_total(self, dispatcher) -
test_os_hint_any_is_passthrough(method, line 100)def test_os_hint_any_is_passthrough(self, dispatcher) -
test_os_hint_uppercase_normalized(method, line 105)def test_os_hint_uppercase_normalized(self, dispatcher) -
test_no_args_returns_full_catalog_header(method, line 112)def test_no_args_returns_full_catalog_header(self) -
test_phase_arg_appears_in_header(method, line 120)def test_phase_arg_appears_in_header(self) -
test_os_hint_only_appears_in_header(method, line 127)def test_os_hint_only_appears_in_header(self) -
test_unknown_phase_returns_friendly_no_match(method, line 134)def test_unknown_phase_returns_friendly_no_match(self) -
test_registry_exposes_optional_phase_and_os(method, line 140)def test_registry_exposes_optional_phase_and_os(self)
-
- Depends on:
modules/lazyown_bridge.py,skills/lazyown_groq_agents.py
- Doc: Malleable C2 agent: template safety, key ownership, record reading.
- Layer: testing
- Language: py
- Symbols:
-
test_client_id_derivation(function, line 17)def test_client_id_derivation() -
test_template_renders_without_tokens(function, line 29)def test_template_renders_without_tokens() -
test_template_rejects_bad_inputs(function, line 37)def test_template_rejects_bad_inputs() -
test_template_is_py25_safe(function, line 51)def test_template_is_py25_safe() -
test_template_drops_inherited_fds(function, line 60)def test_template_drops_inherited_fds() -
test_key_never_generated_silently(function, line 68)def test_key_never_generated_silently(tmp_path, monkeypatch) -
test_key_snapshot_roundtrip(function, line 79)def test_key_snapshot_roundtrip(tmp_path, monkeypatch) -
test_read_records_newest_last(function, line 91)def test_read_records_newest_last(tmp_path, monkeypatch) -
test_c2_addon_contract(function, line 104)def test_c2_addon_contract() -
test_credentials_file_sync_writes_live_creds(function, line 117)def test_credentials_file_sync_writes_live_creds(tmp_path) -
test_shell_sync_runs_after_params_exist(function, line 136)def test_shell_sync_runs_after_params_exist() -
test_shell_sync_adopts_file_creds(function, line 148)def test_shell_sync_adopts_file_creds(tmp_path, monkeypatch) -
test_sync_refuses_keyless_payload(function, line 172)def test_sync_refuses_keyless_payload(tmp_path, monkeypatch) -
test_c2_session_commands_are_non_interactive(function, line 194)def test_c2_session_commands_are_non_interactive() -
test_c2_reboot_registered(function, line 207)def test_c2_reboot_registered() -
test_fresh_lab_creds_rotate_and_shape(function, line 216)def test_fresh_lab_creds_rotate_and_shape() -
_Stub(class, line 156)class _Stub -
_Stub(class, line 179)class _Stub -
__init__(method, line 160)def __init__(self) -
__init__(method, line 183)def __init__(self)
-
- Depends on:
lazyown.py,modules/__init__.py
- Doc: Tests for modules/c2_profile_engine.py — TlsProfile, DnsProfile, SmbProfile, WebSocketProfile...
- Layer: testing
- Language: py
- Symbols:
-
TestTlsProfile(class, line 34)class TestTlsProfile -
TestDnsProfile(class, line 99)class TestDnsProfile -
TestSmbProfile(class, line 154)class TestSmbProfile -
TestWebSocketProfile(class, line 183)class TestWebSocketProfile -
TestProfileRotator(class, line 214)class TestProfileRotator -
TestProfileValidator(class, line 291)class TestProfileValidator -
TestProfileEngine(class, line 397)class TestProfileEngine -
test_default_construction(method, line 35)def test_default_construction(self) -
test_get_cipher_suites_returns_library_defaults(method, line 44)def test_get_cipher_suites_returns_library_defaults(self) -
test_get_cipher_suites_returns_custom_when_set(method, line 50)def test_get_cipher_suites_returns_custom_when_set(self) -
test_get_cipher_suites_unknown_library_falls_back_to_generic(method, line 55)def test_get_cipher_suites_unknown_library_falls_back_to_generic(self) -
test_get_ja3_hash_produces_stable_output(method, line 61)def test_get_ja3_hash_produces_stable_output(self) -
test_get_ja3_hash_with_grease_produces_variable_output(method, line 72)def test_get_ja3_hash_with_grease_produces_variable_output(self) -
test_serialization_roundtrip(method, line 77)def test_serialization_roundtrip(self) -
test_from_dict_empty(method, line 90)def test_from_dict_empty(self) -
test_disabled_profile(method, line 94)def test_disabled_profile(self) -
test_default_construction(method, line 100)def test_default_construction(self) -
test_build_query_subdomain_base64(method, line 107)def test_build_query_subdomain_base64(self) -
test_build_query_subdomain_base32(method, line 113)def test_build_query_subdomain_base32(self) -
test_build_query_subdomain_hex(method, line 119)def test_build_query_subdomain_hex(self) -
test_build_query_subdomain_truncates_to_max_length(method, line 124)def test_build_query_subdomain_truncates_to_max_length(self) -
test_build_query_subdomain_ttl_cache_bypass_disabled(method, line 130)def test_build_query_subdomain_ttl_cache_bypass_disabled(self) -
test_serialization_roundtrip(method, line 135)def test_serialization_roundtrip(self) -
test_from_dict_empty(method, line 148)def test_from_dict_empty(self) -
test_default_construction(method, line 155)def test_default_construction(self) -
test_serialization_roundtrip(method, line 161)def test_serialization_roundtrip(self) -
test_from_dict_empty(method, line 178)def test_from_dict_empty(self) -
test_default_construction(method, line 184)def test_default_construction(self) -
test_serialization_roundtrip(method, line 191)def test_serialization_roundtrip(self) -
test_from_dict_empty(method, line 208)def test_from_dict_empty(self) -
test_requires_at_least_one_slot(method, line 215)def test_requires_at_least_one_slot(self) -
test_single_slot_always_active(method, line 219)def test_single_slot_always_active(self) -
test_rotation_cycles_through_slots(method, line 226)def test_rotation_cycles_through_slots(self) -
test_rotation_skips_cooldown_slots(method, line 238)def test_rotation_skips_cooldown_slots(self) -
test_rotation_resets_all_cooldowns_when_all_busy(method, line 252)def test_rotation_resets_all_cooldowns_when_all_busy(self) -
test_list_slots(method, line 263)def test_list_slots(self) -
test_is_available_fresh_slot(method, line 274)def test_is_available_fresh_slot(self) -
test_is_available_after_touch(method, line 278)def test_is_available_after_touch(self) -
test_current_slot_identity(method, line 283)def test_current_slot_identity(self) -
test_validate_tls_valid(method, line 292)def test_validate_tls_valid(self) -
test_validate_tls_disabled_skips(method, line 297)def test_validate_tls_disabled_skips(self) -
test_validate_tls_invalid_version(method, line 302)def test_validate_tls_invalid_version(self) -
test_validate_tls_missing_key_with_cert(method, line 308)def test_validate_tls_missing_key_with_cert(self) -
test_validate_tls_unknown_library(method, line 318)def test_validate_tls_unknown_library(self) -
test_validate_dns_enabled_missing_domain(method, line 327)def test_validate_dns_enabled_missing_domain(self) -
test_validate_dns_invalid_encoding(method, line 333)def test_validate_dns_invalid_encoding(self) -
test_validate_dns_disabled_skips(method, line 339)def test_validate_dns_disabled_skips(self) -
test_validate_dns_invalid_domain_format(method, line 344)def test_validate_dns_invalid_domain_format(self) -
test_validate_smb_missing_pipe_name(method, line 350)def test_validate_smb_missing_pipe_name(self) -
test_validate_smb_disabled_skips(method, line 356)def test_validate_smb_disabled_skips(self) -
test_validate_smb_username_without_domain(method, line 361)def test_validate_smb_username_without_domain(self) -
test_validate_websocket_invalid_protocol(method, line 372)def test_validate_websocket_invalid_protocol(self) -
test_validate_websocket_disabled_skips(method, line 378)def test_validate_websocket_disabled_skips(self) -
test_validate_all_returns_dict(method, line 383)def test_validate_all_returns_dict(self) -
test_default_engine_has_http_slot(method, line 398)def test_default_engine_has_http_slot(self) -
test_engine_with_all_transports(method, line 402)def test_engine_with_all_transports(self) -
test_engine_validate_returns_errors_for_invalid_dns(method, line 412)def test_engine_validate_returns_errors_for_invalid_dns(self) -
test_engine_rotate_through_transports(method, line 420)def test_engine_rotate_through_transports(self) -
test_engine_get_active_profile_dict(method, line 427)def test_engine_get_active_profile_dict(self) -
test_engine_get_all_profiles_dict(method, line 433)def test_engine_get_all_profiles_dict(self) -
test_engine_from_dict(method, line 442)def test_engine_from_dict(self) -
test_engine_from_payload(method, line 455)def test_engine_from_payload(self) -
test_engine_empty_payload_falls_back_to_defaults(method, line 465)def test_engine_empty_payload_falls_back_to_defaults(self)
-
- Depends on:
modules/c2_profile_engine.py
- Doc: Guard the C2 route-level auth boundaries.
- Layer: testing
- Language: py
- Symbols:
-
_route_decorators(function, line 75)def _route_decorators() -
routes(function, line 106)def routes() -
test_protected_endpoints_require_auth(function, line 110)def test_protected_endpoints_require_auth(routes) -
test_public_endpoints_stay_open(function, line 115)def test_public_endpoints_stay_open(routes) -
test_all_protected_endpoints_exist(function, line 120)def test_all_protected_endpoints_exist(routes)
-
- Doc: The C2 must not build the CLI shell at module load.
- Layer: testing
- Language: py
- Symbols:
-
_module_tree(function, line 21)def _module_tree() -
_load_proxy_class(function, line 25)def _load_proxy_class() -
TestNoEagerCliBuild(class, line 62)class TestNoEagerCliBuild -
TestLazyShellProxy(class, line 103)class TestLazyShellProxy -
_FakeShell(class, line 40)class _FakeShell -
_init_shell(function, line 51)def _init_shell() -
test_no_lazyown_import_at_top_level(method, line 63)def test_no_lazyown_import_at_top_level(self) -
test_no_eager_shell_build(method, line 76)def test_no_eager_shell_build(self) -
test_lazy_accessor_with_boot_sequence(method, line 88)def test_lazy_accessor_with_boot_sequence(self) -
test_reads_forward_and_share_target(method, line 104)def test_reads_forward_and_share_target(self) -
test_writes_forward(method, line 111)def test_writes_forward(self) -
test_shell_output_attribute(method, line 118)def test_shell_output_attribute(self) -
__init__(method, line 41)def __init__(self) -
one_cmd(method, line 45)def one_cmd(self, command)
-
- Doc: C2 dashboard surfaces fed by the autonomous loop and APT chains.
- Layer: testing
- Language: py
- Symbols:
-
_sandbox(function, line 23)def _sandbox(tmp_path) -
test_publish_banner_dedupes(function, line 30)def test_publish_banner_dedupes(tmp_path) -
test_publish_cve_validates_and_dedupes(function, line 42)def test_publish_cve_validates_and_dedupes(tmp_path) -
test_append_note_never_clobbers(function, line 56)def test_append_note_never_clobbers(tmp_path) -
test_register_loot_event_dedupes_and_rejects_traversal(function, line 66)def test_register_loot_event_dedupes_and_rejects_traversal(tmp_path) -
test_group_tasks_unique_hits(function, line 77)def test_group_tasks_unique_hits(tmp_path) -
test_record_outcome_feeds_c2_surfaces(function, line 95)def test_record_outcome_feeds_c2_surfaces(tmp_path, monkeypatch) -
test_lazyreport_errors_are_actionable(function, line 122)def test_lazyreport_errors_are_actionable(monkeypatch) -
_StubWM(class, line 103)class _StubWM -
_refused(function, line 132)def _refused() -
_slow(function, line 141)def _slow() -
update_from_findings(method, line 104)def update_from_findings(self, findings)
-
- Depends on:
contrib/legacy/lazydeepseekcli.py,modules/atomic_exploit_bridge.py,modules/c2_surfaces.py
- Doc: Campaign import trust boundaries hold against hostile packages.
- Layer: testing
- Language: py
- Symbols:
-
_make_evil_zip(function, line 27)def _make_evil_zip(path) -
TestZipSlip(class, line 35)class TestZipSlip -
TestColumnFiltering(class, line 55)class TestColumnFiltering -
TestCopyTree(class, line 80)class TestCopyTree -
TestCampaignRoutesThroughHelpers(class, line 96)class TestCampaignRoutesThroughHelpers -
test_evil_members_skipped(method, line 36)def test_evil_members_skipped(self, tmp_path) -
test_legit_tree_extracted(method, line 46)def test_legit_tree_extracted(self, tmp_path) -
test_identifier_policy(method, line 56)def test_identifier_policy(self) -
test_unknown_and_hostile_dropped(method, line 62)def test_unknown_and_hostile_dropped(self) -
test_order_preserved(method, line 67)def test_order_preserved(self) -
test_filtered_insert_roundtrip(method, line 70)def test_filtered_insert_roundtrip(self, tmp_path) -
test_symlinks_not_followed(method, line 81)def test_symlinks_not_followed(self, tmp_path) -
test_no_raw_extractall_on_import(method, line 97)def test_no_raw_extractall_on_import(self) -
test_uses_safe_helpers(method, line 108)def test_uses_safe_helpers(self)
-
- Depends on:
core/safe_import.py
Next: KB_tests_p4.md
Generated offline by readmenator from commit 2f44e17e04bd. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_surface_graph
- community_11_modules_opsec_scorer
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_modules_lazy_loop
- community_3_cli
- community_4_modules_autonomous_daemon
- community_5_lazygui_panels
- community_6_modules_llm_budget
- community_7_static_js
- community_8_skills_claude_md_orchestrator
- community_9_skills_hermes_lazyown
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_sinks
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p42
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes