T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/tools/run_script.ps1:70- Finding
Untrusted Configurable DLL Loading in an Elevated PowerShell Process
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears aimed at legitimate TIA Portal automation, but it asks users to run elevated PowerShell while loading a DLL from an editable config path without validation.
Review this before installing on an engineering workstation. Only use it if you trust the skill source, verify env.json points to the real local Siemens API directory, avoid administrator PowerShell unless Siemens specifically requires it, and understand that imported or compiled SCL may change PLC project artifacts.
scripts/tools/run_script.ps1:70Untrusted Configurable DLL Loading in an Elevated PowerShell Process
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
---
name: tia-portal-openness
description: "Automate TIA Portal via Openness API for PLC project engineering"
tags: [domain-specific, plc, cli, api-integration, file-based]
This PowerShell skill includes its synopsis, description, parameter help, and examples in Chinese, and the runtime messages also continue in that locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly justified, which is not present here.
The description says all paths are read from references/env.json and 'never hardcoded'. However, the env action explicitly searches hardcoded locations under C:\Program Files\Siemens\TIA Portal* and D:\Program Files\Siemens\TIA Portal* to discover the installation. This is a direct contradiction between the documentation and the implemented behavior.