Merge pull request #2031 from socprime/SentinelOne

SentinelOne:Connector+parser
This commit is contained in:
v-jayakal 2021-04-06 00:23:35 -07:00 коммит произвёл GitHub
Родитель 93050f2808 43b2425e2f
Коммит 2e014b6823
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
11 изменённых файлов: 1874 добавлений и 0 удалений

Двоичные данные
DataConnectors/SentinelOne/SentinelOneAPISentinelConn.zip Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,224 @@
import azure.functions as func
import datetime
import json
import base64
import hashlib
import hmac
import requests
import re
import os
import logging
from .state_manager import StateManager
user = os.environ['SentinelOneUser']
passwd = os.environ['SentinelOnePassword']
domain = os.environ['SentinelOneUrl']
table_name = "SentinelOne"
chunksize = 10000
customer_id = os.environ['WorkspaceID']
shared_key = os.environ['WorkspaceKey']
connection_string = os.environ['AzureWebJobsStorage']
logAnalyticsUri = os.environ.get('logAnalyticsUri')
if ((logAnalyticsUri in (None, '') or str(logAnalyticsUri).isspace())):
logAnalyticsUri = 'https://' + customer_id + '.ods.opinsights.azure.com'
pattern = r'https:\/\/([\w\-]+)\.ods\.opinsights\.azure.([a-zA-Z\.]+)$'
match = re.match(pattern,str(logAnalyticsUri))
if(not match):
raise Exception("SentinelOne Data Connector: Invalid Log Analytics Uri.")
class SOne():
def __init__(self):
self.user = user
self.passwd = passwd
self.domain = domain
self.token = self.auth()
self.from_date, self.to_date = self.generate_date()
self.results_array = []
def auth(self):
endpoint = '/web/api/v2.0/users/login'
auth_header = {
'username': self.user,
'password': self.passwd
}
r = requests.post(self.domain + endpoint, json=auth_header)
if (r.status_code >= 200 and r.status_code <= 299):
self.token = (r.json().get("data")).get("token")
self.header = {
'Authorization': 'Token {}'.format(self.token),
'Content-Type': 'application/json'
}
return self.header
else:
logging.error("Login to SentinelOne failed. Pls check credentials. Error code: {}".format(r.status_code))
def generate_date(self):
current_time = datetime.datetime.utcnow() - datetime.timedelta(minutes=10)
state = StateManager(connection_string)
past_time = state.get()
if past_time is not None:
logging.info("The last time point is: {}".format(past_time))
else:
logging.info("There is no last time point, trying to get events for last day.")
past_time = (current_time - datetime.timedelta(days=1)).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
state.post(current_time.strftime("%Y-%m-%dT%H:%M:%S.%fZ"))
return (past_time, current_time.strftime("%Y-%m-%dT%H:%M:%S.%fZ"))
def get_report(self, report_type_suffix, next_page_token = None, params = None):
if next_page_token:
params.update({"cursor": next_page_token})
try:
r = requests.get(self.domain + report_type_suffix, headers=self.header, params=params)
if r.status_code == 200:
return r.json()
elif r.status_code == 400:
logging.error("Invalid user input received. See error details for further information."
" Error code: {}".format(r.status_code))
elif r.status_code == 401:
logging.error("Unauthorized access - please sign in and retry. Error code: {}".format(r.status_code))
else:
logging.error("Something wrong. Error code: {}".format(r.status_code))
except Exception as err:
logging.error("Something wrong. Exception error text: {}".format(err))
def results_array_join(self, result_element, api_req_name):
for element in result_element['data']:
element['event_name'] = api_req_name
self.results_array.append(element)
def reports_list(self):
params_created_events = {
"limit": 1000,
"createdAt__gt": self.from_date,
"createdAt__lt": self.to_date
}
params_updated_events = {
"limit": 200,
"updatedAt__gt": self.from_date,
"updatedAt__lt": self.to_date
}
reports_api_requests_dict = \
{
"activities_created_events": {"api_req": "/web/api/v2.1/activities", "name": "Activities.",
"params": params_created_events },
"agents_created_events": {"api_req": "/web/api/v2.1/agents", "name": "Agents.",
"params": params_created_events},
"agents_updated_events": {"api_req": "/web/api/v2.1/agents", "name": "Agents.",
"params": params_updated_events},
"groups_updated_events": {"api_req": "/web/api/v2.1/groups", "name": "Groups.",
"params": params_updated_events},
"threats_created_events": {"api_req": "/web/api/v2.1/threats", "name": "Threats.",
"params": params_created_events},
"threats_updated_events": {"api_req": "/web/api/v2.1/threats", "name": "Threats.",
"params": params_updated_events},
"alerts_created_events": {"api_req": "/web/api/v2.1/cloud-detection/alerts", "name": "Alerts.",
"params": params_created_events},
}
for api_req_id, api_req_info in reports_api_requests_dict.items():
api_req = api_req_info["api_req"]
api_req_name = api_req_info["name"]
api_req_params = api_req_info["params"]
logging.info("Getting report: {}".format(api_req_id))
result = self.get_report(report_type_suffix=api_req,params = api_req_params)
if result is not None:
try:
next_page_token = (result.get("pagination")).get("nextCursor")
except:
next_page_token = None
self.results_array_join(result, api_req_name)
else:
next_page_token = None
while next_page_token:
result = self.get_report(report_type_suffix=api_req, next_page_token=next_page_token, params = api_req_params)
if result is not None:
try:
next_page_token = (result.get("pagination")).get("nextCursor")
except:
next_page_token = None
self.results_array_join(result, api_req_name)
else:
next_page_token = None
class Sentinel:
def __init__(self):
self.logAnalyticsUri = logAnalyticsUri
self.success_processed = 0
self.fail_processed = 0
self.table_name = table_name
self.chunksize = chunksize
def gen_chunks_to_object(self, data, chunksize=100):
chunk = []
for index, line in enumerate(data):
if (index % chunksize == 0 and index > 0):
yield chunk
del chunk[:]
chunk.append(line)
yield chunk
def gen_chunks(self, data):
for chunk in self.gen_chunks_to_object(data, chunksize=self.chunksize):
obj_array = []
for row in chunk:
if row != None and row != '':
obj_array.append(row)
body = json.dumps(obj_array)
self.post_data(body, len(obj_array))
def build_signature(self, date, content_length, method, content_type, resource):
x_headers = 'x-ms-date:' + date
string_to_hash = method + "\n" + str(content_length) + "\n" + content_type + "\n" + x_headers + "\n" + resource
bytes_to_hash = bytes(string_to_hash, encoding="utf-8")
decoded_key = base64.b64decode(shared_key)
encoded_hash = base64.b64encode(
hmac.new(decoded_key, bytes_to_hash, digestmod=hashlib.sha256).digest()).decode()
authorization = "SharedKey {}:{}".format(customer_id, encoded_hash)
return authorization
def post_data(self, body, chunk_count):
method = 'POST'
content_type = 'application/json'
resource = '/api/logs'
rfc1123date = datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')
content_length = len(body)
signature = self.build_signature(rfc1123date, content_length, method, content_type,
resource)
uri = self.logAnalyticsUri + resource + '?api-version=2016-04-01'
headers = {
'content-type': content_type,
'Authorization': signature,
'Log-Type': self.table_name,
'x-ms-date': rfc1123date
}
response = requests.post(uri, data=body, headers=headers)
if (response.status_code >= 200 and response.status_code <= 299):
logging.info("Chunk was processed({} events)".format(chunk_count))
self.success_processed = self.success_processed + chunk_count
else:
logging.info("Error during sending events to Azure Sentinel. Response code:{}".format(response.status_code))
self.fail_processed = self.fail_processed + chunk_count
def main(mytimer: func.TimerRequest) -> None:
utc_timestamp = datetime.datetime.utcnow().replace(
tzinfo=datetime.timezone.utc).isoformat()
if mytimer.past_due:
logging.info("The timer is past due!")
logging.info("Python timer trigger function ran at %s", utc_timestamp)
logging.info("Starting program")
SO = SOne()
sentinel = Sentinel()
SO.reports_list()
SOne_class_vars = vars(SO)
from_date, to_date = SOne_class_vars["from_date"], SOne_class_vars["to_date"]
logging.info("Trying to get events for period: {} - {}".format(from_date, to_date))
results_array = SOne_class_vars["results_array"]
sentinel.gen_chunks(results_array)
sentinel_class_vars = vars(sentinel)
success_processed, fail_processed = sentinel_class_vars["success_processed"], \
sentinel_class_vars["fail_processed"]
logging.info("Total events processed successfully: {}, failed: {}. Period: {} - {}"
.format(success_processed, fail_processed, from_date, to_date))

Просмотреть файл

@ -0,0 +1,11 @@
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "mytimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 */10 * * * *"
}
]
}

Просмотреть файл

@ -0,0 +1,22 @@
from azure.storage.fileshare import ShareClient
from azure.storage.fileshare import ShareFileClient
from azure.core.exceptions import ResourceNotFoundError
class StateManager:
def __init__(self, connection_string, share_name='funcstatemarkershare', file_path='funcstatemarkerfile'):
self.share_cli = ShareClient.from_connection_string(conn_str=connection_string, share_name=share_name)
self.file_cli = ShareFileClient.from_connection_string(conn_str=connection_string, share_name=share_name, file_path=file_path)
def post(self, marker_text: str):
try:
self.file_cli.upload_file(marker_text)
except ResourceNotFoundError:
self.share_cli.create_share()
self.file_cli.upload_file(marker_text)
def get(self):
try:
return self.file_cli.download_file().readall().decode()
except ResourceNotFoundError:
return None

Просмотреть файл

@ -0,0 +1,121 @@
{
"id": "SentinelOne",
"title": "SentinelOne",
"publisher": "SentinelOne",
"descriptionMarkdown": "The [SentinelOne](https://www.sentinelone.com/) data connector provides the capability to ingest common SentinelOne server objects such as Threats, Agents, Applications, Activities, Policies, Groups, and more events into Azure Sentinel through the REST API. Refer to API documentation: `https://<SOneInstanceDomain>.sentinelone.net/api-doc/overview` for more information. The connector provides ability to get events which helps to examine potential security risks, analyze your team's use of collaboration, diagnose configuration problems and more.",
"additionalRequirementBanner": "These queries and workbooks are dependent on a parser based on Kusto to work as expected. Follow the steps to use this Kusto functions alias **SentinelOne** in queries and workbooks [Follow steps to get this Kusto functions>](https://aka.ms/sentinel-SentinelOneAPI-parser).",
"graphQueries": [{
"metricName": "Total data received",
"legend": "SentinelOne_CL",
"baseQuery": "SentinelOne_CL"
}
],
"sampleQueries": [{
"description": "SentinelOne Events - All Activities.",
"query": "SentinelOne\n | sort by TimeGenerated desc"
}
],
"dataTypes": [{
"name": "SentinelOne_CL",
"lastDataReceivedQuery": "SentinelOne_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
}
],
"connectivityCriterias": [{
"type": "IsConnectedQuery",
"value": [
"SentinelOne_CL\n | summarize LastLogReceived = max(TimeGenerated)\n | project IsConnected = LastLogReceived > ago(30d)"
]
}
],
"availability": {
"status": 1,
"isPreview": true
},
"permissions": {
"resourceProvider": [{
"provider": "Microsoft.OperationalInsights/workspaces",
"permissionsDisplayText": "read and write permissions on the workspace are required.",
"providerDisplayName": "Workspace",
"scope": "Workspace",
"requiredPermissions": {
"write": true,
"read": true,
"delete": true
}
},
{
"provider": "Microsoft.OperationalInsights/workspaces/sharedKeys",
"permissionsDisplayText": "read permissions to shared keys for the workspace are required. [See the documentation to learn more about workspace keys](https://docs.microsoft.com/azure/azure-monitor/platform/agent-windows#obtain-workspace-id-and-key).",
"providerDisplayName": "Keys",
"scope": "Workspace",
"requiredPermissions": {
"action": true
}
}
],
"customs": [{
"name": "Microsoft.Web/sites permissions",
"description": "Read and write permissions to Azure Functions to create a Function App is required. [See the documentation to learn more about Azure Functions](https://docs.microsoft.com/azure/azure-functions/)."
},
{
"name": "REST API Credentials/permissions",
"description": "**SentinelOneUser** and **SentinelOnePassword** are required for generate SentinelOne API key. See the documentation to learn more about API on the `https://<SOneInstanceDomain>.sentinelone.net/api-doc/overview`."
}
]
},
"instructionSteps": [{
"title": "",
"description": ">**NOTE:** This connector uses Azure Functions to connect to the SentinelOne API to pull its logs into Azure Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details."
},
{
"title": "",
"description": ">**(Optional Step)** Securely store workspace and API authorization key(s) or token(s) in Azure Key Vault. Azure Key Vault provides a secure mechanism to store and retrieve key values. [Follow these instructions](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references) to use Azure Key Vault with an Azure Function App."
},
{
"description": ">**NOTE:** This data connector depends on a parser based on a Kusto Function to work as expected. [Follow these steps](https://aka.ms/sentinel-SentinelOneAPI-parser) to create the Kusto functions alias, **SentinelOne**"
},
{
"title": "",
"description": "**STEP 1 - Configuration steps for the SentinelOne API**\n\n Follow the instructions to obtain the credentials.\n\n1. Log in to the SentinelOne Management Console with Admin user credentials.\n2. In the Management Console, click **Settings**.\n3. In the **SETTINGS** view, click **USERS**\n4. Click **New User**.\n5. Enter the information for the new console user.\n5. In Role, select **Admin**.\n6. Click **SAVE**\n7. Save credentials of the new user for using in the data connector."
},
{
"title": "",
"description": "**STEP 2 - Choose ONE from the following two deployment options to deploy the connector and the associated Azure Function**\n\n>**IMPORTANT:** Before deploying the SentinelOne data connector, have the Workspace ID and Workspace Primary Key (can be copied from the following).",
"instructions": [{
"parameters": {
"fillWith": [
"WorkspaceId"
],
"label": "Workspace ID"
},
"type": "CopyableLabel"
},
{
"parameters": {
"fillWith": [
"PrimaryKey"
],
"label": "Primary Key"
},
"type": "CopyableLabel"
}
]
},
{
"title": "Option 1 - Azure Resource Manager (ARM) Template",
"description": "Use this method for automated deployment of the SentinelOne Audit data connector using an ARM Tempate.\n\n1. Click the **Deploy to Azure** button below. \n\n\t[![Deploy To Azure](https://aka.ms/deploytoazurebutton)](https://aka.ms/sentinel-SentinelOneAPI-azuredeploy)\n2. Select the preferred **Subscription**, **Resource Group** and **Location**. \n> **NOTE:** Within the same resource group, you can't mix Windows and Linux apps in the same region. Select existing resource group without Windows apps in it or create new resource group.\n3. Enter the **SentinelOneUser**, **SentinelOnePassword**, **SentinelOneUrl** `(https://<SOneInstanceDomain>.sentinelone.net)` and deploy. \n4. Mark the checkbox labeled **I agree to the terms and conditions stated above**. \n5. Click **Purchase** to deploy."
},
{
"title": "Option 2 - Manual Deployment of Azure Functions",
"description": "Use the following step-by-step instructions to deploy the SentinelOne Reports data connector manually with Azure Functions (Deployment via Visual Studio Code)."
},
{
"title": "",
"description": "**1. Deploy a Function App**\n\n> **NOTE:** You will need to [prepare VS code](https://docs.microsoft.com/azure/azure-functions/functions-create-first-function-python#prerequisites) for Azure function development.\n\n1. Download the [Azure Function App](https://aka.ms/sentinel-SentinelOneAPI-functionapp) file. Extract archive to your local development computer.\n2. Start VS Code. Choose File in the main menu and select Open Folder.\n3. Select the top level folder from extracted files.\n4. Choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose the **Deploy to function app** button.\nIf you aren't already signed in, choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose **Sign in to Azure**\nIf you're already signed in, go to the next step.\n5. Provide the following information at the prompts:\n\n\ta. **Select folder:** Choose a folder from your workspace or browse to one that contains your function app.\n\n\tb. **Select Subscription:** Choose the subscription to use.\n\n\tc. Select **Create new Function App in Azure** (Don't choose the Advanced option)\n\n\td. **Enter a globally unique name for the function app:** Type a name that is valid in a URL path. The name you type is validated to make sure that it's unique in Azure Functions. (e.g. SOneXXXXX).\n\n\te. **Select a runtime:** Choose Python 3.8.\n\n\tf. Select a location for new resources. For better performance and lower costs choose the same [region](https://azure.microsoft.com/regions/) where Azure Sentinel is located.\n\n6. Deployment will begin. A notification is displayed after your function app is created and the deployment package is applied.\n7. Go to Azure Portal for the Function App configuration."
},
{
"title": "",
"description": "**2. Configure the Function App**\n\n1. In the Function App, select the Function App Name and select **Configuration**.\n2. In the **Application settings** tab, select ** New application setting**.\n3. Add each of the following application settings individually, with their respective string values (case-sensitive): \n\t\tSentinelOneUser\n\t\tSentinelOnePassword\n\t\tSentinelOneUrl\n\t\tWorkspaceID\n\t\tWorkspaceKey\n\t\tlogAnalyticsUri (optional)\n> - Use logAnalyticsUri to override the log analytics API endpoint for dedicated cloud. For example, for public cloud, leave the value empty; for Azure GovUS cloud environment, specify the value in the following format: `https://<CustomerId>.ods.opinsights.azure.us`.\n4. Once all application settings have been entered, click **Save**."
}
]
}

Просмотреть файл

@ -0,0 +1,204 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"FunctionName": {
"defaultValue": "SOne",
"minLength": 1,
"maxLength": 11,
"type": "string"
},
"WorkspaceID": {
"type": "string",
"defaultValue": "<workspaceID>"
},
"WorkspaceKey": {
"type": "securestring",
"defaultValue": "<workspaceKey>"
},
"SentinelOneUser": {
"type": "string",
"defaultValue": "<SentinelOneUser>"
},
"SentinelOnePassword": {
"type": "securestring",
"defaultValue": "<SentinelOnePassword>"
},
"SentinelOneUrl": {
"type": "string",
"defaultValue": "<SentinelOneUrl>"
}
},
"variables": {
"FunctionName": "[concat(toLower(parameters('FunctionName')), uniqueString(resourceGroup().id))]",
"StorageSuffix": "[environment().suffixes.storage]",
"LogAnaltyicsUri": "[replace(environment().portal, 'https://portal', concat('https://', toLower(parameters('WorkspaceID')), '.ods.opinsights'))]"
},
"resources": [
{
"type": "Microsoft.Insights/components",
"apiVersion": "2015-05-01",
"name": "[variables('FunctionName')]",
"location": "[resourceGroup().location]",
"kind": "web",
"properties": {
"Application_Type": "web",
"ApplicationId": "[variables('FunctionName')]"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"name": "[tolower(variables('FunctionName'))]",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true
},
"blob": {
"keyType": "Account",
"enabled": true
}
},
"keySource": "Microsoft.Storage"
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]"
],
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"cors": {
"corsRules": []
},
"deleteRetentionPolicy": {
"enabled": false
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/fileServices",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]"
],
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"cors": {
"corsRules": []
}
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2018-11-01",
"name": "[variables('FunctionName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]",
"[resourceId('Microsoft.Insights/components', variables('FunctionName'))]"
],
"kind": "functionapp,linux",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"name": "[variables('FunctionName')]",
"httpsOnly": true,
"clientAffinityEnabled": true,
"alwaysOn": true,
"reserved": true,
"siteConfig": {
"linuxFxVersion": "python|3.8"
}
},
"resources": [
{
"apiVersion": "2018-11-01",
"type": "config",
"name": "appsettings",
"dependsOn": [
"[concat('Microsoft.Web/sites/', variables('FunctionName'))]"
],
"properties": {
"FUNCTIONS_EXTENSION_VERSION": "~3",
"FUNCTIONS_WORKER_RUNTIME": "python",
"APPINSIGHTS_INSTRUMENTATIONKEY": "[reference(resourceId('Microsoft.insights/components', variables('FunctionName')), '2015-05-01').InstrumentationKey]",
"APPLICATIONINSIGHTS_CONNECTION_STRING": "[reference(resourceId('microsoft.insights/components', variables('FunctionName')), '2015-05-01').ConnectionString]",
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=', toLower(variables('FunctionName')),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', toLower(variables('FunctionName'))), '2019-06-01').keys[0].value, ';EndpointSuffix=',toLower(variables('StorageSuffix')))]",
"logAnalyticsUri": "[variables('LogAnaltyicsUri')]",
"WorkspaceID": "[parameters('WorkspaceID')]",
"WorkspaceKey": "[parameters('WorkspaceKey')]",
"SentinelOneUser": "[parameters('SentinelOneUser')]",
"SentinelOnePassword": "[parameters('SentinelOnePassword')]",
"SentinelOneUrl": "[parameters('SentinelOneUrl')]",
"WEBSITE_RUN_FROM_PACKAGE": "https://aka.ms/sentinel-SentinelOneAPI-functionapp"
}
}
]
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/azure-webjobs-hosts')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"publicAccess": "None"
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/azure-webjobs-secrets')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"publicAccess": "None"
}
},
{
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/', tolower(variables('FunctionName')))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/fileServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"shareQuota": 5120
}
}
]
}

Просмотреть файл

@ -0,0 +1,15 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
}
}

Просмотреть файл

@ -0,0 +1,4 @@
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {}
}

Просмотреть файл

@ -0,0 +1,7 @@
# DO NOT include azure-functions-worker in this file
# The Python Worker is managed by Azure Functions platform
# Manually managing azure-functions-worker may cause unexpected issues
azure-storage-file-share==12.3.0
azure-functions
requests

Просмотреть файл

@ -0,0 +1,277 @@
// Usage Instruction :
// Paste below query in log analytics, click on Save button and select as Function from drop down by specifying function name and alias (e.g. SentinelOne).
// Function usually takes 10-15 minutes to activate. You can then use function alias from any other queries (e.g. SentinelOne | take 10).
// References :
// Using functions in Azure monitor log queries : https://docs.microsoft.com/azure/azure-monitor/log-query/functions
// Tech Community Blog on KQL Functions : https://techcommunity.microsoft.com/t5/Azure-Sentinel/Using-KQL-functions-to-speed-up-analysis-in-Azure-Sentinel/ba-p/712381
//
let SentinelOne_view = view () {
SentinelOne_CL
| extend
EventVendor="SentinelOne",
EventProduct="SentinelOne",
AccountId=column_ifexists('accountId_s', ''),
AccountName=column_ifexists('accountName_s', ''),
ActivityType=column_ifexists('activityType_d', ''),
EventCreationTime=column_ifexists('createdAt_t', ''),
DataAccountName=column_ifexists('data_accountName_s', ''),
DataFullScopeDetails=column_ifexists('data_fullScopeDetails_s', ''),
DataScopeLevel=column_ifexists('data_scopeLevel_s', ''),
DataScopeName=column_ifexists('data_scopeName_s', ''),
DataSiteId=column_ifexists('data_siteId_d', ''),
DataSiteName=column_ifexists('data_siteName_s', ''),
SrcUserName=column_ifexists('data_username_s', ''),
EventId=column_ifexists('id_s', ''),
EventOriginalMessage=column_ifexists('primaryDescription_s', ''),
SiteId=column_ifexists('siteId_s', ''),
SiteName=column_ifexists('siteName_s', ''),
UpdatedAt=column_ifexists('updatedAt_t', ''),
UserIdentity=column_ifexists('userId_s', ''),
EventType=column_ifexists('event_name_s', ''),
DataByUser=column_ifexists('data_byUser_s', ''),
DataRole=column_ifexists('data_role_s', ''),
DataUserScope=column_ifexists('data_userScope_s', ''),
EventTypeDetailed=column_ifexists('description_s', ''),
DataSource=column_ifexists('data_source_s', ''),
DataExpiryDateStr=column_ifexists('data_expiryDateStr_s', ''),
DataExpiryTime=column_ifexists('data_expiryTime_d', ''),
DataNetworkquarantine=column_ifexists('data_networkquarantine_b', ''),
DataRuleCreationTime=column_ifexists('data_ruleCreationTime_d', ''),
DataRuleDescription=column_ifexists('data_ruleDescription_s', ''),
DataRuleExpirationMode=column_ifexists('data_ruleExpirationMode_s', ''),
DataRuleId=column_ifexists('data_ruleId_d', ''),
DataRuleName=column_ifexists('data_ruleName_s', ''),
DataRuleQueryDetails=column_ifexists('data_ruleQueryDetails_s', ''),
DataRuleQueryType=column_ifexists('data_ruleQueryType_s', ''),
DataRuleSeverity=column_ifexists('data_ruleSeverity_s', ''),
DataScopeId=column_ifexists('data_scopeId_d', ''),
DataStatus=column_ifexists('data_status_s', ''),
DataSystemUser=column_ifexists('data_systemUser_d', ''),
DataTreatasthreat=column_ifexists('data_treatasthreat_s', ''),
DataUserId=column_ifexists('data_userId_d', ''),
DataUserName=column_ifexists('data_userName_s', ''),
EventSubStatus=column_ifexists('secondaryDescription_s', ''),
AgentId=column_ifexists('agentId_s', ''),
DataComputerName=column_ifexists('data_computerName_s', ''),
DataExternalIp=column_ifexists('data_externalIp_s', ''),
DataGroupName=column_ifexists('data_groupName_s', ''),
DataSystem=column_ifexists('data_system_b', ''),
DataUuid=column_ifexists('data_uuid_g', ''),
GroupId=column_ifexists('groupId_s', ''),
GroupName=column_ifexists('groupName_s', ''),
DataGroup=column_ifexists('data_group_s', ''),
DataOptionalGroups=column_ifexists('data_optionalGroups_s', ''),
DataCreatedAt=column_ifexists('data_createdAt_t', ''),
DataDownloadUrl=column_ifexists('data_downloadUrl_s', ''),
DataFilePath=column_ifexists('data_filePath_s', ''),
DataFilename=column_ifexists('data_filename_s', ''),
DataUploadedFilename=column_ifexists('data_uploadedFilename_s', ''),
Comments=column_ifexists('comments_s', ''),
DataNewValue=column_ifexists('data_newValue_s', ''),
DataPolicyId=column_ifexists('data_policy_id_s', ''),
DataPolicyName=column_ifexists('data_policyName_s', ''),
DataNewValueb=column_ifexists('data_newValue_b', ''),
DataShouldReboot=column_ifexists('data_shouldReboot_b', ''),
DataRoleName=column_ifexists('data_roleName_s', ''),
DataScopeLevelName=column_ifexists('data_scopeLevelName_s', ''),
ActiveDirectoryComputerDistinguishedName=column_ifexists('activeDirectory_computerDistinguishedName_s', ''),
ActiveDirectoryComputerMemberOf=column_ifexists('activeDirectory_computerMemberOf_s', ''),
ActiveDirectoryLastUserDistinguishedName=column_ifexists('activeDirectory_lastUserDistinguishedName_s', ''),
ActiveDirectoryLastUserMemberOf=column_ifexists('activeDirectory_lastUserMemberOf_s', ''),
ActiveThreats=column_ifexists('activeThreats_d', ''),
AgentVersion=column_ifexists('agentVersion_s', ''),
AllowRemoteShell=column_ifexists('allowRemoteShell_b', ''),
AppsVulnerabilityStatus=column_ifexists('appsVulnerabilityStatus_s', ''),
ComputerName=column_ifexists('computerName_s', ''),
ConsoleMigrationStatus=column_ifexists('consoleMigrationStatus_s', ''),
CoreCount=column_ifexists('coreCount_d', ''),
CpuCount=column_ifexists('cpuCount_d', ''),
CpuId=column_ifexists('cpuId_s', ''),
SrcDvcDomain=column_ifexists('domain_s', ''),
EncryptedApplications=column_ifexists('encryptedApplications_b', ''),
ExternalId=column_ifexists('externalId_s', ''),
ExternalIp=column_ifexists('externalIp_s', ''),
FirewallEnabled=column_ifexists('firewallEnabled_b', ''),
GroupIp=column_ifexists('groupIp_s', ''),
InRemoteShellSession=column_ifexists('inRemoteShellSession_b', ''),
Infected=column_ifexists('infected_b', ''),
InstallerType=column_ifexists('installerType_s', ''),
IsActive=column_ifexists('isActive_b', ''),
IsDecommissioned=column_ifexists('isDecommissioned_b', ''),
IsPendingUninstall=column_ifexists('isPendingUninstall_b', ''),
IsUninstalled=column_ifexists('isUninstalled_b', ''),
IsUpToDate=column_ifexists('isUpToDate_b', ''),
LastActiveDate=column_ifexists('lastActiveDate_t', ''),
LastIpToMgmt=column_ifexists('lastIpToMgmt_s', ''),
LastLoggedInUserName=column_ifexists('lastLoggedInUserName_s', ''),
LicenseKey=column_ifexists('licenseKey_s', ''),
LocationEnabled=column_ifexists('locationEnabled_b', ''),
LocationType=column_ifexists('locationType_s', ''),
Locations=column_ifexists('locations_s', ''),
MachineType=column_ifexists('machineType_s', ''),
MitigationMode=column_ifexists('mitigationMode_s', ''),
MitigationModeSuspicious=column_ifexists('mitigationModeSuspicious_s', ''),
SrcDvcModelName=column_ifexists('modelName_s', ''),
NetworkInterfaces=column_ifexists('networkInterfaces_s', ''),
NetworkQuarantineEnabled=column_ifexists('networkQuarantineEnabled_b', ''),
NetworkStatus=column_ifexists('networkStatus_s', ''),
OperationalState=column_ifexists('operationalState_s', ''),
OsArch=column_ifexists('osArch_s', ''),
SrcDvcOs=column_ifexists('osName_s', ''),
OsRevision=column_ifexists('osRevision_s', ''),
OsStartTime=column_ifexists('osStartTime_t', ''),
OsType=column_ifexists('osType_s', ''),
RangerStatus=column_ifexists('rangerStatus_s', ''),
RangerVersion=column_ifexists('rangerVersion_s', ''),
RegisteredAt=column_ifexists('registeredAt_t', ''),
RemoteProfilingState=column_ifexists('remoteProfilingState_s', ''),
ScanFinishedAt=column_ifexists('scanFinishedAt_t', ''),
ScanStartedAt=column_ifexists('scanStartedAt_t', ''),
ScanStatus=column_ifexists('scanStatus_s', ''),
ThreatRebootRequired=column_ifexists('threatRebootRequired_b', ''),
TotalMemory=column_ifexists('totalMemory_d', ''),
UserActionsNeeded=column_ifexists('userActionsNeeded_s', ''),
Uuid=column_ifexists('uuid_g', ''),
Creator=column_ifexists('creator_s', ''),
CreatorId=column_ifexists('creatorId_s', ''),
Inherits=column_ifexists('inherits_b', ''),
IsDefault=column_ifexists('isDefault_b', ''),
Name=column_ifexists('name_s', ''),
RegistrationToken=column_ifexists('registrationToken_s', ''),
TotalAgents=column_ifexists('totalAgents_d', ''),
Type=column_ifexists('type_s', '')
| project
TimeGenerated,
EventVendor,
EventProduct,
AccountName,
ActivityType,
EventCreationTime,
DataAccountName,
DataFullScopeDetails,
DataScopeLevel,
DataScopeName,
DataSiteId,
DataSiteName,
SrcUserName,
EventId,
EventOriginalMessage,
SiteId,
SiteName,
UpdatedAt,
UserIdentity,
EventType,
DataByUser,
DataRole,
DataUserScope,
EventTypeDetailed,
DataSource,
DataExpiryDateStr,
DataExpiryTime,
DataNetworkquarantine,
DataRuleCreationTime,
DataRuleDescription,
DataRuleExpirationMode,
DataRuleId,
DataRuleName,
DataRuleQueryDetails,
DataRuleQueryType,
DataRuleSeverity,
DataScopeId,
DataStatus,
DataSystemUser,
DataTreatasthreat,
DataUserId,
DataUserName,
EventSubStatus,
AgentId,
DataComputerName,
DataExternalIp,
DataGroupName,
DataSystem,
DataUuid,
GroupId,
GroupName,
DataGroup,
DataOptionalGroups,
DataCreatedAt,
DataDownloadUrl,
DataFilePath,
DataFilename,
DataUploadedFilename,
Comments,
DataNewValue,
DataPolicyId,
DataPolicyName,
DataNewValueb,
DataShouldReboot,
DataRoleName,
DataScopeLevelName,
ActiveDirectoryComputerDistinguishedName,
ActiveDirectoryComputerMemberOf,
ActiveDirectoryLastUserDistinguishedName,
ActiveDirectoryLastUserMemberOf,
ActiveThreats,
AgentVersion,
AllowRemoteShell,
AppsVulnerabilityStatus,
ComputerName,
ConsoleMigrationStatus,
CoreCount,
CpuCount,
CpuId,
SrcDvcDomain,
EncryptedApplications,
ExternalId,
ExternalIp,
FirewallEnabled,
GroupIp,
InRemoteShellSession,
Infected,
InstallerType,
IsActive,
IsDecommissioned,
IsPendingUninstall,
IsUninstalled,
IsUpToDate,
LastActiveDate,
LastIpToMgmt,
LastLoggedInUserName,
LicenseKey,
LocationEnabled,
LocationType,
Locations,
MachineType,
MitigationMode,
MitigationModeSuspicious,
SrcDvcModelName,
NetworkInterfaces,
NetworkQuarantineEnabled,
NetworkStatus,
OperationalState,
OsArch,
SrcDvcOs,
OsRevision,
OsStartTime,
OsType,
RangerStatus,
RangerVersion,
RegisteredAt,
RemoteProfilingState,
ScanFinishedAt,
ScanStartedAt,
ScanStatus,
ThreatRebootRequired,
TotalMemory,
UserActionsNeeded,
Uuid,
Creator,
CreatorId,
Inherits,
IsDefault,
Name,
RegistrationToken,
TotalAgents,
Type
};
SentinelOne_view

Просмотреть файл

@ -0,0 +1,989 @@
[
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T10:20:00.423732Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122264891673034145",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T10:20:00.420238Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T10:30:00.412381Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122269924737170980",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T10:30:00.408484Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T13:00:00.446959Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122345422502772882",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T13:00:00.443496Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T13:10:00.399827Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122350455273308323",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T13:10:00.396201Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T13:20:00.398749Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122355488429719731",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T13:20:00.394887Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T15:10:00.439146Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122410853578064651",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T15:10:00.435524Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T15:20:00.408827Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122415886491206427",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T15:20:00.404723Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T17:10:00.459239Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122471251723437316",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T17:10:00.455391Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T17:20:00.437317Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122476284703687956",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T17:20:00.433806Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T17:30:00.773944Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122481320695448979",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T17:30:00.769875Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T17:40:00.712858Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122486353348543931",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T17:40:00.708654Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T17:50:00.490288Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122491384642684363",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T17:50:00.486571Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T18:00:00.412136Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122496417153172980",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T18:00:00.408661Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T18:50:00.464155Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122521583413380808",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T18:50:00.460673Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T19:00:00.412323Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122526616141973233",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T19:00:00.408263Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T19:30:00.625597Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122541717423146896",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T19:30:00.622259Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T19:40:00.667320Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122546750940268472",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T19:40:00.663962Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T19:50:00.685203Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122551784256063432",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T19:50:00.681534Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T20:00:00.787778Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122556818284890097",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T20:00:00.784324Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T20:10:00.778535Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122561851365804034",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T20:10:00.775012Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T20:20:00.850885Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122566885142972434",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T20:20:00.846834Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T20:30:00.893118Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122571918660094097",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T20:30:00.889302Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T21:00:00.414846Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122587014144739568",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T21:00:00.410992Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activityType":27,
"agentId":null,
"agentUpdatedVersion":null,
"comments":null,
"createdAt":"2021-03-29T21:10:00.350839Z",
"data":{
"accountName":"SentinelOne",
"fullScopeDetails":"Site company of Account SentinelOne",
"groupName":null,
"reason":null,
"role":"Admin",
"scopeLevel":"Site",
"scopeName":"company",
"siteName":"company",
"source":"mgmt",
"userScope":"site",
"username":"User1"
},
"description":null,
"groupId":null,
"groupName":null,
"hash":null,
"id":"1122592046772668673",
"osFamily":null,
"primaryDescription":"The management user User1 logged into the management console.",
"secondaryDescription":null,
"siteId":"1051878885014575334",
"siteName":"company",
"threatId":null,
"updatedAt":"2021-03-29T21:10:00.347011Z",
"userId":"1118732499133907649",
"event_name":"Activities."
},
{
"accountId":"949654416477127465",
"accountName":"SentinelOne",
"activeDirectory":{
"computerDistinguishedName":"CN=SRV-WIN-110,OU=WIN,OU=Tier1 Servers,OU=Tier1,DC=cloud,DC=company,DC=com",
"computerMemberOf":[
],
"lastUserDistinguishedName":"CN=SSSS,OU=GSuite,OU=Users,OU=Tier2,DC=cloud,DC=company,DC=com",
"lastUserMemberOf":[
]
},
"activeThreats":0,
"agentVersion":"4.5.2.136",
"allowRemoteShell":false,
"appsVulnerabilityStatus":"up_to_date",
"cloudProviders":{
},
"computerName":"srv-win-110",
"consoleMigrationStatus":"N/A",
"coreCount":4,
"cpuCount":4,
"cpuId":"Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz",
"createdAt":"2020-12-23T13:37:53.376619Z",
"domain":"CLOUD",
"encryptedApplications":false,
"externalId":"",
"externalIp":"51.195.3.231",
"firewallEnabled":false,
"groupId":"1051878885056518375",
"groupIp":"51.195.3.x",
"groupName":"Default Group",
"id":"1052786019025761596",
"inRemoteShellSession":false,
"infected":false,
"installerType":".exe",
"isActive":true,
"isDecommissioned":false,
"isPendingUninstall":false,
"isUninstalled":false,
"isUpToDate":true,
"lastActiveDate":"2021-03-30T12:23:39.428571Z",
"lastIpToMgmt":"10.11.14.161",
"lastLoggedInUserName":"",
"licenseKey":"",
"locationEnabled":true,
"locationType":"fallback",
"locations":[
{
"id":"949654416762340144",
"name":"Fallback",
"scope":"global"
}
],
"machineType":"server",
"mitigationMode":"protect",
"mitigationModeSuspicious":"detect",
"modelName":"VMware, Inc. - VMware Virtual Platform",
"networkInterfaces":[
{
"gatewayIp":"10.11.14.254",
"gatewayMacAddress":"00:50:56:b4:79:8d",
"id":"1052786019092870468",
"inet":[
"10.11.14.161"
],
"inet6":[
],
"name":"Ethernet0",
"physical":"00:50:56:b4:de:04"
}
],
"networkQuarantineEnabled":false,
"networkStatus":"connected",
"operationalState":"na",
"operationalStateExpiration":null,
"osArch":"64 bit",
"osName":"Windows Server 2012 R2 Standard",
"osRevision":"9600",
"osStartTime":"2021-01-19T14:00:12Z",
"osType":"windows",
"osUsername":null,
"rangerStatus":"Enabled",
"rangerVersion":"4.5.2.9",
"registeredAt":"2020-12-23T13:37:53.371962Z",
"remoteProfilingState":"disabled",
"remoteProfilingStateExpiration":null,
"scanAbortedAt":null,
"scanFinishedAt":"2021-01-19T13:42:45.280808Z",
"scanStartedAt":"2021-01-19T13:35:07.481494Z",
"scanStatus":"finished",
"siteId":"1051878885014575334",
"siteName":"company",
"threatRebootRequired":false,
"totalMemory":8191,
"updatedAt":"2021-03-30T11:28:53.434284Z",
"userActionsNeeded":[
],
"uuid":"2241fd63d6534e3aa971ccb36d718f09",
"event_name":"Agents."
},
{
"createdAt":"2020-12-22T07:35:34.581211Z",
"creator":"sentinelone",
"creatorId":"949654504716895309",
"filterId":null,
"filterName":null,
"id":"1051878885056518375",
"inherits":true,
"isDefault":true,
"name":"Default Group",
"rank":null,
"registrationToken":"eyJ1cmwiOiAiaHR0cHM6Ly91c2VhMS1hbGFza2EtdGVzdGluZy1wcm9kLnNlbnRpbmVsb25lLm5ldCIsICJzaXRlX2tleSI6ICJnXzY5YmEwOGI5ZDM3NTQ4NjUifQ==",
"siteId":"1051878885014575334",
"totalAgents":1,
"type":"static",
"updatedAt":"2021-03-29T13:41:39.385713Z",
"event_name":"Groups."
}
]