IBM QRadar

IBM QRadar

Join this online topic group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Security
#QRadar
#SecuringhybridcloudandAI
 View Only
  • 1.  malicious arguments in script

    Posted 10/03/19 03:13 PM

    Hey there guys, first time poster hoping this is the right forum for this.

    Currently am trying to create a rule in the Qradar system and I am quite unsure as to how to approach this one.

    I have a reference list of malicious arguments and commands.

    I have an event property where I hold a script text which is changing and unknown of format.

    I wish to create a rule saying that if an event has a script text that contains any of the values in the reference list then fire off an offense. 

    Is something like that possible in Qradar? I have hit quite a wall here and am hoping for help in the matter.

    Thanks.

    Gideon



    ------------------------------
    Gideon Balchasan
    ------------------------------


  • 2.  RE: malicious arguments in script

    Posted 10/04/19 05:16 AM
    Hi,

    Yes if I understand correctly what you are trying to do this is very easy to do in QRadar. You have events coming into QRadar where one of the Custom Properties is pulling out the list of commands. On the other hand you have a list of these commands in a list and you want to know if one of the malicious commands in your list is seen in your events.
    OK so 
    1. Add your list of malicious commands into a reference set
    2. In your rule then simply say when this properties is contained in this ref set fire an offense. 

    If you want an example of this already for you. Download the sysmon content pack here https://exchange.xforce.ibmcloud.com/hub/extension/e41e758e2ab5786173438cd09219a9d0
    and look at the rule Process Loaded Executable from Temp Directory

    ------------------------------
    SHANE LUNDY
    ------------------------------



  • 3.  RE: malicious arguments in script

    Posted 10/06/19 02:10 AM
    Edited by Gideon Balchasan 10/07/19 03:19 AM

    Hey there @SHANE LUNDY, thank you for the quick reply.

    I think you don't quite understand what I am working with,

    I have a script, a long list of multiple commands changing and varying each time and I want to know if any of the values in the reference set are contained in my script. (In the event property) not the other way around.

    The test rule says "Match when the event property is contained in any of the reference set values" and I want to do the opposite,  "Match when any of the reference set values are contained in the event property."

    Any one know how to do that?



    ------------------------------
    Gideon Balchasan
    ------------------------------



  • 4.  RE: malicious arguments in script

    Posted 10/07/19 05:24 AM
    Hi, You are right what I stated above. Its for exact matches. As in the custom property value has to match exactly what is in the ref set. So from my understanding you are looking for a partial match? You have the long string in the Custom Property and you want to know if any of the values in the ref set match these log strings. ?

    ------------------------------
    SHANE LUNDY
    ------------------------------



  • 5.  RE: malicious arguments in script

    Posted 10/07/19 05:30 AM

    Hey there Shane.

    Yes exactly, that is what I am trying to achieve.



    ------------------------------
    Gideon Balchasan
    ------------------------------



  • 6.  RE: malicious arguments in script

    Posted 10/07/19 06:19 AM
    Hi,

    So you can't do that with ref sets currently. We do have roadmap items to be able to do this in the future. 

    I'm just following up here to see if anyone knows a workaround to do this.

    Shane

    ------------------------------
    SHANE LUNDY
    ------------------------------



  • 7.  RE: malicious arguments in script

    Posted 10/07/19 06:26 AM

    Hey Shane,

    Thanks for trying to help!

    For now, I have decided to use a workaround which isn't very sympathetic. Instead of a reference set I am going to use the "Custom property matches this regex" test and then put each value that was supposed to go in the reference set into a .*Value.* | pattern so I can test it out against all the different values if it matches on any one of them it will give me an match.


    Was hoping to have something a bit more friendly as this requires me to change the regex any time I want to add or remove a new value. 



    ------------------------------
    Gideon Balchasan
    ------------------------------



  • 8.  RE: malicious arguments in script

    Posted 10/07/19 06:26 AM
    Hi

    So there is a custom script as part of this content pack that will allow you do exactly what you are looking to do.

    https://exchange.xforce.ibmcloud.com/hub/extension/c628a5e05bcea8449c17500619781acf

    Shane

    ------------------------------
    SHANE LUNDY
    ------------------------------



  • 9.  RE: malicious arguments in script

    Posted 10/07/19 08:34 AM

    Hey there @SHANE LUNDY.

    Could you please detail a bit further? What script exactly in there could help me and how? from what I am reading about this extension basically its more capabilities for ​AQL queries in searches but how would this help me to create a rule regarding what I want to do?



    ------------------------------
    Gideon Balchasan
    ------------------------------