Create an Asset Mapping

Asset mapping helps with future Malop investigations as it gives you a solid understanding of the resources available to your team. Use the API, to map assets like operating systems, servers, network connections, and available IT tools.

The example queries in this section are meant to be a starting point for your investigations. You may need to update the Features (filters) in each query to use indicators specific to your environment or situation.

Web servers

Use the following request to locate web servers of interest by searching for services running on a machine that are most commonly found on web servers.

Request

curl --request POST \
  --url https://12.34.56.78/rest/visualsearch/query/simple \
  --header 'Content-Type: application/json' \
  --data '{
            "queryPath": [
                          {
                            "requestedType": "Machine",
                            "filters": [
                                        {
                                          "facetName": "osVersionType",
                                          "values": [
                                                      "server"
                                                    ],
                                          "filterType": "ContainsIgnoreCase"
                                        }
                                       ],
                            "connectionFeature": {
                                                  "elementInstanceType": "Machine",
                                                  "featureName": "services"
                                                 }
                          },
                          {
                            "requestedType": "Service",
                            "filters": [
                                        {
                                          "facetName": "elementDisplayName",
                                          "values": [
                                                      "apache",
                                                      "nginx",
                                                      "IIS",
                                                      "tomcat"
                                                    ],
                                          "filterType": "ContainsIgnoreCase"
                                        },
                                        {
                                          "facetName": "isActive",
                                          "values": [
                                                      true
                                                    ],
                                          "filterType": null
                                        }
                                       ],
                            "isResult": true
                              }
                         ],
            "totalResultLimit": 100,
            "perGroupLimit": 10,
            "perFeatureLimit": 10,
            "templateContext": "DETAILS",
            "queryTimeout": 120000,
            "customFields": [
                              "elementDisplayName",
                              "displayName",
                              "description",
                              "commandLineArguments",
                              "binaryFile",
                              "isActive",
                              "startType",
                              "ownerMachine",
                              "process",
                              "endTime"
                            ]
          }'

Database servers

Use this request to locate database servers of interest by searching for services running on a machine that are most commonly found on databases.

Request

curl --request POST \
  --url https://12.34.56.78/rest/visualsearch/query/simple \
  --header 'Content-Type: application/json' \
  --data '{
            "queryPath": [
                          {
                            "requestedType": "Machine",
                            "filters": [
                                        {
                                          "facetName": "osVersionType",
                                          "values": [
                                                      "server"
                                                    ],
                                          "filterType": "ContainsIgnoreCase"
                                        }
                                       ],
                            "connectionFeature": {
                                                  "elementInstanceType": "Machine",
                                                  "featureName": "services"
                                                 }
                          },
                          {
                            "requestedType": "Service",
                            "filters": [
                                        {
                                          "facetName": "elementDisplayName",
                                          "values": [
                                                      "sql",
                                                      "mysql",
                                                      "mongodb"
                                                    ],
                                          "filterType": "ContainsIgnoreCase"
                                        }
                                       ],
                            "isResult": true
                          }
                         ],
            "totalResultLimit": 100,
            "perGroupLimit": 10,
            "perFeatureLimit": 10,
            "templateContext": "SPECIFIC",
            "queryTimeout": 120000,
            "customFields": [
                              "elementDisplayName",
                              "displayName",
                              "description",
                              "commandLineArguments",
                              "binaryFile",
                              "isActive",
                              "startType",
                              "ownerMachine",
                              "process",
                              "endTime"
                            ]
          }'

Mail servers

Use this API request to locate mail servers of interest by searching for services running on a machine that is commonly found on mail servers.

Request

curl --request POST \
  --url https://12.34.56.78/rest/visualsearch/query/simple \
  --header 'Content-Type: application/json' \
  --data '{
            "queryPath": [
                          {
                            "requestedType": "Machine",
                            "filters": [
                                          {
                                            "facetName": "osVersionType",
                                            "values": [
                                                        "server"
                                                      ],
                                            "filterType": "ContainsIgnoreCase"
                                          }
                                                       ],
                            "connectionFeature": {
                                                    "elementInstanceType": "Machine",
                                                    "featureName": "services"
                                                  }
                          },
                          {
                            "requestedType": "Service",
                            "filters": [
                                        {
                                          "facetName": "elementDisplayName",
                                          "values": [
                                                      "Exchange",
                                                      "Lotus",
                                                      "smtp",
                                                      "pop3",
                                                      "imap"
                                                    ],
                                          "filterType": "ContainsIgnoreCase"
                                        }
                                       ],
                            "isResult": true
                          }
                         ],
            "totalResultLimit": 100,
            "perGroupLimit": 10,
            "perFeatureLimit": 10,
            "templateContext": "SPECIFIC",
            "queryTimeout": 120000,
            "customFields": [
                              "elementDisplayName",
                              "displayName",
                              "description",
                              "commandLineArguments",
                              "binaryFile",
                              "isActive",
                              "startType",
                              "ownerMachine",
                              "process",
                              "endTime"
                            ]
          }'