AI / LLM

CWE-1426 생성형 AI 출력 검증 부족Improper Validation of Generative AI Output

모델 출력을 검증 없이 코드 실행/쿼리/HTML 렌더 등에 사용하는 결함.Model output is used for execution, queries or rendering without validation.

근본 원인 패턴Root-cause pattern

LLM 출력이 고전적 싱크(셸, SQL, innerHTML)로 흘러간다 — 결국 기존 인젝션 클래스의 새 입력원.LLM output flows into classic sinks (shell, SQL, innerHTML) — a new source for old injection classes.

전형적인 패치Typical fix

출력을 신뢰할 수 없는 입력으로 취급, 구조화 출력 스키마 검증, 샌드박스.Treat output as untrusted input; schema-validate structured output; sandbox.

0 편posts

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

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