Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"Data Connectors/SemperisDSP-connector.json"
],
"BasePath": "C:\\GitHub\\Azure-Sentinel\\Solutions\\Semperis Directory Services Protector",
"Version": "3.0.2",
"Version": "3.0.3",
"Metadata": "SolutionMetadata.json",
"TemplateSpec": true,
"Is1Pconnector": false
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Category: Microsoft Sentinel Parser
FunctionName: dsp_parser
FunctionAlias: dsp_parser
FunctionQuery: |
SecurityEvent
SecurityEvents
| where EventSourceName == "Semperis-DSP-Security"
| where EventID in ("9211", "9212", "9208")
| parse EventData with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
| **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** |
|-------------|--------------------------------|--------------------------------------------------------------------------------|
|-------------|--------------------------------|--------------------------------------------------------------------------------|
|3.0.3|16-03-2026|Updated the main dashboard to have time limits reflecting the period chosen. Added build command script. Fixed workbook tables to reflect AMA.|
| 3.0.2 | 23-04-2025 | Updated **Analytical Rule** and **Parser** |
| 3.0.1 | 28-03-2025 | Removed duplicate query and fixed query in **Workbook** SemperisDSPSecurityIndicators. |
| 3.0.0 | 18-03-2025 | Fixed correct function name in **Workbook** SemperisDSPSecurityIndicators. |
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "CommonSecurityLog \r\n| where DeviceEventClassID == 'Semperis.DSP.AdChanges'\r\n| extend p1Array = split(AdditionalExtensions,\";\")\r\n| mv-expand bagexpansion=array p1Array\r\n| evaluate bag_unpack(p1Array)\r\n| extend Name=tostring(split(p1Array,\"=\")[0]),Value=substring(p1Array,indexof(p1Array,\"=\")+1)\r\n| evaluate pivot(Name, any(Value), TimeGenerated, TenantId, DeviceVendor, DeviceProduct, DeviceVersion, DeviceEventClassID, Activity, LogSeverity, OriginalLogSeverity, DeviceAction)\r\n| parse column_ifexists('DistinguishedName', '') with * \"CN\\\\=\" cnName \",\" *\r\n| extend OriginatingTime=column_ifexists('OriginatingTime', '')\r\n| extend AttributeModificationType=column_ifexists('AttributeModificationType', '')\r\n| extend ClassName=column_ifexists('ClassName', '')\r\n| extend AttributeName=column_ifexists('AttributeName', '')\r\n| where isempty('{Time}') or (todatetime(OriginatingTime) >= todatetime('{Time:startISO}') and todatetime(OriginatingTime) <= todatetime('{Time:endISO}'))\r\n| where isempty('{ChangeType}') or (iif('{ChangeType}' == \"Delete\",indexof(AttributeModificationType,'{ChangeType}') > -1 or indexof(AttributeModificationType,'Remove') > -1,indexof(AttributeModificationType,'{ChangeType}') > -1))\r\n| where isempty('{Class}') or indexof(ClassName,'{Class}') > -1\r\n| where isempty('{AttributeName}') or indexof(AttributeName,'{AttributeName}') > -1\r\n| where isempty('{ObjectChanged}') or indexof(cnName,'{ObjectChanged}') > -1\r\n| project OriginatingTime, AttributeModificationType, AttributeName, cnName, ClassName, column_ifexists('DistinguishedName', ''), column_ifexists('LinkedValueDN', ''), column_ifexists('ObjectModificationType', ''),column_ifexists('OriginatingServer', ''),column_ifexists('OriginatingUserWorkstations', ''),column_ifexists('OriginatingUsers', ''),column_ifexists('PartitionNamingContext', ''),column_ifexists('StringValueFrom', ''),column_ifexists('StringValueTo', '')",
"query": "SecurityEvents \r\n| where DeviceEventClassID == 'Semperis.DSP.AdChanges'\r\n| extend p1Array = split(AdditionalExtensions,\";\")\r\n| mv-expand bagexpansion=array p1Array\r\n| evaluate bag_unpack(p1Array)\r\n| extend Name=tostring(split(p1Array,\"=\")[0]),Value=substring(p1Array,indexof(p1Array,\"=\")+1)\r\n| evaluate pivot(Name, any(Value), TimeGenerated, TenantId, DeviceVendor, DeviceProduct, DeviceVersion, DeviceEventClassID, Activity, LogSeverity, OriginalLogSeverity, DeviceAction)\r\n| parse column_ifexists('DistinguishedName', '') with * \"CN\\\\=\" cnName \",\" *\r\n| extend OriginatingTime=column_ifexists('OriginatingTime', '')\r\n| extend AttributeModificationType=column_ifexists('AttributeModificationType', '')\r\n| extend ClassName=column_ifexists('ClassName', '')\r\n| extend AttributeName=column_ifexists('AttributeName', '')\r\n| where isempty('{Time}') or (todatetime(OriginatingTime) >= todatetime('{Time:startISO}') and todatetime(OriginatingTime) <= todatetime('{Time:endISO}'))\r\n| where isempty('{ChangeType}') or (iif('{ChangeType}' == \"Delete\",indexof(AttributeModificationType,'{ChangeType}') > -1 or indexof(AttributeModificationType,'Remove') > -1,indexof(AttributeModificationType,'{ChangeType}') > -1))\r\n| where isempty('{Class}') or indexof(ClassName,'{Class}') > -1\r\n| where isempty('{AttributeName}') or indexof(AttributeName,'{AttributeName}') > -1\r\n| where isempty('{ObjectChanged}') or indexof(cnName,'{ObjectChanged}') > -1\r\n| project OriginatingTime, AttributeModificationType, AttributeName, cnName, ClassName, column_ifexists('DistinguishedName', ''), column_ifexists('LinkedValueDN', ''), column_ifexists('ObjectModificationType', ''),column_ifexists('OriginatingServer', ''),column_ifexists('OriginatingUserWorkstations', ''),column_ifexists('OriginatingUsers', ''),column_ifexists('PartitionNamingContext', ''),column_ifexists('StringValueFrom', ''),column_ifexists('StringValueTo', '')",
"size": 0,
"title": "Semperis DSP AD Change",
"timeContext": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "(SecurityEvent\r\n| where EventSourceName == 'Semperis-DSP-Notifications' \r\n| extend p1Xml = parse_xml(EventData).EventData.Data\r\n| mv-expand bagexpansion=array p1Xml\r\n| evaluate bag_unpack(p1Xml)\r\n| extend Name=column_ifexists(tostring('@Name'), ''), columnValue=column_ifexists('#text', '')\r\n| evaluate pivot(Name, any(columnValue), TimeGenerated, EventSourceName, Channel, Computer, Level, EventLevelName, EventID, Task, Type, _ResourceId)\r\n| extend RuleName=tostring(column_ifexists('ruleName', '')), Severity=tostring(column_ifexists('severity', '')), DataSource=tostring(column_ifexists('dataSource', '')), ObjectDN=tostring(column_ifexists('objectDN', '')), TimeCreated=tostring(column_ifexists('timeCreated', '')), Operation=tostring(column_ifexists('fullOperation', '')), Attribute=tostring(column_ifexists('attributeName', '')), Value=tostring(column_ifexists('attributeValue', '')), ChangedBy=tostring(column_ifexists('changedBy', '')), Source=tostring(column_ifexists('Computer', '')))\r\n| union\r\n(CommonSecurityLog\r\n| extend Activity=column_ifexists('Activity', ''), DeviceProduct=column_ifexists('DeviceProduct', '')\r\n| where Activity == 'rule-alert'\r\n| where DeviceProduct == 'Core Directory'\r\n| extend p1Array = split(AdditionalExtensions,\"|\")\r\n| mv-expand bagexpansion=array p1Array\r\n| evaluate bag_unpack(p1Array)\r\n| extend Name=tostring(split(p1Array,\"=\")[0]),Value=substring(p1Array,indexof(p1Array,\"=\")+1)\r\n| extend Value=replace_string(Value, \";\", \" \")\r\n| evaluate pivot(Name, any(Value), TimeGenerated, TenantId, DeviceVendor, DeviceProduct, DeviceVersion, DeviceEventClassID, Activity, LogSeverity, OriginalLogSeverity, DeviceAction)\r\n| extend RuleName=column_ifexists('ruleName', ''), Severity=column_ifexists('severity', ''), DataSource=column_ifexists('dataSources', ''), ObjectDN=column_ifexists('subjectId', ''), TimeCreated=column_ifexists('alertCreated', ''), Operation=column_ifexists('operation', ''), Attribute=column_ifexists('attribute', ''), Value=column_ifexists('value', ''), ChangedBy=column_ifexists('changedBy', ''), Source=column_ifexists('alertSource', '')\r\n| extend Severity = case(toint(Severity) == 1 or toint(Severity) == 2, \"Informational\", toint(Severity)==3 or toint(Severity)==4, \"Low\", toint(Severity)==5 or toint(Severity)==6, \"Medium\", toint(Severity)==7 or toint(Severity)==8, \"High\", toint(Severity)==9 or toint(Severity)==10, \"Critical\", \"\"))\r\n| where (isempty('{Time}') or (todatetime(TimeCreated) >= todatetime('{Time:startISO}') and todatetime(TimeCreated) <= todatetime('{Time:endISO}'))) and ((isempty('{RuleName}') or indexof(RuleName,'{RuleName}') > -1)) and ((isempty('{Severity}') or Severity == '{Severity}'))\r\n| order by TimeGenerated desc\r\n| project RuleName, Severity, DataSource, ObjectDN, TimeCreated, Operation, Attribute, Value, ChangedBy, Source",
"query": "(Events\r\n| where EventSourceName == 'Semperis-DSP-Notifications' \r\n| extend p1Xml = parse_xml(EventData).EventData.Data\r\n| mv-expand bagexpansion=array p1Xml\r\n| evaluate bag_unpack(p1Xml)\r\n| extend Name=column_ifexists(tostring('@Name'), ''), columnValue=column_ifexists('#text', '')\r\n| evaluate pivot(Name, any(columnValue), TimeGenerated, EventSourceName, Channel, Computer, Level, EventLevelName, EventID, Task, Type, _ResourceId)\r\n| extend RuleName=tostring(column_ifexists('ruleName', '')), Severity=tostring(column_ifexists('severity', '')), DataSource=tostring(column_ifexists('dataSource', '')), ObjectDN=tostring(column_ifexists('objectDN', '')), TimeCreated=tostring(column_ifexists('timeCreated', '')), Operation=tostring(column_ifexists('fullOperation', '')), Attribute=tostring(column_ifexists('attributeName', '')), Value=tostring(column_ifexists('attributeValue', '')), ChangedBy=tostring(column_ifexists('changedBy', '')), Source=tostring(column_ifexists('Computer', '')))\r\n| union\r\n(SecurityEvents\r\n| extend Activity=column_ifexists('Activity', ''), DeviceProduct=column_ifexists('DeviceProduct', '')\r\n| where Activity == 'rule-alert'\r\n| where DeviceProduct == 'Core Directory'\r\n| extend p1Array = split(AdditionalExtensions,\"|\")\r\n| mv-expand bagexpansion=array p1Array\r\n| evaluate bag_unpack(p1Array)\r\n| extend Name=tostring(split(p1Array,\"=\")[0]),Value=substring(p1Array,indexof(p1Array,\"=\")+1)\r\n| extend Value=replace_string(Value, \";\", \" \")\r\n| evaluate pivot(Name, any(Value), TimeGenerated, TenantId, DeviceVendor, DeviceProduct, DeviceVersion, DeviceEventClassID, Activity, LogSeverity, OriginalLogSeverity, DeviceAction)\r\n| extend RuleName=column_ifexists('ruleName', ''), Severity=column_ifexists('severity', ''), DataSource=column_ifexists('dataSources', ''), ObjectDN=column_ifexists('subjectId', ''), TimeCreated=column_ifexists('alertCreated', ''), Operation=column_ifexists('operation', ''), Attribute=column_ifexists('attribute', ''), Value=column_ifexists('value', ''), ChangedBy=column_ifexists('changedBy', ''), Source=column_ifexists('alertSource', '')\r\n| extend Severity = case(toint(Severity) == 1 or toint(Severity) == 2, \"Informational\", toint(Severity)==3 or toint(Severity)==4, \"Low\", toint(Severity)==5 or toint(Severity)==6, \"Medium\", toint(Severity)==7 or toint(Severity)==8, \"High\", toint(Severity)==9 or toint(Severity)==10, \"Critical\", \"\"))\r\n| where (isempty('{Time}') or (todatetime(TimeCreated) >= todatetime('{Time:startISO}') and todatetime(TimeCreated) <= todatetime('{Time:endISO}'))) and ((isempty('{RuleName}') or indexof(RuleName,'{RuleName}') > -1)) and ((isempty('{Severity}') or Severity == '{Severity}'))\r\n| order by TimeGenerated desc\r\n| project RuleName, Severity, DataSource, ObjectDN, TimeCreated, Operation, Attribute, Value, ChangedBy, Source",
"size": 0,
"title": "Notifications",
"queryType": 0,
Expand Down
Loading
Loading