id: expn-mail-detect info: name: EXPN Mail Server Detect author: r3dg33k,userdehghani severity: info description: | The "EXPN" can be used by attackers to learn about valid usernames on the target system. On some SMTP servers, EXPN can be used to show the subscribers of a mailing list subscription lists are generally considered to be sensitive information. metadata: max-request: 1 tags: mail,expn,network,detect,smtp,detection,tcp tcp: - inputs: - data: "65686c6f20636865636b746c730a" type: hex read-size: 2048 host: - "{{Hostname}}" port: 25,2525,465,587 matchers: - type: word words: - "250-EXPN" # digest: 4a0a0047304502200d7af4166ff760484091f76d77a3c950aefd20f2ba3bf4b55cb32cfeac246bee022100b4e7ef40aa0527906d5a7acf022d441cb037c87a78bce215a93fa864f8f1cd2e:922c64590222798bb761d5b6d8e72950