GhostSPN SMB module
Module to scan SMB for GhostSPN vulnerability (CVE-2025-58726) based on build number (code taken from ntlm_reflection module).
I am not sure if there is a more accurate way to scan for it, but for the moment it does the job.
Thanks for the PR!
Perhaps we should combine modules that identify CVEs by querying the version numbers into one module.
Yes i think it would be better (to reduce number of smb connection). How many modules currently check for version ? Only ntlm_reflection and ghostspn ?
Btw, I was hesitating between making an LDAP module to search for ghost SPNs instead of this SMB one. But with LDAP, the workflow would have been heavier (dump all SPNs, check for ghost ones, then check the target system version). So I think it’s better to check for the target vulnerability first, and if it’s vulnerable, then check for ghost SPNs.
Yes i think it would be better (to reduce number of smb connection). How many modules currently check for version ? Only ntlm_reflection and ghostspn ?
I think so yes.
Btw, I was hesitating between making an LDAP module to search for ghost SPNs instead of this SMB one. But with LDAP, the workflow would have been heavier (dump all SPNs, check for ghost ones, then check the target system version). So I think it’s better to check for the target vulnerability first, and if it’s vulnerable, then check for ghost SPNs.
Sounds good :) Ghost SPNs without vulnerable systems are not really useful anyways, so probably best to check for the vuln first.