Skip to content

Commit

Permalink
Azure log analytics mapping improvements (#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
thangaraj-ramesh authored Jun 26, 2023
1 parent edf2a24 commit 3005df5
Show file tree
Hide file tree
Showing 28 changed files with 7,145 additions and 2,328 deletions.
983 changes: 975 additions & 8 deletions stix_shifter_modules/azure_log_analytics/README.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"help": {
"type": "link",
"default": "data-sources-sentinel.html"
"default": "data-sources.html"
},
"workspaceId": {
"type": "text",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"description": "More details on the data source setting can be found in the specified link"
},
"selfSignedCert": {
"label": "Microsoft Azure Sentinel certificate",
"description": "Use SSL certificate for Microsoft Azure Sentinel."
"label": "Microsoft Azure certificate",
"description": "Use SSL certificate for Microsoft Azure."
},
"workpaceId": {
"label": "Log Analytics workspace ID",
Expand Down
5 changes: 0 additions & 5 deletions stix_shifter_modules/azure_log_analytics/entry_point.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import os
import importlib
from .stix_translation.query_translator import QueryTranslator
from stix_shifter_utils.utils.base_entry_point import BaseEntryPoint
from stix_shifter_utils.modules.base.stix_transmission.base_connector import BaseConnector
from stix_shifter_utils.stix_translation.src.json_to_stix.json_to_stix import JSONToStix


class EntryPoint(BaseEntryPoint):
Expand Down
1 change: 1 addition & 0 deletions stix_shifter_modules/azure_log_analytics/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
azure-monitor-query==1.0.2
pandas==1.5.2
urllib3==1.26.15
jsonref==1.1.0
Original file line number Diff line number Diff line change
@@ -1,83 +1,208 @@
{
"x-ibm-finding": {
"fields": {
"start": [
"StartTime",
"TimeGenerated"
],
"end": [
"EndTime",
"ProcessingEndTime"
],
"name": [
"AlertName"
],
"time_observed": [
"TimeGenerated",
"EventTime"
]
}
},
"x-oca-event": {
"fields": {
"created": [
"TimeGenerated"
],
"provider": [
"ProviderName"
],
"domain_ref": [
"DomainName"
]
}
},
"x-azure-security-alert": {
"fields": {
"tenant_id": [
"TenantId"
],
"subscription_id": [
"WorkspaceSubscriptionId"
],
"resourceId": [
"_ResourceId"
],
"alert_severity": [
"AlertSeverity"
],
"description": [
"Description"
],
"product_name": [
"ProductName"
],
"vendor_name": [
"VendorName"
],
"system_alertid": [
"SystemAlertId"
],
"status": [
"Status"
],
"extented_properties": [
"ExtentedProperties"
],
"confidence_level": [
"ConfidenceLevel"
],
"entities": [
"Entities"
],
"display_name": [
"DisplayName"
],
"workspace_resource_group": [
"WorkspaceResourceGroup"
],
"compromised_entity": [
"CompromisedEntity"
]
}
"ipv4-addr": {
"fields": {
"value": ["Entities.Address"],
"x_location_ref.country": ["Entities.Location.CountryName"],
"x_location_ref.city": ["Entities.Location.City"],
"x_location_ref.carrier": ["Entities.Location.Carrier"],
"x_location_ref.longitude": ["Entities.Location.Longitude"],
"x_location_ref.latitude": ["Entities.Location.Latitude"],
"x_location_ref.organization": ["Entities.Location.Organization"]
}
},
"ipv6-addr": {
"fields": {
"value": ["Entities.Address"],
"x_location_ref.country": ["Entities.Location.CountryName"],
"x_location_ref.city": ["Entities.Location.City"],
"x_location_ref.carrier": ["Entities.Location.Carrier"],
"x_location_ref.longitude": ["Entities.Location.Longitude"],
"x_location_ref.latitude": ["Entities.Location.Latitude"],
"x_location_ref.organization": ["Entities.Location.Organization"]
}
},
"user-account": {
"fields": {
"user_id": ["Entities.Name"],
"x_aad_user_id": ["Entities.AadUserId"],
"display_name": ["Entities.DisplayName"],
"x_nt_domain": ["Entities.NTDomain"],
"x_dns_domain": ["Entities.DnsDomain"],
"x_upn_suffix": ["Entities.UPNSuffix"],
"x_passport_userid": ["Entities.PUID"],
"x_account_sid": ["Entities.Sid"],
"x_is_domain_account": ["Entities.IsDomainJoined"]
}
},
"network-traffic": {
"fields": {
"dst_port": [
"Entities.DestinationPort"
],
"protocols[*]": [
"Entities.Protocol"
],
"src_ref.value": [
"Entities.Address"
]
}
},
"file": {
"fields": {
"name": ["Entities.Name"],
"hashes.'SHA-256'": ["Entities.Value"],
"hashes.'SHA-1'": ["Entities.Value"],
"hashes.MD5": ["Entities.Value"],
"parent_directory_ref.path": ["Entities.Directory"]
}
},
"directory": {
"fields": {
"path": [
"Entities.Directory"
]
}
},
"process": {
"fields": {
"pid": ["Entities.ProcessId"],
"command_line": ["Entities.CommandLine"],
"created": ["Entities.CreationTimeUtc"],
"x_elevation_token": ["Entities.ElevationToken"],
"creator_user_ref.user_id": ["Entities.Name"],
"binary_ref.hashes.MD5": ["Entities.Value"],
"binary_ref.hashes.'SHA-256'": ["Entities.Value"],
"binary_ref.hashes.'SHA1'": ["Entities.Value"],
"parent_ref.pid": ["Entities.ProcessId"],
"parent_ref.command_line": ["Entities.CommandLine"],
"parent_ref.binary_ref.hashes.MD5": ["Entities.Value"],
"parent_ref.binary_ref.hashes.'SHA-256'": ["Entities.Value"],
"parent_ref.binary_ref.hashes.'SHA1'": ["Entities.Value"]
}
},
"domain-name": {
"fields": {
"value": ["Entities.DomainName"]
}
},
"url": {
"fields": {
"value": [
"Entities.Url"
]
}
},
"software": {
"fields": {
"name": ["Entities.OSFamily", "ProductName"],
"version": ["Entities.OSVersion"],
"vendor": ["VendorName"],
"x_product_component_name": ["ProductComponentName"],
"x_provider_name": ["ProviderName"]
}
},
"x-oca-asset": {
"fields": {
"hostname": ["Entities.HostName"],
"x_resource_id": ["ResourceId"],
"x_nt_domain": ["Entities.NTDomain"],
"x_netbios_name": ["Entities.NetBiosName"],
"x_oms_agent_id": ["Entities.OMSAgentID"],
"os_ref.name": ["Entities.OSFamily"],
"os_ref.version": ["Entities.OSVersion"],
"x_is_domain_host": ["Entities.IsDomainJoined"]
}
},
"x-ibm-finding": {
"fields": {
"x_alert_link": ["AlertLink"],
"name": ["AlertName"],
"severity": ["AlertSeverity"],
"x_alert_type": ["AlertType"],
"x_compromised_entity": ["CompromisedEntity"],
"x_confidence_level": ["ConfidenceLevel"],
"confidence": ["ConfidenceScore"],
"description": ["Description"],
"end": ["EndTime"],
"x_processing_endtime": ["ProcessingEndTime"],
"x_remediationsteps": ["RemediationSteps"],
"start": ["StartTime"],
"x_status": ["Status"],
"x_system_alert_id": ["SystemAlertId"],
"alert_id": ["VendorOriginalId"],
"time_observed": ["TimeGenerated"],
"finding_type": ["Type"],
"ttp_tagging_refs[*].name": ["AlertName"],
"ttp_tagging_refs[*].confidence": ["ConfidenceScore"],
"ttp_tagging_refs[*].extensions.'mitre-attack-ext'.tactic_name": ["Tactics"],
"ttp_tagging_refs[*].extensions.'mitre-attack-ext'.technique_name": ["Techniques"],
"ioc_refs[*].value": ["Entities.Name", "Entities.Address", "Entities.Url", "Entities.DomainName"],
"dst_application_ref.name": ["ProductName"],
"dst_application_ref.vendor": ["VendorName"],
"dst_os_ref.name": ["Entities.OSFamily"],
"dst_os_ref.version": ["Entities.OSVersion"],
"dst_os_user_ref.user_id": ["Entities.Name"]
}
},
"x-ibm-ttp-tagging": {
"fields": {
"name": ["AlertName"],
"confidence": ["ConfidenceScore"],
"extensions.'mitre-attack-ext'.tactic_name": ["Tactics"],
"extensions.'mitre-attack-ext'.technique_name": ["Techniques"]
}
},
"x-geo-location": {
"fields": {
"country": ["Entities.Location.CountryName"],
"city": ["Entities.Location.City"],
"carrier": ["Entities.Location.Carrier"],
"longitude": ["Entities.Location.Longitude"],
"latitude": ["Entities.Location.Latitude"],
"organization": ["Entities.Location.Organization"]
}
},
"x-cloud-provider": {
"fields": {
"tenant_id": ["TenantId"]
}
},
"x-cloud-resource": {
"fields": {
"resource_type": ["ExtendedProperties.resourceType"],
"resource_id": ["ResourceId"]
}
},
"x-host-logon-session": {
"fields": {
"session_id": ["Entities.SessionId"],
"start_time": ["Entities.StartTimeUtc"],
"end_time": ["Entities.EndTimeUtc"]
}
},
"x-azure-blob": {
"fields": {
"name": ["Entities.Name"],
"etag": ["Entities.Etag"],
"blob_container": ["Entities.Name"]
}
},
"x-azure-malware": {
"fields": {
"name": ["Entities.Name"],
"category": ["Entities.Category"]
}
},
"x-azure-container": {
"fields": {
"container_id": ["Entities.ContainerId"],
"image_id": ["Entities.ImageId"],
"image_type": ["Entities.Type"]
}
},
"x-k8s-cluster": {
"fields": {
"name": ["Entities.Name"]
}
}
}
Loading

0 comments on commit 3005df5

Please sign in to comment.