Representation is the way a system encodes information so it can be processed, compared, or transformed. In cybersecurity, representation matters because security tools rarely work on “raw meaning”; they work on specific forms such as bytes, tokens, hashes, JSON fields, protocol states, or machine-learning vectors. Two inputs that look similar to a person may be very different to a parser, while two inputs that look different may normalize to the same internal form.
Attackers often abuse representation gaps. Encoding tricks, canonicalization mistakes, and parser differentials can help bypass filters, trigger injection, or make malicious content appear harmless in one layer and dangerous in another. Defenders use strong representations to reduce ambiguity: canonicalizing input, hashing for integrity checks, converting logs into stable fields, and using embeddings or feature vectors for detection and clustering. In modern AI systems, representation also shapes how models compare languages, code, or behavior patterns, which makes it a key concept for both attack analysis and defensive automation.


