AI / LLM

CWE-1427 LLM 프롬프트 입력 미중화(프롬프트 인젝션)Improper Neutralization of Input Used for LLM Prompting

외부 입력이 LLM 지시문과 구분되지 않아 모델 동작을 바꾸는 결함(직접/간접 프롬프트 인젝션).External input is not separated from instructions, letting it steer the model (direct/indirect prompt injection).

근본 원인 패턴Root-cause pattern

시스템 지시, 사용자 입력, 검색/도구로 가져온 문서가 하나의 텍스트 채널에 섞인다. 모델은 "데이터"와 "명령"을 구조적으로 구분하지 못한다.System instructions, user input and retrieved documents share one text channel; the model cannot structurally separate data from commands.

전형적인 패치Typical fix

도구 권한 최소화, 민감 행위 사람 확인, 출력 검증 — 입력 필터만으로는 불충분.Least-privilege tools, human confirmation for sensitive actions, output validation — input filtering alone is insufficient.

0 편posts

아직 이 클래스의 글이 없습니다. 아래 패턴 요약으로 먼저 학습하세요.No posts in this class yet. Start with the pattern summary below.

✎ CWE-1427 퀴즈 풀기Quiz on CWE-1427