취약점 도입 방식
Architecture and Design
Implementation
적용 가능한 플랫폼
언어
클래스: Not Language-Specific (Undetermined)
아키텍처
클래스: Not Architecture-Specific (Undetermined)
기술
이름: AI/ML (Undetermined)
클래스: Not Technology-Specific (Undetermined)
일반적인 결과
| 범위 |
영향 |
가능성 |
| Integrity | Execute Unauthorized Code or Commands, Varies by Context | |
관찰된 예시
| 참고 자료 |
설명 |
| Chain: GUI for ChatGPT API performs
input validation but does not properly "sanitize"
or validate model output data (CWE-1426), leading
to XSS (CWE-79). |
잠재적 완화 방법
Phases : Architecture and Design
Since the output from a generative AI component (such as an LLM) cannot be trusted, ensure that it operates in an untrusted or non-privileged space.
Phases : Operation
Use "semantic comparators," which are mechanisms that
provide semantic comparison to identify objects that might appear
different but are semantically similar.
Phases : Operation
Phases : Build and Compilation
탐지 방법
Dynamic Analysis with Manual Results Interpretation
Use known techniques for prompt injection
and other attacks, and adjust the attacks to be more
specific to the model or system.
Dynamic Analysis with Automated Results Interpretation
Use known techniques for prompt injection
and other attacks, and adjust the attacks to be more
specific to the model or system.
Architecture or Design Review
Review of the product design can be
effective, but it works best in conjunction with dynamic
analysis.
취약점 매핑 메모
근거 : There is potential for this CWE entry to be modified in the future for further clarification as the research community continues to better understand weaknesses in this domain.
댓글 :
메모
This entry is related to AI/ML, which is not well
understood from a weakness perspective. Typically, for
new/emerging technologies including AI/ML, early
vulnerability discovery and research does not focus on
root cause analysis (i.e., weakness identification). For
AI/ML, the recent focus has been on attacks and
exploitation methods, technical impacts, and mitigations.
As a result, closer research or focused efforts by SMEs
is necessary to understand the underlying weaknesses.
Diverse and dynamic terminology and rapidly-evolving
technology further complicate understanding. Finally,
there might not be enough real-world examples with
sufficient details from which weakness patterns may be
discovered. For example, many real-world vulnerabilities
related to "prompt injection" appear to be related to
typical injection-style attacks in which the only
difference is that the "input" to the vulnerable
component comes from model output instead of direct
adversary input, similar to "second-order SQL injection"
attacks.
This entry was created by members
of the CWE AI Working Group during June and July 2024. The
CWE Project Lead, CWE Technical Lead, AI WG co-chairs, and
many WG members decided that for purposes of timeliness, it
would be more helpful to the CWE community to publish the
new entry in CWE 4.15 quickly and add to it in subsequent
versions.
참고 자료
REF-1441
LLM02: Insecure Output Handling
OWASP.
https://genai.owasp.org/llmrisk/llm02-insecure-output-handling/ REF-1442
Validating Outputs
Cohere, Guardrails AI.
https://cohere.com/blog/validating-llm-outputs REF-1443
NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails
Traian Rebedea, Razvan Dinu, Makesh Sreedhar, Christopher Parisien, Jonathan Cohen.
https://aclanthology.org/2023.emnlp-demo.40/ REF-1444
Insecure output handling in LLMs
Snyk.
https://learn.snyk.io/lesson/insecure-input-handling/ REF-1445
Building Guardrails for Large Language Models
Yi Dong, Ronghui Mu, Gaojie Jin, Yi Qi, Jinwei Hu, Xingyu Zhao, Jie Meng, Wenjie Ruan, Xiaowei Huang.
https://arxiv.org/pdf/2402.01822
제출
| 이름 |
조직 |
날짜 |
출시일 |
Version |
| Members of the CWE AI WG |
CWE Artificial Intelligence (AI) Working Group (WG) |
2024-07-02 +00:00 |
2024-07-16 +00:00 |
4.15 |
수정 사항
| 이름 |
조직 |
날짜 |
댓글 |
| CWE Content Team |
MITRE |
2025-12-11 +00:00 |
updated Weakness_Ordinalities |
| CWE Content Team |
MITRE |
2026-04-30 +00:00 |
updated Relationships |
| CWE Content Team |
MITRE |
2026-10-28 +00:00 |
updated Dimensions, Maintenance_Notes, Research_Gaps |