Biological threats posed by pathogens such as Ebola virus must be quickly diagnosed, while protecting the safety of personnel. Scanning electron microscopy and microanalysis requires minimal specimen preparation and can help to identify hazardous agents or substances. Here we report a compact biosafety system for rapid imaging and elemental analysis of specimens, including powders, viruses and bacteria, which is easily transportable to the site of an incident.