maestro-indicators

Retrieves the list of indicators of compromise (IoC) registered in Logpresso Sonar. You can check each indicator's type, risk level, external reputation, and detection time.

Command properties

PropertyDescription
Command typeDriver query
Required permissionAdministrator
License usageCounted
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

maestro-indicators [type=STR]

Options

type=STR
Filters by indicator of compromise type. Specify multiple types separated by commas. Not case-sensitive.
  • IP: IP address
  • DOMAIN: Domain
  • URL: URL
  • MD5: MD5 hash
  • EMAIL: Email address

Input fields

None (as a driver query, this command can only be used as the first command in a pipeline)

Output fields

FieldTypeDescription
typestringIndicator of compromise type. One of URL, MD5, IP, DOMAIN, EMAIL
valuestringThe value of the indicator of compromise
riskstringRisk level. One of BENIGN, LOW, MEDIUM, HIGH
reputationstringExternal reputation. One of WAIT, UNKNOWN, BENIGN, SUSPICIOUS, MALICIOUS
statusstringStatus. One of WAIT, ERROR, RETRY, DONE
first_seentimestampFirst detection time
last_seentimestampLast detection time
createdtimestampCreation time
updatedtimestampLast update time

Error codes

Parsing errors
Error codeMessageDescription
300606No permission to enumerate indicators.Run by an account without administrator permission
300607Invalid indicator type. Valid types are: IP, DOMAIN, URL, MD5, EMAILAn invalid type value was specified in the type option
Runtime errors

N/A

Description

The maestro-indicators command retrieves the indicators of compromise registered to the company (tenant) that the current account belongs to, in pages of up to 10,000 records at a time, and returns the entire set sequentially. If the type option is not specified, indicators of all types are returned.

The status field indicates the progress of the external reputation lookup. An indicator is in the WAIT state immediately after it is registered, and changes to DONE (complete), ERROR (error), or RETRY (retrying) as the external reputation lookup proceeds.

If the risk, reputation, or status field has no value yet (for example, before a risk level has been calculated), the field itself is not included in the result.

Examples

  1. Retrieve the full list of indicators of compromise

    maestro-indicators
    
  2. Filter by a specific type

    maestro-indicators type="ip, domain"
    

    Retrieves only indicators of compromise of the IP address and domain types.

  3. Retrieve only high-risk indicators of compromise

    maestro-indicators
    | search risk == "HIGH"
    | fields type, value, reputation, last_seen
    
  4. Aggregate the count of indicators of compromise by type

    maestro-indicators
    | stats count by type
    | sort -count
    

Change history

The maestro-indicators command is available in the Sonar 4.0 series starting with 4.0.2609.0, where the command previously provided by the Experimental app was built into Sonar core. On versions without the built-in command, install the Experimental app to use it. The Experimental app provides it under the name sonar-indicators.