Back to skill

Security audit

Salubrista HaH

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent hospital-at-home advisory knowledge package, but it embeds an inter-agent HTTP delegation flow with a hardcoded bearer token and case-context sharing instructions.

Review before installing. The medical-advisory corpus itself is coherent, but the packaged agent tooling exposes a bearer token and describes sending healthcare case context over internal plaintext HTTP hooks. Install only if that federation mechanism is removed or disabled, the token is rotated, and case sharing requires explicit user authorization and data minimization.

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

T09 · Insecure Skill Coding Practices

Warning
Location
references/agent/TOOLS.md:82
Finding

Hardcoded Bearer Token and Plaintext Transmission of Case Context

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (45)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/knowledge/hodom/normativa/02-decreto-exento-31-2024-aprueba-norma-tecnica.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/knowledge/hodom/director/03-situacion-chile-2026.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/agent/AGENTS.md`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/agent/TOOLS.md`

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The documentation contains a hardcoded bearer token for outbound requests, which is effectively a embedded secret that any agent or prompt consumer can reuse. A leaked static token enables unauthorized calls to the hook endpoint, possible impersonation, abuse of inter-agent messaging, and persistent compromise until the credential is rotated.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
77% confidence
Finding

The mandated KPI table format uses Spanish field labels (Indicador | Formula | Meta | Fuente | Periodicidad), which indicates a fixed language convention in the skill instructions. The file does not explicitly offer a user language choice or opt-in, so this can conflict with organizational language/locale flexibility requirements.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

All user-facing workflow instructions, rejection text, and operational rules are specified only in Spanish, and there is no statement allowing the user to choose another language. Under the language/locale policy, forcing a specific language without opt-in is a natural-language policy concern unless the regional restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

This markdown file defines multiple activation/dispatch conditions using broad natural-language categories such as 'problema de demanda', 'solicitud de evaluacion', and 'informe formal solicitado' without negative examples or explicit exclusion boundaries. Because these phrases overlap with many routine healthcare-planning requests, the skill may route too broadly or ambiguously before the user’s intent is well constrained.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

Line L9 describes the skill entirely in Spanish, which indicates a fixed language presentation without any user opt-in or alternative locale. The file does not document that the skill is region-specific or provide a language choice, so this is a natural-language locale policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Across the file, the natural-language instructions and persona are presented only in Spanish, and there is no indication that users may opt into another language or that the skill is restricted to a Spanish-speaking context. The policy specifically calls for flagging language or locale constraints when they are forced without user opt-in or clear justification.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill exposes an inter-agent HTTP derivation mechanism that is unrelated to its stated hospitalization-analysis purpose and expands the agent's authority beyond necessary knowledge retrieval. This creates an unnecessary outbound communication path that could be used to exfiltrate sensitive case context, trigger unintended actions in other agents, or bypass normal trust boundaries within the federation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The derivation flow instructs the agent to send case context to another agent over HTTP without any privacy notice, consent check, minimization rule, or data classification guidance. In a healthcare-oriented skill, that omission is especially dangerous because case context may contain sensitive clinical, operational, or personal data that should not be redistributed by default.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The markdown specifies 'Idioma: Espanol tecnico-profesional' as the output language, which imposes a language choice as a default behavior. Under the policy, forcing a specific language without offering user choice or opt-in is a natural-language policy violation unless the locale constraint is clearly justified as region-specific; here the file references Chilean context but also allows adaptation to local context, so the language restriction is not fully justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file’s natural-language instructions and interface description are fully in Spanish, and there is no opt-in, alternative language, or statement that the skill is limited to Spanish-speaking users or a Spanish-only deployment context. Under the stated policy, forcing a specific language without user choice can be a language/locale policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file’s natural-language instructions, field descriptions, and required outputs are entirely specified in Spanish, which effectively constrains the interaction/output language. There is no indication that users may choose another language or that the Spanish-only behavior is a documented, region-specific requirement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file’s natural-language instructions, headings, and field descriptions are all in Spanish, and there is no indication that users can opt into another language or that the skill is intentionally restricted to a Spanish-speaking context. This can violate a language/locale policy when the skill forces a specific language without user choice.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 72)May include surrounding context.

md
### 1.3. Autorizacion sanitaria

| Materia               | Exigencia                                                                                                                   |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Autoridad competente  | `SEREMI` de Salud donde se ubiquen las dependencias administrativas u oficina central                                       |
| Solicitud             | Presentacion formal por interesado o representante legal con antecedentes legales, tecnicos y de infraestructura            |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 77)May include surrounding context.

md
| Autoridad competente  | `SEREMI` de Salud donde se ubiquen las dependencias administrativas u oficina central                                       |
| Solicitud             | Presentacion formal por interesado o representante legal con antecedentes legales, tecnicos y de infraestructura            |
| Excepcion critica     | Si el establecimiento de atencion cerrada ya tiene autorizacion que contempla HD, no se requiere autorizacion independiente |
| Vigencia              | `3` anos                                                                                                                    |
| Renovacion            | Prorroga automatica y sucesiva por periodos iguales                                                                         |
| Limite de la prorroga | La autoridad puede dejarla sin efecto expresamente ante incumplimientos graves o riesgo sanitario                           |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 106)May include surrounding context.

md
### 2.2. Tipologia de pacientes y condicion clinica estable

| Tipo                         | Definicion normativa                                                                                                          | Implicancia directiva                                                                                       |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Paciente agudo               | Cuadro agudo sin patologia previa que requiere hospitalizacion para recuperar salud                                           | La unidad debe tener capacidad de diagnostico, monitoreo y tratamiento intensivo desde el inicio del evento |
| Paciente cronico reagudizado | Patologia previa con cuadro agudo asociado o no a su enfermedad de base; requiere hospitalizacion                             | El plan debe abordar descompensacion y control de comorbilidades; mayor riesgo de reingreso                 |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 106)May include surrounding context.

md
### 2.2. Tipologia de pacientes y condicion clinica estable

| Tipo                         | Definicion normativa                                                                                                          | Implicancia directiva                                                                                       |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Paciente agudo               | Cuadro agudo sin patologia previa que requiere hospitalizacion para recuperar salud                                           | La unidad debe tener capacidad de diagnostico, monitoreo y tratamiento intensivo desde el inicio del evento |
| Paciente cronico reagudizado | Patologia previa con cuadro agudo asociado o no a su enfermedad de base; requiere hospitalizacion                             | El plan debe abordar descompensacion y control de comorbilidades; mayor riesgo de reingreso                 |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 119)May include surrounding context.

md
### 2.3. Modalidades de prestacion

| Modalidad                              | Alcance                                                                                                                            | Exigencia clave                                                                                                                                             |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Prestador institucional                | Unidad o servicio de HD dependiente de hospital o clinica de atencion cerrada                                                      | Opera bajo autorizacion sanitaria matriz; debe asegurar continuidad con establecimiento de origen; farmacia o botiquin autorizado obligatorio               |
| Prestador en convenio                  | Prestador publico o privado que recibe pacientes derivados desde establecimientos de salud para continuar tratamiento en domicilio | Debe asegurar acceso, oportunidad, continuidad y calidad ininterrumpida; debe resolver abastecimiento de medicamentos por botiquin propio o convenio formal |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 119)May include surrounding context.

md
### 2.3. Modalidades de prestacion

| Modalidad                              | Alcance                                                                                                                            | Exigencia clave                                                                                                                                             |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Prestador institucional                | Unidad o servicio de HD dependiente de hospital o clinica de atencion cerrada                                                      | Opera bajo autorizacion sanitaria matriz; debe asegurar continuidad con establecimiento de origen; farmacia o botiquin autorizado obligatorio               |
| Prestador en convenio                  | Prestador publico o privado que recibe pacientes derivados desde establecimientos de salud para continuar tratamiento en domicilio | Debe asegurar acceso, oportunidad, continuidad y calidad ininterrumpida; debe resolver abastecimiento de medicamentos por botiquin propio o convenio formal |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 134)May include surrounding context.

md
### 3.1. Requisitos legales del cargo

| Pilar                | Exigencia                                                                                | Acreditacion                                                                                 |
| -------------------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Profesion            | Medico Cirujano                                                                          | Registro vigente en Superintendencia de Salud; titulos extranjeros revalidados o reconocidos |
| Formacion en gestion | Postitulo o postgrado en gestion en salud otorgado por Institucion de Educacion Superior | Certificado formal                                                                           |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 134)May include surrounding context.

md
### 3.1. Requisitos legales del cargo

| Pilar                | Exigencia                                                                                | Acreditacion                                                                                 |
| -------------------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Profesion            | Medico Cirujano                                                                          | Registro vigente en Superintendencia de Salud; titulos extranjeros revalidados o reconocidos |
| Formacion en gestion | Postitulo o postgrado en gestion en salud otorgado por Institucion de Educacion Superior | Certificado formal                                                                           |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/knowledge/hodom/director/01-manual-direccion-tecnica.md (reported line 223)May include surrounding context.

md
- todo funcionario, profesional, tecnico o auxiliar debe estar habilitado para ejercer en Chile antes de iniciar funciones
  - la experiencia exigida debe acreditarse documentalmente

| Rol                                                           | Exigencias minimas                                                                                                                                                                                                                                                | Observaciones                                                                         |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Coordinacion                                                  | Profesional de salud, preferentemente enfermeria; `5` anos de experiencia clinica; postitulo o postgrado en gestion en salud, o experiencia y antiguedad en cargos similares; `IAAS` `80` horas; `RCP` basica y desfibrilador `3` horas; vigencia maxima `5` anos | Si no es enfermeria, la experiencia debe estar asociada a las prestaciones declaradas |
| Medico de atencion directa                                    | `2` anos de experiencia medico-quirurgica; `IAAS` `80` horas; `RCP` basica y desfibrilador `3` horas; vigencia maxima `5` anos                                                                                                                                    | Responsable de evaluacion, ingreso, control y egreso                                  |