Concepts / Detection

Detection

Malware signatures (YARA and antivirus)

Also called yara, yara rule, antivirus, av signature, clamav, file signature, signature scanning, known-bad hash

A pattern that names a known-bad file by its content, so a scanner flags every copy, even renamed or moved.

The pattern is in the bytes, not the name
The pattern is in the bytes, not the name

A renamed copy of a known implant still matches, because its bytes did not change. Malware nobody has catalogued yet matches no rule and passes clean.

A malware signature is a pattern that identifies a known-bad file by its content. A YARA rule names strings or byte patterns and a condition over them; an antivirus database (ClamAV's .ndb) holds a pattern per known sample. A scanner reads every file and reports the matches, so a renamed copy is still caught. It knows only malware already seen: a new sample passes clean, so [[sandboxing]] sits behind it.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab