Repository navigation
community_10_modules_surface_graph
grisun0 edited this page Oct 17, 2026
·
3 revisions
Community 10 | 15 files | cohesion 0.50
This community groups 15 file(s) rooted at modules with dominant language py (cohesion 0.50). Central symbols: DatabaseCommandSet, FindingRecord, RetestRecord, SurfaceCommandSet, SurfaceEdge, SurfaceExplorer, SurfaceGraph, SurfaceGraphBuilder. Core file: cli/surface_graph.py (33 symbols). Documented purpose: Database commands — workspace isolation, host/service/vuln management, nmap import, export, and status reporting. Mirrors the Metasploit db_* workflow. The.
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/commands/database.py |
py | data_access | 16 | yes |
cli/commands/surface.py |
py | utility | 3 | yes |
cli/surface_graph.py |
py | utility | 33 | yes |
cli/surface_tui.py |
py | utility | 19 | yes |
modules/attack_surface3d.py |
py | utility | 11 | yes |
modules/estorides_fusion.py |
py | utility | 11 | yes |
modules/finding_lifecycle.py |
py | utility | 26 | yes |
modules/intel_fusion.py |
py | utility | 23 | yes |
modules/osint_enrich.py |
py | utility | 13 | yes |
modules/surface_ops.py |
py | utility | 4 | yes |
tests/test_attack_surface3d.py |
py | testing | 8 | yes |
tests/test_estorides_fusion.py |
py | testing | 12 | yes |
tests/test_finding_lifecycle.py |
py | testing | 10 | yes |
tests/test_intel_fusion.py |
py | testing | 7 | yes |
tests/test_surface_graph.py |
py | testing | 13 | yes |
-
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. -
SurfaceCommandSet(class,cli/commands/surface.py:36)class SurfaceCommandSet(LazyOwnCommandSet)- Discovery scans and OSINT fusion for the attack surface. -
do_scandiscovery(method,cli/commands/surface.py:43)def do_scandiscovery(self, line)- Scan every discovery IP with operator confirmation. -
do_estorides_intel(method,cli/commands/surface.py:86)def do_estorides_intel(self, line)- Fuse estorides OSINT entities into the campaign intel graphs. -
_slug_host(function,cli/surface_graph.py:75)def _slug_host(ip)- Return the canonicalhost-<dotted-ip>id used by the web graph. -
_slug_port(function,cli/surface_graph.py:80)def _slug_port(host_id, port, protocol)- Return a stable port-node id rooted athost_id. -
SurfaceNode(class,cli/surface_graph.py:87)class SurfaceNode- A node in the network surface graph. -
to_dict(method,cli/surface_graph.py:102)def to_dict(self)- Return a JSON-serialisable view of the node. -
SurfaceEdge(class,cli/surface_graph.py:113)class SurfaceEdge- A directed edge between two surface nodes. -
to_dict(method,cli/surface_graph.py:120)def to_dict(self)- Return a JSON-serialisable view of the edge. -
SurfaceGraph(class,cli/surface_graph.py:126)class SurfaceGraph- Aggregate snapshot of nodes + edges discovered on disk. -
to_dict(method,cli/surface_graph.py:135)def to_dict(self)- Return a JSON-serialisable view (mirrors the web UI payload). -
stats(method,cli/surface_graph.py:146)def stats(self)- Return per-kind node counts plus edge count. -
children_of(method,cli/surface_graph.py:153)def children_of(self, node_id)- Return nodes thatnode_idpoints to via an outgoing edge. -
get(method,cli/surface_graph.py:165)def get(self, node_id)- Return the node withnode_idorNone.
- Internal resolved imports (EXTRACTED): 29
- Cross-boundary resolved imports (EXTRACTED): 28
- [EXTRACTED] depends_on community 10 <-> 0 (strength 0.9): Extracted import edge crosses communities: cli/commands/database.py imports cli/commands/_base.py.
- [EXTRACTED] depends_on community 10 <-> 1 (strength 0.9): Extracted import edge crosses communities: cli/commands/database.py imports modules/db.py.
- [EXTRACTED] depends_on community 10 <-> 4 (strength 0.9): Extracted import edge crosses communities: cli/commands/database.py imports skills/autonomous_daemon.py.
- No scoped security, taint, cycle, or layer risks.
- What would break if the most connected file in modules: surface_graph changed?
- Should modules: surface_graph be split, given cohesion 0.50?
cli/commands/database.pycli/commands/surface.pycli/surface_graph.pycli/surface_tui.pymodules/attack_surface3d.pymodules/estorides_fusion.pymodules/finding_lifecycle.pymodules/intel_fusion.pymodules/osint_enrich.pymodules/surface_ops.pytests/test_attack_surface3d.pytests/test_estorides_fusion.pytests/test_finding_lifecycle.pytests/test_intel_fusion.pytests/test_surface_graph.py
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