跳到正文
Skillpedia
安全35k · #8372

securing-historian-server-in-ot-environment

它能做什么

这个工具可以检查生产环境中工业历史数据服务器(如 OSIsoft PI、Honeywell PHD、GE Proficy、AVEVA Historian)的安全性。它会验证网络、访问和数据保护设置是否安全。

适用场景

  • ✓当你第一次设置新的历史数据服务器时。
  • ✓当你审查现有历史数据服务器的安全性时。
  • ✓当你规划如何安全地把数据从工厂车间发送到 IT 网络时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/securing-historian-server-in-ot-environment/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“检查我的 OSIsoft PI 历史数据服务器(地址 192.168.1.100)的安全性。”

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

工作原理

该工具会连接到服务器,检查开放端口和常见的安全设置。它会识别风险,例如不必要的暴露服务或缺少加密。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Securing Historian Server in OT Environment

When to Use

  • When deploying a new historian server in an OT environment and configuring it securely from the start
  • When hardening an existing historian after a security assessment identified it as a high-risk target
  • When designing historian data replication architecture through a DMZ for IT access to process data
  • When implementing access controls to prevent unauthorized modification of historical process data
  • When investigating suspected historian compromise or data integrity issues

Do not use for IT-only database security without OT data (see general database hardening), for real-time SCADA data transmission security (see detecting-attacks-on-scada-systems), or for historian selection and sizing decisions.

Prerequisites

  • Historian platform (OSIsoft PI, Honeywell PHD, GE Proficy, AVEVA Historian) installed and operational
  • Network segmentation with historian placed in Level 3 (Site Operations) per Purdue Model
  • Understanding of data flows: field devices -> PLCs -> OPC servers -> historian
  • Access to historian administration credentials
  • DMZ infrastructure for IT-facing data replication

Workflow

Step 1: Audit Current Historian Security Configuration

Evaluate the current security posture of the historian server including network exposure, authentication, and access controls.

#!/usr/bin/env python3
"""Historian Security Audit Tool.

Evaluates the security configuration of process historian servers
including network exposure, authentication, access controls,
and data integrity protections.
"""

import json
import socket
import ssl
import subprocess
import sys
from dataclasses import dataclass, field, asdict
from datetime import datetime


@dataclass
class AuditFinding:
    finding_id: str
    severity: str
    category: str
    title: str
    detail: str
    remediation: str


class HistorianSecurityAudit:
    """Security audit for OT historian servers."""

    def __init__(self, historian_ip, historian_type="PI"):
        self.ip = historian_ip
        self.type = historian_type
        self.findings = []
        self.counter = 1

    def check_network_exposure(self):
        """Check which network services are exposed by the historian."""
        print(f"[*] Checking network exposure: {self.ip}")

        # Common historian ports
        ports_to_check = {
            5450: ("PI Data Archive", "PI SDK/API connections"),
            5457: ("PI AF Server", "PI Asset Framework"),
            5459: ("PI Notifications", "PI Notification Service"),
            443: ("HTTPS", "PI Vision / Web API"),
            80: ("HTTP", "Unsecured web interface"),
            1433: ("MS SQL Server", "Direct database access"),
            5432: ("PostgreSQL", "Direct database access"),
            3389: ("RDP", "Remote Desktop"),
            135: ("RPC", "Windows RPC"),
            445: ("SMB", "Windows File Sharing"),
            8080: ("HTTP Alt", "Alternative web interface"),
        }

        exposed = []
        for port, (service, desc) in ports_to_check.items():
            try:
                sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                sock.settimeout(3)
                result = sock.connect_ex((self.ip, port))
                sock.close()
                if result == 0:
                    exposed.append({"port": port, "service": service, "description": desc})
            except Exception:
                pass

        # Flag unnecessary exposed services
        for svc in exposed:
            if svc["port"] in (80, 135, 445, 3389):
                self.findings.append(AuditFinding(
                    finding_id=f"HIST-{self.counter:03d}",
                    severity="high",
                    category="Network Exposure",
                    title=f"Unnecessary service exposed: {svc['service']} (port {svc['port']})",
                    detail=f"Port {svc['port']} ({svc['description']}) is accessible on historian",
                    remediation=f"Disable {svc['service']} or restrict via host firewall",
                ))
                self.counter += 1

        if any(s["port"] == 80 for s in exposed):
            self.findings.append(AuditFinding(
                finding_id=f"HIST-{self.counter:03d}",
                severity="high",
                category="Encryption",
                title="Historian web interface on unencrypted HTTP",

…
常见问题

什么是“OT 环境”?

OT 是“运营技术”(Operational Technology)的缩写,指控制工业设备和生产过程的系统,例如工厂和发电厂。

什么是“普渡模型”?

这是一种将工业网络划分为若干层级的模型,从工厂车间一直到 IT 网络,用于组织和保护各个系统。

什么是“DMZ”?

DMZ(隔离区)是一个中间网络区域,用于保护内部网络(OT)免受外部访问(IT)的影响,并允许受控的通信。

详情

作者的原始描述

Audits and hardens process historian servers (OSIsoft PI, Honeywell PHD, GE Proficy, AVEVA Historian) in OT environments: Purdue-level network placement, interface access control, secure DMZ replication via data diodes or PI-to-PI connectors, SQL injection prevention, and process data integrity. Use when auditing or hardening a historian server, or designing secure OT-to-IT data replication throug

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能