跳到正文
Skillpedia
测试35k · #8242

performing-ics-asset-discovery-with-claroty

它能做什么

这个工具可以帮你在工业(OT)网络中发现并列出所有设备。它结合被动监听和主动查询,能识别 PLC、RTU 和 HMI 等设备。

适用场景

  • ✓当你不清楚工业网络中到底有哪些设备时。
  • ✓当你需要准备设备清单,以符合 IEC 62443 等安全标准时。
  • ✓当你在现有工业环境中开始使用 Claroty xDome 时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-ics-asset-discovery-with-claroty/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-ics-asset-discovery-with-claroty/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“列出你在网络中发现的所有工业自动化设备。”

每周 5 个新技能,1 分钟读完。

工作原理

将 Claroty xDome 接入网络,让它“监听”网络流量。它还可以直接查询部分设备以获取更多详细信息,从而生成完整的设备清单。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Performing ICS Asset Discovery with Claroty

When to Use

  • When gaining initial visibility into an OT environment with unknown or poorly documented assets
  • When preparing for an IEC 62443 risk assessment requiring a complete asset inventory
  • When onboarding Claroty xDome into a brownfield industrial environment
  • When validating existing asset inventory against actual network communications
  • When identifying shadow OT devices or unauthorized connections in the control network

Do not use for IT-only asset discovery (use tools like Nessus or Qualys), for active scanning of sensitive PLC networks without vendor approval, or for environments where Claroty is not the deployed platform (see implementing-ot-network-traffic-analysis-with-nozomi).

Prerequisites

  • Claroty xDome SaaS subscription or on-premises deployment
  • Network TAP or SPAN port configured at OT network boundaries (Levels 1-3 of Purdue Model)
  • Claroty Edge collector deployed for safe active querying of hard-to-reach network segments
  • Integration credentials for CMDB tools (ServiceNow, BMC) if used
  • Network architecture diagram showing VLANs, switches, and firewall zones

Workflow

Step 1: Configure Passive Network Monitoring

Deploy Claroty sensors on SPAN ports to passively observe all OT network traffic without impacting operations.

#!/usr/bin/env python3
"""Claroty xDome Asset Discovery Configuration and Reporting Tool.

Automates the configuration of passive monitoring sensors and generates
asset inventory reports from Claroty xDome API.
"""

import json
import sys
import csv
from datetime import datetime
from typing import Optional

try:
    import requests
except ImportError:
    print("Install requests: pip install requests")
    sys.exit(1)


class ClarotyAssetDiscovery:
    """Interface with Claroty xDome API for ICS asset discovery."""

    def __init__(self, base_url: str, api_token: str, verify_ssl: bool = True):
        self.base_url = base_url.rstrip("/")
        self.session = requests.Session()
        self.session.headers.update({
            "Authorization": f"Bearer {api_token}",
            "Content-Type": "application/json",
            "Accept": "application/json",
        })
        self.session.verify = verify_ssl

    def get_sites(self):
        """Retrieve all monitored sites."""
        resp = self.session.get(f"{self.base_url}/api/v1/sites")
        resp.raise_for_status()
        return resp.json().get("sites", [])

    def get_assets(self, site_id: Optional[str] = None, asset_type: Optional[str] = None):
        """Retrieve discovered assets with optional filtering.

        asset_type: PLC, RTU, HMI, DCS, Engineering_Workstation,
                    Historian, Network_Device, IO_Module, Safety_Controller
        """
        params = {}
        if site_id:
            params["site_id"] = site_id
        if asset_type:
            params["type"] = asset_type

        resp = self.session.get(f"{self.base_url}/api/v1/assets", params=params)
        resp.raise_for_status()
        return resp.json().get("assets", [])

    def get_asset_detail(self, asset_id: str):
        """Retrieve detailed asset information including firmware, modules, and CVEs."""
        resp = self.session.get(f"{self.base_url}/api/v1/assets/{asset_id}")
        resp.raise_for_status()
        return resp.json()

    def get_communication_map(self, site_id: str):
        """Retrieve communication relationships between assets."""
        resp = self.session.get(
            f"{self.base_url}/api/v1/sites/{site_id}/communications"
        )
        resp.raise_for_status()
        return resp.json().get("communications", [])

    def get_vulnerabilities(self, site_id: Optional[str] = None, severity: str = "critical"):
        """Retrieve vulnerabilities for discovered assets."""
        params = {"min_severity": severity}
        if site_id:
            params["site_id"] = site_id

        resp = self.session.get(f"{self.base_url}/api/v1/vulnerabilities", params=params)
        resp.raise_for_status()
        return resp.json().get("vulnerabilities", [])

    def export_asset_inventory(self, output_file: str, site_id: Optional[str] = None):
        """Export full asset inventory to CSV for compliance reporting."""
        assets = self.get_assets(site_id=site_id)
        if not assets:
            print("[!] No assets found")
            return

        fieldnames = [

…
常见问题

什么是工业网络(OT)?

这是用于控制工厂和其他工业设施中机器与生产流程的网络,与普通的计算机网络(IT)不同。

什么是 PLC、RTU 和 HMI?

这些都是工业网络中的常见设备:PLC(可编程逻辑控制器)用于控制机器,RTU(远程终端单元)从偏远地点采集数据,HMI(人机界面)是用来操作系统的屏幕。

为什么不能用于 IT 网络?

这个工具专门针对工业(OT)设备。对于普通计算机网络(IT),其他工具会更合适。

详情

作者的原始描述

Performs ICS/OT asset discovery with Claroty xDome, combining passive monitoring and Claroty Edge active queries to inventory PLCs, RTUs, HMIs, and network infrastructure across Purdue Model levels. Use when gaining visibility into an undocumented OT environment, preparing an IEC 62443 asset inventory, or onboarding Claroty xDome; not for IT-only discovery. '

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8242
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能