Secure60 Platform has a simple and flexible query language that is used in various parts of the platform. The query syntax allows selection of specific fields, matching of partial text, regex and vairous comparison operators. The syntax also allows grouping of conditions to achieve sophisticated matching rules.
Query sytax is used in the following key system components:
condition statement that is a query in the Secure60 query syntaxA basic Secure60 query looks like: fieldname operator value
ip_src_address = '43.53.63.62'Multiple basic query elements can be joined together with a keyword
ip_src_address = '43.53.63.62' AND host_name = 'testserver4.example.com'Query component evaluation can be controlled by using grouping
(ip_src_address = '43.53.63.62' AND host_name = 'testserver4.example.com') OR (ip_src_address = '8.8.8.8')fieldnameoperator= Exact match!= Not match: Contains - Partial text match
% indicates an arbitrary number of arbitrary characters (including zero characters)._ indicates a single arbitrary character.\ is for escaping literals %, _ and \!: Not Contains - Partial text not match< or <= Less than or Less than equal to> or >= Greater than or Greater than equal to~ Regex search
value:) then can include % symbol to indicate wildcard for rest of text stringb(or start)~``) then can include re regex syntax`Instead of a fieldname we make a number of functions available to enhance query feature set
Usage of a function is to state the function, if data evaluates to true then results from this function will be included
Function List:
isField('fieldname') - Used to look for the presence of a specific field (with any value)
fieldname - Any valid Secure60 fieldnameisIPAddressInRange('fieldname', 'prefix') -
fieldname - Any valid Secure60 fieldnameprefix - String IP address with subnet (Eg. 127.0.0.0/24)process_target_image ~ '\lsass.exe$'process_target_image ~ '\\\lsass.exe$'