What is CWE?
CWE. Common Weakness Enumeration: a public numbered list of kinds of software weakness, such as injection flaws or missing access checks. Security environments often say which entries they cover, so a lab can see what they train.
General information, not legal advice.
What it means
CWE stands for Common Weakness Enumeration. It is a public catalog that gives each type of software weakness a number and a description, such as improper input validation or missing authorization.
CWE describes types of flaws. A specific flaw found in a specific product gets a separate public identifier in a different list. One weakness type can show up in thousands of individual flaws.
Why it matters in a data deal
Security environments licensed to AI labs often tag each task with the CWE entries it covers. That lets a lab see at a glance which kinds of flaws its model will practice on and where its training has gaps.
A seller with environments spread over many weakness types offers broader coverage than one with fifty tasks on the same flaw.
An example
A penetration testing firm builds thirty training tasks from past engagements. Its catalog lists the CWE entries for each: twelve tasks on injection flaws, eight on broken access control, six on cross-site scripting and four on insecure file upload. The lab sees it already has plenty of injection tasks and asks first for the access control set.
Questions to ask
- Which weakness types does each task cover, and are they tagged consistently?
- Where does our catalog have many tasks of one kind and few of another?
- Does the lab already hold enough tasks on some weakness types?
Related terms
- Black-box and white-box testing
- Black-box testing gives the tester only the running app, as a real attacker would have it. White-box testing also gives the source code. Labs care which one an environment trains, because the skills are different.
- Exploit chain
- A series of steps that together take an attacker from the outside of a system to a goal, such as reading data they should not reach. In a security environment each step can be scored on its own.
- Red team
- A group that plays the attacker to find weaknesses before a real attacker does. For AI, red teaming also means testing a model to see how it can be pushed into harmful or wrong behavior.
- Verifier
- The program that checks whether a task was really done, by looking at what changed in the system and not at the model's reply. Also called a grader or auto-grader. One that uses no AI judge is easier for a lab to trust.