Herpes simplex virus 2 (HSV-2) IgM (Immunoglobulin M) is a type of antibody test used to diagnose a recent or acute infection with HSV-2, which is a sexually transmitted virus that primarily causes genital herpes. IgM antibodies are produced by the immune system in response to a new infection, and their presence in the blood indicates an early or recent exposure to the virus.