Back to skill

Security audit

social-media-posts-generator

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it says, but it asks users to run an unpinned npm CLI with an API key and sends user content to an external service without enough data-handling disclosure.

Review before installing or using the CLI path. Prefer the direct curl/API example over `npx onekey`, use a narrowly scoped revocable API key, avoid sending confidential prompts or sensitive images unless the provider's data policy is acceptable, and verify the npm package provenance/version if you choose to use the CLI.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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 (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:580
Finding

Unpinned npm Package Execution Through npx

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 580–583
Vulnerability Type: Supply-chain risk caused by execution of an unpinned third-party package
Risk Level: Medium

Vulnerable Code

bash
export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key
npx onekey agent craftsman-agent/craftsman-agent image_generator '{"prompt":"Introduction to Difference between MCPs,Skills and Agents CLIs","images":[],"card_count":1,"template_id":"social-media-carousel","api_id":"image_generator","asset_size":[{"width":1080,"height":1080,"ratio":"1:1"}],"mode":"basic","session_id":"31d57eb9-9a37-4808-9c5b-1bfbb2abf5fb","session_name":"AI Poster of MCPs/CLIs/Agents","tag_list":"","model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"design_config":{"template_id":"social-media-carousel","card_count":1,"card_count_source":"default","channel_profile":"generic","audience_profile":"general","age_band":"auto","profile_version":"1.0.0","geometry_source":"profile","resolved_profiles":[{"type":"channel","id":"generic","version":"1.0.0"},{"type":"audience","id":"general","version":"1.0.0"}],"language":"auto","mode":"standard","text_model":"default","image_model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"constraints":["Limit target output build to 6 high-density pages max for physical double folding print"],"brief_inputs":[{"id":"binp-1","type":"prompt","content":"Introduction to Difference between MCPs,Skills and Agents CLIs"},{"id":"binp-2","type":"style","content":"Editorial grid layout with corporate dark deep monochromatic tones"},{"id":"binp-3","type":"constraint","content":"Limit target output build to 6 high-density pages max for physical double folding print"},{"id":"binp-1786857754660","type":"prompt","content":"Custom newly configured prompt parameter specifications instructions layout metric..."}],"text_styles":{"brand":{"color":"#8b5cf6","font":"Playfair Display","
...[truncated 3941 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the package to an explicitly reviewed version:

    bash
    npx --yes onekey@<reviewed-version> agent craftsman-agent/craftsman-agent image_generator '...'
    
  2. Document the official npm package name, publisher identity, expected registry, and reviewed version so users can verify package provenance.

  3. Prefer a project-local dependency recorded in package.json and a committed lockfile. Install it with a lockfile-enforcing command such as npm ci, then invoke the local binary.

  4. Verify package integrity using the npm lockfile integrity field, a published checksum, or a signed release where available.

  5. Review the pinned package and its transitive dependencies before recommending execution.

  6. Run the CLI with least privilege in a restricted environment or container. Do not run it as an administrator or root user.

  7. Limit credential exposure. Use a narrowly scoped, revocable key and ensure only the intended process receives it. Rotate the key immediately if package compromise is suspected.

  8. Where practical, prefer the documented direct HTTPS API request over executing a dynamically retrieved CLI package.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (16)

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The skill explicitly sends user-supplied prompts and related payload data to an external endpoint using an API key. External transmission is expected for a hosted generation service, but it remains security-relevant because potentially sensitive content and metadata leave the local trust boundary.

Content

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

bash
export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key

curl -X POST "https://agent.deepnlp.org/agent_router" \
-H "Content-Type: application/json" \
-H "X-OneKey: $DEEPNLP_ONEKEY_ROUTER_ACCESS" \
-d '{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation instructs users to upload images and send prompts, session identifiers, and design data to third-party services, but provides no privacy notice, retention statement, or warning about external processing. Users may unknowingly transmit sensitive images, confidential prompts, or identifying metadata to external infrastructure without informed consent.

Content

No source excerpt is available for this finding.

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

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

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: social-media-carousel,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                    
...[truncated 25 chars]

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill is marketed as a social-media carousel generator, but the documented supported templates include broader capabilities such as presentation, app-store assets, icon design, logo design, and photo editing. This scope mismatch can cause over-privileged or unexpected use of the skill by downstream agents and users, increasing the chance that sensitive user data or images are routed to functions outside the declared purpose.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.