A trap is a hidden danger that can cause sudden unwanted conditions and/or damage. A vent that spews toxic gas or a glyph of warding are both examples of traps.