Repository navigation
community_5_modules_world_model
grisun0 edited this page Oct 26, 2026
·
1 revision
Community 5 | 63 files | cohesion 0.40
This community groups 63 file(s) rooted at modules with dominant language py (cohesion 0.40). Central symbols: ADCSCertipyWrapper, C2Builder, C2Profile, C2Server, C2SessionCommandSet, CertificateTemplate, ChainResult, Completed. Core file: modules/world_model.py (70 symbols). Documented purpose: C2 session CommandSet — headless server, agent deploy, exec, loot. Every command is non-interactive and loop-routable: explicit arguments, JSON-able results on.
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
modules/adcs_attacks.py |
py | utility | 14 | yes |
modules/atomic_exploit_bridge.py |
py | utility | 37 | yes |
modules/attack_surface3d.py |
py | utility | 11 | yes |
modules/beacon_recon.py |
py | utility | 6 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
tests/test_attack_surface3d.py |
py | testing | 8 | yes |
tests/test_bdd_infra_range_report.py |
py | testing | 5 | yes |
tests/test_beacon_recon_sink.py |
py | testing | 18 | yes |
tests/test_c2_surfaces.py |
py | testing | 12 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
modules/sinks/attack_graph.py |
py | utility | 1 | yes |
modules/sinks/c2_surfaces.py |
py | utility | 1 | yes |
modules/sinks/intel_graph.py |
py | utility | 1 | yes |
modules/sinks/killchain.py |
py | utility | 1 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/commands/c2_session.py |
py | utility | 10 | yes |
cli/commands/database.py |
py | data_access | 16 | yes |
cli/commands/exploit_migrated.py |
py | utility | 52 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/surface_graph.py |
py | utility | 33 | yes |
cli/surface_tui.py |
py | utility | 19 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
core/autonomous.py |
py | utility | 3 | yes |
core/session_secrets.py |
py | utility | 4 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
contrib/legacy/lazydeepseekcli.py |
py | presentation | 16 | yes |
... and 43 more files in this community.
-
_lab_auth(function,cli/commands/c2_session.py:24)def _lab_auth()- Return (user, password, https_port, http_port) for the lab C2. -
_fresh_lab_creds(function,cli/commands/c2_session.py:54)def _fresh_lab_creds()- Generate fully random lab operator credentials (no fixed affixes). -
_server(function,cli/commands/c2_session.py:65)def _server(user, password, port)- Build a C2Server bound to lab auth (generates lab creds when needed). -
_issue(function,cli/commands/c2_session.py:83)def _issue(client_id, command, auth, https_port)- POST one command to the C2 issue endpoint (no prompts, ever). -
C2SessionCommandSet(class,cli/commands/c2_session.py:108)class C2SessionCommandSet(LazyOwnCommandSet)- Headless C2 lifecycle + session ops: server, deploy, exec, loot. -
do_c2_server(method,cli/commands/c2_session.py:115)def do_c2_server(self, line)- Manage the headless C2 server (lab use). -
do_c2_reboot(method,cli/commands/c2_session.py:168)def do_c2_reboot(self, line)- Restart the headless C2 server with ROTATED operator credentials. -
do_c2_deploy(method,cli/commands/c2_session.py:249)def do_c2_deploy(self, line)- Deploy the malleable agent to a lab target (needs root shell primitive). -
do_c2_exec(method,cli/commands/c2_session.py:299)def do_c2_exec(self, line)- Run one command on a live C2 session and print its answer. -
do_c2_loot(method,cli/commands/c2_session.py:346)def do_c2_loot(self, line)- Exfiltrate a remote file through a live C2 session into sessions/loot/. -
DatabaseCommandSet(class,cli/commands/database.py:26)class DatabaseCommandSet(LazyOwnCommandSet)- Database commands for campaign state management. -
_get_db(method,cli/commands/database.py:32)def _get_db(self) -
_active_workspace(method,cli/commands/database.py:40)def _active_workspace(self) -
do_db_init(method,cli/commands/database.py:57)def do_db_init(self, line)- Initialize the database (creates schema if not exists). -
do_db_workspace(method,cli/commands/database.py:75)def do_db_workspace(self, line)- Manage workspaces (list, create, switch, delete). -
do_db_hosts(method,cli/commands/database.py:124)def do_db_hosts(self, line)- List or add hosts in the active workspace. -
do_db_services(method,cli/commands/database.py:185)def do_db_services(self, line)- List all services in the active workspace. -
do_db_vulns(method,cli/commands/database.py:213)def do_db_vulns(self, line)- List or add vulnerabilities. -
do_retest(method,cli/commands/database.py:267)def do_retest(self, line)- Re-verify a finding in an isolated session (LAZY retester). -
do_db_creds(method,cli/commands/database.py:349)def do_db_creds(self, line)- List or add credentials. -
do_db_loot(method,cli/commands/database.py:393)def do_db_loot(self, line)- List or add loot items. -
do_db_notes(method,cli/commands/database.py:433)def do_db_notes(self, line)- List or add notes. -
do_db_import(method,cli/commands/database.py:471)def do_db_import(self, line)- Import scan results into the database. -
do_db_export(method,cli/commands/database.py:509)def do_db_export(self, line)- Export database table to CSV. -
do_db_status(method,cli/commands/database.py:543)def do_db_status(self, line)- Show entity counts for the active workspace. -
shlex_split(function,cli/commands/database.py:560)def shlex_split(text)- Split text like shlex.split but handle empty strings gracefully. -
ExploitMigratedCommandSet(class,cli/commands/exploit_migrated.py:38)class ExploitMigratedCommandSet(LazyOwnCommandSet) -
do_cp(method,cli/commands/exploit_migrated.py:43)def do_cp(self, line)- Copies a file from the ExploitDB directory to the sessions directory. -
do_createcookie(method,cli/commands/exploit_migrated.py:84)def do_createcookie(self, line)- Creates acookie.txtfile in thesessionsdirectory with the specified cookie value. -
do_py3ttyup(method,cli/commands/exploit_migrated.py:128)def do_py3ttyup(self, line)- Copies a Python reverse shell command to the clipboard.
- Internal resolved imports (EXTRACTED): 161
- Cross-boundary resolved imports (EXTRACTED): 297
- [EXTRACTED] depends_on community 5 <-> 1 (strength 0.9): Extracted import edge crosses communities: cli/commands/c2_session.py imports cli/commands/_base.py.
- [EXTRACTED] depends_on community 7 <-> 5 (strength 0.9): Extracted import edge crosses communities: cli/commands/command_and_control_migrated.py imports modules/c2_builder.py.
- [EXTRACTED] depends_on community 5 <-> 4 (strength 0.9): Extracted import edge crosses communities: cli/commands/database.py imports modules/db.py.
- [EXTRACTED] depends_on community 5 <-> 0 (strength 0.9): Extracted import edge crosses communities: cli/commands/database.py imports skills/autonomous_daemon.py.
- [cycle]
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_orchestrator_feedback.py->modules/lazy_intel.py->modules/mediation/__init__.py->modules/mediation/chain_mediator.py->modules/lazy_loop.py->modules/loop_ai_bridge.py->skills/hive_mind.py->skills/lazyown_groq_agents.py->skills/lazyown_mcp.py->modules/exploitgym_gym.py->modules/redteam_gym.py->core/config.py - [cycle]
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_cli_bridge.py->modules/killchain.py->modules/world_model.py->core/hardening.py->core/credential_vault.py->core/config.py - [cycle]
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_cli_bridge.py->modules/killchain.py->modules/world_model.py->modules/cli_auth.py->cli/engagement_hooks.py->core/config.py - [cycle]
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_cli_bridge.py->modules/killchain.py->modules/world_model.py->core/hardening.py->core/config.py - [cycle]
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_cli_bridge.py->modules/killchain.py->modules/world_model.py->modules/cli_auth.py->core/config.py - [cycle]
modules/lazy_intel.py->modules/mediation/__init__.py->modules/mediation/chain_mediator.py->modules/lazy_loop.py->modules/loop_ai_bridge.py->skills/hive_mind.py->skills/lazyown_groq_agents.py->skills/lazyown_mcp.py->modules/sinks/routing.py->modules/lazy_intel.py - [cycle]
modules/atomic_exploit_bridge.py->modules/emulation_runner.py->modules/atomic_exploit_bridge.py - [cycle]
modules/atomic_exploit_bridge.py->modules/emulation_runner.py->modules/atomic_exploit_bridge.py - [cycle]
modules/atomic_exploit_bridge.py->modules/emulation_runner.py->modules/atomic_exploit_bridge.py - [cycle]
modules/atomic_exploit_bridge.py->modules/emulation_runner.py->modules/atomic_exploit_bridge.py - [cycle]
modules/atomic_exploit_bridge.py->modules/emulation_runner.py->modules/atomic_exploit_bridge.py - [layer strict]
tests/test_c2_surfaces.py(testing) ->contrib/legacy/lazydeepseekcli.py(presentation) - [dataflow UNCHECKED_ALLOC]
modules/c2_agent.py:204validate_client_idct: Result of allocator stored inctis never checked against NULL. - [dataflow UNCHECKED_ALLOC]
modules/c2_agent.py:256validate_client_iddata: Result of allocator stored indatais never checked against NULL. - [dataflow UNCHECKED_ALLOC]
modules/c2_agent.py:303validate_client_id_dn: Result of allocator stored in_dnis never checked against NULL.
- Why do 3 file(s) lack file-level docs (e.g.
tests/test_gym_ms2_cli.py)? What purpose do they serve? - Can the cycle
core/config.py->core/payload_schema.py->modules/llm_factory.py->modules/harness.py->modules/orchestrator_config.py->modules/auto_registry.py->modules/lazy_orchestrator_feedback.py->modules/lazy_intel.py->modules/mediation/__init__.py->modules/mediation/chain_mediator.py->modules/lazy_loop.py->modules/loop_ai_bridge.py->skills/hive_mind.py->skills/lazyown_groq_agents.py->skills/lazyown_mcp.py->modules/exploitgym_gym.py->modules/redteam_gym.pybe broken with an interface? - What would break if the most connected file in modules: world_model changed?
- Should modules: world_model be split, given cohesion 0.40?
cli/commands/c2_session.pycli/commands/database.pycli/commands/exploit_migrated.pycli/commands/lab.pycli/commands/redteam_gym.pycli/commands/surface.pycli/surface_graph.pycli/surface_tui.pycontrib/legacy/lazydeepseekcli.pycore/autonomous.pycore/session_secrets.pymodules/adcs_attacks.pymodules/atomic_exploit_bridge.pymodules/attack_surface3d.pymodules/beacon_recon.pymodules/c2_agent.pymodules/c2_builder.pymodules/c2_surfaces.pymodules/ctf_capture.pymodules/estorides_fusion.py- ... and 43 more
Generated offline by readmenator from commit a2fa9e276b96. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_autonomous_daemon
- community_10_core
- 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_tests
- community_17_scripts_journal
- community_18_modules_backdoor
- community_19_poc_tui
- community_1_cli_commands
- community_20_scripts_check_contract_manifest
- community_21_scripts_migrate_lazyown
- community_22_tools
- community_23_orphans
- community_2_cli
- community_3_modules_lazy_loop
- community_4_modules_lazyc2
- community_5_modules_world_model
- community_6_lazygui_panels
- community_7_modules_lazyown_facts
- community_8_static_js
- community_9_skills_claude_md_orchestrator
- 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_p24
- 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
- ARCHITECTURE_p8
- ARCHITECTURE_p9
- 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_guardrails
- 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_mediation
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p16
- 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_p18
- KB_tests_p19
- KB_tests_p2
- KB_tests_p20
- 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_p43
- SYMBOLS_p44
- SYMBOLS_p45
- SYMBOLS_p46
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes