[mile] Comments on draft-ietf-mile-jsoniodef-06
Takahiko Nagata <nagata@lepidum.co.jp> Tue, 20 November 2018 11:14 UTC
Return-Path: <nagata@lepidum.co.jp>
X-Original-To: mile@ietfa.amsl.com
Delivered-To: mile@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0466A1271FF for <mile@ietfa.amsl.com>; Tue, 20 Nov 2018 03:14:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lepidum-co-jp.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IH-_jfisOUQl for <mile@ietfa.amsl.com>; Tue, 20 Nov 2018 03:14:20 -0800 (PST)
Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 080B712F18C for <mile@ietf.org>; Tue, 20 Nov 2018 03:14:19 -0800 (PST)
Received: by mail-pg1-x52b.google.com with SMTP id v28so756828pgk.10 for <mile@ietf.org>; Tue, 20 Nov 2018 03:14:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lepidum-co-jp.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=EfozMpSHEdxl65b5D5y6zsT8RjiSM1VmCR5KwJ9E0HA=; b=ZSnkcnlS/hq8IxYFrlcKasJCxMNDJ8Zh6R1gKbwTea9z87G7GmWpo+blH0+az6CnUT BaU0GxTq3NtksWtuykB5X9Za+cAVHNXbQ2wnToWGwtia1s17vL0lyoo0xCga3fZwY3U+ L2m4BTUEnBmi58vyNLpxQN0dJwJfN9GcHmzKeCLqnPL8idzRkwxS1jteDks8NWh7bBic WoU9FHX1OSaS00HX2IGDB1nYiMkEUtqs17lnks3FqDCd/wctYLl3+XxBCAwOaoFRPobo xqgriVtKV/pYXqTqwMb2AeLnowRZb8hlJON3dfTNZHjybU/ksR5hE7TeDYsqFW/tEaV+ PQ6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=EfozMpSHEdxl65b5D5y6zsT8RjiSM1VmCR5KwJ9E0HA=; b=lYoNTeZXMIEUlAqtZCphXNhOHLX09e+6RdRWEdZnKwVHavE1u/Srpqn7V9sXRmYFKS WIy8FOJrOtYLI4hOWYradOfxybOy/LZ+H1jYGhBqbUpe9L/2liG7qHq0aGOI5BjZTO52 WORsdcTC2h+SUyMy7qx5KoEFY+SZm7R6FeUw3GbIMYm0MkEP0Lo1h2HshlBHeMwfP9zy rgo8Mb/jJAOOlM1z7CfvCmhOlQCARmo073+Yw49OvffGKExc2M5cU3GCwMtVHLZfMYfz cpshmeRdYTjU2l5gR32+5fT6Zt6tyP/2pGm1QTUpdK0kzvaVkMcnplSKXlJa/9rwyaXk vjjQ==
X-Gm-Message-State: AGRZ1gLf8g6hSABojHMEelAjb1dnDjyhZPmdXVV0psAYhLDF6Q4YL1bW cib3K+wrJhkfhezuzTa+DfwWTfgrvf0=
X-Google-Smtp-Source: AJdET5dYsXwlSQnN01XoUTrlQrINKAz0qwS4Hpi/ytsa4iRmCtoeenHdzSBMu2H38j/RaOShaMvfsg==
X-Received: by 2002:a62:2bd4:: with SMTP id r203-v6mr1716716pfr.105.1542712459330; Tue, 20 Nov 2018 03:14:19 -0800 (PST)
Received: from [192.168.30.144] ([150.249.212.66]) by smtp.gmail.com with ESMTPSA id f22-v6sm45570602pfn.177.2018.11.20.03.14.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 03:14:18 -0800 (PST)
To: MILE IETF <mile@ietf.org>
From: Takahiko Nagata <nagata@lepidum.co.jp>
Message-ID: <039ce4f5-7589-c731-2292-4853019db4bc@lepidum.co.jp>
Date: Tue, 20 Nov 2018 20:14:14 +0900
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/mile/KRxdYbzVbtlIC3xg7rniDomLdb8>
Subject: [mile] Comments on draft-ietf-mile-jsoniodef-06
X-BeenThere: mile@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Managed Incident Lightweight Exchange, IODEF extensions and RID exchanges" <mile.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mile>, <mailto:mile-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mile/>
List-Post: <mailto:mile@ietf.org>
List-Help: <mailto:mile-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mile>, <mailto:mile-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Nov 2018 11:14:22 -0000
Dear Authors of draft-ietf-mile-jsoniodef-06, This is Takahiko Nagata. I would like to 9 comments on draft-ietf-mile-jsoniodef-06. (1) Figure 1: JSON Data Types, RFC reference wrong, should refer RFC7203 "STRUCTURED" IODEF Data Type refer "RFC 7213". But correctly, should refer "RFC 7203". (2) Figure 2: CBOR Data Types, "INTEGER" IODEF Data Type shoud include Major type 0/1 "INTEGER" IODEF Data Type on draft-ietf-mile-jsoniodef-06 is only assinged Major type 6 tag 2/3. (Positive bignum, Negative bignum) But shoud include Major type 0/1, (unsigned integer/negative integer, uint8-64) because: (a) almost value in IODEF is enough length by uint8-64 (b) CDDL prelude "integer" include int(uint(#0) / nint(#1)) (3) PAddressType should be choosen text / ML_String. Now PAddressType is only define as MLStringType in CDDL. > PAddressType = MLStringType But, in Figure 1: JSON Data Types, POSTAL is mapped both string and ML_STRING. So, PAddressType should be choosen both in CDDL. > PAddressType = MLStringType / text (4) CDDL group choice of Node is wrong In CDDL of IODEF, Node is defined as: ``` Node = { ( DomainData:[+ DomainData] ? Address:[+ Address]) / (? DomainData:[+ DomainData] + Address:[+ Address]) ``` But to choice group, we should use "//" (double slash). see: 2.2.2. Choices of draft-ietf-cbor-cddl-05 (5) RFC7203 refers RFC 5070 (ex: sci:AttackPattern -> Reference) For example, in CDDL of jsoniodef, Reference has "ReferenceName" property and it's based on RFC7970. ``` Reference = { ? observable-id: IDtype ? ReferenceName: ReferenceName ... ReferenceName = { specIndex: integer ID: IDtype } ``` Some entity based on RFC7203 also refers "Reference", but strictly along by RFC7203, we should refer "Reference" of RFC5070. And this structre is difference between RFC7970 and RFC5070. (ex: ReferenceName, enum in RFC7970, ML_STRING in RFC5070) But we should not change as it is, I think it better. (should refer "Reference" based on RFC7970, even if RFC7203 based item) (6) In Section 2.2.3. StructuredInfo, we should update sample of RawData. In Section 2.2.3, ``` "StructuredInformation": { "SpecID": "oval", //ENUM "RawData": "<<<strings encoded with base64>>>" //BYTE } ``` In CDDL of IODEF, ``` StructuredInformation = { ... ? RawData: [+ ExtensionType] ``` (7) In Section 2.2.4. EXTENSION, we should update sample In Section 2.2.4, ``` "ExtensionType": { "value": "xxxxxxx", //String "name": "Syslog", //String "dtype": "string", //String ``` In CDDL of IODEF, ``` ExtensionType = { ? ssvalue: text ? name: text dtype: "boolean" / "byte" / "bytes" / "character" / "date-time" / ``` "value"->"ssvalue", type of dtype is ENUM. (8) Need update IODEF Classes table(class Assessment) In table IODEF Classes, ``` +-----------------------------+--------------------+---------------+ | Assessment | occurence? | | ... | | SystemImpact* | | | | BusinessImpact* | | | | TimeImpact* | | | | MonetaryImpact* | | | | IntendedImpact* | | ``` In CDDL of IODEF, ``` Assessment = { ... Impact: [+ {SystemImpact: SystemImpact} / {BusinessImpact: BusinessImpact} / {TimeImpact: TimeImpact} / {MonetaryImpact: MonetaryImpact} / {IntendedImpact: BusinessImpact}] ``` (9) missing observable-id of Expectation, In table IODEF Classes Best Regards, Takahiko Nagata
- [mile] Comments on draft-ietf-mile-jsoniodef-06 Takahiko Nagata
- Re: [mile] Comments on draft-ietf-mile-jsoniodef-… Takeshi Takahashi