[Ietf-dkim] Re: Malicious Modification was: My concerns

"Larry M. Smith" <ietf.org@fahq2.com> Wed, 16 April 2025 17:38 UTC

Return-Path: <ietf.org@fahq2.com>
X-Original-To: ietf-dkim@mail2.ietf.org
Delivered-To: ietf-dkim@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id D4B261D2CFE9 for <ietf-dkim@mail2.ietf.org>; Wed, 16 Apr 2025 10:38:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.885
X-Spam-Level:
X-Spam-Status: No, score=-1.885 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1sXm3FnwlZD5 for <ietf-dkim@mail2.ietf.org>; Wed, 16 Apr 2025 10:38:21 -0700 (PDT)
Received: from iguana.tulip.relay.mailchannels.net (iguana.tulip.relay.mailchannels.net [23.83.218.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 492D71D2CFE4 for <ietf-dkim@ietf.org>; Wed, 16 Apr 2025 10:38:21 -0700 (PDT)
X-Sender-Id: dreamhost|x-authsender|fahq2.com@pandora-servers.net
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3BAAE165778; Wed, 16 Apr 2025 17:38:20 +0000 (UTC)
Received: from pdx1-sub0-mail-a276.dreamhost.com (trex-1.trex.outbound.svc.cluster.local [100.110.58.244]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DBB631666AF; Wed, 16 Apr 2025 17:38:19 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1744825099; a=rsa-sha256; cv=none; b=ZRnYGvizID0+EnzSnJs2WsplxsyWO/6kczqpPU37U1HsF9Csyjf0r+xrioHL2qgiqcxQM2 RG3SKO+c6TDVDy8EAFdWwUYZq5k8739Wt3B+Ea0umUM0Pm+CZJqYoAnV/HQs1I3r6YuSC8 A0js089hJ5HSYHiE98JpbW7B9lUwA4E7Mphx50Xr1uW5ry4HBD+mhJ31Ei5RVTwhmk08RG EdFAaSft9q3+ZGvfMFXken89Eu6MWMcZ6EP7F8f1tc0BfdFhXU2kOQAXvR1F5Y8XMbVtYV bb/inZT2QQxVgat3IeESDZtSjIMz1QAjJNLX3sg3bDsWtEOxj6D/tT4GHNLXLA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1744825099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yk77lgph7TonMpcJbFL9KmshLx4I/C9yXlmlB3P7alw=; b=ME7D+pvml8EeSwdbpH6qFhYXbS/86vJVVEJgzAG4cMSNkYBzRiZmqZXGvADEbcYGCD46MR 8SagW3k/tBsFH1G9hTNhlNAqueHvvPfQRtAXLNn/2LH0lW5B6n43Mi32bo6byVx40jCZin KMs/33k2BZSSiaf0FYKBtyfExpcGQtWruoyTmYgCZwEYPBJNEOvauaZvIneaOuAAHlTjwI +ZxH9o1Lrz+y3ODDPirhoEcs4xRSgIjDeoxsnsi9GnhtzJkpafP1uuRRe1lLgpOI05Od34 yHplYGq9ou2ISk2pMsvl9eHoaZeq5bopClJmH1W04RNeXFWDsPGufYBaPmPYTw==
ARC-Authentication-Results: i=1; rspamd-5dd7f8b4cd-2qznk; auth=pass smtp.auth=dreamhost smtp.mailfrom=ietf.org@fahq2.com
X-Sender-Id: dreamhost|x-authsender|fahq2.com@pandora-servers.net
X-MC-Relay: Neutral
X-MC-Copy: stored-urls
X-MailChannels-SenderId: dreamhost|x-authsender|fahq2.com@pandora-servers.net
X-MailChannels-Auth-Id: dreamhost
X-Whispering-Illegal: 78199e6008a8c73f_1744825100113_608405028
X-MC-Loop-Signature: 1744825100113:3117732535
X-MC-Ingress-Time: 1744825100113
Received: from pdx1-sub0-mail-a276.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.110.58.244 (trex/7.0.3); Wed, 16 Apr 2025 17:38:20 +0000
Received: from [192.168.194.155] (mobile-166-175-62-163.mycingular.net [166.175.62.163]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: fahq2.com@pandora-servers.net) by pdx1-sub0-mail-a276.dreamhost.com (Postfix) with ESMTPSA id 4Zd7Xq2BJfzH8; Wed, 16 Apr 2025 10:38:19 -0700 (PDT)
Message-ID: <bb288a78-c7b4-4455-b9d5-fbc2e73d8f32@fahq2.com>
Date: Wed, 16 Apr 2025 12:38:17 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: ietf-dkim@ietf.org
References: <eb34b668-742b-4d31-af37-fed99f6f6f10@fahq2.com> <zN0v1CDB$7$nFA5D@highwayman.com>
Content-Language: en-US
From: "Larry M. Smith" <ietf.org@fahq2.com>
In-Reply-To: <zN0v1CDB$7$nFA5D@highwayman.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: NKIZU7LKBXFTUKWKKWF6XDZVSY54CG5O
X-Message-ID-Hash: NKIZU7LKBXFTUKWKKWF6XDZVSY54CG5O
X-MailFrom: ietf.org@fahq2.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-ietf-dkim.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Ietf-dkim] Re: Malicious Modification was: My concerns
List-Id: IETF DKIM List <ietf-dkim.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-dkim/pAWM0AGGEPR7HsScNPi2i67S16c>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-dkim>
List-Help: <mailto:ietf-dkim-request@ietf.org?subject=help>
List-Owner: <mailto:ietf-dkim-owner@ietf.org>
List-Post: <mailto:ietf-dkim@ietf.org>
List-Subscribe: <mailto:ietf-dkim-join@ietf.org>
List-Unsubscribe: <mailto:ietf-dkim-leave@ietf.org>

On 4/16/2025, Richard Clayton wrote:
> In message <eb34b668-742b-4d31-af37-fed99f6f6f10@fahq2.com>, Larry M.
> Smith <ietf.org@fahq2.com> writes
> 
>> I appears to me that most of what has been discussed with regards to DKIM replay
>> is an attempt to abuse systems that use DKIM for positive reputation.  However,
>> such replay does require that the messages pass DKIM signing.
> 
>> Hypothetically, if I were evil[1], I would sign up for a target domain's
>> newsletter and mutate messages with this DKIM2, and resend them.
> 
> yes, although if you don't generate multiple copies this is not "DKIM
> replay"
> 

OK, I'll call it malicious modification.

>> While forensic
>> investigation would reveal the subterfuge, what gets displayed via the user's
>> MUA is verifiable via DKIM2 and presumably trusted.  I expect overuse of
>> m=nomodify and this Could make the motivation for DKIM2 somewhat moot.
> 
> Note that honouring "nomodify" is a matter of local policy... but if you
> then send the email onwards (out of your local policy space) having
> modified it then the system you send it to SHOULD (again they may have
> local policy) reject it.
> 
>> An example;
> 
>> 1) I sign up for email from loudmouth@political-party.example.
>> 2) When I receive new email message I mutate them hijacking the donation links,
>> maybe modify the message is subtle ways, DKIM2 sign the emails appropriately,
>> and resend them to my list of victims.
>> 3) Receiving systems validate the DKIM2 and accept the messages.
> 
> Yes, this is understood ... an intermediary can change an email to make
> it evil, and then DKIM2 sign it -- having recorded all the modifications
> they have made.
> 
> However, their signature acknowledges that they made the changes and so
> it is possible to identify which intermediary (of which there may be
> several) made the change -- and an appropriate reputation can be
> assigned to that intermediary .... and not to the original sender.
> 
> There's no way of determining that a change is or is not evil within the
> DKIM2 protocol, nor can there be. However, you do know where the
> evilness came from.


Experience has shown that threat actors are willing to go to great 
lengths to have access to a large pool of resources to abuse and then 
rapidly discard.[1]  Knowing what object to apply poor reputation to for 
the last event often doesn't help for future ones.  Additionally, I do 
not expect that end users to be able to identify the problems 
themselves, not trust that they would be able to identify it before harm 
has been done.

One of the goals of DMARC was "Anti-Phishing", but if DKIM2 allows for 
hijacking of messages in flight, and a reuse of authenticated emails, 
then I would suggest that there exists significant motivation for 
miscreants to abuse this feature.


[1] Statement is for the record. I am aware that we understand this.

-- 
SgtChains