Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
decode-spam-headers — एक स्क्रिप्ट जो आपको यह समझने में मदद करती है कि आपका ई-मेल स्पैम में क्यों चला गया। | Kitploit
उपकरण/GitHubGitHub/mgeeky/decode-spam-headers
फ़िशिंग उपकरणजानकारी एकत्र करनारेड टीमिंगईमेल सुरक्षालॉग विश्लेषण
GitHubmgeeky/decode-spam-headers

decode-spam-headers

एक स्क्रिप्ट जो आपको यह समझने में मदद करती है कि आपका ई-मेल स्पैम में क्यों चला गया।

रिपॉजिटरी देखें
6989886 महीने पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

decode-spam-headers.py

चाहे आप अपने दैनिक प्रशासनिक कार्यों के लिए यह समझने की कोशिश कर रहे हों कि कोई विशेष ई-मेल SPAM/Junk में क्यों चला गया, या अपने Red-Team Phishing सिमुलेशन उद्देश्यों के लिए, यह स्क्रिप्ट आपकी मदद के लिए मौजूद है!

यह विचार MS Office365 E5 एस्टेट के खिलाफ व्यावसायिक Phishing Simulation अभ्यासों को वितरित करते समय आया, जो MS Defender for Office365 से सुसज्जित है। जैसा कि कोई कल्पना कर सकता है, फ़िशिंग-सिमुलेशन के दृष्टिकोण से काम करने के लिए यह काफी कठिन सुरक्षा स्टैक है।

इन सभी Office365 SMTP हेडरों को मैन्युअल रूप से खंगालने और इन SCL मानों को चुनने की कोशिश करने के बाद, SMTP हेडरों के लिए एक उचित पार्सर लिखने का समय आ गया।

समय बीतता गया, मैं अधिक से अधिक SMTP हेडरों के लिए समर्थन जोड़ता रहा - और यह रहा। यह टूल अब दर्जनों विभिन्न हेडरों को समझता है।

जानकारी

यह टूल इनपुट के रूप में सभी SMTP हेडरों वाली एक *.EML या *.txt फ़ाइल स्वीकार करता है। फिर यह दिलचस्प हेडरों का एक उपसमुच्चय निकालेगा और 105+ परीक्षणों का उपयोग करके उन्हें जितना संभव हो उतना डिकोड करने का प्रयास करेगा।

यह स्क्रिप्ट सभी IPv4 पतों और डोमेन नामों को भी निकालती है और उनका पूर्ण DNS रिज़ॉल्यूशन करती है।

परिणामी आउटपुट में उपयोगी जानकारी होगी कि यह ई-मेल क्यों ब्लॉक किया गया हो सकता है।

अपने क्लाइंट को भेजने से पहले अपने Phishing HTML कोड को बेहतर बनाने के लिए, आप इसे मेरे phishing-HTML-linter.py में भी फीड करना चाह सकते हैं। यह आपके HTML में उन bad smells को खोजने में काफी अच्छा काम करता है जो आपके ई-मेल को बढ़े हुए Spam-score के साथ भेजेंगे।

उदाहरण स्क्रीनशॉट

  • MTA सर्वरों की श्रृंखला (अच्छी तरह से पार्स किए गए Received हेडर):

1.png

  • सार्वजनिक रूप से उपलब्ध दस्तावेज़ीकरण के अनुसार विभिन्न हेडरों को जितना संभव हो उतना डिकोड किया गया (यहाँ Office365 ForeFront Spam Report):

2.png

  • स्पैम वर्गीकरण के संकेतों को सक्रिय रूप से सत्यापित करने और खोजने के लिए विभिन्न कस्टम ह्यूरिस्टिक्स लागू किए गए हैं, यहाँ Domain Impersonation का पता लगाने वाला तर्क:

3.png

  • स्क्रिप्ट Office365 Anti-Spam नियमों में से कुछ को रिवर्स-इंजीनियर और दस्तावेज़ित करने का प्रयास करती है, साथ ही अन्य अपारदर्शी Anti-Spam हेडरों के बारे में सार्वजनिक ज्ञान एकत्र करती है:

4.png

  • रिपोर्ट को अच्छे दिखने वाले HTML में उत्पन्न किया जा सकता है (उपयोग: py decode-spam-headers.py headers.txt -f html -o report.html ):

5.png

संसाधित हेडर

संसाधित हेडर (85+ से अधिक हेडर पार्स किए जाते हैं):

  • X-forefront-antispam-report
  • X-exchange-antispam
  • X-exchange-antispam-mailbox-delivery
  • X-exchange-antispam-message-info
  • X-microsoft-antispam-report-cfa-test
  • Received
  • From
  • To
  • Subject
  • Thread-topic
  • Received-spf
  • X-mailer
  • X-originating-ip
  • User-agent

इनमें से अधिकांश हेडर पूरी तरह से प्रलेखित नहीं हैं, इसलिए स्क्रिप्ट सभी विवरणों को इंगित करने में असमर्थ है, लेकिन कम से कम यह वह सब कुछ एकत्र करता है जो मैं उन पर पा सका।

रिवर्स-इंजीनियरिंग प्रयास

मैं विभिन्न Office365 ForeFront Anti-Spam नियमों (SFS, ENG) को पहचानने और समझने के लिए महत्वपूर्ण प्रयास कर रहा हूँ, भले ही वे सार्वजनिक रूप से प्रलेखित नहीं हैं।```

(5) Test: X-Forefront-Antispam-Report

HEADER: X-Forefront-Antispam-Report

VALUE: CIP:209.85.167.100;CTRY:US;LANG:de;SCL:5;SRV:;IPV:NLI;SFV:SPM;H:mail-lf1-f100.google.com;PTR:mail-l f1-f100.google.com;CAT:DIMP;SFTY:9.19;SFS:(4636009)(956004)(166002)(6916009)(356005)(336012)(19 625305002)(22186003)(5660300002)(4744005)(6666004)(35100500006)(82960400001)(26005)(7596003)(7636003)(554460 02)(224303003)(1096003)(58800400005)(86362001)(9686003)(43540500002);DIR:INB;SFTY:9.19;

[...]

root@kitploit:~
    - Message matched 24 Anti-Spam rules (SFS):           <============ opaque anti-spam rules
            - (1096003)
            - (166002)
            - (19625305002)
            - (22186003)
            - (224303003)
            - (26005)
            - (336012)
            - (356005)
            - (35100500006)         - (SPAM) Message contained embedded image.
root@kitploit:~
यह प्रक्रिया पूरी तरह से मैनुअल है और इसमें Office365 मेल सर्वरों पर विशेष रूप से डिज़ाइन किए गए मेल भेजने का सहारा लिया जाता है, और फिर एकत्रित नियमों की मैन्युअल समीक्षा और सहसंबंध किया जाता है।

पहले ही 60 से अधिक मेल भेज चुका हूँ, अब तक Microsoft के नियमों के बारे में मैं यही बता सकता हूँ:```py

    #
    # Below rules were collected solely in a trial-and-error manner or by scraping any 
    # pieces of information from all around the Internet.
    #
    # They do not represent the actual Anti-Spam rule name or context and surely represent 
    # something close to what is understood (or they may have totally different meaning).
    # 
    # Until we'll be able to review anti-spam rules documention, there is no viable mean to map
    # rule ID to its meaning.
    #

    Anti_Spam_Rules_ReverseEngineered = \
    {
        '35100500006' : logger.colored('(SPAM) Message contained embedded image.', 'red'),

        # https://docs.microsoft.com/en-us/answers/questions/416100/what-is-meanings-of-39x-microsoft-antispam-mailbox.html
        '520007050' : logger.colored('(SPAM) Moved message to Spam and created Email Rule to move messages from this particular sender to Junk.', 'red'),

        # triggered on an empty mail with subject being: "test123 - viagra"
        '162623004' : 'Subject line contained suspicious words (like Viagra).',

        # triggered on mail with subject "test123" and body being single word "viagra"
        '19618925003' : 'Mail body contained suspicious words (like Viagra).',

        # triggered on mail with empty body and subject "Click here"
        '28233001' : 'Subject line contained suspicious words luring action (ex. "Click here"). ',

        # triggered on a mail with test subject and 1500 words of http://nietzsche-ipsum.com/
        '30864003' : 'Mail body contained a lot of text (more than 10.000 characters).',

        # mails that had simple message such as "Hello world" triggered this rule, whereas mails with
        # more than 150 words did not.
        '564344004' : 'HTML mail body with less than 150 words of text (not sure how much less though)',

        # message was sent with a basic html and only one <u> tag in body.
        '67856001' : 'HTML mail body contained underline <u> tag.',

        # message with html,head,body and body containing simple text with no b/i/u formatting.
        '579124003' : 'HTML mail body contained text, but no text formatting (<b>, <i>, <u>) was present',

        # This is a strong signal. Mails without <a> doesnt have this rule.
        '166002' : 'HTML mail body contained URL <a> link.',

        # Message contained <a href="https://something.com/file.html?parameter=value" - GET parameter with value.
        '21615005' : 'Mail body contained <a> tag with URL containing GET parameter: ex. href="https://foo.bar/file?aaa=bbb"',

        # Message contained <a href="https://something.com/file.html?parameter=https://another.com/website" 
        # - GET parameter with value, being a URL to another website
        '45080400002' : 'Something about <a> tag\'s URL. Possibly it contained GET parameter with value of another URL: ex. href="https://foo.bar/file?aaa=https://baz.xyz/"',

        # Message contained <a> with href pointing to a file with dangerous extension, such as file.exe
        '460985005' : 'Mail body contained HTML <a> tag with href URL pointing to a file with dangerous extension (such as .exe)',

        #
        # Message1: GoPhish -> VPS 587/tcp redirector -> smtp.gmail.com:587 -> target
        # Message2: GoPhish -> VPS 587/tcp redirector -> smtp-relay.gmail.com:587 -> target
        #
        # These were the only differences I spotted:
        #   Message1 - FirstHop Gmail SMTP Received with ESMTPS.
        #   Message2 - FirstHop Gmail SMTP-Relay Received with ESMTPSA.
        #
        '121216002' : 'First Hop MTA SMTP Server used as a SMTP Relay. It\'s known to originate e-mails, but here it acted as a Relay. Or maybe due to use of "with ESMTPSA" instead of ESMTPS?',

        # Triggered on message with <a> added to HTML: <a href="https://support.spotify.com/is-en/">https://www.reddit.com/</a>
        '966005' : 'Mail body contained link tag with potentially masqueraded URL: <a href="https://attacker.com">https://example.com</a>',

        #
        # Message1: GoPhish EC2 -> another EC2 with socat to smtp.gmail.com:587 (authenticated) -> Target
        # Message2: GoPhish EC2 -> Gsuite -> Target
        #
        # Subject, mail body were exactly the same.
        #
        # Below two rules were added to the second message. My understanding is that they're somehow referring
        # to the reputation of the first-hop server, maybe reverse-DNS resolution.
        #
        '5002400100002' : "(GUESSING) Somehow related to First Hop server reputation, it's reverse-PTR resolution or domain impersonation",
        '58800400005'   : "(GUESSING) Somehow related to First Hop server reputation, it's reverse-PTR resolution or domain impersonation",

        '19625305002' : '(GUESSING) Something to do with the HTML code and used tags/structures',
        '43540500002' : '(GUESSING) Something to do with the HTML code and used tags/structures',

        '460985005' : '(GUESSING) Something to do with either more-complex HTML code or with the <a> tag and its URL.',

        # Triggered on an empty text message, subject "test" - that was marked with "Domain Impersonation", however 
        # ForeFront Anti-Spam headers did not support that Domain Impersonation. Weird.
        '22186003' : '(GUESSING) Something to do with either Text message (non-HTML) or probable Domain Impersonation',

        # Found by @ipSlav (https://github.com/mgeeky/decode-spam-headers/issues/15)
        '42882007' : 'Missing Reply-To Address. Might be fixed by adding -ReplyTo flag to Send-MailMessage',
        '78352004' : 'Missing Reply-To Address. Might be fixed by adding -ReplyTo flag to Send-MailMessage',
    }

यदि आपको किसी अन्य Office365 एंटी-स्पैम नियमों के बारे में पता हो (या ऊपर वर्णित नियमों के लिए सुझाव हों) - तो मुझे इस रिपॉजिटरी के issues में बताएं, मैं इसे तुरंत जोड़ दूंगा :)

उपयोग

पहले उपयोग से पहले आवश्यक Python3 निर्भरताएँ स्थापित करें:``` bash$ pip3 install -r requirements.txt

root@kitploit:~
सहायता:```
PS> py .\decode-spam-headers.py --help
usage: decode-spam-headers.py [options] <file | --list tests>

optional arguments:
  -h, --help            show this help message and exit

Required arguments:
  infile                Input file to be analysed or --list tests to show available tests.

Options:
  -o OUTFILE, --outfile OUTFILE
                        Output file with report
  -f {json,text,html}, --format {json,text,html}
                        Analysis report format. JSON, text. Default: text
  -N, --nocolor         Dont use colors in text output.
  -v, --verbose         Verbose mode.
  -d, --debug           Debug mode.
  -l, --list            List available tests and quit. Use it like so: --list tests

Tests:
  -i tests, --include-tests tests
                        Comma-separated list of test IDs to run. Ex. --include-tests 1,3,7
  -e tests, --exclude-tests tests
                        Comma-separated list of test IDs to skip. Ex. --exclude-tests 1,3,7
  -r, --resolve         Resolve IPv4 addresses / Domain names.
  -R, --dont-resolve    Do not resolve anything.
  -a, --decode-all      Decode all =?us-ascii?Q? mail encoded messages and print their contents.

यदि आप केवल परीक्षणों का एक उपसमुच्चय चलाना चाहते हैं, तो आपको पहले यह जानना होगा कि किन Test IDs को चुनना है। उस सूची को प्राप्त करने के लिए स्क्रिप्ट को -l tests के साथ चलाएँ।

उपलब्ध परीक्षण और उनकी संबंधित IDs की सूची:``` C:> py decode-spam-headers.py -l tests

[.] Available tests:

root@kitploit:~
    TEST_ID - TEST_NAME
    --------------------------------------
          1 - Received - Mail Servers Flow
          2 - Extracted IP addresses
          3 - Extracted Domains
          4 - Bad Keywords In Headers
          5 - Sender Address Analysis
          6 - Subject and Thread Topic Difference
          7 - Authentication-Results
          8 - ARC-Authentication-Results
          9 - Received-SPF
         10 - Mail Client Version
         11 - User-Agent Version
         12 - X-Forefront-Antispam-Report
         13 - X-MS-Exchange-Organization-SCL
         14 - X-Microsoft-Antispam-Mailbox-Delivery
         15 - X-Microsoft-Antispam Bulk Mail
         16 - X-Exchange-Antispam-Report-CFA-Test
         17 - Domain Impersonation
         18 - SpamAssassin Spam Status
         19 - SpamAssassin Spam Level
         20 - SpamAssassin Spam Flag
         21 - SpamAssassin Spam Report
         22 - OVH's X-VR-SPAMCAUSE
         23 - OVH's X-Ovh-Spam-Reason
         24 - OVH's X-Ovh-Spam-Score
         25 - X-Virus-Scan
         26 - X-Spam-Checker-Version
         27 - X-IronPort-AV
         28 - X-IronPort-Anti-Spam-Filtered
         29 - X-IronPort-Anti-Spam-Result
         30 - X-Mimecast-Spam-Score
         31 - Spam Diagnostics Metadata
         32 - MS Defender ATP Message Properties
         33 - Message Feedback Loop
         34 - End-to-End Latency - Message Delivery Time
         36 - X-IP-Spam-Verdict
         37 - X-Amp-Result
         38 - X-IronPort-RemoteIP
         39 - X-IronPort-Reputation
         40 - X-SBRS
         41 - X-IronPort-SenderGroup
         42 - X-Policy
         43 - X-IronPort-MailFlowPolicy
         44 - X-SEA-Spam
         45 - X-FireEye
         46 - X-AntiAbuse
         47 - X-TMASE-Version
         48 - X-TM-AS-Product-Ver
         49 - X-TM-AS-Result
         50 - X-IMSS-Scan-Details
         51 - X-TM-AS-User-Approved-Sender
         52 - X-TM-AS-User-Blocked-Sender
         53 - X-TMASE-Result
         54 - X-TMASE-SNAP-Result
         55 - X-IMSS-DKIM-White-List
         56 - X-TM-AS-Result-Xfilter
         57 - X-TM-AS-SMTP
         58 - X-TMASE-SNAP-Result
         59 - X-TM-Authentication-Results
         60 - X-Scanned-By
         61 - X-Mimecast-Spam-Signature
         62 - X-Mimecast-Bulk-Signature
         63 - X-Forefront-Antispam-Report-Untrusted
         64 - X-Microsoft-Antispam-Untrusted
         65 - X-Mimecast-Impersonation-Protect
         66 - X-Proofpoint-Spam-Details
         67 - X-Proofpoint-Virus-Version
         68 - SPFCheck
         69 - X-Barracuda-Spam-Score
         70 - X-Barracuda-Spam-Status
         71 - X-Barracuda-Spam-Report
         72 - X-Barracuda-Bayes
         73 - X-Barracuda-Start-Time
         74 - Similar to SpamAssassin Spam Level headers
         75 - SMTP Header Contained IP address
         76 - Other unrecognized Spam Related Headers
         77 - Other interesting headers
         78 - Security Appliances Spotted
         79 - Email Providers Infrastructure Clues
         80 - X-Microsoft-Antispam-Message-Info (use -a to show its results)
         81 - Decoded Mail-encoded header values (use -a to show its results)
         82 - Header Containing Client IP
         83 - Office365 Tenant ID
         84 - Organization Name
         85 - MS Defender for Office365 Safe Links Version
         86 - Suspicious Words in Headers
         87 - AWS SES Outgoing
         88 - IronPort-Data
         89 - IronPort-HdrOrder
         90 - X-DKIM
         91 - DKIM-Filter
         92 - X-SpamExperts-Class
         93 - X-SpamExperts-Evidence
         94 - X-Recommended-Action
         95 - X-AppInfo
         96 - X-Spam
         97 - X-TM-AS-MatchedID
         98 - MTA Hostname Exposed
         99 - Office365 First Contact Safety Tip
        100 - EOP - Bypass Focused Inbox
        101 - EOP - Enhanced Filtering - SkipListedInternetSender
        102 - EOP - Enhanced Filtering - ExternalOriginalInternetSender
        103 - Cloudmark Analysis
        104 - The Real Sender - via Authenticated-Sender
        105 - Identified Sender Addresses
        106 - Unsual SMTP headers
root@kitploit:~
### HTML रिपोर्ट

HTML रिपोर्ट उत्पन्न करने के लिए - निम्नलिखित पैरामीटर का उपयोग करें:```
  PS> py decode-spam-headers.py headers.txt -f html -o report.html

नमूना रन

नमूना रन (आउटपुट संरचना और सामग्री स्क्रिप्ट के पुराने संस्करण से आती हैं):``` PS> py decode-spam-headers.py headers.txt


(1) Test: Received - Mail Servers Flow

HEADER: Received

VALUE: ...

ANALYSIS: - List of server hops used to deliver message:

root@kitploit:~
      --> (1) "attacker" <[email protected]>

           |_> (2) SMTP-SERVICE (44.55.66.77)
                  time: 01 Jan 2021 12:34:20

              |_> (3) mail-wr1-f51.google.com (209.85.221.51)
                      time: 01 Jan 2021 12:34:20
                      version: fuzzy match: Exchange Server 2019 CU11; October 12, 2021; 15.2.986.9

                  |_> (4) SN1NAM02FT0061.eop-nam02.prod.protection.outlook.com (2603:10b6:806:131:cafe::e5)
                          time: 01 Jan 2021 12:34:20
                          version: fuzzy match: Exchange Server 2019 CU11; October 12, 2021; 15.2.986.9

                      |_> (5) SA0PR11CA0138.namprd11.prod.outlook.com (2603:10b6:806:131::23)
                              time: 01 Jan 2021 12:34:20
                              version: fuzzy match: Exchange Server 2019 CU11; October 12, 2021; 15.2.986.9

                          |_> (6) CP2PR80MB4114.lamprd80.prod.outlook.com (2603:10d6:102:3c::15)
                                  time: 01 Jan 2021 12:34:23

                              |_> (7) "Victim Surname" <[email protected]>

[...]


(4) Test: Mail Client Version

HEADER: X-Mailer

VALUE: OEM

ANALYSIS: - X-Mailer header was present and contained value: "OEM".


(5) Test: X-Forefront-Antispam-Report

HEADER: X-Forefront-Antispam-Report

VALUE: CIP:209.85.167.100;CTRY:US;LANG:de;SCL:5;SRV:;IPV:NLI;SFV:SPM;H:mail-lf1-f100.google.com;PTR:mail-l f1-f100.google.com;CAT:DIMP;SFTY:9.19;SFS:(4636009)(956004)(166002)(6916009)(356005)(336012)(19 625305002)(22186003)(5660300002)(4744005)(6666004)(35100500006)(82960400001)(26005)(7596003)(7636003)(554460 02)(224303003)(1096003)(58800400005)(86362001)(9686003)(43540500002);DIR:INB;SFTY:9.19;

ANALYSIS: - Microsoft Office365/Exchange ForeFront Anti-Spam report

root@kitploit:~
    - CIP: Connecting IP address: 209.85.167.100

    - CTRY: The source country as determined by the connecting IP address
            - US

    - LANG: The language in which the message was written
            - de

    - IPV: Ingress Peer Verification status
            - NLI: The IP address was not found on any IP reputation list.

    - SFV: Message Filtering
            - SPM: The message was marked as spam by spam filtering.

    - H: The HELO or EHLO string of the connecting email server.
            - mail-lf1-f100.google.com

    - PTR: Reverse DNS of the Connecting IP peer's address
            - mail-lf1-f100.google.com

    - CAT: The category of protection policy
            - DIMP: Domain Impersonation

    - SFTY: The message was identified as phishing
            - 9.19: Domain impersonation. The sending domain is attempting to impersonate a protected domain

    - DIR: Direction of email verification
            - INB: Inbound email verification

    - Message matched 24 Anti-Spam rules (SFS):
            - (1096003)
            - (166002)
            - (19625305002)
            - (22186003)
            - (224303003)
            - (26005)
            - (336012)
            - (356005)
            - (35100500006)         - (SPAM) Message contained embedded image.
            - (43540500002)
            - (4636009)
            - (4744005)
            - (55446002)
            - (5660300002)
            - (58800400005)
            - (6666004)
            - (6916009)
            - (7596003)
            - (7636003)
            - (82960400001)
            - (86362001)
            - (956004)
            - (9686003)

    - SCL: Spam Confidence Level: 5
            - SPAM: Spam filtering marked the message as Spam

More information: - https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spam-message-headers - https://docs.microsoft.com/en-us/exchange/antispam-and-antimalware/antispam-protection/antispam-stamps - https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/spam-confidence-levels - https://docs.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/run-a-message-trace-and-view-results


(6) Test: X-Microsoft-Antispam-Mailbox-Delivery

HEADER: X-Microsoft-Antispam-Mailbox-Delivery

VALUE: ucf:0;jmr:1;auth:0;dest:J;ENG:(910001)(944506458)(944626604)(750132)(520011016);

ANALYSIS: - This header denotes what to do with received message, where to put it.

root@kitploit:~
    - auth: Message originating from Authenticated sender
            - 0: Not Authenticated

    - dest: Destination where message should be placed
            - J: JUNK directory

    - Message matched 6 Anti-Spam Delivery rules:
            - (520011016)
            - (750132)
            - (910001)
            - (944506458)
            - (944626604)

(7) Test: X-Microsoft-Antispam Bulk Mail

HEADER: X-Microsoft-Antispam VALUE: BCL:0;

ANALYSIS: - BCL: BULK Confidence Level: 0 The message isn't from a bulk sender.

root@kitploit:~
More information:
            - https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/bulk-complaint-level-values

[...]


(10) Test: MS Defender ATP Message Properties

HEADER: X-MS-Exchange-AtpMessageProperties

VALUE: SA|SL

ANALYSIS: - MS Defender Advanced Threat Protection enabled following protections on this message: - Safe Attachments Protection - Safe Links Protection


(11) Test: Domain Impersonation

HEADER: From

VALUE: "attacker" [email protected]

ANALYSIS: - Mail From: [email protected]

root@kitploit:~
            - Mail Domain: attacker.com
                   --> resolves to: 11.22.33.44
                       --> reverse-DNS resolves to: ec2-11-22-33-44.eu-west-3.compute.amazonaws.com
                           (sender's domain: amazonaws.com)

            - First Hop:   SMTP-SERVICE (44.55.66.77)
                   --> resolves to:
                       --> reverse-DNS resolves to: host44-55-66-77.static.arubacloud.pl
                           (first hop's domain: arubacloud.pl)

    - Domain SPF: "v=spf1 include:_spf.google.com ~all"

    - WARNING! Potential Domain Impersonation!
            - Mail's domain should resolve to:      amazonaws.com
            - But instead first hop resolved to:    arubacloud.pl
root@kitploit:~
---

### श्रेय

- [ipSlav](https://github.com/ipSlav) - [दो Office365 अपारदर्शी नियमों की पहचान करने के लिए](https://github.com/mgeeky/decode-spam-headers/issues/15): `42882007` और `78352004`

---

### ज्ञात समस्याएँ

- `getOffice365TenantNameById(tenantID)` विधि अभी पूरी नहीं हुई है, मैं Office365 टेनेंट GUID को टेनेंट नाम में मैप करने के कुछ तरीके जानता हूँ, लेकिन अभी तक कोई स्थिर तरीका स्थापित नहीं कर पाया हूँ।
- `Authentication-Results` हेडर अभी पूरी तरह से पार्स नहीं हुआ है - [Microsoft दस्तावेज़](https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spam-message-headers?view=o365-worldwide) के अनुसार `reason` प्रोसेसिंग और अन्य फ़ील्ड्स को शामिल करना होगा।

---

### ☕ सहयोग दिखाएँ ☕

यह और अन्य प्रोजेक्ट नींदहीन रातों और **काफी कड़ी मेहनत** का परिणाम हैं। यदि आपको मेरा काम पसंद है और आप सराहना करते हैं कि मैं हमेशा समुदाय को वापस देता हूँ, तो
[मुझे कॉफ़ी पिलाने पर विचार करें](https://github.com/sponsors/mgeeky) _(या बेहतर होगा एक बियर)_ बस धन्यवाद कहने के लिए! 💪

---```
Mariusz Banach / mgeeky, (@mariuszbit)
<mb [at] binary-offensive.com>
टूल डाउनलोड करें
  • X-forefront-antispam-report
  • X-microsoft-antispam-mailbox-delivery
  • X-microsoft-antispam
  • X-exchange-antispam-report-cfa-test
  • X-spam-status
  • X-spam-level
  • X-spam-flag
  • X-spam-report
  • X-vr-spamcause
  • X-ovh-spam-reason
  • X-vr-spamscore
  • X-virus-scanned
  • X-spam-checker-version
  • X-ironport-av
  • X-ironport-anti-spam-filtered
  • X-ironport-anti-spam-result
  • X-mimecast-spam-score
  • Spamdiagnosticmetadata
  • X-ms-exchange-atpmessageproperties
  • X-msfbl
  • X-ms-exchange-transport-endtoendlatency
  • X-ms-oob-tlc-oobclassifiers
  • X-ip-spam-verdict
  • X-amp-result
  • X-ironport-remoteip
  • X-ironport-reputation
  • X-sbrs
  • X-ironport-sendergroup
  • X-policy
  • X-ironport-mailflowpolicy
  • X-remote-ip
  • X-sea-spam
  • X-fireeye
  • X-antiabuse
  • X-tmase-version
  • X-tm-as-product-ver
  • X-tm-as-result
  • X-imss-scan-details
  • X-tm-as-user-approved-sender
  • X-tm-as-user-blocked-sender
  • X-tmase-result
  • X-tmase-snap-result
  • X-imss-dkim-white-list
  • X-tm-as-result-xfilter
  • X-tm-as-smtp
  • X-scanned-by
  • X-mimecast-spam-signature
  • X-mimecast-bulk-signature
  • X-sender-ip
  • X-forefront-antispam-report-untrusted
  • X-microsoft-antispam-untrusted
  • X-sophos-senderhistory
  • X-sophos-rescan
  • X-MS-Exchange-CrossTenant-Id
  • X-OriginatorOrg
  • IronPort-Data
  • IronPort-HdrOrdr
  • X-DKIM
  • DKIM-Filter
  • X-SpamExperts-Class
  • X-SpamExperts-Evidence
  • X-Recommended-Action
  • X-AppInfo
  • X-Spam
  • X-TM-AS-MatchedID
  • X-MS-Exchange-EnableFirstContactSafetyTip
  • X-MS-Exchange-Organization-BypassFocusedInbox
  • X-MS-Exchange-SkipListedInternetSender
  • X-MS-Exchange-ExternalOriginalInternetSender
  • X-CNFS-Analysis
  • X-Authenticated-Sender
  • X-Apparently-From
  • X-Env-Sender
  • Sender