T01 · Skill Instruction Hijacking
- Location
scripts/extractor.py:125- Finding
Untrusted Markdown content can be converted into authoritative agent instructions
- Content
View full analysis
str: if not rules: return "" lines = ["Historical experience rules — follow these rules"] avoid_rules = [r for r in rules if r.category == "avoid"] prefer_rules = [r for r in rules if r.category == "prefer"] if avoid_rules: lines.append("\n## Operations to avoid") for r in sorted(avoid_rules, key=lambda x: -x.confidence): lines.append(f"- {r.description} (confidence: {r.confidence:.0%})") if prefer_rules: lines.append("\n## Recommended practices") for r in sorted(prefer_rules, key=lambda x: -x.confidence): lines.append(f"- {r.description} (confidence: {r.confidence:.0%})") return "\n".join(lines) ``` The labels in the second excerpt are English translations of the original user-facing strings; the executable interpolation of `r.description` is unchanged. ### Technical Analysis `extract_from_learnings()` accepts a caller-provided directory, reads every Markdown file in it, and ex ...[truncated 2361 chars]- Remediation
View remediation
