[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6CZ1V0QDCE6PD4VH4J759":3,"skill-same:01M7A6CZ1V0QDCE6PD4VH4J759":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":14,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M7A6CZ1V0QDCE6PD4VH4J759","detecting-stuxnet-style-attacks",null,"Detects sophisticated cyber-physical attacks that follow the Stuxnet pattern of modifying PLC logic while spoofing sensor readings to hide the manipulation, using PLC logic integrity monitoring (Claroty xDome, Nozomi Guardian) and physics-based process anomaly detection. Use when hunting for IT-to-OT lateral movement or discrepancies between PLC program state and physical process behavior in ICS\u002FSCADA environments.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-stuxnet-style-attacks\ndescription: 'Detects sophisticated cyber-physical attacks that follow the Stuxnet\n  pattern of modifying PLC logic while spoofing sensor readings to hide the\n  manipulation, using PLC logic integrity monitoring (Claroty xDome, Nozomi\n  Guardian) and physics-based process anomaly detection. Use when hunting for\n  IT-to-OT lateral movement or discrepancies between PLC program state and\n  physical process behavior in ICS\u002FSCADA environments.\n\n  '\ndomain: cybersecurity\nsubdomain: ot-ics-security\ntags:\n- ot-security\n- ics\n- scada\n- industrial-control\n- iec62443\n- stuxnet\n- plc-integrity\n- apt\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- DE.CM-01\n- ID.AM-05\n- GV.OC-02\nmitre_attack:\n- T0853\n- T0831\n- T0809\n- T0807\n---\n\n# Detecting Stuxnet-Style Attacks\n\n## When to Use\n\n- When implementing advanced threat detection for high-value OT targets (nuclear, chemical, critical infrastructure)\n- When building detection for APT-style attacks targeting PLC logic and process manipulation\n- When establishing PLC logic integrity monitoring to detect unauthorized modifications\n- When investigating suspected process anomalies that may indicate cyber-physical attacks\n- When designing defense-in-depth strategies against nation-state level OT threats\n\n**Do not use** for basic OT intrusion detection (see detecting-attacks-on-scada-systems), for malware analysis of Stuxnet samples (see malware reverse engineering skills), or for PLC programming and logic development.\n\n## Prerequisites\n\n- Detailed understanding of the Stuxnet attack chain and MITRE ATT&CK for ICS framework\n- PLC logic backup repository with known-good baseline copies of all PLC programs\n- Engineering workstation monitoring (EDR with OT awareness)\n- Physics-based process models for the controlled physical process\n- Network monitoring for industrial protocol traffic analysis\n\n## Workflow\n\n### Step 1: Understand the Stuxnet Attack Chain\n\nMap detection opportunities across the multi-stage Stuxnet-style attack chain.\n\n```yaml\n# Stuxnet-Style Attack Chain and Detection Points\nattack_chain:\n  stage_1_initial_access:\n    technique: \"USB-borne malware targeting air-gapped network\"\n    mitre_ics: \"T0847 - Replication Through Removable Media\"\n    detection:\n      - \"USB device connection logging on engineering workstations\"\n      - \"Removable media scanning with OT-approved AV\"\n      - \"Application allowlisting blocking unauthorized executables\"\n      - \"Windows autorun disabled via Group Policy\"\n    indicators:\n      - \"New USB device connections to engineering workstations\"\n      - \"Execution of unsigned binaries from removable media\"\n      - \"LNK file exploitation patterns\"\n\n  stage_2_lateral_movement:\n    technique: \"Exploitation of Windows vulnerabilities for network propagation\"\n    mitre_ics: \"T0866 - Exploitation of Remote Services\"\n    detection:\n      - \"Network IDS detecting exploit traffic (MS08-067, MS10-061)\"\n      - \"Unusual SMB traffic between engineering workstations\"\n      - \"Windows event logs showing privilege escalation\"\n      - \"New scheduled tasks or services created\"\n    indicators:\n      - \"Lateral movement between Level 3-4 Windows systems\"\n      - \"WMI\u002FPsExec execution from unexpected sources\"\n      - \"Pass-the-hash authentication patterns\"\n\n  stage_3_ews_compromise:\n    technique: \"Compromise of engineering workstation with PLC programming software\"\n    mitre_ics: \"T0862 - Supply Chain Compromise (Step-7 hooking)\"\n    detection:\n      - \"File integrity monitoring on Step-7\u002FTIA Portal directories\"\n      - \"DLL injection detection in PLC programming software\"\n      - \"Monitoring s7otbxdx.dll for Stuxnet-specific hook\"\n      - \"Unexpected modifications to PLC project files\"\n    indicators:\n      - \"Modified DLLs in Siemens STEP 7 installation directory\"\n      - \"Rootkit hiding files on engineering workstation\"\n      - \"PLC programming software behaving abnormally\"\n\n  stage_4_plc_logic_modification:\n    technique: \"Injecting malicious OB\u002FFC blocks into PLC program\"\n    mitre_ics: \"T0839 - Module Firmware \u002F T0833 - Modify Control Logic\"\n    detection:\n      - \"PLC logic integrity comparison against known-good baseline\"\n      - \"S7comm upload\u002Fdownload traffic from unauthorized sources\"\n      - \"New OB\u002FFC\u002FFB blocks appearing in PLC program\"\n      - \"Modification of OB1 (main scan) or OB35 (cyclic interrupt)\"\n    indicators:\n      - \"PLC program block count changes\"\n      - \"PLC program size changes\"\n      - \"Upload of unknown program blocks\"\n\n  stage_5_process_manipulation:\n    technique: \"Manipulating physical process while spoofing sensor readings\"\n    mitre_ics: \"T0836 - Modify Parameter \u002F T0856 - Spoof Reporting Message\"\n    detection:\n      - \"Physics-based anomaly detection (process model deviation)\"\n      - \"Cross-validation of independent sensors\"\n      - \"Vibration analysis and mechanical signature monitoring\"\n      - \"Comparison of PLC-reported values vs independent measurements\"\n    indicators:\n      - \"Motor\u002Fpump operating outside normal parameters\"\n      - \"Sensor readings diverging from physics model predictions\"\n      - \"Process efficiency metrics deviating unexpectedly\"\n```\n\n### Step 2: Implement PLC Logic Integrity Monitoring\n\nContinuously monitor PLC program integrity by comparing running logic against known-good baselines.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"PLC Logic Integrity Monitor.\n\nPeriodically retrieves PLC program block information and compares\nagainst known-good baselines to detect unauthorized modifications\n(Stuxnet-style logic injection).\n\"\"\"\n\nimport hashlib\nimport json\nimport sys\nimport time\nfrom dataclasses import dataclass, field, asdict\nfrom datetime import datetime\n\n\n@dataclass\nclass PLCBlock:\n    \"\"\"Represents a PLC program block.\"\"\"\n    block_type: str  # OB, FC, FB, DB\n    block_number: int\n    name: str\n    size_bytes: int\n    checksum: str\n    last_modified: str\n    author: str = \"\"\n\n\n@dataclass\nclass IntegrityAlert:\n    alert_id: str\n    timestamp: str\n    severity: str\n    plc_name: str\n    plc_ip: str\n    alert_type: str\n    description: str\n    baseline_value: str\n    current_value: str\n    mitre_technique: str\n\n\nclass PLCIntegrityMonitor:\n    \"\"\"Monitors PLC program integrity against baselines.\"\"\"\n\n    def __init__(self):\n        self.baselines = {}  # plc_name -> list of PLCBlock\n        self.alerts = []\n        self.alert_counter = 1\n\n    def load_baseline(self, plc_name, baseline_file):\n        \"\"\"Load known-good PLC program baseline.\"\"\"\n        with open(baseline_file) as f:\n            data = json.load(f)\n        blocks = [PLCBlock(**b) for b in data.get(\"blocks\", [])]\n        self.baselines[plc_name] = {\n            \"blocks\": {f\"{b.block_type}{b.block_number}\": b for b in blocks},\n            \"total_blocks\": len(blocks),\n            \"loaded_at\": datetime.now().isoformat(),\n        }\n        print(f\"[*] Loaded baseline for {plc_name}: {len(blocks)} blocks\")\n\n    def check_integrity(self, plc_name, plc_ip, current_blocks):\n        \"\"\"Compare current PLC program against baseline.\"\"\"\n        baseline = self.baselines.get(plc_name)\n        if not baseline:\n            print(f\"[WARN] No baseline for {plc_name}\")\n            return\n\n        baseline_blocks = baseline[\"blocks\"]\n        current_block_map = {f\"{b.block_type}{b.block_number}\": b for b in current_blocks}\n\n        # Check 1: New blocks added (potential logic injection)\n        for key, block in current_block_map.items():\n            if key not in baseline_blocks:\n                self.alerts.append(IntegrityAlert(\n                    alert_id=f\"INT-{self.alert_counter:04d}\",\n                    timestamp=datetime.now().isoformat(),\n                    severity=\"critical\",\n                    plc_name=plc_name,\n                    plc_ip=plc_ip,\n                    alert_type=\"NEW_BLOCK_DETECTED\",\n                    description=(\n                        f\"New program block {key} ({block.name}) found in PLC \"\n                        f\"that does not exist in baseline. Size: {block.size_bytes} bytes.\"\n                    ),\n                    baseline_value=\"Block does not exist in baseline\",\n                    current_value=f\"{key}: {block.size_bytes} bytes, checksum {block.checksum}\",\n                    mitre_technique=\"T0839 - Module Firmware \u002F T0833 - Modify Control Logic\",\n                ))\n                self.alert_counter += 1\n\n        # Check 2: Blocks removed\n        for key in baseline_blocks:\n            if key not in current_block_map:\n                self.alerts.append(IntegrityAlert(\n                    alert_id=f\"INT-{self.alert_counter:04d}\",\n                    timestamp=datetime.now().isoformat(),\n                    severity=\"high\",\n                    plc_name=plc_name,\n                    plc_ip=plc_ip,\n                    alert_type=\"BLOCK_REMOVED\",\n                    description=f\"Program block {key} removed from PLC\",\n                    baseline_value=f\"{key}: {baseline_blocks[key].size_bytes} bytes\",\n                    current_value=\"Block not found\",\n                    mitre_technique=\"T0833 - Modify Control Logic\",\n                ))\n                self.alert_counter += 1\n\n        # Check 3: Block content modified (checksum mismatch)\n        for key in baseline_blocks:\n            if key in current_block_map:\n                baseline_block = baseline_blocks[key]\n                current_block = current_block_map[key]\n\n                if baseline_block.checksum != current_block.checksum:\n                    self.alerts.append(IntegrityAlert(\n                        alert_id=f\"INT-{self.alert_counter:04d}\",\n                        timestamp=datetime.now().isoformat(),\n                        severity=\"critical\",\n                        plc_name=plc_name,\n                        plc_ip=plc_ip,\n                        alert_type=\"BLOCK_MODIFIED\",\n                        description=(\n                            f\"Program block {key} checksum mismatch. \"\n                            f\"Logic has been modified since baseline was established.\"\n                        ),\n                        baseline_value=f\"Checksum: {baseline_block.checksum}, Size: {baseline_block.size_bytes}\",\n                        current_value=f\"Checksum: {current_block.checksum}, Size: {current_block.size_bytes}\",\n                        mitre_technique=\"T0833 - Modify Control Logic\",\n                    ))\n                    self.alert_counter += 1\n\n        # Check 4: Block count change\n        if len(current_blocks) != baseline[\"total_blocks\"]:\n            self.alerts.append(IntegrityAlert(\n                alert_id=f\"INT-{self.alert_counter:04d}\",\n                timestamp=datetime.now().isoformat(),\n                severity=\"high\",\n                plc_name=plc_name,\n                plc_ip=plc_ip,\n                alert_type=\"BLOCK_COUNT_CHANGE\",\n                description=f\"Total block count changed from {baseline['total_blocks']} to {len(current_blocks)}\",\n                baseline_value=str(baseline[\"total_blocks\"]),\n                current_value=str(len(current_blocks)),\n                mitre_technique=\"T0833 - Modify Control Logic\",\n            ))\n            self.alert_counter += 1\n\n    def generate_report(self):\n        \"\"\"Generate integrity monitoring report.\"\"\"\n        print(f\"\\n{'='*70}\")\n        print(\"PLC LOGIC INTEGRITY MONITORING REPORT\")\n        print(f\"{'='*70}\")\n        print(f\"Baselines loaded: {len(self.baselines)}\")\n        print(f\"Alerts: {len(self.alerts)}\")\n\n        for a in self.alerts:\n            print(f\"\\n  [{a.severity.upper()}] {a.alert_type}\")\n            print(f\"    PLC: {a.plc_name} ({a.plc_ip})\")\n            print(f\"    {a.description}\")\n            print(f\"    Baseline: {a.baseline_value}\")\n            print(f\"    Current: {a.current_value}\")\n            print(f\"    MITRE: {a.mitre_technique}\")\n\n\nif __name__ == \"__main__\":\n    monitor = PLCIntegrityMonitor()\n    print(\"PLC Logic Integrity Monitor\")\n    print(\"Load baselines and call check_integrity() periodically\")\n```\n\n### Step 3: Deploy Physics-Based Process Anomaly Detection\n\nMonitor physical process behavior using models that predict expected sensor values based on the laws of physics. Deviations indicate either equipment failure or cyber-physical attack.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Physics-Based Cyber-Physical Attack Detector.\n\nUses simplified physics models to detect process manipulation\nattacks where the attacker modifies the physical process while\nspoofing sensor readings (the core Stuxnet attack pattern).\n\"\"\"\n\nimport math\nfrom dataclasses import dataclass\nfrom datetime import datetime\n\n\n@dataclass\nclass PhysicsAlert:\n    timestamp: str\n    severity: str\n    alert_type: str\n    sensor_tag: str\n    reported_value: float\n    predicted_value: float\n    deviation_percent: float\n    description: str\n\n\nclass CentrifugePhysicsModel:\n    \"\"\"Physics model for a centrifuge system (Stuxnet target analog).\n\n    Detects manipulation by cross-correlating:\n    - Motor frequency (Hz) vs reported RPM\n    - RPM vs vibration signature\n    - Power consumption vs rotational speed\n    \"\"\"\n\n    def __init__(self, rated_rpm=1200, rated_frequency=50, rated_power_kw=75):\n        self.rated_rpm = rated_rpm\n        self.rated_frequency = rated_frequency\n        self.rated_power_kw = rated_power_kw\n        self.alerts = []\n\n    def check_frequency_rpm_correlation(self, frequency_hz, reported_rpm):\n        \"\"\"Verify motor frequency matches reported RPM.\n\n        For an induction motor: RPM = 120 * frequency \u002F poles\n        If RPM is being spoofed, it won't match the actual frequency.\n        \"\"\"\n        # Assuming 4-pole motor with typical 3% slip\n        expected_rpm = (120 * frequency_hz \u002F 4) * 0.97\n        deviation = abs(reported_rpm - expected_rpm) \u002F expected_rpm * 100\n\n        if deviation > 5.0:\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"critical\",\n                alert_type=\"FREQUENCY_RPM_MISMATCH\",\n                sensor_tag=\"MOTOR.RPM vs VFD.FREQ\",\n                reported_value=reported_rpm,\n                predicted_value=round(expected_rpm, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Motor RPM ({reported_rpm}) does not match VFD frequency \"\n                    f\"({frequency_hz} Hz). Expected ~{expected_rpm:.0f} RPM. \"\n                    f\"Possible RPM sensor spoofing while frequency is manipulated.\"\n                ),\n            ))\n\n    def check_power_speed_correlation(self, rpm, power_kw):\n        \"\"\"Verify power consumption matches rotational speed.\n\n        Power scales approximately with RPM^3 for centrifugal loads.\n        \"\"\"\n        speed_ratio = rpm \u002F self.rated_rpm\n        expected_power = self.rated_power_kw * (speed_ratio ** 3)\n        deviation = abs(power_kw - expected_power) \u002F max(expected_power, 0.1) * 100\n\n        if deviation > 15.0:\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"high\",\n                alert_type=\"POWER_SPEED_MISMATCH\",\n                sensor_tag=\"MOTOR.POWER vs MOTOR.RPM\",\n                reported_value=power_kw,\n                predicted_value=round(expected_power, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Power consumption ({power_kw} kW) inconsistent with RPM ({rpm}). \"\n                    f\"Expected ~{expected_power:.1f} kW. May indicate hidden speed changes.\"\n                ),\n            ))\n\n    def check_vibration_anomaly(self, rpm, vibration_mm_s):\n        \"\"\"Check if vibration signature is consistent with operating speed.\n\n        Abnormal vibration at reported 'normal' speed may indicate actual\n        speed is different from what sensors report.\n        \"\"\"\n        # Normal vibration increases linearly with speed for balanced rotor\n        speed_ratio = rpm \u002F self.rated_rpm\n        expected_vibration = 2.0 * speed_ratio  # mm\u002Fs baseline\n        deviation = abs(vibration_mm_s - expected_vibration) \u002F max(expected_vibration, 0.1) * 100\n\n        if vibration_mm_s > 7.0:  # ISO 10816 alert threshold\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"critical\",\n                alert_type=\"ABNORMAL_VIBRATION\",\n                sensor_tag=\"MOTOR.VIBRATION\",\n                reported_value=vibration_mm_s,\n                predicted_value=round(expected_vibration, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Vibration ({vibration_mm_s} mm\u002Fs) at ISO alert level while \"\n                    f\"RPM reports normal ({rpm}). Actual speed may differ from reported.\"\n                ),\n            ))\n\n    def report(self):\n        if self.alerts:\n            print(f\"\\n{'='*60}\")\n            print(\"PHYSICS-BASED ANOMALY DETECTION ALERTS\")\n            print(f\"{'='*60}\")\n            for a in self.alerts:\n                print(f\"\\n  [{a.severity.upper()}] {a.alert_type}\")\n                print(f\"    {a.description}\")\n                print(f\"    Reported: {a.reported_value} | Predicted: {a.predicted_value}\")\n                print(f\"    Deviation: {a.deviation_percent}%\")\n\n\nif __name__ == \"__main__\":\n    model = CentrifugePhysicsModel(rated_rpm=1200, rated_frequency=50, rated_power_kw=75)\n\n    # Normal operation - no alerts expected\n    model.check_frequency_rpm_correlation(50.0, 1164)\n    model.check_power_speed_correlation(1164, 72.0)\n\n    # Stuxnet-style attack: frequency increased but RPM spoofed as normal\n    model.check_frequency_rpm_correlation(84.0, 1164)  # freq up, RPM spoofed\n    model.check_power_speed_correlation(1164, 180.0)    # power reveals true speed\n\n    model.report()\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Cyber-Physical Attack | Attack that manipulates both the cyber system (PLC logic, sensor readings) and the physical process simultaneously |\n| Logic Injection | Inserting malicious code blocks into PLC programs to alter physical process behavior |\n| Sensor Spoofing | Replaying or fabricating sensor readings to hide process manipulation from operators |\n| Physics-Based Detection | Using mathematical models of physical processes to detect when reported sensor values are inconsistent with actual physics |\n| PLC Logic Baseline | Known-good copy of PLC program blocks (OB, FC, FB, DB) used for integrity comparison |\n| Air-Gap Bridging | Technique of crossing air-gapped networks via USB drives, as used by Stuxnet's initial access method |\n\n## Tools & Systems\n\n- **Claroty xDome**: Continuous PLC logic monitoring with baseline comparison and change detection\n- **SIGA OT Solutions**: Physical signal monitoring at the electrical level for detecting process manipulation\n- **Nozomi Guardian**: OT monitoring with PLC program change detection capabilities\n- **Siemens SINEMA Remote Connect**: Secure remote access with PLC project version tracking\n\n## Output Format\n\n```\nStuxnet-Style Attack Detection Report\n========================================\nMonitored PLCs: [N]\nMonitoring Period: YYYY-MM-DD to YYYY-MM-DD\n\nPLC INTEGRITY:\n  Baselines verified: [N]\u002F[N]\n  Logic modifications detected: [N]\n  New blocks detected: [N]\n\nPHYSICS ANOMALIES:\n  Sensor correlation violations: [N]\n  Process model deviations: [N]\n\nENGINEERING WORKSTATION:\n  Unauthorized modifications: [N]\n  USB connections: [N]\n```\n","# Detecting Stuxnet-Style Attacks\n\n## When to Use\n\n- When implementing advanced threat detection for high-value OT targets (nuclear, chemical, critical infrastructure)\n- When building detection for APT-style attacks targeting PLC logic and process manipulation\n- When establishing PLC logic integrity monitoring to detect unauthorized modifications\n- When investigating suspected process anomalies that may indicate cyber-physical attacks\n- When designing defense-in-depth strategies against nation-state level OT threats\n\n**Do not use** for basic OT intrusion detection (see detecting-attacks-on-scada-systems), for malware analysis of Stuxnet samples (see malware reverse engineering skills), or for PLC programming and logic development.\n\n## Prerequisites\n\n- Detailed understanding of the Stuxnet attack chain and MITRE ATT&CK for ICS framework\n- PLC logic backup repository with known-good baseline copies of all PLC programs\n- Engineering workstation monitoring (EDR with OT awareness)\n- Physics-based process models for the controlled physical process\n- Network monitoring for industrial protocol traffic analysis\n\n## Workflow\n\n### Step 1: Understand the Stuxnet Attack Chain\n\nMap detection opportunities across the multi-stage Stuxnet-style attack chain.\n\n```yaml\n# Stuxnet-Style Attack Chain and Detection Points\nattack_chain:\n  stage_1_initial_access:\n    technique: \"USB-borne malware targeting air-gapped network\"\n    mitre_ics: \"T0847 - Replication Through Removable Media\"\n    detection:\n      - \"USB device connection logging on engineering workstations\"\n      - \"Removable media scanning with OT-approved AV\"\n      - \"Application allowlisting blocking unauthorized executables\"\n      - \"Windows autorun disabled via Group Policy\"\n    indicators:\n      - \"New USB device connections to engineering workstations\"\n      - \"Execution of unsigned binaries from removable media\"\n      - \"LNK file exploitation patterns\"\n\n  stage_2_lateral_movement:\n    technique: \"Exploitation of Windows vulnerabilities for network propagation\"\n    mitre_ics: \"T0866 - Exploitation of Remote Services\"\n    detection:\n      - \"Network IDS detecting exploit traffic (MS08-067, MS10-061)\"\n      - \"Unusual SMB traffic between engineering workstations\"\n      - \"Windows event logs showing privilege escalation\"\n      - \"New scheduled tasks or services created\"\n    indicators:\n      - \"Lateral movement between Level 3-4 Windows systems\"\n      - \"WMI\u002FPsExec execution from unexpected sources\"\n      - \"Pass-the-hash authentication patterns\"\n\n  stage_3_ews_compromise:\n    technique: \"Compromise of engineering workstation with PLC programming software\"\n    mitre_ics: \"T0862 - Supply Chain Compromise (Step-7 hooking)\"\n    detection:\n      - \"File integrity monitoring on Step-7\u002FTIA Portal directories\"\n      - \"DLL injection detection in PLC programming software\"\n      - \"Monitoring s7otbxdx.dll for Stuxnet-specific hook\"\n      - \"Unexpected modifications to PLC project files\"\n    indicators:\n      - \"Modified DLLs in Siemens STEP 7 installation directory\"\n      - \"Rootkit hiding files on engineering workstation\"\n      - \"PLC programming software behaving abnormally\"\n\n  stage_4_plc_logic_modification:\n    technique: \"Injecting malicious OB\u002FFC blocks into PLC program\"\n    mitre_ics: \"T0839 - Module Firmware \u002F T0833 - Modify Control Logic\"\n    detection:\n      - \"PLC logic integrity comparison against known-good baseline\"\n      - \"S7comm upload\u002Fdownload traffic from unauthorized sources\"\n      - \"New OB\u002FFC\u002FFB blocks appearing in PLC program\"\n      - \"Modification of OB1 (main scan) or OB35 (cyclic interrupt)\"\n    indicators:\n      - \"PLC program block count changes\"\n      - \"PLC program size changes\"\n      - \"Upload of unknown program blocks\"\n\n  stage_5_process_manipulation:\n    technique: \"Manipulating physical process while spoofing sensor readings\"\n    mitre_ics: \"T0836 - Modify Parameter \u002F T0856 - Spoof Reporting Message\"\n    detection:\n      - \"Physics-based anomaly detection (process model deviation)\"\n      - \"Cross-validation of independent sensors\"\n      - \"Vibration analysis and mechanical signature monitoring\"\n      - \"Comparison of PLC-reported values vs independent measurements\"\n    indicators:\n      - \"Motor\u002Fpump operating outside normal parameters\"\n      - \"Sensor readings diverging from physics model predictions\"\n      - \"Process efficiency metrics deviating unexpectedly\"\n```\n\n### Step 2: Implement PLC Logic Integrity Monitoring\n\nContinuously monitor PLC program integrity by comparing running logic against known-good baselines.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"PLC Logic Integrity Monitor.\n\nPeriodically retrieves PLC program block information and compares\nagainst known-good baselines to detect unauthorized modifications\n(Stuxnet-style logic injection).\n\"\"\"\n\nimport hashlib\nimport json\nimport sys\nimport time\nfrom dataclasses import dataclass, field, asdict\nfrom datetime import datetime\n\n\n@dataclass\nclass PLCBlock:\n    \"\"\"Represents a PLC program block.\"\"\"\n    block_type: str  # OB, FC, FB, DB\n    block_number: int\n    name: str\n    size_bytes: int\n    checksum: str\n    last_modified: str\n    author: str = \"\"\n\n\n@dataclass\nclass IntegrityAlert:\n    alert_id: str\n    timestamp: str\n    severity: str\n    plc_name: str\n    plc_ip: str\n    alert_type: str\n    description: str\n    baseline_value: str\n    current_value: str\n    mitre_technique: str\n\n\nclass PLCIntegrityMonitor:\n    \"\"\"Monitors PLC program integrity against baselines.\"\"\"\n\n    def __init__(self):\n        self.baselines = {}  # plc_name -> list of PLCBlock\n        self.alerts = []\n        self.alert_counter = 1\n\n    def load_baseline(self, plc_name, baseline_file):\n        \"\"\"Load known-good PLC program baseline.\"\"\"\n        with open(baseline_file) as f:\n            data = json.load(f)\n        blocks = [PLCBlock(**b) for b in data.get(\"blocks\", [])]\n        self.baselines[plc_name] = {\n            \"blocks\": {f\"{b.block_type}{b.block_number}\": b for b in blocks},\n            \"total_blocks\": len(blocks),\n            \"loaded_at\": datetime.now().isoformat(),\n        }\n        print(f\"[*] Loaded baseline for {plc_name}: {len(blocks)} blocks\")\n\n    def check_integrity(self, plc_name, plc_ip, current_blocks):\n        \"\"\"Compare current PLC program against baseline.\"\"\"\n        baseline = self.baselines.get(plc_name)\n        if not baseline:\n            print(f\"[WARN] No baseline for {plc_name}\")\n            return\n\n        baseline_blocks = baseline[\"blocks\"]\n        current_block_map = {f\"{b.block_type}{b.block_number}\": b for b in current_blocks}\n\n        # Check 1: New blocks added (potential logic injection)\n        for key, block in current_block_map.items():\n            if key not in baseline_blocks:\n                self.alerts.append(IntegrityAlert(\n                    alert_id=f\"INT-{self.alert_counter:04d}\",\n                    timestamp=datetime.now().isoformat(),\n                    severity=\"critical\",\n                    plc_name=plc_name,\n                    plc_ip=plc_ip,\n                    alert_type=\"NEW_BLOCK_DETECTED\",\n                    description=(\n                        f\"New program block {key} ({block.name}) found in PLC \"\n                        f\"that does not exist in baseline. Size: {block.size_bytes} bytes.\"\n                    ),\n                    baseline_value=\"Block does not exist in baseline\",\n                    current_value=f\"{key}: {block.size_bytes} bytes, checksum {block.checksum}\",\n                    mitre_technique=\"T0839 - Module Firmware \u002F T0833 - Modify Control Logic\",\n                ))\n                self.alert_counter += 1\n\n        # Check 2: Blocks removed\n        for key in baseline_blocks:\n            if key not in current_block_map:\n                self.alerts.append(IntegrityAlert(\n                    alert_id=f\"INT-{self.alert_counter:04d}\",\n                    timestamp=datetime.now().isoformat(),\n                    severity=\"high\",\n                    plc_name=plc_name,\n                    plc_ip=plc_ip,\n                    alert_type=\"BLOCK_REMOVED\",\n                    description=f\"Program block {key} removed from PLC\",\n                    baseline_value=f\"{key}: {baseline_blocks[key].size_bytes} bytes\",\n                    current_value=\"Block not found\",\n                    mitre_technique=\"T0833 - Modify Control Logic\",\n                ))\n                self.alert_counter += 1\n\n        # Check 3: Block content modified (checksum mismatch)\n        for key in baseline_blocks:\n            if key in current_block_map:\n                baseline_block = baseline_blocks[key]\n                current_block = current_block_map[key]\n\n                if baseline_block.checksum != current_block.checksum:\n                    self.alerts.append(IntegrityAlert(\n                        alert_id=f\"INT-{self.alert_counter:04d}\",\n                        timestamp=datetime.now().isoformat(),\n                        severity=\"critical\",\n                        plc_name=plc_name,\n                        plc_ip=plc_ip,\n                        alert_type=\"BLOCK_MODIFIED\",\n                        description=(\n                            f\"Program block {key} checksum mismatch. \"\n                            f\"Logic has been modified since baseline was established.\"\n                        ),\n                        baseline_value=f\"Checksum: {baseline_block.checksum}, Size: {baseline_block.size_bytes}\",\n                        current_value=f\"Checksum: {current_block.checksum}, Size: {current_block.size_bytes}\",\n                        mitre_technique=\"T0833 - Modify Control Logic\",\n                    ))\n                    self.alert_counter += 1\n\n        # Check 4: Block count change\n        if len(current_blocks) != baseline[\"total_blocks\"]:\n            self.alerts.append(IntegrityAlert(\n                alert_id=f\"INT-{self.alert_counter:04d}\",\n                timestamp=datetime.now().isoformat(),\n                severity=\"high\",\n                plc_name=plc_name,\n                plc_ip=plc_ip,\n                alert_type=\"BLOCK_COUNT_CHANGE\",\n                description=f\"Total block count changed from {baseline['total_blocks']} to {len(current_blocks)}\",\n                baseline_value=str(baseline[\"total_blocks\"]),\n                current_value=str(len(current_blocks)),\n                mitre_technique=\"T0833 - Modify Control Logic\",\n            ))\n            self.alert_counter += 1\n\n    def generate_report(self):\n        \"\"\"Generate integrity monitoring report.\"\"\"\n        print(f\"\\n{'='*70}\")\n        print(\"PLC LOGIC INTEGRITY MONITORING REPORT\")\n        print(f\"{'='*70}\")\n        print(f\"Baselines loaded: {len(self.baselines)}\")\n        print(f\"Alerts: {len(self.alerts)}\")\n\n        for a in self.alerts:\n            print(f\"\\n  [{a.severity.upper()}] {a.alert_type}\")\n            print(f\"    PLC: {a.plc_name} ({a.plc_ip})\")\n            print(f\"    {a.description}\")\n            print(f\"    Baseline: {a.baseline_value}\")\n            print(f\"    Current: {a.current_value}\")\n            print(f\"    MITRE: {a.mitre_technique}\")\n\n\nif __name__ == \"__main__\":\n    monitor = PLCIntegrityMonitor()\n    print(\"PLC Logic Integrity Monitor\")\n    print(\"Load baselines and call check_integrity() periodically\")\n```\n\n### Step 3: Deploy Physics-Based Process Anomaly Detection\n\nMonitor physical process behavior using models that predict expected sensor values based on the laws of physics. Deviations indicate either equipment failure or cyber-physical attack.\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Physics-Based Cyber-Physical Attack Detector.\n\nUses simplified physics models to detect process manipulation\nattacks where the attacker modifies the physical process while\nspoofing sensor readings (the core Stuxnet attack pattern).\n\"\"\"\n\nimport math\nfrom dataclasses import dataclass\nfrom datetime import datetime\n\n\n@dataclass\nclass PhysicsAlert:\n    timestamp: str\n    severity: str\n    alert_type: str\n    sensor_tag: str\n    reported_value: float\n    predicted_value: float\n    deviation_percent: float\n    description: str\n\n\nclass CentrifugePhysicsModel:\n    \"\"\"Physics model for a centrifuge system (Stuxnet target analog).\n\n    Detects manipulation by cross-correlating:\n    - Motor frequency (Hz) vs reported RPM\n    - RPM vs vibration signature\n    - Power consumption vs rotational speed\n    \"\"\"\n\n    def __init__(self, rated_rpm=1200, rated_frequency=50, rated_power_kw=75):\n        self.rated_rpm = rated_rpm\n        self.rated_frequency = rated_frequency\n        self.rated_power_kw = rated_power_kw\n        self.alerts = []\n\n    def check_frequency_rpm_correlation(self, frequency_hz, reported_rpm):\n        \"\"\"Verify motor frequency matches reported RPM.\n\n        For an induction motor: RPM = 120 * frequency \u002F poles\n        If RPM is being spoofed, it won't match the actual frequency.\n        \"\"\"\n        # Assuming 4-pole motor with typical 3% slip\n        expected_rpm = (120 * frequency_hz \u002F 4) * 0.97\n        deviation = abs(reported_rpm - expected_rpm) \u002F expected_rpm * 100\n\n        if deviation > 5.0:\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"critical\",\n                alert_type=\"FREQUENCY_RPM_MISMATCH\",\n                sensor_tag=\"MOTOR.RPM vs VFD.FREQ\",\n                reported_value=reported_rpm,\n                predicted_value=round(expected_rpm, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Motor RPM ({reported_rpm}) does not match VFD frequency \"\n                    f\"({frequency_hz} Hz). Expected ~{expected_rpm:.0f} RPM. \"\n                    f\"Possible RPM sensor spoofing while frequency is manipulated.\"\n                ),\n            ))\n\n    def check_power_speed_correlation(self, rpm, power_kw):\n        \"\"\"Verify power consumption matches rotational speed.\n\n        Power scales approximately with RPM^3 for centrifugal loads.\n        \"\"\"\n        speed_ratio = rpm \u002F self.rated_rpm\n        expected_power = self.rated_power_kw * (speed_ratio ** 3)\n        deviation = abs(power_kw - expected_power) \u002F max(expected_power, 0.1) * 100\n\n        if deviation > 15.0:\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"high\",\n                alert_type=\"POWER_SPEED_MISMATCH\",\n                sensor_tag=\"MOTOR.POWER vs MOTOR.RPM\",\n                reported_value=power_kw,\n                predicted_value=round(expected_power, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Power consumption ({power_kw} kW) inconsistent with RPM ({rpm}). \"\n                    f\"Expected ~{expected_power:.1f} kW. May indicate hidden speed changes.\"\n                ),\n            ))\n\n    def check_vibration_anomaly(self, rpm, vibration_mm_s):\n        \"\"\"Check if vibration signature is consistent with operating speed.\n\n        Abnormal vibration at reported 'normal' speed may indicate actual\n        speed is different from what sensors report.\n        \"\"\"\n        # Normal vibration increases linearly with speed for balanced rotor\n        speed_ratio = rpm \u002F self.rated_rpm\n        expected_vibration = 2.0 * speed_ratio  # mm\u002Fs baseline\n        deviation = abs(vibration_mm_s - expected_vibration) \u002F max(expected_vibration, 0.1) * 100\n\n        if vibration_mm_s > 7.0:  # ISO 10816 alert threshold\n            self.alerts.append(PhysicsAlert(\n                timestamp=datetime.now().isoformat(),\n                severity=\"critical\",\n                alert_type=\"ABNORMAL_VIBRATION\",\n                sensor_tag=\"MOTOR.VIBRATION\",\n                reported_value=vibration_mm_s,\n                predicted_value=round(expected_vibration, 1),\n                deviation_percent=round(deviation, 1),\n                description=(\n                    f\"Vibration ({vibration_mm_s} mm\u002Fs) at ISO alert level while \"\n                    f\"RPM reports normal ({rpm}). Actual speed may differ from reported.\"\n                ),\n            ))\n\n    def report(self):\n        if self.alerts:\n            print(f\"\\n{'='*60}\")\n            print(\"PHYSICS-BASED ANOMALY DETECTION ALERTS\")\n            print(f\"{'='*60}\")\n            for a in self.alerts:\n                print(f\"\\n  [{a.severity.upper()}] {a.alert_type}\")\n                print(f\"    {a.description}\")\n                print(f\"    Reported: {a.reported_value} | Predicted: {a.predicted_value}\")\n                print(f\"    Deviation: {a.deviation_percent}%\")\n\n\nif __name__ == \"__main__\":\n    model = CentrifugePhysicsModel(rated_rpm=1200, rated_frequency=50, rated_power_kw=75)\n\n    # Normal operation - no alerts expected\n    model.check_frequency_rpm_correlation(50.0, 1164)\n    model.check_power_speed_correlation(1164, 72.0)\n\n    # Stuxnet-style attack: frequency increased but RPM spoofed as normal\n    model.check_frequency_rpm_correlation(84.0, 1164)  # freq up, RPM spoofed\n    model.check_power_speed_correlation(1164, 180.0)    # power reveals true speed\n\n    model.report()\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Cyber-Physical Attack | Attack that manipulates both the cyber system (PLC logic, sensor readings) and the physical process simultaneously |\n| Logic Injection | Inserting malicious code blocks into PLC programs to alter physical process behavior |\n| Sensor Spoofing | Replaying or fabricating sensor readings to hide process manipulation from operators |\n| Physics-Based Detection | Using mathematical models of physical processes to detect when reported sensor values are inconsistent with actual physics |\n| PLC Logic Baseline | Known-good copy of PLC program blocks (OB, FC, FB, DB) used for integrity comparison |\n| Air-Gap Bridging | Technique of crossing air-gapped networks via USB drives, as used by Stuxnet's initial access method |\n\n## Tools & Systems\n\n- **Claroty xDome**: Continuous PLC logic monitoring with baseline comparison and change detection\n- **SIGA OT Solutions**: Physical signal monitoring at the electrical level for detecting process manipulation\n- **Nozomi Guardian**: OT monitoring with PLC program change detection capabilities\n- **Siemens SINEMA Remote Connect**: Secure remote access with PLC project version tracking\n\n## Output Format\n\n```\nStuxnet-Style Attack Detection Report\n========================================\nMonitored PLCs: [N]\nMonitoring Period: YYYY-MM-DD to YYYY-MM-DD\n\nPLC INTEGRITY:\n  Baselines verified: [N]\u002F[N]\n  Logic modifications detected: [N]\n  New blocks detected: [N]\n\nPHYSICS ANOMALIES:\n  Sensor correlation violations: [N]\n  Process model deviations: [N]\n\nENGINEERING WORKSTATION:\n  Unauthorized modifications: [N]\n  USB connections: [N]\n```\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":42,"description":43,"mitre_attack":44},[26,27,28,29,30,31,32,33],"ot-security","ics","scada","industrial-control","iec62443","stuxnet","plc-integrity","apt","mahipal","cybersecurity","1.0.0",[38,39,40,41],"PR.IR-01","DE.CM-01","ID.AM-05","GV.OC-02","ot-ics-security","Detects sophisticated cyber-physical attacks that follow the Stuxnet pattern of modifying PLC logic while spoofing sensor readings to hide the manipulation, using PLC logic integrity monitoring (Claroty xDome, Nozomi Guardian) and physics-based process anomaly detection. Use when hunting for IT-to-OT lateral movement or discrepancies between PLC program state and physical process behavior in ICS\u002FSCADA environments.\n",[45,46,47,48],"T0853","T0831","T0809","T0807","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-stuxnet-style-attacks",{"tool":62,"command":63},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-stuxnet-style-attacks",{"tool":65,"command":66},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-stuxnet-style-attacks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks\u002FSKILL.md",true,[70,74,80],{"path":71,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fapi-reference.md","REFERENCE","参考文档",2223,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks\u002Freferences\u002Fapi-reference.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fagent.py","SCRIPT","脚本",6272,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-stuxnet-style-attacks\u002Fscripts\u002Fagent.py",[87,94,101,108,115,122],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]