aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/forged-chain.eml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-08 13:29:30 +0200
committerDanilo M. <danix@danix.xyz>2026-09-08 13:29:30 +0200
commit5caedfb5068683ef793a338fae30f8269f9f865d (patch)
tree98aa89ac9740844a3a3fd9caa0c8ac4f40a7235c /tests/fixtures/forged-chain.eml
parente497d06483baea7cb6288cf52ff4c897bf1f00fd (diff)
downloadabusectl-5caedfb5068683ef793a338fae30f8269f9f865d.tar.gz
abusectl-5caedfb5068683ef793a338fae30f8269f9f865d.zip
test: fixtures for the parser, documentation ranges only
Four hand-written messages using example.org, example.invalid and the RFC 5737 documentation IP ranges. No real phishing sample goes in this repository: it would carry the recipient identifiers this tool exists to keep out of reports, and a repository is potentially public. forged-chain.eml is the one that matters. The attacker prepends two Received headers naming an innocent third party, so a parser that walks past the trust boundary reports 198.51.100.7 rather than 203.0.113.99. Weekdays verified with date(1) rather than written from memory, since an RFC2822 parser validates the day against the date and a wrong one is indistinguishable from a malformed header. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KphFXTc2QajxXsHWyvGJ4R
Diffstat (limited to 'tests/fixtures/forged-chain.eml')
-rw-r--r--tests/fixtures/forged-chain.eml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fixtures/forged-chain.eml b/tests/fixtures/forged-chain.eml
new file mode 100644
index 0000000..bfd0cb5
--- /dev/null
+++ b/tests/fixtures/forged-chain.eml
@@ -0,0 +1,20 @@
+Received: from mx.example.org (mx.example.org [192.0.2.11])
+ by mail.example.org (Postfix) with ESMTP id CCC33
+ for <you@example.org>; Tue, 8 Sep 2026 11:00:02 +0200 (CEST)
+Received: from evil.example.invalid (evil.example.invalid [203.0.113.99])
+ by mx.example.org (Postfix) with ESMTP id DDD44
+ for <you@example.org>; Tue, 8 Sep 2026 11:00:01 +0200 (CEST)
+Received: from innocent.example.invalid (innocent.example.invalid [198.51.100.7])
+ by evil.example.invalid (Postfix) with ESMTP id EEE55; Tue, 8 Sep 2026 10:59:00 +0200 (CEST)
+Received: from also-forged.example.invalid (also-forged.example.invalid [198.51.100.8])
+ by innocent.example.invalid (Postfix) with ESMTP id FFF66; Tue, 8 Sep 2026 10:58:00 +0200 (CEST)
+Return-Path: <bounce@evil.example.invalid>
+From: "Support" <help@evil.example.invalid>
+To: <you@example.org>
+Subject: Action required
+Message-ID: <bbb222@evil.example.invalid>
+Date: Tue, 8 Sep 2026 10:58:00 +0200
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+
+Visit http://evil.example.invalid/go?u=dGVzdEBleGFtcGxlLm9yZw to continue.