T09 · Insecure Skill Coding Practices
- Location
references/agent/TOOLS.md:82- Finding
Hardcoded Bearer Token and Plaintext Transmission of Case Context
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
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.
references/agent/TOOLS.md:82Hardcoded Bearer Token and Plaintext Transmission of Case Context
Referenced artifact was not completely inspected
- `references/knowledge/hodom/normativa/02-decreto-exento-31-2024-aprueba-norma-tecnica.md`
Referenced artifact was not completely inspected
- `references/knowledge/hodom/director/03-situacion-chile-2026.md`
Referenced artifact was not completely inspected
- `references/agent/AGENTS.md`
Referenced artifact was not completely inspected
- `references/agent/TOOLS.md`
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
### 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 |
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.
| 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 |
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.
### 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 |
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.
### 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 |
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.
### 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 |
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.
### 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 |
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.
### 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 |
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.
### 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 |
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.
- 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 |