performing-oil-gas-cybersecurity-assessment
This skill covers conducting cybersecurity assessments specific to oil and gas facilities including upstream (exploration/production), midstream (pipeline/transport), and downstream (refining/distribution) operations. It addresses SCADA systems controlling pipeline operations, DCS for refinery process control, safety instrumented systems for hazardous processes, remote terminal units at unmanned wellhead sites, and compliance with API 1164, TSA Pipeline Security Directives, IEC 62443, and NIST Cybersecurity Framework for critical infrastructure.
What this skill does
# Performing Oil & Gas Cybersecurity Assessment
## When to Use
- When conducting a cybersecurity assessment of a refinery, pipeline, or production facility
- When preparing for TSA Pipeline Security Directive compliance (SD-01, SD-02)
- When assessing cybersecurity posture against API Standard 1164 (Pipeline SCADA Security)
- When evaluating the security of remote wellhead SCADA systems and satellite communications
- When a merger, acquisition, or regulatory audit requires a comprehensive OT security evaluation
**Do not use** for IT-only corporate network assessments of oil and gas companies, for physical security assessments without a cyber component, or for environmental compliance assessments.
## Prerequisites
- Written authorization from facility management and operations team
- Understanding of oil and gas operations (upstream, midstream, downstream processes)
- Familiarity with API 1164, TSA SD-01/SD-02, IEC 62443, and NIST CSF
- Passive monitoring tools for OT network traffic capture
- Access to network diagrams, SCADA architecture documentation, and safety studies (HAZOP)
## Workflow
### Step 1: Scope Assessment Based on Facility Type
Oil and gas facilities have unique characteristics based on their operational segment that affect the assessment approach.
```yaml
# Oil & Gas Cybersecurity Assessment Scope
facility:
name: "Gulf Coast Refinery"
segment: "Downstream"
capacity: "250,000 barrels per day"
regulatory: ["TSA SD-02", "API 1164", "IEC 62443", "NIST CSF"]
assessment_areas:
process_control:
description: "Refinery DCS and SCADA systems"
systems:
- "Honeywell Experion DCS - main process control"
- "Yokogawa CENTUM VP - hydrocracker unit"
- "Triconex SIS - emergency shutdown systems"
- "Allen-Bradley PLCs - utilities and tank farm"
protocols: ["Modbus/TCP", "OPC UA", "HART", "Foundation Fieldbus"]
pipeline_scada:
description: "Pipeline SCADA for crude receipt and product dispatch"
systems:
- "ABB RTU560 - pipeline RTUs at pump stations"
- "GE iFIX SCADA - pipeline control center"
- "Flow computers - custody transfer metering"
protocols: ["DNP3", "Modbus RTU over serial", "IEC 60870-5-104"]
communications: ["Licensed radio", "Leased line", "Satellite (VSAT)"]
safety_systems:
description: "Safety Instrumented Systems and fire/gas detection"
systems:
- "Schneider Triconex 3008 - process SIS"
- "Honeywell FSC - fire and gas"
- "Combustion turbine protection systems"
criticality: "SIL 2/3 rated - highest priority"
remote_access:
description: "Vendor and operator remote access to OT"
methods:
- "Citrix-based remote access to SCADA terminals"
- "VPN to vendor support for DCS maintenance"
- "Satellite communication to remote pump stations"
physical_security:
description: "Physical security integration with cyber"
systems:
- "Access control systems (badge readers)"
- "CCTV with IP network connectivity"
- "Perimeter intrusion detection"
compliance_mapping:
tsa_sd_02:
- "Implement network segmentation between IT and OT"
- "Develop and maintain a Cybersecurity Implementation Plan (CIP)"
- "Establish a Cybersecurity Assessment Program"
- "Report cybersecurity incidents to CISA within 24 hours"
- "Implement access control measures for critical OT systems"
api_1164:
- "Risk-based cybersecurity program for pipeline SCADA"
- "Asset identification and classification"
- "Network security and access control"
- "Personnel security and training"
- "Incident response and recovery"
```
### Step 2: Assess Pipeline SCADA Security
Pipeline SCADA systems have unique challenges including long-distance communications over untrusted media, unmanned remote sites, and custody transfer integrity requirements.
```python
#!/usr/bin/env python3
"""Pipeline SCADA Security Assessment Tool.
Evaluates security of pipeline SCADA systems against
API 1164 and TSA Pipeline Security Directive requirements.
"""
import json
import sys
from dataclasses import dataclass, field, asdict
from datetime import datetime
@dataclass
class AssessmentFinding:
finding_id: str
category: str
severity: str
title: str
description: str
affected_systems: list
regulatory_reference: str
remediation: str
timeline: str
@dataclass
class ComplianceCheck:
requirement_id: str
description: str
standard: str
status: str # compliant, partial, non-compliant
evidence: str
gap: str = ""
class PipelineSCADAAssessment:
"""Pipeline SCADA security assessment per API 1164 / TSA SD-02."""
def __init__(self, facility_name):
self.facility = facility_name
self.findings = []
self.compliance_checks = []
self.finding_counter = 1
def assess_network_architecture(self, architecture_data):
"""Evaluate pipeline SCADA network architecture."""
checks = []
# TSA SD-02: Network segmentation between IT and OT
if not architecture_data.get("it_ot_segmentation"):
self.findings.append(AssessmentFinding(
finding_id=f"OG-{self.finding_counter:03d}",
category="Network Architecture",
severity="critical",
title="No IT/OT Network Segmentation",
description=(
"Pipeline SCADA network is not segmented from corporate IT. "
"An attacker compromising the corporate network could pivot "
"directly to pipeline control systems."
),
affected_systems=["Pipeline SCADA servers", "RTU communications"],
regulatory_reference="TSA SD-02 Section 2.1; API 1164 Section 7",
remediation="Deploy DMZ with industrial firewall between IT and pipeline SCADA",
timeline="30 days",
))
self.finding_counter += 1
# Check for encrypted RTU communications
if architecture_data.get("rtu_comm_encrypted") is False:
self.findings.append(AssessmentFinding(
finding_id=f"OG-{self.finding_counter:03d}",
category="Communication Security",
severity="high",
title="Unencrypted Pipeline RTU Communications",
description=(
"DNP3 communications between control center and remote RTUs "
"traverse radio/satellite links without encryption. An attacker "
"with radio access could intercept or inject SCADA commands."
),
affected_systems=["Pipeline RTUs", "SCADA master station"],
regulatory_reference="API 1164 Section 7.3; IEC 62351",
remediation="Deploy DNP3 Secure Authentication or VPN tunnel for RTU links",
timeline="90 days",
))
self.finding_counter += 1
# Check remote pump station physical security
if not architecture_data.get("remote_site_intrusion_detection"):
self.findings.append(AssessmentFinding(
finding_id=f"OG-{self.finding_counter:03d}",
category="Physical-Cyber Convergence",
severity="high",
title="Remote Pump Stations Lack Physical Intrusion Detection",
description=(
"Unmanned pump stations along the pipeline corridor lack physical "
"intrusion detection systems. An attacker could gain physical access "
"to RTUs and SCADA communication equipment without detection."
),
affected_systems=["Remote pump station RTUs and networking equipment"],
regulatory_reference="TSA SD-02 Section 2.3; API 1164 Section 10",
remediation="Install intrusion detection with cellular alerting at remRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.