Component diagrams

Component Diagrams

25 components4 relations179 files
Layerinfrastructurepresentationtestingutility
depends on0 calls · 1 importsdepends on0 calls · 1 importscalls into5 calls · 2 importscalls into1 calls · 0 importslegacy20 files · 740 symbolsutilityBEACON_COMMON_H_GNU_SOURCEBSB_OUTPUT_BUFFER_DEFAU…+263 moremutants/src: bof_path_trave…3 files · 4 symbolsutilityBOF_PATH_TRAVERSAL_HARD…bof_path_traversal_hard…bof_path_traversal_hard…mutants/src: bof_streaming_…3 files · 4 symbolsutilityBOF_STREAMING_bof_streaming_bof_streaming_mutants/src: c2_rest_api3 files · 4 symbolspresentationC2_REST_API_Hc2_rest_api_processc2_rest_api_processmutants/src: certificate_pi…3 files · 4 symbolsutilityCERTIFICATE_PINNING___T…certificate_pinning___t…certificate_pinning___t…mutants/src: command_execut…3 files · 4 symbolsutilityCOMMAND_EXECUTION_VIA_E…command_execution_via_e…command_execution_via_e…mutants/src: containerized_…3 files · 1 symbolsinfrastructureCONTAINERIZED_BUILD_mutants/src: hkdf_key_deriv…3 files · 4 symbolsutilityHKDF_KEY_DERIVATION_Hhkdf_key_derivation_pro…hkdf_key_derivation_pro…mutants/src: iv_generation_…3 files · 4 symbolsutilityIV_GENERATION_WITH_ENTR…iv_generation_with_entr…iv_generation_with_entr…mutants/src: mutation_testi…3 files · 4 symbolstestingMUTATION_TESTING_INTEGR…mutation_testing_integr…mutation_testing_integr…mutants/src: pre-commit_+_c…3 files · 1 symbolsutilityPREc217 files · 260 symbolstesting_derive_keys_deep_mergeload_config+214 moreHUBmutants/src: replay_protect…3 files · 4 symbolsutilityREPLAY_PROTECTION_Hreplay_protection_proce…replay_protection_proce…mutants/src: socks5___http_…3 files · 4 symbolspresentationSOCKS5___HTTP_PROXY_SUP…socks5___http_proxy_sup…socks5___http_proxy_sup…mutants/src: structured_jso…3 files · 4 symbolsinfrastructureSTRUCTURED_JSONL_LOGGIN…structured_jsonl_loggin…structured_jsonl_loggin…mutants/src: tls_client_cer…3 files · 4 symbolsinfrastructureTLS_CLIENT_CERTIFICATE_…tls_client_certificate_…tls_client_certificate_…mutants/src: unified_config…3 files · 4 symbolsinfrastructureUNIFIED_CONFIG_SCHEMA_Hunified_config_schema_p…unified_config_schema_p…include: config_autogen2 files · 30 symbolsinfrastructureBSB_CONFIG_AUTOGEN_Hbsb_c2_tbsb_crypto_t+26 morebof/include7 files · 73 symbolsutilitygoBSB_BOF_BEACON_API_HCALLBACK_OUTPUT+65 moreinclude: aes6 files · 75 symbolsutilityBSB_AES_CFB_Haes256_cfb_encryptaes256_cfb_decrypt+44 moreinclude: config6 files · 67 symbolsinfrastructureBSB_CONFIG_HBSB_CONFIG_PATH_DEFAULTBSB_CONFIG_PATH_ENV+56 moremutants/src: async_i_o_for_…3 files · 4 symbolsutilityASYNC_I_O_FOR_BEACON_Hasync_i_o_for_beacon_pr…async_i_o_for_beacon_pr…mutants/src: beacon_common.…3 files · 1 symbolsutilityBEACON_COMMONmutants/src: beacon_heartbe…3 files · 4 symbolspresentationBEACON_HEARTBEAT___HEAL…beacon_heartbeat___heal…beacon_heartbeat___heal…mutants/src: bof_api_versio…3 files · 4 symbolspresentationBOF_API_VERSIONING_Hbof_api_versioning_proc…bof_api_versioning_proc…

Details

Static architecture map of 179 files (c, h, py, sh) in 25 components: legacy, c2, bof/include, include: aes, include: config, mutants/src: async_i_o_for_beacon, mutants/src: beacon_common.c_extraction, mutants/src: beacon_heartbeat___health_endpoint. Structure is extracted statically without LLM calls; component prose may be enriched locally.

Relations

legacy (1) [Expand]

legacy groups 20 files (c, h) around BEACON_COMMON_H, _GNU_SOURCE, BSB_OUTPUT_BUFFER_DEFAULT, BSB_OUTPUT_TRUNCATION_MARKER, http_response_t. tiny-AES-c (https://github.com/kokke/tiny-AES-c)

Related Classes/Methods:

Sub-components

beacons (1.1)

beacons groups 3 files (c) around _GNU_SOURCE, report_result, execute_command, main, _GNU_SOURCE.

include (1.2)

include groups 4 files (c, h) around BEACON_COMMON_H, _GNU_SOURCE, BSB_OUTPUT_BUFFER_DEFAULT, BSB_OUTPUT_TRUNCATION_MARKER, http_response_t. MemoryStruct: size_t new_cap = g_cache_capacity ? g_cache_capacity * 2 : 8...

legacy (1.3)

legacy groups 6 files (c) around _GNU_SOURCE, C2_URL, CLIENT_ID, MALEABLE, USER_AGENTS_COUNT. MemoryStruct: === ESTRUCTURAS ===

root (1.4)

root groups 6 files (c, h) around _AES_H_, CBC, ECB, CTR, AES256. tiny-AES-c (https://github.com/kokke/tiny-AES-c)

tests (1.5)

tests groups 1 files (c) around test_generate_secure_iv_success, test_generate_secure_iv_different_each_call, test_generate_secure_iv_null_input, test_generate_secure_iv_length, test_beacon_common_has_iv_function. test_generate_secure_iv_success: #include <stdarg.h> #include <stddef.h> #include...

Files

c2 (2) [Expand]

c2 groups 17 files (py) around _derive_keys, _deep_merge, load_config, _random_free_port, _ensure_stage_tls. Black Sand Beacon C2 Server Gopher-style command and control server for Black Sand...

Related Classes/Methods:

Sub-components

c2 (2.1)

c2 groups 2 files (py) around _random_free_port, _ensure_stage_tls, load_runtime_config, compute_hmac, verify_hmac. Black Sand Beacon C2 Server Gopher-style command and control server for Black Sand...

include (2.2)

include groups 1 files (py) around _derive_keys, _deep_merge, load_config. Python loader for BSB JSON config files.

mutants (2.3)

mutants groups 3 files (py) around _free_port, _recv_response, test_http_get_poll_returns_encrypted_command, test_http_post_report_writes_log, test_gopher_legacy_still_works. End-to-end test: a real HTTP/1.1 client talks to a real TCP socket bound by...

tests (2.4)

tests groups 11 files (py) around TestBOFPathTraversalConfig, test_upload_dir_config_exists, TestBOFPathTraversalServer, test_normal_bof_name_served, test_path_traversal_parent_dir_rejected. Tests for BOF Path Traversal Hardening (Contract: BOF Path Traversal Hardening) BDD...

Files

bof/include (3)

bof/include groups 7 files (c, h) around go, BSB_BOF_BEACON_API_H, CALLBACK_OUTPUT, CALLBACK_ERROR, CALLBACK_OUTPUT_OEM. datap: Argument parser.

Related Classes/Methods:

Files

include: aes (4) [Expand]

include: aes groups 6 files (c, h) around BSB_AES_CFB_H, aes256_cfb_encrypt, aes256_cfb_decrypt, _AES_H_, CBC. tiny-AES-c (https://github.com/kokke/tiny-AES-c)

Related Classes/Methods:

Sub-components

include (4.1)

include groups 4 files (c, h) around BSB_AES_CFB_H, aes256_cfb_encrypt, aes256_cfb_decrypt, _AES_H_, CBC. tiny-AES-c (https://github.com/kokke/tiny-AES-c)

mutants (4.2)

mutants groups 1 files (c) around hex_to_bytes, main.

tests (4.3)

tests groups 1 files (c) around hex_to_bytes, main.

Files

include: config (5) [Expand]

include: config groups 6 files (c, h) around BSB_CONFIG_H, BSB_CONFIG_PATH_DEFAULT, BSB_CONFIG_PATH_ENV, BSB_MAX_URL, BSB_MAX_URI. slurp: declared in the schema.

Related Classes/Methods:

Sub-components

include (5.1)

include groups 2 files (c, h) around BSB_CONFIG_H, BSB_CONFIG_PATH_DEFAULT, BSB_CONFIG_PATH_ENV, BSB_MAX_URL, BSB_MAX_URI. slurp: declared in the schema.

mutants (5.2)

mutants groups 1 files (c) around main.

tests (5.3)

tests groups 3 files (c) around main, test_cert_fingerprint_defaults_to_empty, test_cert_fingerprint_loads_from_config, test_cert_fingerprint_invalid_length_fails, test_network_struct_has_fingerprint_field. test_cert_fingerprint_defaults_to_empty: #include <stdarg.h> #include <stddef.h>...

Files

mutants/src: async_i_o_for_beacon (6)

mutants/src: async_i_o_for_beacon groups 3 files (c, h) around ASYNC_I_O_FOR_BEACON_H, async_i_o_for_beacon_process, async_i_o_for_beacon_process, async_i_o_for_beacon_process. Auto-generated implementation for contract: Async I/O for Beacon

Related Classes/Methods:

Files

mutants/src: beacon_common.c_extraction (7)

mutants/src: beacon_common.c_extraction groups 3 files (c, h) around BEACON_COMMON. Auto-generated implementation for contract: beacon_common.c Extraction

Related Classes/Methods:

Files

mutants/src: beacon_heartbeat___health_endpoint (8)

mutants/src: beacon_heartbeat___health_endpoint groups 3 files (c, h) around BEACON_HEARTBEAT___HEALTH_ENDPOINT_H, beacon_heartbeat___health_endpoint_process, beacon_heartbeat___health_endpoint_process, beacon_heartbeat___health_endpoint_process. Auto-generated implementation for contract: Beacon Heartbeat / Health Endpoint

Related Classes/Methods:

Files

mutants/src: bof_api_versioning (9)

mutants/src: bof_api_versioning groups 3 files (c, h) around BOF_API_VERSIONING_H, bof_api_versioning_process, bof_api_versioning_process, bof_api_versioning_process. Auto-generated implementation for contract: BOF API Versioning

Related Classes/Methods:

Files

mutants/src: bof_path_traversal_hardening (10)

mutants/src: bof_path_traversal_hardening groups 3 files (c, h) around BOF_PATH_TRAVERSAL_HARDENING_H, bof_path_traversal_hardening_process, bof_path_traversal_hardening_process, bof_path_traversal_hardening_process. Auto-generated implementation for contract: BOF Path Traversal Hardening

Related Classes/Methods:

Files

mutants/src: bof_streaming_(large_outputs) (11)

mutants/src: bof_streaming_(large_outputs) groups 3 files (c, h) around BOF_STREAMING_, bof_streaming_, bof_streaming_, bof_streaming_. Auto-generated implementation for contract: BOF Streaming (Large Outputs)

Related Classes/Methods:

Files

mutants/src: c2_rest_api (12)

mutants/src: c2_rest_api groups 3 files (c, h) around C2_REST_API_H, c2_rest_api_process, c2_rest_api_process, c2_rest_api_process. Auto-generated implementation for contract: C2 REST API

Related Classes/Methods:

Files

mutants/src: certificate_pinning___tofu (13)

mutants/src: certificate_pinning___tofu groups 3 files (c, h) around CERTIFICATE_PINNING___TOFU_H, certificate_pinning___tofu_process, certificate_pinning___tofu_process, certificate_pinning___tofu_process. Auto-generated implementation for contract: Certificate Pinning / TOFU

Related Classes/Methods:

Files

mutants/src: command_execution_via_execve (14)

mutants/src: command_execution_via_execve groups 3 files (c, h) around COMMAND_EXECUTION_VIA_EXECVE_H, command_execution_via_execve_process, command_execution_via_execve_process, command_execution_via_execve_process. Auto-generated implementation for contract: Command Execution via execve

Related Classes/Methods:

Files

mutants/src: containerized_build_+_sbom (15)

mutants/src: containerized_build_+_sbom groups 3 files (c, h) around CONTAINERIZED_BUILD_. Auto-generated implementation for contract: Containerized Build + SBOM

Related Classes/Methods:

Files

mutants/src: hkdf_key_derivation (16)

mutants/src: hkdf_key_derivation groups 3 files (c, h) around HKDF_KEY_DERIVATION_H, hkdf_key_derivation_process, hkdf_key_derivation_process, hkdf_key_derivation_process. Auto-generated implementation for contract: HKDF Key Derivation

Related Classes/Methods:

Files

mutants/src: iv_generation_with_entropy_verification (17)

mutants/src: iv_generation_with_entropy_verification groups 3 files (c, h) around IV_GENERATION_WITH_ENTROPY_VERIFICATION_H, iv_generation_with_entropy_verification_process, iv_generation_with_entropy_verification_process, iv_generation_with_entropy_verification_process. Auto-generated implementation for contract: IV Generation with Entropy Verification

Related Classes/Methods:

Files

mutants/src: mutation_testing_integration (18)

mutants/src: mutation_testing_integration groups 3 files (c, h) around MUTATION_TESTING_INTEGRATION_H, mutation_testing_integration_process, mutation_testing_integration_process, mutation_testing_integration_process. Auto-generated implementation for contract: Mutation Testing Integration

Related Classes/Methods:

Files

mutants/src: pre-commit_+_ci_hardening (19)

mutants/src: pre-commit_+_ci_hardening groups 3 files (c, h) around PRE. Auto-generated implementation for contract: Pre-commit + CI Hardening

Related Classes/Methods:

Files

mutants/src: replay_protection (20)

mutants/src: replay_protection groups 3 files (c, h) around REPLAY_PROTECTION_H, replay_protection_process, replay_protection_process, replay_protection_process. Auto-generated implementation for contract: Replay Protection

Related Classes/Methods:

Files

mutants/src: socks5___http_proxy_support (21)

mutants/src: socks5___http_proxy_support groups 3 files (c, h) around SOCKS5___HTTP_PROXY_SUPPORT_H, socks5___http_proxy_support_process, socks5___http_proxy_support_process, socks5___http_proxy_support_process. Auto-generated implementation for contract: SOCKS5 / HTTP Proxy Support

Related Classes/Methods:

Files

mutants/src: structured_jsonl_logging (22)

mutants/src: structured_jsonl_logging groups 3 files (c, h) around STRUCTURED_JSONL_LOGGING_H, structured_jsonl_logging_process, structured_jsonl_logging_process, structured_jsonl_logging_process. Auto-generated implementation for contract: Structured JSONL Logging

Related Classes/Methods:

Files

mutants/src: tls_client_certificate_authentication (23)

mutants/src: tls_client_certificate_authentication groups 3 files (c, h) around TLS_CLIENT_CERTIFICATE_AUTHENTICATION_H, tls_client_certificate_authentication_process, tls_client_certificate_authentication_process, tls_client_certificate_authentication_process. Auto-generated implementation for contract: TLS Client Certificate Authentication

Related Classes/Methods:

Files

mutants/src: unified_config_schema (24)

mutants/src: unified_config_schema groups 3 files (c, h) around UNIFIED_CONFIG_SCHEMA_H, unified_config_schema_process, unified_config_schema_process, unified_config_schema_process. Auto-generated implementation for contract: Unified Config Schema

Related Classes/Methods:

Files

include: config_autogen (25)

include: config_autogen groups 2 files (c, h) around BSB_CONFIG_AUTOGEN_H, bsb_c2_t, bsb_crypto_t, bsb_timing_t, bsb_network_t. slurp: Auto-generated C config parser from config/schema.json DO NOT EDIT MANUALLY...

Related Classes/Methods:

Files