T01 · Skill Instruction Hijacking
- Location
agents/import-design-system.mjs:187- Finding
Untrusted Design-System Documentation Is Promoted into Binding Agent Instructions
- Content
View full analysis
c.name), componentPrompts, componentProps: model.components, readme: readmeContent, tokenNames: model.tokens.map((t) => t.name), sourcePath: entry.sourcePath, hasBundle, }); fs.writeFileSync(path.join(destRoot, '_ds_prompt.md'), promptMd); ``` From `agents/lib/ds-prompt.mjs:219-254`: ```js // source-tree pointer + full guide, inlined (raw — this is a .md file, not embedded HTML) const hasReadme = Boolean(readme && readme.trim()); if (sourcePath) { out.push(''); out.push( 'Everything beyond this runtime copy — mocks to fork, specimens, ui_kits, component ' + `source — lives in the design system's source tree at \`${sourcePath}/\`; read from ` + `there for anything not under \`_ds/${slug}/\`.` + (hasReadme ? " Its guide i ...[truncated 3812 chars]- Remediation
View remediation
