Lucene search
+L

Export passive ICS report

🗓️ 10 Jul 2026 11:31:42Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 3 Views

KittySploit exports passive ICS reports and syncs discovered OT assets to the workspace.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import json
import os
import shutil

from kittysploit import *
from lib.protocols.ics.report import save_report


class Module(Post):
    __info__ = {
        "name": "Export passive ICS report",
        "description": (
            "Loads a JSON report produced by auxiliary/scanner/ics/passive_sniffer "
            "and optionally copies it or syncs discovered OT assets to the workspace."
        ),
        "author": "KittySploit Team",
        "tags": ["ics", "ot", "report", "passive", "gather"],
    'agent': {
        'risk': '',
        'effects': [],
        'expected_requests': 1,
        'reversible': True,
        'approval_required': False,
        'produces': ['tech_hints', 'risk_signals', 'endpoints'],
        'cost': 1.5,
        'noise': 0.5,
        'value': 1.0,
        'requires':         {'min_endpoints': 0,
         'min_params': 0,
         'tech_hints_any': [],
         'tech_hints_all': [],
         'specializations_any': [],
         'risk_signals_any': [],
         'auth_session': False,
         'capabilities_any': ['ot_assets'],
         'capabilities_all': [],
         'confidence_min': {},
         'confidence_min_any': {},
         'endpoint_pattern_any': [],
         'param_any': [],
         'api_surface_ready': False},
        'chain':         {'produces_capabilities': [{'capability': 'ot_assets', 'from_detail': ''}],
         'consumes_capabilities': [],
         'option_bindings': {},
         'suggested_followups': []},
    },
    }

    report_file = OptFile("", "Path to passive sniffer JSON report", True)
    output_file = OptString("", "Optional destination path for a report copy", False)
    sync_workspace = OptBool(True, "Sync OT assets from the report into the workspace", False)

    def check(self):
        path = str(self.report_file or "").strip()
        if not path or not os.path.isfile(path):
            print_error(f"Report file not found: {self.report_file}")
            return False
        try:
            with open(path, "r", encoding="utf-8") as handle:
                json.load(handle)
            return True
        except Exception as exc:
            print_error(f"Invalid JSON report: {exc}")
            return False

    def run(self):
        source = str(self.report_file).strip()
        with open(source, "r", encoding="utf-8") as handle:
            report = json.load(handle)

        summary = report.get("summary") or {}
        print_info(f"Report: {source}")
        print_info(f"  Devices: {summary.get('device_count', len(report.get('devices') or []))}")
        print_info(f"  Findings: {summary.get('finding_count', len(report.get('findings') or []))}")
        print_info(f"  Flows: {summary.get('flow_count', len(report.get('flows') or []))}")

        destination = str(self.output_file or "").strip()
        if destination:
            os.makedirs(os.path.dirname(destination) or ".", exist_ok=True)
            if destination.endswith(".json"):
                save_report(destination, report)
            else:
                shutil.copy2(source, destination)
            print_success(f"Report exported to {destination}")

        if bool(self.sync_workspace) and self.framework:
            try:
                from core.workspace_intel import WorkspaceIntelStore

                saved = WorkspaceIntelStore(self.framework).record_ics_passive_scan(report)
                print_success(f"Workspace updated: {saved} ICS service record(s) saved")
            except Exception as exc:
                print_warning(f"Could not sync workspace: {exc}")

        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Aug 2026 20:51Current
5.9Medium risk
Vulners AI Score5.9
3