Many pen testers enter the field with a bachelor's degree. Common majors are IT, comp sci or cyber security.