Back to skill

Security audit

5GC Automation

Security checks for vulnerabilities and agentic risk

Overview

This skill automates sensitive 5GC console changes but ships shared credentials, disables TLS checks, caches sessions, and performs policy mutations without strong safeguards.

Review before installing. Only run this in an isolated lab or explicitly authorized 5GC management environment, rotate the exposed credentials, avoid shared accounts, pin dependencies, require valid TLS certificates, disable or protect session caching, and add confirmation or dry-run controls before any policy replacement or bulk edit.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (6)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/5gc.js:171
Finding

Shell Command Injection Through Forwarded CLI Arguments

Content
View full analysis
process.exit(code || 0)); child.on('error', (err) => { console.error('Launch failed:', err.message); process.exit(1); }); ``` ### Technical Analysis The dispatcher forwards user-controlled CLI option values to `child_process.spawn()` while enabling `shell: true`. Enabling a shell is unnecessary because Node.js can execute the selected JavaScript file directly. With shell execution enabled, argument values containing shell metacharacters may be interpreted by the platform shell rather than remaining opaque arguments. The entity and action are allowlisted, and the script path comes from a fixed map, but arbitrary option values are preserved by `normalizeChildArgs()` without a comprehensive character or type allowlist. ### Attack Path 1. An attacker obtains the ability to invoke the Skill or influence its CLI parameters. 2. The attacker places shell syntax in a forwarded option value, such as a project name or entity name. 3. `normalizeChildArgs()` preserves the malicious value in `childArgv`. 4. `spawn()` invokes the command through a shell because `shell: true` is configured. 5. The shell interprets the injected syntax and executes an additional local command. 6. The injected command runs with the same operating-system privileges as the Agent or user running the Skill. ### Impact Assessment Successful expl ...[truncated 322 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/amf-add-skill.js:19
Finding

Hardcoded Shared Administrative Credentials

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/default-rule-add-skill.js:695
Finding

TLS Server Authentication Is Systematically Disabled

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/amf-add-skill.js:33
Finding

Authentication Sessions Stored as Plaintext Files Without Explicit Access Restrictions

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/default-rule-add-skill.js:548
Finding

Hardcoded Policy Record ID Used When Secure Lookup Fails

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:63
Finding

Unpinned Dependency Installation and Runtime Tool Execution

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (54)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The documentation advertises broad batch add/edit and one-click PCF rule setup, yet the analyzed implementation appears narrower and includes undisclosed credentialed access to an internal web system. This discrepancy is security-significant because it obscures actual authority and potential destructive effects from reviewers and operators.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation exposes live-looking login credentials for a 5GC dashboard, which could permit unauthorized access if those credentials are valid or reused elsewhere. Given the skill manages core-network elements and policy configuration, compromise of these credentials could directly impact sensitive telecom infrastructure.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The default-rule workflow documents automatic deletion and recreation of same-named resources without a prominent destructive warning. Deleting and rebuilding policy objects in a live 5GC environment can interrupt service, break references, or replace intended configuration with defaults.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Hardcoded credentials in plaintext are a direct secret exposure: anyone who can read the file, logs, repository history, or packaged skill can recover the account and use it to log into the target system. Because the script targets a management interface for 5GC components, compromise of these credentials could allow unauthorized provisioning or modification of network-core settings.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The script contains hard-coded credentials (dotouch@dotouch.com.cn / dotouch) and automatically authenticates to a live HTTPS endpoint. Embedding reusable secrets in source code is dangerous because anyone with access to the skill can extract them and gain unauthorized access to the management interface, and the skill context is especially sensitive because it performs privileged 5GC/PCF configuration changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The automated login uses hard-coded credentials without disclosure or runtime consent, exposing an authenticated administrative account to anyone who can read or run the skill. In this skill's context, the account is immediately used to modify core network policy objects, so compromise of the secret can directly lead to unauthorized changes in PCF/QoS/PCC configuration.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script automatically deletes any existing PCC record with the target ID before recreating it, without strong confirmation, dry-run mode, or safeguards verifying that the object is the intended one. In a live 5GC policy environment, this can disrupt service policy behavior or destroy existing configuration, and an operator or attacker supplying IDs can trigger destructive state changes unintentionally or abusively.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The script contains hardcoded credentials and automatically persists session cookies to disk, enabling anyone with access to the code or host filesystem to reuse privileged access to the 5GC management interface. In this skill context, the target is an administrative web console for core network components, so credential leakage or stolen session state could lead to unauthorized configuration changes across sensitive telecom infrastructure.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The script hardcodes a real-looking email/password pair directly into browser automation and uses them to authenticate to an internal HTTPS endpoint. Embedded credentials are dangerous because anyone with access to the skill can reuse them, and they cannot be rotated or scoped safely once the script is copied or shared.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The script silently performs credentialed login and caches session cookies without warning the operator. In an automation skill for telecom core management, this creates hidden authentication side effects and leaves behind reusable access artifacts that increase the chance of unauthorized administrative access.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Using hard-coded credentials for remote login without disclosure means the skill ships with embedded access to a live system. This is especially dangerous in a 5GC administrative context because compromise of those credentials could allow unauthorized creation or modification of core network policy components.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The code not only uses hardcoded credentials but does so without any warning, consent prompt, or disclosure to the operator, making silent privileged access part of normal execution. Because this skill manages 5GC web console state, the hidden credential use is especially dangerous: users may unknowingly perform actions under a shared privileged account, undermining accountability and enabling unauthorized changes.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The code silently logs in with a fixed username and password without any disclosure to the user. In a skill context, this is especially dangerous because operators may run the automation without realizing it contains privileged access material, and the exposed credentials can be reused outside the intended workflow against the management interface.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The script embeds a real username and password directly in source code and then uses them to authenticate to a live administrative web interface. Hardcoded credentials are dangerous because they are easily leaked through source control, logs, skill distribution, or reuse in other environments, enabling unauthorized access and configuration changes across the 5GC management plane.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The code performs an automated login using embedded credentials without any user awareness, consent, or protective handling of the secret. In the context of a 5GC management skill that can modify network-policy state, this materially increases the risk of silent privileged access and misuse if the script is copied, triggered by another agent, or run in an unintended environment.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill documents browser-driven access to a networked 5GC dashboard but does not declare an explicit tool scope such as allowed tools or permissions. In an automation skill that can log in and modify telecom control-plane configuration, undeclared network/browser capability increases the chance of unintended or over-broad execution.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
79% confidence
Finding

The documentation instructs users to run 'npx playwright' without pinning a version, which can pull whatever version is current at execution time. That undermines reproducibility and can expose users to supply-chain risk or unexpected behavior changes in a highly privileged automation context.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

Persisted Playwright session caches can retain authentication cookies, tokens, and other sensitive state on disk, enabling later unauthorized reuse by other local users or processes. The risk is higher here because the cached session appears to grant access to a privileged telecom management interface.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Bulk edit behavior triggered by omitting '--name' can modify all matching resources in a project, but the warning is not sufficiently explicit or prominent. In this context, a single mistaken command could mass-change core 5GC network configuration and cause widespread service impact.

Content

No source excerpt is available for this finding.