Back to skill

Security audit

Ainative Chat Completions

Security checks for vulnerabilities and agentic risk

Overview

The skill is coherent documentation for AINative chat completions, but it teaches a browser-side API key pattern that could expose a user's account credential.

Review this skill before installing or following it. Use server-side routes or server actions for AINative calls, keep API keys in server-only secrets, rotate any key that was placed in browser code, and avoid sending sensitive personal or regulated data unless you have reviewed AINative's handling terms and added consent, minimization, and redaction controls.

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 (2)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:67
Finding

Browser-Side API Key Exposure in React Integration Example

Content
View full analysis
``` ### Technical Analysis The documented React integration passes an API key directly to a client-side provider. Although `ak_your_key` is a placeholder rather than a real embedded credential, users following this pattern would likely substitute a production key. Secrets included in browser-side applications cannot be kept confidential. The key may be recovered from the compiled JavaScript bundle, source maps, browser developer tools, runtime state, or intercepted client requests. Transport encryption does not prevent users controlling the browser from viewing credentials sent by that browser. Direct network transmission of prompts and conversation history to the declared AINative endpoint is necessary for the hosted chat-completions functionality and is clearly disclosed. The excessive privilege arises from giving every browser client possession of a reusable account credential rather than mediating requests through a trusted server. ### Attack Path 1. A developer follows the documented React example and replaces `ak_your_key` with a valid production API key. 2. The build system embeds the key into browser-accessible JavaScript or application runtime configuration. 3. An attacker visits the application and inspects its JavaScript, network requests, or component state. 4. The attacker extracts the reusable API key. 5. The attacker submits requests directly to the AINative API using the victim's credential. 6. Those requests consume the victim's credits and quotas and may continue until the key is revoked. ### Impact Assessment An attacker could obtain the same API authorization granted to the exposed key. Depending on the p ...[truncated 338 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:63
Finding

Unpinned Third-Party npm Dependency Installation

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (11)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill broadly instructs agents to send conversation messages to a third-party API but provides no warning that user prompts, system prompts, and chat history are transmitted off-platform. This omission can lead to inadvertent disclosure of sensitive or regulated data when the skill is used in privacy-sensitive contexts.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 11)May include surrounding context.

Endpoint

text
POST https://api.ainative.studio/v1/public/chat/completions

Auth: X-API-Key: ak_... or Authorization: Bearer <jwt>

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 22)May include surrounding context.

Endpoint

text
POST https://api.ainative.studio/v1/public/chat/completions

Auth: X-API-Key: ak_... or Authorization: Bearer <jwt>

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 45)May include surrounding context.

Endpoint

text
POST https://api.ainative.studio/v1/public/chat/completions

Auth: X-API-Key: ak_... or Authorization: Bearer <jwt>

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 152)May include surrounding context.

Endpoint

text
POST https://api.ainative.studio/v1/public/chat/completions

Auth: X-API-Key: ak_... or Authorization: Bearer <jwt>

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 21)May include surrounding context.

python
import requests

response = requests.post(
    "https://api.ainative.studio/v1/public/chat/completions",
    headers={"X-API-Key": "ak_your_key"},
    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 44)May include surrounding context.

python
import requests

response = requests.post(
    "https://api.ainative.studio/v1/public/chat/completions",
    headers={"X-API-Key": "ak_your_key"},
    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 · SKILL.md (reported line 21)May include surrounding context.

python
import requests

response = requests.post(
    "https://api.ainative.studio/v1/public/chat/completions",
    headers={"X-API-Key": "ak_your_key"},
    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 · SKILL.md (reported line 44)May include surrounding context.

python
import requests

response = requests.post(
    "https://api.ainative.studio/v1/public/chat/completions",
    headers={"X-API-Key": "ak_your_key"},
    json={

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The React example places an API key in client-side code via AINativeProvider config, which would expose the credential to every browser user and allow unauthorized reuse. In a skill intended as implementation guidance, this is dangerous because users may copy the pattern directly into production and leak a live provider key.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The documentation demonstrates use of API keys and server-side credential access but does not warn readers about secure storage, rotation, least privilege, or keeping secrets out of source control and client bundles. Because this is instructional content, missing credential-handling guidance materially increases the chance of secret exposure through copy-paste implementation.

Content

No source excerpt is available for this finding.