Agent KB_modules_p12 - grisuno/LazyOwn GitHub Wiki

Subsystem: modules (page 12 of 14)

Previous: KB_modules_p11.md

modules/privesc_predictor.py

  • Doc: Crystal Ball — privilege escalation vector prediction engine.
  • Layer: utility
  • Language: py
  • Symbols:
    • PrivescVector (class, line 97) class PrivescVector
    • SystemProfile (class, line 114) class SystemProfile
    • _parse_kernel_version (function, line 136) def _parse_kernel_version(version_str)
    • _parse_version_from_range (function, line 153) def _parse_version_from_range(range_str)
    • parse_linpeas_output (function, line 165) def parse_linpeas_output(text)
    • parse_winpeas_output (function, line 218) def parse_winpeas_output(text)
    • match_known_cves (function, line 249) def match_known_cves(profile)
    • suid_vectors (function, line 287) def suid_vectors(profile)
    • capability_vectors (function, line 361) def capability_vectors(profile)
    • group_vectors (function, line 463) def group_vectors(profile)
    • sudo_vectors (function, line 501) def sudo_vectors(profile)
    • cron_vectors (function, line 578) def cron_vectors(profile)
    • _load_gtfobins_map (function, line 617) def _load_gtfobins_map()
    • _try_llm_analysis (function, line 655) def _try_llm_analysis(profile)
    • analyze_privesc (function, line 742) def analyze_privesc(filepath, text)
    • format_crystal_ball_output (function, line 827) def format_crystal_ball_output(result)
    • main (function, line 908) def main()
  • Depends on: core/console.py, modules/llm_factory.py
  • Imported by: cli/commands/crystal_ball.py

modules/professional_report.py

  • Doc: Professional Red Team Report Generator.
  • Layer: utility
  • Language: py
  • Symbols:
    • ReportFinding (class, line 87) class ReportFinding
    • ReportMetadata (class, line 102) class ReportMetadata
    • RedTeamReportGenerator (class, line 114) class RedTeamReportGenerator
    • __init__ (method, line 173) def __init__(self, include_credentials)
    • collect_data (method, line 179) def collect_data(self)
    • classify_findings (method, line 217) def classify_findings(self, data)
    • generate (method, line 244) def generate(self, output_dir, output_format, client_name, engagement_type, with_ai, ai_backend)
    • _generate_html (method, line 298) def _generate_html(self, out_path, timestamp)
    • _generate_markdown (method, line 450) def _generate_markdown(self, out_path, timestamp)
    • _generate_json (method, line 513) def _generate_json(self, out_path, timestamp)
    • _html_to_pdf (method, line 552) def _html_to_pdf(self, html_path)
    • _classify_services (method, line 585) def _classify_services(self, services, hosts)
    • _classify_vulnerabilities (method, line 640) def _classify_vulnerabilities(self, vulns, hosts)
    • _classify_credentials (method, line 682) def _classify_credentials(self, credentials, hosts)
    • _classify_sessions (method, line 758) def _classify_sessions(self, sessions, hosts)
    • _load_json (method, line 805) def _load_json(self, filename)
    • _extract_scope (method, line 822) def _extract_scope(self, data)
    • collect_command_history (method, line 841) def collect_command_history(self, max_entries)
    • collect_loot_summary (method, line 865) def collect_loot_summary(self)
    • _accumulate_loot (method, line 893) def _accumulate_loot(self, summary, path)
    • generate_executive_summary (method, line 911) def generate_executive_summary(self, data, with_ai, ai_backend)
    • _ai_draft_summary (method, line 956) def _ai_draft_summary(self, data, fallback, backend)
  • Depends on: modules/llm_factory.py
  • Imported by: tests/test_bdd_infra_range_report.py, tests/test_infra_disposable.py

modules/r.sh

  • Doc: Obtener la versión del kernel actual
  • Layer: utility
  • Language: sh
  • Symbols:
    • download_kernel_sources (function, line 10)
  • Imported by: static/js/quill-2.0.3.js::c, static/js/quill-2.0.3.js::h, static/js/quill-2.0.3.js::i, static/js/quill-2.0.3.js::o, static/js/quill-2.0.3.js::s, static/js/quill-2.0.3.js::u, static/js/xterm.js::a, static/js/xterm.js::n, static/js/xterm.js::o

modules/reactive_engine.py

  • Doc: modules/reactive_engine.py
  • Layer: utility
  • Language: py
  • Symbols:
    • _default_config_loader (function, line 42) def _default_config_loader()
    • Signal (class, line 69) class Signal
    • ReactiveDecision (class, line 80) class ReactiveDecision
    • AbstractSignalMatcher (class, line 97) class AbstractSignalMatcher(ABC)
    • AVBlockedMatcher (class, line 102) class AVBlockedMatcher(AbstractSignalMatcher)
    • CredentialFoundMatcher (class, line 147) class CredentialFoundMatcher(AbstractSignalMatcher)
    • PrivescHintMatcher (class, line 174) class PrivescHintMatcher(AbstractSignalMatcher)
    • NewHostMatcher (class, line 209) class NewHostMatcher(AbstractSignalMatcher)
    • ServiceVersionMatcher (class, line 232) class ServiceVersionMatcher(AbstractSignalMatcher)
    • ShellErrorMatcher (class, line 262) class ShellErrorMatcher(AbstractSignalMatcher)
    • LateralOpportunityMatcher (class, line 293) class LateralOpportunityMatcher(AbstractSignalMatcher)
    • DataOfInterestMatcher (class, line 323) class DataOfInterestMatcher(AbstractSignalMatcher)
    • ParquetAdvisor (class, line 389) class ParquetAdvisor
    • EvasionAdvisor (class, line 481) class EvasionAdvisor
    • PrivescAdvisor (class, line 537) class PrivescAdvisor
    • SemanticContextAdvisor (class, line 632) class SemanticContextAdvisor
    • ReactiveEngine (class, line 804) class ReactiveEngine
    • get_engine (function, line 977) def get_engine()
    • match (method, line 99) def match(self, output, context)
    • match (method, line 128) def match(self, output, context)
    • match (method, line 159) def match(self, output, context)
    • match (method, line 192) def match(self, output, context)
    • match (method, line 214) def match(self, output, context)
    • match (method, line 247) def match(self, output, context)
    • match (method, line 276) def match(self, output, context)
    • match (method, line 307) def match(self, output, context)
    • match (method, line 349) def match(self, output, context)
    • __init__ (method, line 395) def __init__(self, root)
    • _load (method, line 402) def _load(self)
    • gtfobins_for (method, line 421) def gtfobins_for(self, binary)
    • lolbas_for (method, line 434) def lolbas_for(self, binary)
    • technique_commands_for (method, line 448) def technique_commands_for(self, platform, keyword)
    • suggest (method, line 504) def suggest(self, signals, platform)
    • suggest (method, line 565) def suggest(self, signals, platform, parquet)
    • __init__ (method, line 644) def __init__(self, rag, config_loader, min_score, query_limit)
    • _load_rag (method, line 671) def _load_rag(self)
    • _enabled (method, line 697) def _enabled(self)
    • _extract_verb (method, line 715) def _extract_verb(source)
    • suggest (method, line 734) def suggest(self, output, command, platform, context)
    • __init__ (method, line 810) def __init__(self, matchers, evasion, privesc, parquet, semantic)
    • analyse (method, line 835) def analyse(self, output, command, platform, context)
    • top_decision (method, line 958) def top_decision(self, output, command, platform, context)
  • Depends on: core/config.py, core/logging.py, modules/session_rag.py
  • Imported by: skills/autonomous_daemon.py, skills/lazyown_groq_agents.py, skills/lazyown_mcp.py, skills/toposwarm_autonomous.py, tests/test_core_modules.py, tests/test_reactive_engine_semantic.py, tests/test_reactive_lateral_data.py

modules/recommender.py

  • Doc: LazyOwn Smart Command Recommender
  • Layer: utility
  • Language: py
  • Symbols:
    • _build_user_prompt (function, line 55) def _build_user_prompt(state)
    • _call_ai (function, line 97) def _call_ai(api_key, user_prompt)
    • recommend (function, line 143) def recommend(state, api_key)
    • recommend_and_save (function, line 163) def recommend_and_save(api_key)
  • Depends on: modules/ai_fallback.py, modules/session_state.py
  • Imported by: skills/lazyown_mcp.py

modules/redteam_gym.py

  • Doc: Red Team Gym — gamified pentest training mode.
  • Layer: utility
  • Language: py
  • Symbols:
    • GymAttempt (class, line 282) class GymAttempt
    • _ensure_gym_dir (function, line 298) def _ensure_gym_dir()
    • _load_leaderboard (function, line 303) def _load_leaderboard()
    • _save_leaderboard (function, line 319) def _save_leaderboard(board)
    • _get_username (function, line 330) def _get_username()
    • list_challenges (function, line 357) def list_challenges()
    • start_challenge (function, line 378) def start_challenge(challenge_id)
    • submit_challenge (function, line 448) def submit_challenge(techniques_used, success)
    • _calc_speed_score (function, line 533) def _calc_speed_score(elapsed_seconds, max_bonus)
    • _calc_stealth_score (function, line 554) def _calc_stealth_score(techniques, max_bonus)
    • _calc_technique_score (function, line 570) def _calc_technique_score(techniques, chal, max_bonus)
    • _update_leaderboard (function, line 592) def _update_leaderboard(attempt)
    • _award_gym_elo (function, line 636) def _award_gym_elo(username, elo_bonus)
    • _get_rank (function, line 662) def _get_rank(username)
    • show_leaderboard (function, line 679) def show_leaderboard(top_n)
    • get_active_challenge (function, line 706) def get_active_challenge()
    • record_external_attempt (function, line 736) def record_external_attempt(challenge_id, success, elo_bonus, techniques)
    • main (function, line 790) def main()
  • Depends on: cli/engagement_hooks.py, modules/cli_auth.py
  • Imported by: cli/commands/redteam_gym.py, modules/exploitgym_gym.py, tests/test_infra_disposable.py

modules/reflective_dll.py

  • Doc: Reflective DLL loading — load PE from memory without touching disk.
  • Layer: utility
  • Language: py
  • Symbols:
    • PEHeader (class, line 37) class PEHeader
    • DataDirectory (class, line 70) class DataDirectory
    • SectionHeader (class, line 83) class SectionHeader
    • ImportDescriptor (class, line 104) class ImportDescriptor
    • ReflectiveLoaderConfig (class, line 121) class ReflectiveLoaderConfig
    • PEParser (class, line 142) class PEParser
    • ReflectiveLoader (class, line 464) class ReflectiveLoader
    • __init__ (method, line 151) def __init__(self, pe_data)
    • parse_file_header (method, line 166) def parse_file_header(self)
    • parse_sections (method, line 208) def parse_sections(self, num_sections)
    • parse_data_directories (method, line 243) def parse_data_directories(self, num_entries)
    • rva_to_offset (method, line 265) def rva_to_offset(self, rva, sections)
    • parse_imports (method, line 280) def parse_imports(self, import_dir, sections)
    • parse_relocations (method, line 326) def parse_relocations(self, reloc_dir, sections)
    • parse_exports (method, line 374) def parse_exports(self, export_dir, sections)
    • _read_asciiz_at_rva (method, line 417) def _read_asciiz_at_rva(self, rva, sections)
    • _parse_thunk_names (method, line 426) def _parse_thunk_names(self, thunk_rva, sections)
    • is_64bit (method, line 456) def is_64bit(self)
    • raw_data (method, line 460) def raw_data(self)
    • __init__ (method, line 492) def __init__(self, pe_data, config)
    • sha256 (method, line 505) def sha256(self)
    • architecture (method, line 510) def architecture(self)
    • required_imports (method, line 515) def required_imports(self)
    • plan_injection (method, line 526) def plan_injection(self)
    • generate_c_stub (method, line 588) def generate_c_stub(self)
    • generate_powershell_stub (method, line 666) def generate_powershell_stub(self)
    • summarize (method, line 685) def summarize(self)

modules/resource_script.py

  • Doc: Enhanced resource script engine — variables, conditionals, loops, macros.
  • Layer: utility
  • Language: py
  • Symbols:
    • ScriptError (class, line 76) class ScriptError(RuntimeError)
    • ScriptContext (class, line 82) class ScriptContext
    • ResourceScriptEngine (class, line 268) class ResourceScriptEngine
    • __init__ (method, line 89) def __init__(self, shell_params, on_command, on_print)
    • _resolve (method, line 124) def _resolve(self, text)
    • print (method, line 138) def print(self, msg)
    • run_command (method, line 147) def run_command(self, cmd)
    • _skip (method, line 165) def _skip(self)
    • _lookup (method, line 168) def _lookup(self, name)
    • _resolve_operand (method, line 183) def _resolve_operand(self, operand)
    • eval_condition (method, line 191) def eval_condition(self, raw_condition)
    • _compare (method, line 220) def _compare(left, op, right)
    • _jump_past (method, line 251) def _jump_past(self, open_res, close_re)
    • __init__ (method, line 276) def __init__(self, context)
    • execute (method, line 279) def execute(self, script_path)
    • execute_lines (method, line 293) def execute_lines(self, lines, source)
    • execute_string (method, line 327) def execute_string(self, script)
    • _extract_macros (method, line 331) def _extract_macros(self, lines)
    • _execute_line (method, line 347) def _execute_line(self, raw)
    • _call_macro (method, line 537) def _call_macro(self, name, args)
    • _repl (function, line 125) def _repl(m)
  • Depends on: core/safe_exec.py
  • Imported by: cli/commands/resource_scripting.py, tests/test_resource_script.py, tests/test_security_hardening_v3.py

modules/reverse-shell.c

  • Doc: reverse_shell_init: call_usermodehelper function is used to create user mode processes from...
  • Layer: utility
  • Language: c
  • Symbols:
    • reverse_shell_init (function, line 12) static int __init reverse_shell_init(void)
    • reverse_shell_exit (function, line 16) static void __exit reverse_shell_exit(void)

modules/revshell.c

  • Layer: utility
  • Language: c
  • Symbols:
    • xlAutoOpen (function, line 5) void __cdecl xlAutoOpen()
    • DllMain (function, line 10) BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)

modules/rich_tui.py

  • Doc: Rich-based live TUI dashboard for LazyOwn campaign monitoring.
  • Layer: utility
  • Language: py
  • Symbols:
    • RichDashboard (class, line 66) class RichDashboard
    • __init__ (method, line 74) def __init__(self, dashboard_engine, refresh_interval, live)
    • run (method, line 96) def run(self)
    • stop (method, line 132) def stop(self)
    • _render (method, line 137) def _render(self)
    • _keyboard_listener (method, line 146) def _keyboard_listener(self)
    • _render_layout (method, line 168) def _render_layout(self, snapshot)
    • _render_header (method, line 193) def _render_header(self, snapshot)
    • _render_topology (method, line 221) def _render_topology(self, snapshot)
    • _render_recommendations (method, line 261) def _render_recommendations(self, snapshot)
    • _render_pivots_beacons (method, line 321) def _render_pivots_beacons(self, snapshot)
    • _render_pivots (method, line 337) def _render_pivots(self, snapshot)
    • _render_beacons (method, line 372) def _render_beacons(self, snapshot)
    • _render_shortcuts (method, line 413) def _render_shortcuts(self)
  • Depends on: core/console.py, modules/dashboard_engine.py
  • Imported by: cli/commands/pwn.py

modules/rl_trainer.py

  • Doc: modules/rl_trainer.py
  • Layer: utility
  • Language: py
  • Symbols:
    • RLConfig (class, line 84) class RLConfig
    • IStateEncoder (class, line 101) class IStateEncoder(ABC)
    • BucketedStateEncoder (class, line 114) class BucketedStateEncoder(IStateEncoder)
    • QValueStore (class, line 150) class QValueStore
    • EpsilonTracker (class, line 215) class EpsilonTracker
    • RLTrainer (class, line 267) class RLTrainer
    • get_trainer (function, line 425) def get_trainer(config)
    • encode (method, line 105) def encode(self, task_type, engagement_phase, recent_reward_ema)
    • encode (method, line 131) def encode(self, task_type, engagement_phase, recent_reward_ema)
    • __init__ (method, line 156) def __init__(self, path, optimistic_init)
    • get (method, line 168) def get(self, state, action)
    • set (method, line 172) def set(self, state, action, value)
    • max_q (method, line 176) def max_q(self, state, candidates)
    • argmax (method, line 182) def argmax(self, state, candidates)
    • save (method, line 188) def save(self)
    • _persist (method, line 192) def _persist(self)
    • _load (method, line 200) def _load(self)
    • __init__ (method, line 218) def __init__(self, start, minimum, decay, path)
    • epsilon (method, line 233) def epsilon(self)
    • step (method, line 236) def step(self)
    • _save (method, line 241) def _save(self)
    • _load (method, line 250) def _load(self)
    • __init__ (method, line 284) def __init__(self, config, state_encoder, q_store, epsilon_tracker)
    • encode_state (method, line 304) def encode_state(self, task_type, engagement_phase, recent_reward_ema)
    • select_action (method, line 313) def select_action(self, state, candidates, force_exploit)
    • update (method, line 347) def update(self, state, action, reward, next_state, candidates, detection_prob)
    • best_expert_for_state (method, line 389) def best_expert_for_state(self, state, candidates)
    • q_values_for_state (method, line 393) def q_values_for_state(self, state, candidates)
    • save (method, line 397) def save(self)
    • epsilon (method, line 402) def epsilon(self)
    • _penalize (method, line 407) def _penalize(self, reward, detection_prob)
  • Depends on: core/logging.py
  • Imported by: modules/lesson_ingestor.py, modules/loop_ai_bridge.py, skills/autonomous_daemon.py, skills/swan_agent.py, tests/test_moe_rl_swan.py

modules/saas_attacks.py

  • Doc: SaaS attacks — Microsoft 365, Google Workspace, Salesforce, ServiceNow exploitation.
  • Layer: utility
  • Language: py
  • Symbols:
    • SaaSConfig (class, line 49) class SaaSConfig
    • SaaSEnumerationTools (class, line 71) class SaaSEnumerationTools
    • SaaSAttackEngine (class, line 152) class SaaSAttackEngine
    • microsoft365_commands (method, line 75) def microsoft365_commands()
    • google_workspace_commands (method, line 100) def google_workspace_commands()
    • salesforce_commands (method, line 118) def salesforce_commands()
    • servicenow_commands (method, line 135) def servicenow_commands()
    • __init__ (method, line 163) def __init__(self, config)
    • enumerate_all (method, line 166) def enumerate_all(self)
    • m365_ews_mail_search (method, line 179) def m365_ews_mail_search(self, search_term)
    • google_workspace_domain_wide_delegation (method, line 228) def google_workspace_domain_wide_delegation(self)
    • salesforce_report_mining (method, line 257) def salesforce_report_mining(self)
    • slack_data_mining (method, line 286) def slack_data_mining(self)
    • detect_external_sharing (method, line 327) def detect_external_sharing(self)
    • summary (method, line 352) def summary(self)
  • Imported by: cli/commands/cloud_attacks.py

modules/search.py

  • Doc: Autor: Gris Iscomeback Correo electrónico: grisiscomeback[at]gmail[dot]com Fecha de creación...
  • Layer: utility
  • Language: py
  • Imported by: static/js/showdown-2.1.0.min.js

modules/security_sanitizers.py

  • Doc: Security sanitizers shared across the LazyOwn framework.
  • Layer: utility
  • Language: py
  • Symbols:
    • SecurityConfig (class, line 37) class SecurityConfig
    • HeaderValueSanitizer (class, line 101) class HeaderValueSanitizer
    • SessionPathResolver (class, line 162) class SessionPathResolver
    • BindAddressResolver (class, line 256) class BindAddressResolver
    • CommandRedactor (class, line 318) class CommandRedactor
    • OutputSanitizer (class, line 406) class OutputSanitizer
    • build_default_config (function, line 477) def build_default_config(payload)
    • from_payload (method, line 68) def from_payload(cls, payload)
    • __init__ (method, line 115) def __init__(self, config)
    • is_valid_name (method, line 129) def is_valid_name(self, name)
    • sanitize_value (method, line 139) def sanitize_value(self, value)
    • __init__ (method, line 174) def __init__(self, base_dir, config)
    • base_dir (method, line 192) def base_dir(self)
    • resolve (method, line 196) def resolve(self, untrusted_name)
    • file_exists (method, line 238) def file_exists(self, untrusted_name)
    • __init__ (method, line 269) def __init__(self, config, preferred_addresses)
    • _is_well_formed (method, line 285) def _is_well_formed(self, candidate)
    • resolve (method, line 298) def resolve(self)
    • __init__ (method, line 333) def __init__(self, config)
    • _display_username (method, line 345) def _display_username(self, username)
    • _display_password (method, line 353) def _display_password(self, password)
    • render (method, line 359) def render(self, template, substitutions, username, password)
    • __init__ (method, line 418) def __init__(self, config)
    • sanitize (method, line 429) def sanitize(self, value)
    • _sanitize (method, line 433) def _sanitize(self, value, depth)
  • Imported by: lazyc2.py, lazyc2/blueprints/phishing.py, modules/lazyown_bprfuzzer.py, pwntomate.py, tests/test_security_sanitizers.py

modules/selfupdate.py

  • Doc: Guarded self-update for the LazyOwn working tree.
  • Layer: utility
  • Language: py
  • Symbols:
    • ReleaseArtifact (class, line 24) class ReleaseArtifact
    • Updater (class, line 38) class Updater
    • _run (function, line 85) def _run(argv, cwd, timeout)
    • _git (function, line 90) def _git(args, runner, cwd, timeout)
    • current_branch (function, line 96) def current_branch(runner)
    • dirty (function, line 102) def dirty(runner)
    • check (function, line 108) def check(branch, runner)
    • apply (function, line 140) def apply(branch, confirm, runner)
    • __init__ (method, line 47) def __init__(self, live_path)
    • verify (method, line 52) def verify(self, artifact)
    • stage (method, line 57) def stage(self, artifact, directory)
    • rollback (method, line 77) def rollback(self)
  • Imported by: cli/commands/lazyops.py, modules/lazy_loop.py, tests/test_autonomous_ops.py, tests/test_lazy_loop.py

modules/session_cleanup.py

  • Doc: Ephemeral infrastructure cleanup on shell exit.
  • Layer: utility
  • Language: py
  • Symbols:
    • find_cloudflared_pids (function, line 28) def find_cloudflared_pids(ps_output)
    • _run_quiet (function, line 49) def _run_quiet(argv, timeout)
    • _compose_down (function, line 66) def _compose_down(compose_file, label)
    • stop_cloudflared_processes (function, line 94) def stop_cloudflared_processes()
    • cleanup_ephemeral_infra (function, line 120) def cleanup_ephemeral_infra()
  • Imported by: lazyown.py, tests/test_infra_disposable.py

modules/session_rag.py

  • Doc: — ChromaDB-backed RAG over sessions/ artefacts.
  • Layer: utility
  • Language: py
  • Symbols:
    • _chunk_text (function, line 88) def _chunk_text(text, size, overlap)
    • _KeywordFallback (class, line 103) class _KeywordFallback
    • _RagState (class, line 168) class _RagState
    • SessionRAG (class, line 188) class SessionRAG
    • get_rag (function, line 535) def get_rag()
    • __init__ (method, line 111) def __init__(self)
    • load (method, line 115) def load(self, path)
    • save (method, line 126) def save(self, path)
    • add (method, line 136) def add(self, doc_id, text, meta)
    • query (method, line 146) def query(self, query_text, n)
    • count (method, line 156) def count(self)
    • reset (method, line 159) def reset(self)
    • load (method, line 172) def load(cls)
    • save (method, line 181) def save(self)
    • __init__ (method, line 191) def __init__(self)
    • _init_backend (method, line 202) def _init_backend(self)
    • _iter_artefacts (method, line 248) def _iter_artefacts(self)
    • _index_file (method, line 265) def _index_file(self, path, collection_key)
    • index_new (method, line 301) def index_new(self)
    • index_parquet_sources (method, line 322) def index_parquet_sources(self, force)
    • index_all (method, line 411) def index_all(self)
    • query (method, line 439) def query(self, query_text, n, collection)
    • context_for_step (method, line 489) def context_for_step(self, phase, target, cmd, n)
    • stats (method, line 509) def stats(self)
  • Depends on: core/logging.py
  • Imported by: cli/commands/mcp_bridge.py, modules/reactive_engine.py, skills/lazyown_groq_agents.py, skills/lazyown_mcp.py, tests/integration_autonomous_flow.py, tests/test_core_modules.py

modules/session_reader.py

  • Doc: modules/session_reader.py
  • Layer: utility
  • Language: py
  • Symbols:
    • ImplantRecord (class, line 39) class ImplantRecord
    • CampaignTask (class, line 74) class CampaignTask
    • SessionSummary (class, line 85) class SessionSummary
    • AbstractReader (class, line 127) class AbstractReader(ABC)
    • ImplantCSVReader (class, line 137) class ImplantCSVReader(AbstractReader)
    • CommandOutputReader (class, line 193) class CommandOutputReader(AbstractReader)
    • DiscoveredHostReader (class, line 214) class DiscoveredHostReader(AbstractReader)
    • TaskReader (class, line 232) class TaskReader(AbstractReader)
    • TaskWriter (class, line 257) class TaskWriter
    • SessionAggregator (class, line 313) class SessionAggregator
    • get_aggregator (function, line 347) def get_aggregator()
    • is_privileged (method, line 55) def is_privileged(self)
    • platform (method, line 60) def platform(self)
    • ip_list (method, line 69) def ip_list(self)
    • active_client_ids (method, line 94) def active_client_ids(self)
    • privileged_sessions (method, line 101) def privileged_sessions(self)
    • unprivileged_sessions (method, line 108) def unprivileged_sessions(self)
    • latest_for (method, line 114) def latest_for(self, client_id)
    • task_by_status (method, line 118) def task_by_status(self, status)
    • read (method, line 129) def read(self, sessions_dir)
    • read (method, line 157) def read(self, sessions_dir)
    • read (method, line 199) def read(self, sessions_dir)
    • read (method, line 217) def read(self, sessions_dir)
    • read (method, line 235) def read(self, sessions_dir)
    • __init__ (method, line 260) def __init__(self, sessions_dir)
    • append (method, line 263) def append(self, title, description, operator, status)
    • update_status (method, line 288) def update_status(self, task_id, status)
    • __init__ (method, line 319) def __init__(self, implant_reader, output_reader, host_reader, task_reader)
    • aggregate (method, line 331) def aggregate(self, sessions_dir)
  • Imported by: skills/lazyown_groq_agents.py, skills/lazyown_mcp.py, tests/test_core_modules.py

modules/session_state.py

  • Doc: LazyOwn Session State
  • Layer: utility
  • Language: py
  • Symbols:
    • _detect_phase (function, line 50) def _detect_phase(event_types)
    • _read_last_commands (function, line 75) def _read_last_commands(n)
    • _read_events (function, line 93) def _read_events(n)
    • _extract_creds_from_events (function, line 118) def _extract_creds_from_events(events)
    • _extract_hosts (function, line 133) def _extract_hosts(rows, payload)
    • _summarise_commands (function, line 175) def _summarise_commands(rows)
    • build_state (function, line 189) def build_state()
    • refresh (function, line 240) def refresh()
    • load (function, line 251) def load()
  • Imported by: modules/recommender.py, skills/heartbeat.py, skills/lazyown_daemon.py, skills/lazyown_mcp.py

modules/sidequestion.py

  • Doc: Isolated side-question answering against immutable snapshots.
  • Layer: utility
  • Language: py
  • Symbols:
    • SideConfig (class, line 19) class SideConfig
    • Snapshot (class, line 32) class Snapshot
    • SideQuestion (class, line 42) class SideQuestion
    • SideQuestionService (class, line 52) class SideQuestionService
    • __init__ (method, line 55) def __init__(self, answer_fn, config)
    • capture (method, line 66) def capture(self, task_id, text)
    • ask (method, line 75) def ask(self, snapshot_id, question)
    • cancel (method, line 104) def cancel(self, request_id)
    • history (method, line 113) def history(self, limit, before)
  • Imported by: cli/commands/ai.py, tests/test_autonomous_ops.py

Next: KB_modules_p13.md