Back to skill

Security audit

Skill Consultoria Ia

Security checks for vulnerabilities and agentic risk

Overview

This Spanish AI-consulting skill is mostly documentation, but it recommends broad command, file-writing, memory, automation, and client-data workflows without enough scoping or safeguards.

Install only if you are prepared to treat this as a high-trust consulting automation template. Before enabling the recommended agents, remove or tightly sandbox exec/write access, disable scheduled runs by default, require confirmation for external updates and deployments, segregate client memory, and add privacy controls for transcripts, recordings, customer data, financial/tax integrations, and production data migrations.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
agentes/agente-analista.md:200
Finding

Excessive Unattended Command-Execution and Filesystem Permissions

Content
View full analysis

Vulnerability Details

File Location: agentes/agente-analista.md:200-207
Vulnerability Type: Excessive agent permissions and unattended execution
Risk Level: Medium

Vulnerable Configuration

json
{
  "agents": {
    "analista": {
      "model": "claude-3-haiku-20240307",
      "systemPrompt": "Eres analista especializado en medir impacto de IA...",
      "tools": ["memory_search", "exec", "write"],
      "workspace": "/skills/consultoria-ia",
      "schedule": "0 9 * * 1"  # Lunes 9:00 AM
    }
  }
}

The general requirements also request broad permissions in SKILL.md:56-59:

markdown
## Requisitos
- OpenClaw 2026.4.0 o superior
- Acceso a modelos: Claude Sonnet, GPT-4, Claude Haiku
- Permisos: filesystem, memory, tools básicos

Technical Analysis

The recommended analyst configuration violates the principle of least privilege. Its declared responsibilities are metric analysis, ROI calculation, and report generation, but it is granted:

  • exec, which can invoke local commands with the privileges of the OpenClaw process.
  • write, which can modify files accessible to that process.
  • memory_search, which introduces potentially untrusted persistent content into the agent context.
  • A weekly schedule, which permits the agent to operate without contemporaneous user review.

The configuration does not define a command allowlist, a report-only destination, filesystem confinement, input trust boundaries, or mandatory approval before side effects. Consequently, adversarial instructions embedded in client metrics, project documents, integration responses, or retrieved memory could influence the scheduled model into invoking privileged tools.

No malicious command or active exploitation logic is shipped in the project. This finding concerns an unsafe recommended privilege boundary that creates an exploitable path when deployed.

Attack Path

  1. An attacker places adversarial instructions in content that the analyst is expe ...[truncated 1289 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec from the analyst agent because ROI analysis and report generation do not inherently require shell access.
  2. Replace unrestricted write with a narrowly scoped report-output capability restricted to a dedicated directory.
  3. Apply operating-system and OpenClaw sandboxing so the agent cannot access unrelated project, user, configuration, or credential files.
  4. Disable scheduled execution by default, or require explicit approval before processing newly retrieved content.
  5. Require human confirmation for every command execution, file overwrite, deletion, outbound message, or other side effect.
  6. Allowlist approved metric sources, file types, output paths, and operations.
  7. Treat client data, monitoring output, integration responses, and retrieved memory as untrusted data rather than instructions.
  8. Add explicit prompt-injection defenses that prohibit tool use based solely on instructions found in analyzed content.
  9. Log all tool invocations and alert operators when scheduled tasks attempt a side effect.
  10. If command execution is indispensable, expose narrowly defined helper operations instead of a general-purpose exec tool and run them in an isolated, non-privileged environment.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (29)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file contains user-facing operational instructions exclusively in Spanish, and there is no indication that the skill supports other languages or that Spanish is a required, justified locale constraint. Under the policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The document proposes customer clustering, recommendation systems, and integration of sales and client data, but includes no guidance on lawful data handling, minimization, consent, retention, access controls, or privacy impact assessment. In a business-consulting skill, this omission can lead downstream users to implement analytics on customer data in ways that violate privacy requirements or expose sensitive customer information through poorly governed pipelines.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file states that the skill integrates with Mission Control to create tasks automatically, sync project status, and send deadline notifications. Those behaviors can modify external systems and potentially expose project data, but the README does not provide a user-facing warning about these impacts or the need to review permissions before use.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The document highlights possible integration with AFIP, MercadoLibre, and Argentine banking APIs, which commonly involve sensitive financial, tax, or personal data. The skill description does not include any warning about privacy, credential handling, or compliance considerations for these integrations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The document explicitly plans automated analysis of interview transcriptions, which are likely to contain sensitive client, employee, financial, or operational information, but provides no safeguards for consent, data minimization, retention, or restrictions on sending that data to third-party AI providers. In a consulting context, this omission can lead to unauthorized disclosure of confidential business information and privacy/compliance issues if raw transcripts are processed by external services.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The plan encourages AI-assisted documentation, architecture, coding, dashboards, and automated KPI/ROI reporting without warning that prompts may contain source code, infrastructure details, business metrics, or customer data transmitted to external vendors. In this skill context, those materials are commercially sensitive and could expose intellectual property, internal system details, or confidential client performance data if handled through unapproved services.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The system prompts are written as fixed-role instructions in Spanish ("Eres consultor...", "Eres arquitecto...", "Eres analista...") and the skill documentation provides commands and descriptions only in Spanish. There is no indication that users may choose another language or that the skill is intentionally limited to Spanish-speaking contexts, which can violate language/locale policy requirements.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill advertises automatic task creation, project synchronization, and deadline notifications in an external system without any explicit user-consent, confirmation, or change-impact warning. That creates a real risk of unintended state-changing actions in third-party systems, especially if an agent interprets these integrations as safe to invoke automatically during normal conversation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description says the skill uses vectorized memory to retrieve similar cases and learn from previous projects, but it provides no notice about data retention, reuse, privacy boundaries, or handling of sensitive client information. In a consulting context, this can expose confidential business data across engagements or cause users to share information under false assumptions about isolation.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill also includes broad 'write' access despite being positioned mainly as an analyst that monitors metrics and generates reports. Unrestricted file-writing can be abused to alter configuration, overwrite reports, drop malicious content into the workspace, or persist attacker-influenced outputs in places later trusted by users or other agents.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill advertises executable and file-writing tools in its configuration but provides no warning to users that the agent can execute commands or modify files as part of its operation. This increases the risk of unsafe use because users may treat the skill as a read-only analytics assistant when it actually has side-effecting capabilities that could be triggered by prompts, data content, or agent autonomy.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill combines promises of automatic repository setup and CI/CD actions with enabled exec and write tools, yet it provides no prominent warning that the agent can modify files or execute commands. This increases the likelihood of unsafe user expectations and makes prompt-driven destructive actions, unauthorized file edits, or environment changes more likely because users are not clearly informed about operational side effects.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly enables the exec tool for an agent whose documented role is architecture, estimation, and guided development, but it does not define strict execution boundaries, approval gates, or command allowlists. In practice, this creates unnecessary command-execution capability that could be abused through prompt injection, mis-scoped user requests, or unsafe automation to run arbitrary shell commands in the configured workspace or cwd.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · agentes/agente-desarrollador.md (reported line 175)May include surrounding context.

md
## Próximas mejoras
1. **Templates código** específicos por vertical
2. **Auto-deployment** a cloud providers
3. **Monitoring automático** setup

---

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill states it will recover similar past cases and learn from previous diagnoses without any notice, consent, or data-separation guarantees. In a consulting context, prior diagnoses may contain confidential client, operational, financial, or regulated data, so silent reuse creates a real risk of cross-client data exposure or improper secondary use.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The checklist recommends uploading interview recordings to a transcription tool and using AI on the resulting content, but it does not require verifying client consent, contractual confidentiality obligations, data classification, retention limits, or approved vendors. In a consulting/interview context, recordings may contain sensitive business, personal, or proprietary information, so sending them to third-party AI services can cause unauthorized disclosure or compliance violations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The workflow explicitly recommends testing with real data during prototyping but does not require data minimization, anonymization, consent, or non-production safeguards. In an AI consulting context, this can expose personal or sensitive business data during development and increase the chance of privacy violations, data leakage, or non-compliant handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The implementation phase includes production deployment and data migration without explicit prerequisites such as backups, rollback plans, validation testing, change approval, or privacy/security checks. This omission makes the skill more dangerous because it operationalizes high-risk actions in client environments and could lead to service disruption, data loss, integrity issues, or exposure of sensitive data.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The workflow recommends using AI for transcription analysis and automated interview support, but it omits any privacy, confidentiality, or access-control safeguards. Because this skill is designed for real client interviews, the operational context makes accidental disclosure more likely: users may process raw customer conversations containing proprietary business data or personal information without realizing the security implications.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The prompt explicitly asks users to paste full interview transcripts into an AI system without any guidance to remove personal, confidential, commercial, or regulated data first. In the context of SME/client discovery interviews, transcripts can easily contain sensitive business information, employee details, health-related data, or customer information, creating privacy, confidentiality, and compliance risk if shared improperly.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The template explicitly suggests bringing a recorder with only a minimal 'con permiso' note, but it provides no guidance on informed consent, lawful basis, retention, access controls, or secure disposal of recordings. In a client interview context, recordings may capture personal, business-confidential, or sensitive operational information, creating privacy, compliance, and data leakage risk if staff use the template as written.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file consistently presents the skill description, commands, and examples only in Spanish. Under the policy, forcing a specific language without user opt-in or a documented justification is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill also includes broad 'write' access despite being positioned mainly as an analyst that monitors metrics and generates reports. Unrestricted file-writing can be abused to alter configuration, overwrite reports, drop malicious content into the workspace, or persist attacker-influenced outputs in places later trusted by users or other agents.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

All user-facing instructions and examples are written as if the skill operates in Spanish, and there is no indication that users may choose another language. This can violate language-choice policy when the skill implicitly constrains output locale without opt-in or justification.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

Most of the file frames the agent as a technical architect for SMEs that analyzes requirements, designs architecture, estimates effort, and provides guided development. The GitHub/GitLab integration claims 'Setup automático repositorio' and 'CI/CD pipeline básico', which move from advisory output into operational modification capabilities not clearly justified by the main purpose statement.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.prompt_injection_instructions

Prompt-injection style instruction pattern detected.

Warn
Code
suspicious.prompt_injection_instructions
Location
SKILL.md:37