Evaluates an IOC (indicator of compromise) definition on a device.


IpRange (string; optional): One or more IP ranges, comma delimited without spaces. IPv6 ranges are not currently supported. For example: ","

IpAddress (string; optional): One or more IP addresses, comma delimited without spaces. IPv6 addresses are not currently supported, but a match will be attempted. For example: ",,,"

Ports (string; optional): One or more ports, comma delimited without spaces. All ports supplied apply to all IpRanges and IpAddresses supplied. For example: "5556,5557,5558,7229,27015"

Domain (string; optional): One or more domains, comma delimited without spaces. We don't currently have port information tied to domain lookups. As such, if a device has attempted to resolve a domain in this list, it will be returned as a match. For example: ",,". All domains supplied must be lower case.

FileSpec (string; optional): One or more FileSpec strings, comma delimited without spaces. Such a definition is a filename with extension, followed by a colon and then the file's MD5 hash. For example: "malerware.exe:5a766a45158c640023d221005082cbb8,actual.txt:5a766a45158c640023d221005082cbb7". FileSpec matches are done live, and do not use the agent historical data. As such, for this IOC definition, the DaysAgo parameter is ignored. All md5 hashes supplied must be lower case.

Url (string; optional): This parameter is unsupported and will be ignored.

DaysAgo (integer; optional, default 7): An integer between 1 and 30 which governs how far back in the agent historical data to look for IOC matches. If a FileSpec IOC definition is supplied along with others, this parameter will be ignored only for the FileSpec resolution as the FileSpec resolution is always done live.

Return valuesFoundIoc (string): Whether or not the device is considered vulnerable given the definition supplied. Possible values are: "true", "false"
Security.CheckSimpleIoc(IpAddress: ",,", 
Ports: "4000,35525,443", 
FileSpec: "malerware.exe:5a766a45158c640023d221005082cbb8,actual.txt:5a766a45158c640023d221005082cbb7,", 
Domain: ",,,", 
IpRange: ",");
  • Windows

If multiple parameters are supplied, the definitions are considered "OR"-ed together. If any definition is matched, true will be returned.