Cleartext Credential Recovery in ServiceNow

TL;DR: This post explores using ServiceNow script includes to create a cleartext credential retrieval mechanism valid for any discovery credential type and LDAP credential records. Introduction ServiceNow is a cloud IT service management platform (ITSM) enabling enterprise scale asset tracking, workflow automation, and much more. I first leveraged ServiceNow on a red team assessment in 2024 to gather information for objective targeting through ServiceNow’s configuration management database (CMDB). A few months later, MDSec’s Tim Carrington (@__invictus_) published his Red Teaming with ServiceNow blog (which I recommend reading prior to continuing), opening my eyes to the myriad of other
…