Back to skill

Security audit

AIOZ Stream Toolkit

Security checks for vulnerabilities and agentic risk

Overview

The skill matches its AIOZ Stream purpose, but its scripts handle secret API keys and user-provided text in ways that deserve review before use.

Install only if you are comfortable giving the skill access to an AIOZ Stream API key that can read account/media data and create or upload resources. Use a narrowly scoped or temporary key if available, inject credentials through a protected environment, avoid running these scripts on shared machines, and be cautious with untrusted video titles, stream names, or search strings until the JSON construction and credential handling are hardened.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (4)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/upload_video_file.sh:63
Finding

API Credentials Exposed Through Process Command-Line Arguments

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/upload_video_file.sh:63
Finding

Video Title Is Interpolated into JSON Without Escaping

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/create_livestream_key.sh:14
Finding

Livestream Key Name Is Interpolated into JSON Without Escaping

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/get_total_media.sh:20
Finding

Media Search Value Is Interpolated into JSON Without Escaping

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (52)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill declares shell-capable behavior and instructs execution of local scripts and curl commands, but it does not define an explicit tool scope such as permissions or allowed-tools. That omission weakens least-privilege controls and can let an agent invoke broader shell capabilities than are necessary for simple API interactions, increasing the blast radius if the skill is misused or later modified.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 17)May include surrounding context.

md
description: AIOZ Stream secret API key
          required: true
      bins:
        - curl
        - jq
        - md5sum
        - file

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation instructs users to supply both public and secret API keys for every request but provides no guidance on secure handling. In a skill context, this increases the chance that users paste secrets into chat, logs, or insecure script invocations, leading to credential disclosure and unauthorized access to media and analytics resources.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Passing secret credentials as positional shell arguments can expose them through shell history, process listings, terminal logging, and audit trails. Because this skill is intended to guide API operations, normalizing this pattern makes accidental secret leakage substantially more likely in real deployments.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/create_livestream_key.sh (reported line 14)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/live_streams' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This shell script sends sensitive authentication values from environment variables as HTTP headers in a network request. While the usage line shows that keys are required, there is no explicit warning, confirmation, or user-facing disclosure that the script will transmit those credentials to a remote API.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 47)May include surrounding context.

sh
fi

# Send request to get watch time sum metric
WATCH_TIME_RESPONSE=$(curl -s -X POST "https://api.aiozstream.network/api/analytics/metrics/data/watch_time/sum" \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/get_aggregate_metric.sh (reported line 34)May include surrounding context.

sh
fi

# Send request to get watch time sum metric
WATCH_TIME_RESPONSE=$(curl -s -X POST "https://api.aiozstream.network/api/analytics/metrics/data/watch_time/sum" \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This code file reads sensitive environment variables and sends them as authentication headers to a remote API. While the usage comment shows how to provide the variables, it does not warn that credentials will be transmitted to an external service, and there is no runtime disclosure, confirmation, or explicit cautionary comment.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 81)May include surrounding context.

sh
# {"status":"success","data":{"context":{"metric":"view","time_frame":{"from":"2024-12-31T17:00:00Z","to":"2026-03-24T17:00:00Z"},"breakdown":"device_type","filter":{"media_type":"video"}},"total":2,"data":[{"metric_value":229,"dimension_value":"computer","emitted_at":"0001-01-01T00:00:00Z"},{"metric_value":41,"dimension_value":"phone","emitted_at":"0001-01-01T00:00:00Z"}]}}{"status":"success","data":{"context":{"metric":"view","time_frame":{"from":"2024-12-31T17:00:00Z","to":"2026-03-24T17:00:00Z"},"breakdown":"device_type","filter":{"media_type":"video"}},"total":2,"data":[{"metric_value":229,"dimension_value":"computer","emitted_at":"0001-01-01T00:00:00Z"},{"metric_value":41,"dimension_value":"phone","emitted_at":"0001-01-01T00:00:00Z"}]}}
# Send request to get device type breakdown
DEVICE_TYPE_RESPONSE=$(curl -s -X POST "https://api.aiozstream.network/api/analytics/metrics/bucket/view/device-type" \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/get_breakdown_metric.sh (reported line 35)May include surrounding context.

sh
# {"status":"success","data":{"context":{"metric":"view","time_frame":{"from":"2024-12-31T17:00:00Z","to":"2026-03-24T17:00:00Z"},"breakdown":"device_type","filter":{"media_type":"video"}},"total":2,"data":[{"metric_value":229,"dimension_value":"computer","emitted_at":"0001-01-01T00:00:00Z"},{"metric_value":41,"dimension_value":"phone","emitted_at":"0001-01-01T00:00:00Z"}]}}{"status":"success","data":{"context":{"metric":"view","time_frame":{"from":"2024-12-31T17:00:00Z","to":"2026-03-24T17:00:00Z"},"breakdown":"device_type","filter":{"media_type":"video"}},"total":2,"data":[{"metric_value":229,"dimension_value":"computer","emitted_at":"0001-01-01T00:00:00Z"},{"metric_value":41,"dimension_value":"phone","emitted_at":"0001-01-01T00:00:00Z"}]}}
# Send request to get device type breakdown
DEVICE_TYPE_RESPONSE=$(curl -s -X POST "https://api.aiozstream.network/api/analytics/metrics/bucket/view/device-type" \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This shell script sends both STREAM_PUBLIC_KEY and STREAM_SECRET_KEY to a remote API via curl headers. Although the usage comment indicates that keys are required, it does not clearly warn the user that credentials will be transmitted over the network, which is a safety-relevant operation under the code-file warning criteria.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

This shell script performs an HTTP POST and sends both a public key and secret key as request headers. While the file comments show how to supply the credentials, there is no explicit warning or disclosure that the script will transmit sensitive credentials to a remote API endpoint.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 149)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 178)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 199)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 212)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 253)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api_reference.md (reported line 10)May include surrounding context.

md
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 47)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 54)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 81)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 88)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 95)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/analytic_data.sh (reported line 102)May include surrounding context.

sh
exit 1
fi

curl -s -X POST 'https://api.aiozstream.network/api/media' \
  -H "stream-public-key: $PUBLIC_KEY" \
  -H "stream-secret-key: $SECRET_KEY" \
  -H 'Content-Type: application/json' \