An infection is considered invasive when it is found in a normally sterile part of the body, such as blood or cerebrospinal fluid.