T01 · Skill Instruction Hijacking
- Location
scripts/weaver.py:132- Finding
Untrusted Git Commit Content Is Passed to AI Without Instruction/Data Boundaries
- Content
View full analysis
5 else "" cc_match = CC_PATTERN.match(subject) if cc_match: commit_type = cc_match.group("type").lower() scope = cc_match.group("scope") or "" has_breaking = bool(cc_match.group("breaking")) description = cc_match.group("description").strip() else: commit_type = "other" scope = "" has_breaking = False description = subject.strip() breaking_detail = "" if not has_breaking: bm = BREAKING_FOOTER.search(body) if bm: has_breaking = True breaking_detail = bm.group("detail").strip() refs = REF_PATTERN.findall(subject + " " + body) commits.append({ "hash": lines[0], "hash_short": hash_short, "author": author, "email": email, "date": date, "subject": subject, "body": body.strip(), "type": commit_type, "scope": scope, "breaking": has_breaking, "breaking_detail": breaking_detail, "description": description, "references": list(set(refs)), }) ``` The collected fields are copied into the generated JSON: ```python payload["categories"][cat] = { "label": label["category"], "emoj ...[truncated 3686 chars]- Remediation
View remediation
