white hat
noun
A penetration tester or vulnerability researcher. A white hat hacker aims to (legally and legitimately) improve system and network security by exposing threats and vulnerabilities. Contrast black hat and grey hat.