OPC UA anonymous access
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from kittysploit import *
from lib.protocols.ics.constants import ICS_PROTOCOL_PORTS
from lib.protocols.ics.ics_scanner_client import Ics_scanner_client
from lib.protocols.ics.opcua_client import opcua_available, probe_opcua_anonymous
class Module(Scanner, Ics_scanner_client):
__info__ = {
"name": "OPC UA anonymous access",
"description": "Checks whether an OPC UA server allows anonymous browsing on port 4840",
"author": ["KittySploit Team"],
"severity": "high",
"tags": ["ics", "opcua", "scada", "gateway", "anonymous"],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 2,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals'],
'cost': 1.0,
'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', 'opcua'],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False},
'chain': {'produces_capabilities': [{'capability': 'ot_assets', 'from_detail': ''}, {'capability': 'ssrf_primitive', 'from_detail': ''}],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': []},
},
}
port = OptPort(ICS_PROTOCOL_PORTS["opcua"], "OPC UA TCP port", True)
ssl = OptBool(False, "Use opc.tcp with TLS endpoint", False)
def run(self):
host = self._host()
if not host:
print_error("Target is required")
return False
if not opcua_available():
print_error("asyncua not installed — pip install asyncua")
return False
result = probe_opcua_anonymous(host, self._port(), bool(self.ssl))
if result.anonymous:
self.set_info(severity="high", reason="OPC UA anonymous access enabled")
print_success(f"Anonymous OPC UA access on {result.url}")
return True
self.set_info(severity="info", reason=result.error or "anonymous access denied")
print_info(result.error or "Anonymous OPC UA access not available")
return False
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
05 Aug 2026 13:34Current
5.8Medium risk
Vulners AI Score5.8