IBM Security Z Security

 View Only
  • 1.  CARLa error trying to convert an "internaldatetime" format in an SMF record.

    Posted 13 days ago

    I am absolutely new to CARLa, and I am working to code a NEWLIST to process a user SMF record created by IBM CL/Supersession.

    Starting at position 29 is what I believe is an internal date/time format:  X'002B15822024291F'.

    I have coded:

    define type=SMF CLSS_TS(datetime,16) as,                 
      convert(smf_field(29,8),internaldatetime,SMFTIMESTAMP),
     where type=158                                          

    but get error:

    CKR0467 12 Convert(..,INTERNALDATETIME,smftimestamp) not allowed with format Asis field SMF_FIELD at CKRCARLA(CKQCES) line 8

    Is there a way to perform the conversion needed?



    ------------------------------
    Ronald Hahn
    ------------------------------


  • 2.  RE: CARLa error trying to convert an "internaldatetime" format in an SMF record.

    Posted 12 days ago
    Edited by Rob van Hoboken 12 days ago

    Hi Ronald

    Instead of using the CONVERT function, you should be able to just define a new field at the location, with the correct output format, like so:

    define type=SMF CLSS_TS(smftimestamp) as smf_field(28,8),
     where type=158

    Then print the new field with:

    sortlist clss_ts

    The first parameter of SMF_FIELD indicates the offset from the beginning of the record, so position 29 would have offset 28 (just like in the SMF record layout docs).  See here.

    I looked at CLSS log records some 10 years ago and they were not easy to process.  Each record, I remember, holds many logon events for different users.
    So to put these into a QRadar (or other) output stream, you should write one NEWLIST block for each event section, each NEWLIST block using a different offset in the SMF_SECTION function.
    This way, when an SMF record comes along, the CKQCES exit will generate as many output records as there are events in the record.

    ------------------------------
    Rob van Hoboken
    ------------------------------



  • 3.  RE: CARLa error trying to convert an "internaldatetime" format in an SMF record.

    Posted 12 days ago

    Thank you.

    You are correct about Supersession.  The other problem that I have found is that they create the subtypes with an incorrect packed decimal date. They use 2024dddF instead of 01dddF.  This causes the date to be displayed as the year 3924.  I cannot see anyway to correct this using Carla...



    ------------------------------
    Ronald Hahn
    ------------------------------



  • 4.  RE: CARLa error trying to convert an "internaldatetime" format in an SMF record.

    Posted 12 days ago

    One way around the wonky julian date value is to use the DATETIME value from the SMF header.  This is the time when the SMF record was written, not the time of each of the (sub-)events, but close.

    Regarding the wonky date value, check if the CLSS documentation specifies the format, open a ticket against CLSS if it doesn't.  Julian date and SMF date are well defined formats within SMF records.

    If the wonky format is defined.... ask zSecure support for a specialty input format, while also asking about the CKR0467 message (I am pretty sure that your code would have worked 4 years ago).



    ------------------------------
    Rob van Hoboken
    ------------------------------



  • 5.  RE: CARLa error trying to convert an "internaldatetime" format in an SMF record.

    Posted 12 days ago

    Hi Rob,

    > I am pretty sure that your code would have worked 4 years ago

    This code was not flagged down by the 2.3.1 base level. It is flagged down by 2.3.1 with the latest maintenance.

    Regards,



    ------------------------------
    Jeroen Tiggelman
    IBM - Software Development Manager IBM Security zSecure Suite
    Delft
    ------------------------------