Back to skill

Security audit

Kiri Engine Skill

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed KIRI Engine helper that uploads user-selected photos or videos for 3D reconstruction, with real but expected third-party upload and API key handling risks.

Install only if you are comfortable sending the selected scan media to KIRI Engine and storing the KIRI API key in a local plaintext JSON file. Use a dedicated output folder for downloads, avoid uploading broad directories, do not commit the config file, and rotate the API key if it is exposed.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (11)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/test-image-filter.ps1 (reported line 38)May include surrounding context.

text
$root = Join-Path ([IO.Path]::GetTempPath()) ("kiri-filter-" + [guid]::NewGuid().ToString('N'))
New-Item -ItemType Directory -Path (Join-Path $root 'sub') -Force | Out-Null
foreach ($n in 'a.jpg','b.JPG','c.jpeg','d.png','e.tif','f.tiff') { Set-Content (Join-Path $root $n) 'x' }
foreach ($n in 'notes.txt','model.obj','secret.json','clip.mp4') { Set-Content (Join-Path $root $n) 'x' }
Set-Content (Join-Path $root 'sub\g.png') 'x'
Set-Content (Join-Path $root 'sub\readme.md') 'x'

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/test-image-filter.ps1 (reported line 47)May include surrounding context.

text
$root = Join-Path ([IO.Path]::GetTempPath()) ("kiri-filter-" + [guid]::NewGuid().ToString('N'))
New-Item -ItemType Directory -Path (Join-Path $root 'sub') -Force | Out-Null
foreach ($n in 'a.jpg','b.JPG','c.jpeg','d.png','e.tif','f.tiff') { Set-Content (Join-Path $root $n) 'x' }
foreach ($n in 'notes.txt','model.obj','secret.json','clip.mp4') { Set-Content (Join-Path $root $n) 'x' }
Set-Content (Join-Path $root 'sub\g.png') 'x'
Set-Content (Join-Path $root 'sub\readme.md') 'x'

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/test-image-filter.ps1 (reported line 58)May include surrounding context.

text
$root = Join-Path ([IO.Path]::GetTempPath()) ("kiri-filter-" + [guid]::NewGuid().ToString('N'))
New-Item -ItemType Directory -Path (Join-Path $root 'sub') -Force | Out-Null
foreach ($n in 'a.jpg','b.JPG','c.jpeg','d.png','e.tif','f.tiff') { Set-Content (Join-Path $root $n) 'x' }
foreach ($n in 'notes.txt','model.obj','secret.json','clip.mp4') { Set-Content (Join-Path $root $n) 'x' }
Set-Content (Join-Path $root 'sub\g.png') 'x'
Set-Content (Join-Path $root 'sub\readme.md') 'x'

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/test-image-filter.ps1 (reported line 60)May include surrounding context.

text
$root = Join-Path ([IO.Path]::GetTempPath()) ("kiri-filter-" + [guid]::NewGuid().ToString('N'))
New-Item -ItemType Directory -Path (Join-Path $root 'sub') -Force | Out-Null
foreach ($n in 'a.jpg','b.JPG','c.jpeg','d.png','e.tif','f.tiff') { Set-Content (Join-Path $root $n) 'x' }
foreach ($n in 'notes.txt','model.obj','secret.json','clip.mp4') { Set-Content (Join-Path $root $n) 'x' }
Set-Content (Join-Path $root 'sub\g.png') 'x'
Set-Content (Join-Path $root 'sub\readme.md') 'x'

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README explicitly instructs users to save the API key in a local JSON file in plaintext under the user profile. Plaintext credential storage increases the chance of credential theft through local compromise, backups, screenshots, malware, or accidental sharing; the later changelog note acknowledges plaintext storage but does not provide a safer default in the setup instructions.

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 · README.md (reported line 131)May include surrounding context.

md
## API 文档

- Base URL: `https://api.kiriengine.app/api/`
- 官方文档: https://docs.kiriengine.app/

## 变更

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

md
## API 文档

- Base URL: `https://api.kiriengine.app/api/`
- 官方文档: https://docs.kiriengine.app/

## 变更

External Transmission

Medium
Category
Data Exfiltration
Confidence
83% confidence
Finding

The script is designed to transmit local videos/images and an API bearer token to an external service at api.kiriengine.app, and later downloads a model archive from a URL returned by that service. In this skill context, that transmission is intentional and core to functionality, but it still carries real confidentiality and supply-chain risk because potentially sensitive media is exfiltrated to a third party and downloaded content is trusted without additional validation.

Content

Scanner excerpt · scripts/kiri-engine.ps1 (reported line 50)May include surrounding context.

text
)

$ConfigPath = Join-Path $env:USERPROFILE '.kiri-engine-config.json'
$BaseUrl = 'https://api.kiriengine.app/api/v1/open'

# ── 读取 API Key ──────────────────────────────────────────
function Get-ApiKey {

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The natural-language instructions throughout the README force a specific language/locale for users. Under the policy, a skill should not impose a language without user opt-in unless the constraint is clearly documented and justified as region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The synopsis, parameter help text, and runtime messages are all Chinese-language only. Under the policy, forcing a specific language without opt-in or a documented locale-specific justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

This code creates an output directory, downloads a ZIP file, extracts it, and then deletes the downloaded archive. Although there are progress messages during execution, there is no upfront disclosure in the script's synopsis/description or near the download action warning the user that local filesystem changes and deletion will occur.

Content

No source excerpt is available for this finding.