<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kgaurav on Medium]]></title>
        <description><![CDATA[Stories by Kgaurav on Medium]]></description>
        <link>https://medium.com/@kgaurav501?source=rss-5553f3df453e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-r8_0e4J2x8CV5gZ</url>
            <title>Stories by Kgaurav on Medium</title>
            <link>https://medium.com/@kgaurav501?source=rss-5553f3df453e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:52:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kgaurav501/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[kql]]></title>
            <link>https://medium.com/@kgaurav501/kql-c9613974a03b?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9613974a03b</guid>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 06:51:54 GMT</pubDate>
            <atom:updated>2025-03-20T06:51:54.826Z</atom:updated>
            <content:encoded><![CDATA[<p>kql</p><p>SecurityIncident<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where ModifiedBy != “Microsoft 365 Defender”<br>| where isnotempty(Owner.email)<br>| where Labels != “[]”<br>| where tostring(Labels) !contains “Informational”<br>| where tostring(Labels) !contains “Redirected”<br>| where Status == “Closed”<br>| project TimeGenerated, IncidentNumber, Title, Owner.email, Labels<br>| extend Mistake = case(<br>tostring(Labels) !contains “ASSESSMENT”, “ASSESSMENT Tag is missing”,<br>tostring(Labels) !contains “ANALYSIS”, “ANALYSIS Tag is missing”,<br>tostring(Labels) !contains “CLOSED”, “CLOSED Tag is missing”,<br>“No Error”<br>)<br>| where Mistake != “No Error”</p><p>— — — — — — — — — — <br>SecurityIncident<br>| where Status == “Closed”<br>| where Labels != “[]”<br>|where isnotempty(Owner.email)<br>| where tostring(Labels) !contains “Informational”<br>| where tostring(Labels) !contains “Redirected”<br>| summarize count() by tostring(Owner.email)<br>|sort by count_</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>[1:20 PM] Rohit Kumar (IN)<br>// TI Map IP Entity to SigninLogs</p><p>;</p><p>let n = x | summarize make_set(UserPrincipalName);</p><p>let old = ago(3d);</p><p>let s = union SigninLogs, AADNonInteractiveUserSignInLogs</p><p>| where TimeGenerated &gt; old</p><p>| where UserPrincipalName in~(n)</p><p>| extend DeviceID = tostring(DeviceDetail_dynamic.deviceId)</p><p>| project-reorder TimeGenerated, UserPrincipalName, IPAddress,Location, ResultType, ResultDescription, AuthenticationRequirement, AuthenticationDetails, AppDisplayName, DeviceID, DeviceDetail_dynamic, NetworkLocationDetails</p><p>| sort by UserPrincipalName asc, TimeGenerated desc;</p><p>let o = OfficeActivity</p><p>| where TimeGenerated &gt; old</p><p>| where UserId in~ (n)</p><p>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent</p><p>| sort by UserId asc, TimeGenerated desc;</p><p>let a = AuditLogs</p><p>| where TimeGenerated &gt; old</p><p>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)</p><p>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)</p><p>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))</p><p>| where InitiatedByEntity in~(n) or TargetedUser in~(n)</p><p>| where isnotempty(InitiatedByEntity)</p><p>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources</p><p>| sort by InitiatedByEntity asc, TimeGenerated desc;</p><p>let i = IdentityInfo</p><p>| where TimeGenerated &gt; ago(90d)</p><p>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)</p><p>| where AccountUPN in~(n)</p><p>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource</p><p>| sort by AccountName asc, TimeGenerated desc;</p><p>i<br> <br>[1:20 PM] Rohit Kumar (IN)<br>// TI Map IP Entity to OfficeActivity</p><p>;</p><p>let n = x | summarize make_set(UserId);</p><p>let old = ago(3d);</p><p>let s = union SigninLogs, AADNonInteractiveUserSignInLogs</p><p>| where TimeGenerated &gt; old</p><p>| where UserPrincipalName in~(n)</p><p>| extend DeviceID = tostring(DeviceDetail_dynamic.deviceId)</p><p>| project-reorder TimeGenerated, UserPrincipalName, IPAddress,Location, ResultType, ResultDescription, AuthenticationRequirement, AuthenticationDetails, AppDisplayName, DeviceID, DeviceDetail_dynamic, NetworkLocationDetails</p><p>| sort by UserPrincipalName asc, TimeGenerated desc;</p><p>let o = OfficeActivity</p><p>| where TimeGenerated &gt; old</p><p>| where UserId in~ (n)</p><p>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent</p><p>| sort by UserId asc, TimeGenerated desc;</p><p>let a = AuditLogs</p><p>| where TimeGenerated &gt; old</p><p>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)</p><p>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)</p><p>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))</p><p>| where InitiatedByEntity in~(n) or TargetedUser in~(n)</p><p>| where isnotempty(InitiatedByEntity)</p><p>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources</p><p>| sort by InitiatedByEntity asc, TimeGenerated desc;</p><p>let i = IdentityInfo</p><p>| where TimeGenerated &gt; ago(90d)</p><p>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)</p><p>| where AccountUPN in~(n)</p><p>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource</p><p>| sort by AccountName asc, TimeGenerated desc;</p><p>i<br> <br>[1:20 PM] Rohit Kumar (IN)<br>// TI Map IP Entity to CommonSecurityLog</p><p>,</p><p>DestinationPort, SourcePort, DestinationTranslatedAddress, DestinationTranslatedPort, Reason,Protocol, ApplicationProtocol, DeviceCustomString5, DeviceCustomString1,Activity, DeviceEventClassID, DeviceName, Computer, CollectorHostName, _ResourceId</p><p>| where not (isempty(DestinationPort))</p><p>| where DeviceAction !in~ (“deny”, “drop”, “Bounced”, “Quarantined”)</p><p>| where not (ApplicationProtocol contains “incomplete”)</p><p>| where not (Reason contains “deny” or Reason contains “fin” or Reason contains “rst”)</p><p>| project-reorder timestamp, SourceIP, SourcePort, DestinationIP, DestinationPort, DestinationTranslatedAddress, DestinationTranslatedPort, DeviceAction, Reason, Protocol, ApplicationProtocol, DeviceCustomString5, DeviceCustomString1,Activity, DeviceEventClassID, DeviceVendor, DeviceProduct, DeviceName, Computer, CollectorHostName, _ResourceId<br> <br>[1:20 PM] Rohit Kumar (IN)<br>//sanitize</p><p>let Entities = datatable(ent:string)</p><p>[</p><p>];</p><p>Entities</p><p>| extend replacedouble = replace_string(ent, “:”, “[:]”)</p><p>| extend replaceSlash = replace_string(replacedouble, “/”, “[/]”)</p><p>| extend replacedot = replace_string(replaceSlash, “.”, “[.]”)</p><p>| project ent, sanitized_ent = replacedot<br> <br> — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>// Countries-code<br>let CountriesCode = (externaldata(Country: string, Code: string, a: string, b: string, c: string, Reason: string) [@&quot;<a href="https://raw.githubusercontent.com/lukes/ISO-3166-Countries-with-Regional-Codes/master/all/all.csv">https://raw.githubusercontent.com/lukes/ISO-3166-Countries-with-Regional-Codes/master/all/all.csv</a>&quot;]);<br>CountriesCode<br>| where Code != “alpha-2”<br>| project Country, Code, Reason</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>//Rare and potentially high-risk Office operations<br>let users=dynamic();<br>//write the user details here <br>OfficeActivity <br>//change the time according to your requirement<br>|where TimeGenerated &gt;= ago(7d)<br>|where UserId has_any(users)<br>| where Operation has_any (“Add-MailboxPermission”, “Add-MailboxFolderPermission”, “Set-Mailbox”, “New-ManagementRoleAssignment”, “New-InboxRule”, “Set-InboxRule”, “Set-TransportRule”)<br>| extend details = parse_json(Parameters) <br>| extend ForwardTo = iif(details[0].Name contains ‘ForwardTo’, details[0].Value, iif(details[1].Name contains ‘ForwardTo’, details[1].Value, iif(details[2].Name contains ‘ForwardTo’, details[2].Value, iif(details[3].Name contains ‘ForwardTo’, details[3].Value, iif(details[4].Name contains ‘ForwardTo’, details[4].Value, ‘’))))) <br>| extend RedirectTo = iif(details[0].Name contains ‘RedirectTo’, details[0].Value, iif(details[1].Name contains ‘RedirectTo’, details[1].Value, iif(details[2].Name contains ‘RedirectTo’, details[2].Value, iif(details[3].Name contains ‘RedirectTo’, details[3].Value, iif(details[4].Name contains ‘RedirectTo’, details[4].Value, ‘’)))))<br> | extend RuleName = iif(details[3].Name contains ‘Name’, details[3].Value, iif(details[4].Name contains ‘Name’, details[4].Value, iif(details[5].Name contains ‘name’, details[5].Value, ‘Check Parameters’)))<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br> | extend MoveTofolder = iif(details[0].Name contains ‘MoveToFolder’, details[0].Value, iif(details[1].Name contains ‘MoveToFolder’, details[1].Value, iif(details[2].Name contains ‘MoveToFolder’, details[2].Value, iif(details[3].Name contains ‘MoveToFolder’, details[3].Value, iif(details[4].Name contains ‘MoveToFolder’, details[4].Name, ‘’))))) <br> | extend Fullaccess = iif(details[0].Name contains ‘FullAccess’, details[0].Value, iif(details[1].Name contains ‘FullAccess’, details[1].Value, iif(details[2].Name contains ‘FullAccess’, details[2].Value, iif(details[3].Name contains ‘FullAccess’, details[3].Value, iif(details[4].Name contains ‘FullAccess’, details[4].Name, ‘’))))) <br>| extend Rule = iif(ForwardTo != ‘’, ‘Forward’,<br> iif(SentTo != ‘’, ‘Sent’,<br> iif(MoveTofolder != ‘’, ‘MoveToFolder’, iif(Fullaccess != ‘’, ‘FullAccess’, “”))))<br>| extend RuleParameters = iif(details[2].Name != ‘ForwardTo’ and details[2].Name != ‘RedirectTo’, strcat(tostring(details[2].Name), ‘-’, tostring(details[2].Value)), iif(details[3].Name != ‘ForwardTo’ and details[3].Name != ‘RedirectTo’ and details[3].Name != ‘Name’, strcat(tostring(details[3].Name), ‘-’, tostring(details[3].Value)), iff(details[4].Name != ‘ForwardTo’ and details[4].Name != ‘RedirectTo’ and details[4].Name != ‘Name’ and details[4].Name != ‘StopProcessingRules’, strcat(tostring(details[4].Name), ‘-’, tostring(details[4].Value)), ‘All Mail’))) <br> | project TimeGenerated, Operation, RuleName,Rule,Sent_to=SentTo, RuleParameters, iif(details contains ‘ForwardTo’, ForwardTo, RedirectTo), ClientIP, UserId, details | project-rename Rule_CreatedBy_User = UserId ,Email_Forwarded_To = Column1<br>|project-reorder TimeGenerated,Operation,Rule,RuleName,RuleParameters,Rule_CreatedBy_User,Email_Forwarded_To,Sent_to,ClientIP,details</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>Triage incident</p><p>let StartDate = ‘2024–03–01 12:00:00 AM’;<br>let EndDate = ‘2024–03–31 11:59:59 PM’;<br>SecurityIncident<br>// | where CreatedTime &gt;= startofday(ago(30d)) and CreatedTime &lt; startofday(now())<br>| where CreatedTime between (todatetime(StartDate) .. todatetime(EndDate))<br>//| where not (Labels has_any (“Analysis”,”Closed”))<br>| where Labels has “Assessment”<br>| extend abc=tostring(Labels)<br>| summarize FirstAssessmentTime=min(TimeGenerated) by IncidentNumber,Title,CreatedTime<br>| extend MTTA = datetime_diff(‘minute’,FirstAssessmentTime,CreatedTime)<br>| join kind=leftouter<br>(<br>SecurityIncident<br>// | where CreatedTime &gt;= startofday(ago(30d)) and CreatedTime &lt; startofday(now())<br>| where CreatedTime between (todatetime(StartDate) .. todatetime(EndDate))<br>// | where Labels !contains “Closed” <br>| where Labels has “Analysis”<br>| extend abc=tostring(Labels)<br>| summarize FirstAnalysisTime=min(TimeGenerated) by IncidentNumber<br>) on IncidentNumber<br>| extend MTTT = datetime_diff(‘minute’,FirstAnalysisTime,FirstAssessmentTime)<br>// | extend MTTT = iff(isempty(MTTT),”NA”,tostring(MTTT))<br>| project-away IncidentNumber1<br>| join kind= leftouter<br>(<br>SecurityIncident<br>// | where CreatedTime &gt;= startofday(ago(30d)) and CreatedTime &lt; startofday(now())<br>| where CreatedTime between (todatetime(StartDate) .. todatetime(EndDate))<br>| where Labels has (“Closed”)<br>// | extend ClosedTime = iff(isempty(ClosedTime),CreatedTime,ClosedTime)<br>| summarize ClosedTime=max(ClosedTime) by Title, IncidentNumber,CreatedTime<br>| extend MTTC = datetime_diff(‘minute’,ClosedTime,CreatedTime)<br>) on IncidentNumber<br>| project-away Title1,IncidentNumber1,CreatedTime1<br>|join kind=leftouter<br>(<br>SecurityIncident<br>// | where CreatedTime &gt;= startofday(ago(30d)) and CreatedTime &lt; startofday(now())<br>| where CreatedTime between (todatetime(StartDate) .. todatetime(EndDate))<br>| where Labels has_any(“Analysis”, “Assessment”, “Closed”)<br>| extend ad=tostring(AdditionalData)<br>| parse ad with *’tactics”:[‘ [‘Category (MITRE)’] ‘]’*<br>| extend [‘Category (MITRE)’]= replace_string([‘Category (MITRE)’],’”’,’’)<br>| project-away ad<br>| summarize make_set(Labels) by Title, IncidentNumber,[‘Category (MITRE)’],ProviderName<br>| extend abc=tostring(set_Labels)<br>| extend temp=split(abc,’,’)<br>| extend t=tostring(temp[array_length(temp)-2])<br>| parse t with *’”labelName”:”’ Status ‘“‘<br>| parse Status with CaseState ‘-’*<br>| extend CaseSeverity = iff(Status contains “-RH”,”Rather High”,iff(Status contains “-H”,”High”,iff(Status contains “-M”,”Medium”,iff(Status contains “-RL”,”Rather Low”,iff(Status contains “-L”,”Low”,””))))) // current Tag ke hisab se<br>| project-away t,temp,abc,set_Labels<br>)<br>on IncidentNumber<br>| project-away IncidentNumber1,Title1<br>| extend [‘SLA Breached (Yes/No)’]= “No”<br>| project [‘Case Time Stamp (TH Time)’]= CreatedTime, [‘Case ID’]= IncidentNumber, [‘Case Title’]= Title, [‘Category (MITRE)’], [‘Case Severity’]= CaseSeverity, [‘Case State’]=CaseState, [‘Response Time (MTTA) (min)’]=MTTA, [‘Triage Time (MTTT) (min)’]= MTTT, [‘Resolution Time (MTTC) (min)’]= MTTC,[‘SLA Breached (Yes/No)’],ProviderName,CreatedTime,FirstAssessmentTime,FirstAnalysisTime,ClosedTime<br>// | extend [‘Triage Time (MTTT) (min)’] = iff(isempty([‘Triage Time (MTTT) (min)’]) and isnotempty([‘Resolution Time (MTTC) (min)’]),toint([‘Resolution Time (MTTC) (min)’])-toint([‘Response Time (MTTA) (min)’]),[‘Triage Time (MTTT) (min)’])<br>| extend a= iff(isempty([‘Response Time (MTTA) (min)’]),0,[‘Response Time (MTTA) (min)’])<br>| extend b= iff(isempty([‘Triage Time (MTTT) (min)’]),0,[‘Triage Time (MTTT) (min)’])<br>| extend TotalTime = iff(isempty([‘Resolution Time (MTTC) (min)’]),round(todouble(datetime_diff(‘minute’,now(),CreatedTime))/60,2),round(todouble([‘Resolution Time (MTTC) (min)’])/60,2))<br>| extend [‘SLA Breached (Yes/No)’]=iff([‘Case Severity’] == “High” and TotalTime &gt; 4,”Yes”,iff([‘Case Severity’] contains “Rather High” and TotalTime &gt; 6, “Yes”,iff([‘Case Severity’] contains “Medium” and TotalTime &gt; 10, “Yes”,iff([‘Case Severity’] contains “Rather Low” and TotalTime &gt; 24, “Yes”,iff([‘Case Severity’] contains “Low” and TotalTime &gt; 72, “Yes”,”No”)))))<br>| project-away a,b//,TotalTime<br>// | take 10 <br>// MTTA = Creating Time &gt; F-ASSESSMENT tag<br>// MTTT = F-ASSESSMENT &gt; F-Analysis (after that close) or till now (if not closed)<br>// MTTC = Closing Time — Created Time<br>| extend [‘Aging (day)’] = round(TotalTime / 24 , 2)<br>| extend [‘SLA Breached (Yes/No) (MTTT)’]=iff([‘Case Severity’] == “High” and [‘Triage Time (MTTT) (min)’] &gt; 30,”Yes”,iff([‘Case Severity’] contains “Rather High” and [‘Triage Time (MTTT) (min)’] &gt; 45, “Yes”,iff([‘Case Severity’] contains “Medium” and [‘Triage Time (MTTT) (min)’] &gt; 60, “Yes”,iff([‘Case Severity’] contains “Rather Low” and [‘Triage Time (MTTT) (min)’] &gt; 120, “Yes”,iff([‘Case Severity’] contains “Low” and [‘Triage Time (MTTT) (min)’] &gt; 240, “Yes”,”No”)))))<br>| extend [‘SLA Breached (Yes/No) (MTTA)’]=iff([‘Case Severity’] == “High” and [‘Response Time (MTTA) (min)’] &gt; 15,”Yes”,iff([‘Case Severity’] contains “Rather High” and [‘Response Time (MTTA) (min)’] &gt; 15, “Yes”,iff([‘Case Severity’] contains “Medium” and [‘Response Time (MTTA) (min)’] &gt; 15, “Yes”,iff([‘Case Severity’] contains “Rather Low” and [‘Response Time (MTTA) (min)’] &gt; 15, “Yes”,iff([‘Case Severity’] contains “Low” and [‘Response Time (MTTA) (min)’] &gt; 15, “Yes”,”No”)))))<br>| join kind=leftouter <br>(<br>SecurityIncident<br>// | where CreatedTime &gt;= startofday(ago(30d)) and CreatedTime &lt; startofday(now())<br>| where CreatedTime between (todatetime(StartDate) .. todatetime(EndDate))<br>| where isnotempty(Classification)<br>| summarize make_set(Classification) by Title, IncidentNumber<br>| extend t=set_Classification[array_length(set_Classification)-1]<br>// | extend temp=split(abc,’,’)<br>// | extend t=tostring(temp[array_length(temp)-1])<br>// | parse t with *’”’ Classification ‘“‘*<br>| extend Classification = t<br>| project Classification,IncidentNumber<br>) on $left.[‘Case ID’]==$right.IncidentNumber<br>| project-away IncidentNumber<br>| project-rename [‘Case Time Stamp / Created Time’]=[‘Case Time Stamp (TH Time)’]<br>| project-reorder [‘Case ID’],[‘Case Time Stamp / Created Time’],FirstAssessmentTime,FirstAnalysisTime,ClosedTime,[‘Case Title’],[‘Case State’],[‘Case Severity’],[‘Category (MITRE)’],[‘Response Time (MTTA) (min)’],[‘Triage Time (MTTT) (min)’],[‘Resolution Time (MTTC) (min)’],ProviderName,Classification,[‘Aging (day)’],[‘SLA Breached (Yes/No)’],[‘SLA Breached (Yes/No) (MTTA)’],[‘SLA Breached (Yes/No) (MTTT)’]</p><p>— — — — — — — — — -<br>emai</p><p>// Email related alerts<br>let x =<br> <br>;<br>let nmid = x | project Entities<br>| mv-expand parse_json(Entities)<br>| where isnotempty(Entities.NetworkMessageId)<br>| project nmid = (Entities.NetworkMessageId);<br>let nmids = x | project Entities<br>| mv-expand parse_json(Entities)<br>| where isnotempty(Entities.NetworkMessageIds)<br>| project nmids = (Entities.NetworkMessageIds)<br>| mv-expand nmids<br>| distinct tostring(nmids);<br>let n = union nmid, nmids<br>| extend NetworkMessageId = iff(isnotempty(nmid), nmid, nmids)<br>| where isnotempty(NetworkMessageId)<br>| distinct NetworkMessageId;<br>// Join NMIDs with EmailEvents to get the information like sender, recipient, subject, emailattachments, emailurls and authenticationdetails<br>let old = ago(7d);<br>let e = n | join (EmailEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails, ThreatTypes<br>| sort by TimeGenerated;<br>let s = e | sort by TimeGenerated | distinct SenderFromAddress;<br>let r = e | sort by TimeGenerated | distinct RecipientEmailAddress;<br>// Join NMIDs with EmailUrlInfo to get all the associated urls<br>let u = n | join (EmailUrlInfo | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-away NetworkMessageId1<br>| project-reorder TimeGenerated, NetworkMessageId, Url, UrlDomain, UrlLocation<br>| sort by NetworkMessageId, TimeGenerated;<br>// Join NMIDs with EmailAttachmentInfo to get all the associated urls<br>let a = n | join (EmailAttachmentInfo | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-away NetworkMessageId1<br>| project-reorder TimeGenerated, NetworkMessageId, FileName, FileType, FileSize,SHA256, RecipientEmailAddress, SenderFromAddress, SenderDisplayName<br>| sort by NetworkMessageId, TimeGenerated;<br>// Join UrlClickEvents on nmid to get the clicked urls<br>let c = n | join (UrlClickEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Url, AccountUpn, ActionType, IsClickedThrough, Workload, IPAddress, UrlChain<br>| sort by TimeGenerated;<br>// Join EmailPostDeliveryEvents on nmid to check any action taken after the delevery<br>let p = n | join (EmailPostDeliveryEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Action, ActionResult, ActionTrigger, ActionType, DeliveryLocation, RecipientEmailAddress, ThreatTypes, DetectionMethods;<br>// Any outbound email from the recipients<br>let o = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; old)<br>) on $left.SenderFromAddress == $right.RecipientEmailAddress<br>| join (e | distinct RecipientEmailAddress) on $left.SenderFromAddress1 == $right.RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>let oldEmails = ago(30d);<br>// Has user got emails previously from same sender <br>let pc = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromAddress<br>| project-away SenderFromAddress1<br>| join (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-away RecipientEmailAddress1<br>| join kind=leftanti (e | distinct NetworkMessageId) on $left.NetworkMessageId == $right.NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on sender to check any one else got the messege in past 30 days<br>let ss = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromAddress<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on subject to check any one else got the messege in past 30 days<br>let sb = e <br>| distinct Subject<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on Subject<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on domain to check any one else got the messege in past 30 days<br>let sd = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromDomain<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromDomain<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join UrlClickEvents on nmid to get the clicked urls<br>let cc = (c | distinct Url) | join (UrlClickEvents | where TimeGenerated &gt; old) on Url<br>| project-away Url1<br>| join kind=leftanti (e | distinct NetworkMessageId) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Url, AccountUpn, ActionType, IsClickedThrough, Workload, IPAddress, UrlChain<br>| sort by TimeGenerated;<br>// Any outbound email ever<br>let oo=e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on $left.SenderFromAddress == $right.RecipientEmailAddress<br>| project-away SenderFromAddress<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on $left.SenderFromAddress1 == $right.RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress1, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>n</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>SecurityIncident<br>| where TimeGenerated between (todatetime(‘2024–07–21 00:00:00’) .. todatetime(‘2024–07–27 23:59:59’))<br>|extend WorkSpace = tostring(extract(“workspaces/(.*)/providers”, 1, IncidentUrl))<br>|summarize count() by WorkSpace</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>let currentWeek_start = todatetime(“2024–07–21 00:00:00”);<br>let currentWeek_end = todatetime(“2024–07–27 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> |extend WorkSpace = tostring(extract(“workspaces/(.*)/providers”, 1, IncidentUrl))<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> |summarize count() by WorkSpace</p><p>let currentWeek_start = todatetime(“2024–07–21 00:00:00”);<br>let currentWeek_end = todatetime(“2024–07–27 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> | where tostring(Labels) has_any(“assessment”, “analysis”, “closed”)<br> |summarize count()</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>KQL Query to find out Tables where the IP addresses got detected<br> <br>let IPList=dynamic([“14.194.171.38”,”1.6.4.11&quot;,”182.79.233.238&quot;,”128.77.31.221&quot;,”59.185.230.5&quot;,”128.77.82.76&quot;,”128.77.82.77&quot;,”117.242.147.117&quot;,”165.85.163.48&quot;,”20.219.44.236&quot;]); // put the IP(s) in this list<br>let IPRegex = ‘[0–9]{1,3}\\.[0–9]{1,3}\\.[0–9]{1,3}\\.[0–9]{1,3}’;<br>union * // better to use table names instead of * to optimize further<br>| extend Packed=pack_all()<br>// | where Packed matches regex IPRegex<br>| extend IP = extract_all(@”(\d+\.\d+\.\d+\.\d+)”, tostring(Packed))<br>| where isnotempty(IP)<br>| project IP,Type<br>| mv-expand IP<br>| where IP in (IPList)<br>| summarize Tables=make_set(Type,50) by tostring(IP)<br> <br> — — — — — — — — — — — — — — — — <br>//user signin ,office activity , auditlog, identityinfo</p><p>let n = dynamic([“<a href="/service/mailto:ganokporn.thitiyanaporn@scb.co.th">ganokporn.thitiyanaporn@scb.co.th</a>”]);<br>let old = ago(3d);<br>let s = union SigninLogs, AADNonInteractiveUserSignInLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName in~(n)<br>| extend DeviceID = tostring(DeviceDetail_dynamic.deviceId)<br>| project-reorder TimeGenerated, UserPrincipalName, IPAddress,ResultType, ResultDescription,Location, AuthenticationRequirement, AuthenticationDetails, AppDisplayName, DeviceID, DeviceDetail_dynamic, NetworkLocationDetails,UserAgent<br>| sort by UserPrincipalName asc, TimeGenerated desc;<br>let o = OfficeActivity<br>| where TimeGenerated &gt; old<br>| where UserId in~ (n)<br>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent<br>| sort by UserId asc, TimeGenerated desc;<br>let a = AuditLogs <br>| where TimeGenerated &gt; old<br>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br>| where InitiatedByEntity in~(n) or TargetedUser in~(n)<br>| where isnotempty(InitiatedByEntity)<br>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources<br>| sort by InitiatedByEntity asc, TimeGenerated desc;<br>let i = IdentityInfo<br>| where TimeGenerated &gt; ago(90d)<br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)<br>| where AccountUPN in~(n)<br>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource<br>| sort by AccountName asc, TimeGenerated desc;<br>//for sign-in -s, o-office activity , i-identityinfo , a-auditlog</p><p>— — — — — — — — — — — — — — — — — — — — — -<br>//user signin ,office activity , auditlog, identityinfo,inbox rule ,cloudappevent<br>let n = dynamic([“<a href="/service/mailto:shuenruethai.watcharachaikuljarern@scb.co.th">shuenruethai.watcharachaikuljarern@scb.co.th</a>”]);<br>let old = ago(2d);<br>let s = union SigninLogs, AADNonInteractiveUserSignInLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName in~(n)<br>| extend DeviceID = tostring(DeviceDetail_dynamic.deviceId)<br>| project-reorder TimeGenerated, UserPrincipalName, IPAddress,ResultType, ResultDescription,Location, AuthenticationRequirement, AuthenticationDetails, AppDisplayName, DeviceID, DeviceDetail_dynamic, NetworkLocationDetails,UserAgent<br>| sort by UserPrincipalName asc, TimeGenerated desc;<br>let o = OfficeActivity<br>| where TimeGenerated &gt; old<br>| where UserId in~ (n)<br>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent<br>| sort by UserId asc, TimeGenerated desc;<br>let a = AuditLogs <br>| where TimeGenerated &gt; old<br>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br>| where InitiatedByEntity in~(n) or TargetedUser in~(n)<br>| where isnotempty(InitiatedByEntity)<br>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources<br>| sort by InitiatedByEntity asc, TimeGenerated desc;<br>let i = IdentityInfo<br>| where TimeGenerated &gt; ago(90d)<br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)<br>| where AccountUPN in~(n)<br>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource<br>| sort by AccountName asc, TimeGenerated desc;<br>//Rare and potentially high-risk Office operations<br>//write the user details here <br>let r=OfficeActivity <br>//change the time according to your requirement<br>|where UserId has_any(n)<br>| where TimeGenerated &gt; old<br>| where Operation has_any (“Add-MailboxPermission”, “Add-MailboxFolderPermission”, “Set-Mailbox”, “New-ManagementRoleAssignment”, “New-InboxRule”, “Set-InboxRule”, “Set-TransportRule”)<br>| extend details = parse_json(Parameters) <br>| extend ForwardTo = iif(details[0].Name contains ‘ForwardTo’, details[0].Value, iif(details[1].Name contains ‘ForwardTo’, details[1].Value, iif(details[2].Name contains ‘ForwardTo’, details[2].Value, iif(details[3].Name contains ‘ForwardTo’, details[3].Value, iif(details[4].Name contains ‘ForwardTo’, details[4].Value, ‘’))))) <br>| extend RedirectTo = iif(details[0].Name contains ‘RedirectTo’, details[0].Value, iif(details[1].Name contains ‘RedirectTo’, details[1].Value, iif(details[2].Name contains ‘RedirectTo’, details[2].Value, iif(details[3].Name contains ‘RedirectTo’, details[3].Value, iif(details[4].Name contains ‘RedirectTo’, details[4].Value, ‘’)))))<br>| extend RuleName = iif(details[3].Name contains ‘Name’, details[3].Value, iif(details[4].Name contains ‘Name’, details[4].Value, iif(details[5].Name contains ‘name’, details[5].Value, ‘Check Parameters’)))<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br>| extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br>| extend MoveTofolder = iif(details[0].Name contains ‘MoveToFolder’, details[0].Value, iif(details[1].Name contains ‘MoveToFolder’, details[1].Value, iif(details[2].Name contains ‘MoveToFolder’, details[2].Value, iif(details[3].Name contains ‘MoveToFolder’, details[3].Value, iif(details[4].Name contains ‘MoveToFolder’, details[4].Name, ‘’))))) <br>| extend Fullaccess = iif(details[0].Name contains ‘AccessRights’, details[0].Value, iif(details[1].Name contains ‘AccessRights’, details[1].Value, iif(details[2].Name contains ‘AccessRights’, details[2].Value, iif(details[3].Name contains ‘AccessRights’, details[3].Value, iif(details[4].Name contains ‘AccessRights’, details[4].Name, ‘’))))) <br>| extend Rule = iif(ForwardTo != ‘’, ‘Forward’,<br> iif(SentTo != ‘’, ‘Sent’,<br> iif(MoveTofolder != ‘’, ‘MoveToFolder’, iif(Fullaccess != ‘’, ‘FullAccess’, “”))))<br>| extend RuleParameters = iif(details[2].Name != ‘ForwardTo’ and details[2].Name != ‘RedirectTo’, strcat(tostring(details[2].Name), ‘-’, tostring(details[2].Value)), iif(details[3].Name != ‘ForwardTo’ and details[3].Name != ‘RedirectTo’ and details[3].Name != ‘Name’, strcat(tostring(details[3].Name), ‘-’, tostring(details[3].Value)), iff(details[4].Name != ‘ForwardTo’ and details[4].Name != ‘RedirectTo’ and details[4].Name != ‘Name’ and details[4].Name != ‘StopProcessingRules’, strcat(tostring(details[4].Name), ‘-’, tostring(details[4].Value)), ‘All Mail’))) <br> | project TimeGenerated, Operation, RuleName,Rule,Sent_to=SentTo, RuleParameters, iif(details contains ‘ForwardTo’, ForwardTo, RedirectTo), ClientIP, UserId, details | project-rename Rule_CreatedBy_User = UserId ,Email_Forwarded_To = Column1<br>|project-reorder TimeGenerated,Operation,Rule,RuleName,RuleParameters,Rule_CreatedBy_User,Email_Forwarded_To,Sent_to,ClientIP,details;<br>let cloud = CloudAppEvents; <br>let c= cloud <br>| where TimeGenerated &gt; old<br>| extend parsedData = parse_json(RawEventData)<br>|extend SensitivityLabelOwnerEmail = iff(isnull(parsedData.SensitivityLabelOwnerEmail),n, parsedData.SensitivityLabelOwnerEmail) <br>| project-reorder TimeGenerated, AccountDisplayName,SensitivityLabelOwnerEmail, ActivityObjects, IsExternalUser, ISP, CountryCode, IPAddress,RawEventData; <br>// To fetch the processed data: <br>//shortcut for logs — — — s- signin ,o-office activity , a-auditlog, i=identityinfo,r-inbox rule ,c-cloudappevent — — — — — — — — —</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>log ingestion</p><p>Usage<br>| where TimeGenerated between (datetime(“2024–6–1 00:00:00”) ..datetime(“2024–6–30 23:59:59”))<br>| extend Day = bin(TimeGenerated, 1d)<br>| summarize TotalIngestionGB = sum(Quantity) / 1024 by Day<br>| project [‘Date’]=format_datetime(Day, ‘dd/MM/yyyy’), TotalIngestionGB<br>| order by [‘Date’] asc</p><p>Usage<br>| where TimeGenerated between (datetime(“2024–7–28 00:00:00”) ..datetime(“2024–8–10 23:59:59”))<br>| summarize ingestion = sum(Quantity)/1024 by DataType, IsBillable<br>| sort by ingestion desc</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>//user signin ,office activity , auditlog, identityinfo,inbox rule ,cloudappevent,Azureactivity<br>let n = dynamic([“<a href="/service/mailto:geng@cardx.co.th">geng@cardx.co.th</a>”]);//write user details in array format for this you can use summarize make_set() function in new query1 <br>let old = ago(90d);<br>let s = <br>SigninLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName has_any (n)<br>| project-reorder TimeGenerated,UserPrincipalName,IPAddress,ResultType,ResultDescription,Location,NetworkLocationDetails,DeviceDetail,UserAgent,AppDisplayName,AuthenticationDetails,CorrelationId,AuthenticationRequirement,RiskDetail,RiskState;<br>let ns=AADNonInteractiveUserSignInLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName has_any (n)<br>| project-reorder TimeGenerated,UserPrincipalName,IPAddress,ResultType,ResultDescription,Location,NetworkLocationDetails,DeviceDetail,UserAgent,AppDisplayName,AuthenticationDetails,CorrelationId,AuthenticationRequirement,RiskDetail,RiskState;<br>// office activity start from here<br>let o = OfficeActivity<br>| where TimeGenerated &gt; old<br>| where UserId in~ (n)<br>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent<br>| sort by UserId asc, TimeGenerated desc;<br>//auditlog<br>let a = AuditLogs <br>| where TimeGenerated &gt; old<br>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br>| where InitiatedByEntity in~(n) or TargetedUser in~(n)<br>| where isnotempty(InitiatedByEntity)<br>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources<br>| sort by InitiatedByEntity asc, TimeGenerated desc;<br>let i = IdentityInfo<br>| where TimeGenerated &gt; ago(90d)<br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)<br>| where AccountUPN in~(n)<br>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource<br>| sort by AccountName asc, TimeGenerated desc;<br>//Rare and potentially high-risk Office operations<br>//write the user details here <br>let r=OfficeActivity <br>//change the time according to your requirement<br>|where UserId has_any(n)<br>| where TimeGenerated &gt; old<br>| where Operation has_any (“Add-MailboxPermission”, “Add-MailboxFolderPermission”, “Set-Mailbox”, “New-ManagementRoleAssignment”, “New-InboxRule”, “Set-InboxRule”, “Set-TransportRule”)<br>| extend details = parse_json(Parameters) <br>| extend ForwardTo = iif(details[0].Name contains ‘ForwardTo’, details[0].Value, iif(details[1].Name contains ‘ForwardTo’, details[1].Value, iif(details[2].Name contains ‘ForwardTo’, details[2].Value, iif(details[3].Name contains ‘ForwardTo’, details[3].Value, iif(details[4].Name contains ‘ForwardTo’, details[4].Value, ‘’))))) <br>| extend RedirectTo = iif(details[0].Name contains ‘RedirectTo’, details[0].Value, iif(details[1].Name contains ‘RedirectTo’, details[1].Value, iif(details[2].Name contains ‘RedirectTo’, details[2].Value, iif(details[3].Name contains ‘RedirectTo’, details[3].Value, iif(details[4].Name contains ‘RedirectTo’, details[4].Value, ‘’)))))<br>| extend RuleName = iif(details[3].Name contains ‘Name’, details[3].Value, iif(details[4].Name contains ‘Name’, details[4].Value, iif(details[5].Name contains ‘name’, details[5].Value, ‘Check Parameters’)))<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br>| extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br>|extend SentTo<br>| extend MoveTofolder = iif(details[0].Name contains ‘MoveToFolder’, details[0].Value, iif(details[1].Name contains ‘MoveToFolder’, details[1].Value, iif(details[2].Name contains ‘MoveToFolder’, details[2].Value, iif(details[3].Name contains ‘MoveToFolder’, details[3].Value, iif(details[4].Name contains ‘MoveToFolder’, details[4].Name, ‘’))))) <br>| extend Fullaccess = iif(details[0].Name contains ‘AccessRights’, details[0].Value, iif(details[1].Name contains ‘AccessRights’, details[1].Value, iif(details[2].Name contains ‘AccessRights’, details[2].Value, iif(details[3].Name contains ‘AccessRights’, details[3].Value, iif(details[4].Name contains ‘AccessRights’, details[4].Name, ‘’))))) <br>| extend Rule = iif(ForwardTo != ‘’, ‘Forward’,<br> iif(SentTo != ‘’, ‘Sent’,<br> iif(MoveTofolder != ‘’, ‘MoveToFolder’, iif(Fullaccess != ‘’, ‘FullAccess’, “”))))<br>| extend RuleParameters = iif(details[2].Name != ‘ForwardTo’ and details[2].Name != ‘RedirectTo’, strcat(tostring(details[2].Name), ‘-’, tostring(details[2].Value)), iif(details[3].Name != ‘ForwardTo’ and details[3].Name != ‘RedirectTo’ and details[3].Name != ‘Name’, strcat(tostring(details[3].Name), ‘-’, tostring(details[3].Value)), iff(details[4].Name != ‘ForwardTo’ and details[4].Name != ‘RedirectTo’ and details[4].Name != ‘Name’ and details[4].Name != ‘StopProcessingRules’, strcat(tostring(details[4].Name), ‘-’, tostring(details[4].Value)), ‘All Mail’))) <br> | project TimeGenerated, Operation, RuleName,Rule,Sent_to=SentTo, RuleParameters, iif(details contains ‘ForwardTo’, ForwardTo, RedirectTo), ClientIP, UserId, details | project-rename Rule_CreatedBy_User = UserId ,Email_Forwarded_To = Column1<br>|project-reorder TimeGenerated,Operation,Rule,RuleName,RuleParameters,Rule_CreatedBy_User,Email_Forwarded_To,Sent_to,ClientIP,details;<br>let c=CloudAppEvents<br>|where TimeGenerated &gt;ago(2d)<br>| extend ParsedData = parse_json(RawEventData) <br>| extend UserId = tostring(ParsedData.UserId) <br>| extend ClientIP = tostring(ParsedData.ClientIP) <br>| where UserId in (n) <br>| project-reorder TimeGenerated, AccountDisplayName,UserId, ActivityObjects, IsExternalUser, ISP, CountryCode, IPAddress,ObjectName,ObjectType,ActivityType,AccountType,RawEventData; <br>let az=<br>AzureActivity<br>|where Caller has_any (n)<br>|project-reorder TimeGenerated,OperationNameValue,CallerIpAddress,ActivityStatusValue,ResourceGroup,SubscriptionId;<br>// To fetch the processed data: <br>//shortcut for logs — — — s- signin ,ns-nonintractive signinlogs ,o-office activity , a-auditlog, i=identityinfo,r-inbox rule ,c-cloudappevent,az-Azureactivity — — — — — — — — — <br>s</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>// Email related alerts<br>let x =<br>;<br>let nmid = x | project Entities<br>| mv-expand parse_json(Entities)<br>| where isnotempty(Entities.NetworkMessageId)<br>| project nmid = (Entities.NetworkMessageId);<br>let nmids = x | project Entities<br>| mv-expand parse_json(Entities)<br>| where isnotempty(Entities.NetworkMessageIds)<br>| project nmids = (Entities.NetworkMessageIds)<br>| mv-expand nmids<br>| distinct tostring(nmids);<br>let n = union nmid, nmids<br>| extend NetworkMessageId = iff(isnotempty(nmid), nmid, nmids)<br>| where isnotempty(NetworkMessageId)<br>| distinct NetworkMessageId;<br>// Join NMIDs with EmailEvents to get the information like sender, recipient, subject, emailattachments, emailurls and authenticationdetails<br>let old = ago(7d);<br>let e = n | join (EmailEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails, ThreatTypes<br>| sort by TimeGenerated;<br>let s = e | sort by TimeGenerated | distinct SenderFromAddress;<br>let r = e | sort by TimeGenerated | distinct RecipientEmailAddress;<br>// Join NMIDs with EmailUrlInfo to get all the associated urls<br>let u = n | join (EmailUrlInfo | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-away NetworkMessageId1<br>| project-reorder TimeGenerated, NetworkMessageId, Url, UrlDomain, UrlLocation<br>| sort by NetworkMessageId, TimeGenerated;<br>// Join NMIDs with EmailAttachmentInfo to get all the associated urls<br>let a = n | join (EmailAttachmentInfo | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-away NetworkMessageId1<br>| project-reorder TimeGenerated, NetworkMessageId, FileName, FileType, FileSize,SHA256, RecipientEmailAddress, SenderFromAddress, SenderDisplayName<br>| sort by NetworkMessageId, TimeGenerated;<br>// Join UrlClickEvents on nmid to get the clicked urls<br>let c = n | join (UrlClickEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Url, AccountUpn, ActionType, IsClickedThrough, Workload, IPAddress, UrlChain<br>| sort by TimeGenerated;<br>// Join EmailPostDeliveryEvents on nmid to check any action taken after the delevery<br>let p = n | join (EmailPostDeliveryEvents | where TimeGenerated &gt; old) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Action, ActionResult, ActionTrigger, ActionType, DeliveryLocation, RecipientEmailAddress, ThreatTypes, DetectionMethods;<br>// Any outbound email from the recipients<br>let o = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; old)<br>) on $left.SenderFromAddress == $right.RecipientEmailAddress<br>| join (e | distinct RecipientEmailAddress) on $left.SenderFromAddress1 == $right.RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>let oldEmails = ago(30d);<br>// Has user got emails previously from same sender <br>let pc = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromAddress<br>| project-away SenderFromAddress1<br>| join (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-away RecipientEmailAddress1<br>| join kind=leftanti (e | distinct NetworkMessageId) on $left.NetworkMessageId == $right.NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on sender to check any one else got the messege in past 30 days<br>let ss = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromAddress<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on subject to check any one else got the messege in past 30 days<br>let sb = e <br>| distinct Subject<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on Subject<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join EmailEvents on domain to check any one else got the messege in past 30 days<br>let sd = e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromDomain<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on SenderFromDomain<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>// Join UrlClickEvents on nmid to get the clicked urls<br>let cc = (c | distinct Url) | join (UrlClickEvents | where TimeGenerated &gt; old) on Url<br>| project-away Url1<br>| join kind=leftanti (e | distinct NetworkMessageId) on NetworkMessageId<br>| project-reorder TimeGenerated, NetworkMessageId, Url, AccountUpn, ActionType, IsClickedThrough, Workload, IPAddress, UrlChain<br>| sort by TimeGenerated;<br>// Any outbound email ever<br>let oo=e <br>| where EmailDirection == “Inbound”<br>| distinct SenderFromAddress<br>| join (<br>(EmailEvents | where TimeGenerated &gt; oldEmails)<br>) on $left.SenderFromAddress == $right.RecipientEmailAddress<br>| project-away SenderFromAddress<br>| join kind=leftanti (e | distinct RecipientEmailAddress) on $left.SenderFromAddress1 == $right.RecipientEmailAddress<br>| project-reorder TimeGenerated, NetworkMessageId, Subject, RecipientEmailAddress, SenderFromAddress1, SenderMailFromAddress, SenderDisplayName, SenderIPv4, DeliveryLocation, EmailDirection, OrgLevelAction, DeliveryAction, EmailAction, UrlCount, AttachmentCount, AuthenticationDetails;<br>//x-main events, n-nmids, e-emailEvents, c-urlclick, p-postDelivery, u-urls, a-attachments, ss-mails from same senders to other than these recepients, sb- mail from same sub, sd- mail from same domain, o-outbound communication<br>o</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>let x = SecurityAlert <br>| where SystemAlertId in (“1a26bc6f-8e0d-9321–219b-30acc4fd8d7d”); <br>let u = x <br>| where TimeGenerated &gt; ago(7d) <br>| extend EntitiesDynamic = todynamic(Entities) <br>| mv-expand EntitiesDynamic <br>| extend EntityDynamic = todynamic(EntitiesDynamic) <br>| project MailboxPrimaryAddress = tostring(EntityDynamic.MailboxPrimaryAddress) <br>| project MailboxPrimaryAddress; <br>let usernames = u <br>| extend username = extract(“([^_]+)_”, 1, MailboxPrimaryAddress) <br>| project username; <br>let usernameList = toscalar(usernames | summarize make_set(username)); <br>IdentityInfo <br>| where TimeGenerated &gt; ago(90d) <br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN) <br>| where AccountUPN has_any (usernameList) <br>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled, CompanyName, ChangeSource <br>| sort by AccountUPN asc, TimeGenerated desc;</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>// Step 1: Filter SecurityAlert and extract MailboxPrimaryAddress <br>let x = SecurityAlert <br>| where SystemAlertId in (“1a26bc6f-8e0d-9321–219b-30acc4fd8d7d”) <br>| where TimeGenerated &gt; ago(7d) <br>| extend EntitiesDynamic = todynamic(Entities) <br>| mv-expand EntitiesDynamic <br>| extend EntityDynamic = todynamic(EntitiesDynamic) <br>| project MailboxPrimaryAddress = tostring(EntityDynamic.MailboxPrimaryAddress); <br>// Step 2: Extract usernames from MailboxPrimaryAddress <br>let usernames = x <br>| extend username = extract(“([^_]+)_”, 1, MailboxPrimaryAddress) <br>| project username; <br>// Step 3: Convert extracted usernames into a list <br>let usernameList = toscalar(usernames | summarize make_set(username)); <br>// Step 4: Filter IdentityInfo based on the extracted usernames <br>let i = IdentityInfo <br>| where TimeGenerated &gt; ago(90d) <br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN) <br>| where AccountUPN has_any (usernameList) <br>| project AccountUPN;</p><p>// Step 5: Filter SigninLogs based on the AccountUPN from filtered IdentityInfo <br>let s=SigninLogs <br>| where UserPrincipalName in (i) <br>| project-reorder TimeGenerated,IPAddress,ResultType,ResultDescription,Location,NetworkLocationDetails,DeviceDetail,MfaDetail,CorrelationId,AuthenticationRequirement,RiskDetail,RiskState<br>| sort by TimeGenerated desc;</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>let currentWeek_start = todatetime(“2024–08–04 00:00:00”);<br>let currentWeek_end = todatetime(“2024–08–10 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> |extend WorkSpace = tostring(extract(“workspaces/(.*)/providers”, 1, IncidentUrl))<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> |summarize count() by WorkSpace</p><p>let currentWeek_start = todatetime(“2024–08–04 00:00:00”);<br>let currentWeek_end = todatetime(“2024–08–10 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> | where tostring(Labels) has_any(“assessment”, “analysis”, “closed”)<br> |summarize count()</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>individual</p><p>triage</p><p>let currentWeek_start = todatetime(“2024–08–04 00:00:00”);<br>let currentWeek_end = todatetime(“2024–08–10 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> | where tostring(Labels) has_any(“assessment”, “analysis”, “closed”)<br> |summarize count()</p><p>total alert</p><p>let currentWeek_start = todatetime(“2024–08–04 00:00:00”);<br>let currentWeek_end = todatetime(“2024–08–10 23:59:59”);<br>SecurityIncident<br> | where CreatedTime between (currentWeek_start .. currentWeek_end)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber<br> |summarize count()</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>log ingestion</p><p>Usage<br>| where TimeGenerated between (datetime(“2024–6–1 00:00:00”) ..datetime(“2024–6–30 23:59:59”))<br>| extend Day = bin(TimeGenerated, 1d)<br>| summarize TotalIngestionGB = sum(Quantity) / 1024 by Day<br>| project [‘Date’]=format_datetime(Day, ‘dd/MM/yyyy’), TotalIngestionGB<br>| order by [‘Date’] asc</p><p>Usage<br>| where TimeGenerated between (datetime(“2024–7–28 00:00:00”) ..datetime(“2024–8–10 23:59:59”))<br>| summarize ingestion = sum(Quantity)/1024 by DataType, IsBillable<br>| sort by ingestion desc</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>search “<a href="/service/mailto:watchareeya.channarong@innovestx.onmicrosoft.com">watchareeya.channarong@innovestx.onmicrosoft.com</a>”<br>|where TimeGenerated &gt;ago(90d)<br>|distinct $table</p><p>let s1=SigninLogs<br>|where TimeGenerated &gt;ago(90d)<br>// |where AppDisplayName contains “Azure VPN”<br> |where AuthenticationRequirement ==”singleFactorAuthentication”<br> |summarize arg_max(TimeGenerated,*) by UserPrincipalName<br>|project UserPrincipalName;<br>let s2=SigninLogs<br>|where TimeGenerated &gt;ago(90d)<br>// |where AppDisplayName contains “Azure VPN”<br> |where AuthenticationRequirement ==”multiFactorAuthentication”<br> |summarize arg_max(TimeGenerated,*) by UserPrincipalName<br>|project UserPrincipalName;<br>s1<br>| join kind =anti s2 on UserPrincipalName<br>|where UserPrincipalName contains “@”</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>count shift</p><p>let x = SecurityIncident<br>| extend created_ist = CreatedTime + 5h + 30m<br>| extend timegen_ist = TimeGenerated+5h + 30m<br>// | where created_ist between (todatetime(“2024–07–19 06:00 AM”) .. todatetime(“2024–07–19 02:00 PM”))<br>| summarize arg_max(timegen_ist,*) by IncidentNumber<br>| where Labels has_any (“Assessment”, “Analysis”, “closed”)<br>| where created_ist between (todatetime(“2024–07–01 06:00 AM”) .. todatetime(“2024–07–31 05:59 AM”))<br>| summarize arg_max(TimeGenerated + 5h + 30m, *) by IncidentNumber<br>| summarize Count=count() by bin_at(created_ist, 8h, todatetime(“2024–07–01 06:00 AM”));<br>let morning = x | where tostring(created_ist) contains tostring(“6:00:00”) | extend Date = format_datetime(created_ist, “dd/MM/yyyy”);<br>let afternoon = x | where tostring(created_ist) contains tostring(“14:00:00”) | extend Date = format_datetime(created_ist, “dd/MM/yyyy”);<br>let night = x | where tostring(created_ist) contains tostring(“22:00:00”) | extend Date = format_datetime(created_ist, “dd/MM/yyyy”);<br>morning<br>| join afternoon on Date<br>| join night on Date<br>| sort by Date asc <br>| project Date, Morning=Count, [‘After-noon’]=Count1, Night=Count2</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>alerts triage and total</p><p>let start = ‘2024–08–18 12:00:00 AM’;<br>let end = ‘2024–08–24 11:59:59 PM’;<br>// Total Alerts<br>let TotalAlerts = SecurityIncident<br>| where CreatedTime between (todatetime(start) .. todatetime(end))<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| extend Subsidiary = tostring(extract(“workspaces/(.*)/providers”, 1, IncidentUrl))<br>| summarize TotalAlertsCount=count() by Subsidiary;<br>// Triaged Alerts<br>let TriagedAlerts = SecurityIncident<br>| where CreatedTime between (todatetime(start) .. todatetime(end))<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where isnotempty(tostring(Owner.email))<br>| where tostring(Labels) has_any (“Assessment”, “Analysis”, “Containment”, “Closed”)<br>| extend Subsidiary = tostring(extract(“workspaces/(.*)/providers”, 1, IncidentUrl))<br>| summarize TriagedAlertsCount=count() by Subsidiary;<br>TotalAlerts<br>| join TriagedAlerts on Subsidiary<br>| project Subsidiary, TotalAlertsCount, TriagedAlertsCount</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>//tagerror</p><p>SecurityIncident<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where ModifiedBy != “Microsoft 365 Defender”<br>| where isnotempty(Owner.email)<br>| where Labels != “[]”<br>| where tostring(Labels) !contains “Informational”<br>| where tostring(Labels) !contains “Redirected”<br>| where Status == “Closed”<br>| project TimeGenerated, IncidentNumber, Title, Owner.email, Labels<br>| extend Mistake = case(<br>tostring(Labels) !contains “ASSESSMENT-RL”, “error in ASSESSMENT tag”,<br>tostring(Labels) !contains “ANALYSIS-RL”, “error in ANALYSIS Tag “,<br>tostring(Labels) !contains “CLOSED-RL”, “error in CLOSED Tag “,<br>“No Error”<br>)<br>| where Mistake != “No Error”</p><p>— — — — — — — — — — — — — — — — — — — — — — —</p><p>SecurityIncident<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where ModifiedBy != “Microsoft 365 Defender”<br>| where isnotempty(Owner.email)<br>| where Labels != “[]”<br>| where tostring(Labels) !contains “Informational”<br>| where tostring(Labels) !contains “Redirected”<br>| where Status == “Closed”<br>| project TimeGenerated, IncidentNumber, Title, Owner.email, Labels<br>| extend Mistake = case(<br>tostring(Labels) !contains “ASSESSMENT-RL”, “error in ASSESSMENT tag”,<br>tostring(Labels) !contains “ANALYSIS-RL”, “error in ANALYSIS Tag “,<br>tostring(Labels) !contains “CLOSED-RL”, “error in CLOSED Tag “,<br>“No Error”<br>)<br>| extend Missing = case(<br>tostring(Labels) !contains “ASSESSMENT”, “ASSESSMENT Tag is missing”,<br>tostring(Labels) !contains “ANALYSIS”, “ANALYSIS Tag is missing”,<br>tostring(Labels) !contains “CLOSED”, “CLOSED Tag is missing”,<br>“No Error”)<br>| where Mistake != “No Error” or Missing != “No Error”</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>//External user file activity<br>// Step 1: Filter SecurityAlert and extract MailboxPrimaryAddress <br>let x = SecurityAlert <br>| where SystemAlertId in(“548c4eb9-d4ff-ec96-dcfb-0c54e19ab47b”) <br>| where TimeGenerated &gt; ago(7d) <br>| extend EntitiesDynamic = todynamic(Entities) <br>| mv-expand EntitiesDynamic <br>| extend EntityDynamic = todynamic(EntitiesDynamic) <br>| project MailboxPrimaryAddress = tostring(EntityDynamic.MailboxPrimaryAddress); <br>// Step 2: Extract usernames from MailboxPrimaryAddress <br>let usernames = x <br>| extend username = extract(“([^_]+)_”, 1, MailboxPrimaryAddress) <br>| project username; <br>// Step 3: Convert extracted usernames into a list <br>let usernameList = toscalar(usernames | summarize make_set(username)); <br>// Step 4: Filter IdentityInfo based on the extracted usernames <br>let if = IdentityInfo <br>| where TimeGenerated &gt; ago(90d) <br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN) <br>| where AccountUPN has_any (usernameList) <br>| project AccountUPN; <br>// Step 5: Filter SigninLogs based on the AccountUPN from filtered IdentityInfo <br>let old = ago(9d);<br>let s = <br>SigninLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName has_any (if)<br>| project-reorder TimeGenerated,UserPrincipalName,IPAddress,ResultType,ResultDescription,Location,NetworkLocationDetails,DeviceDetail,UserAgent,AppDisplayName,AuthenticationDetails,CorrelationId,AuthenticationRequirement,RiskDetail,RiskState;<br>let ns=AADNonInteractiveUserSignInLogs<br>| where TimeGenerated &gt; old<br>| where UserPrincipalName has_any (if)<br>| project-reorder TimeGenerated,UserPrincipalName,IPAddress,ResultType,ResultDescription,Location,NetworkLocationDetails,DeviceDetail,UserAgent,AppDisplayName,AuthenticationDetails,CorrelationId,AuthenticationRequirement,RiskDetail,RiskState;<br>// office activity start from here<br>let o1 = OfficeActivity<br>| where TimeGenerated &gt; old<br>| where UserId in~ (if) <br>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent<br>| sort by UserId asc, TimeGenerated desc;<br>let o2 = OfficeActivity<br>| where TimeGenerated &gt; old<br>| where UserId in~ (x) <br>| project-reorder TimeGenerated, UserId, Operation,ClientIP, IsManagedDevice, RecordType, ItemType, EventSource, OfficeWorkload, SourceFileName, Site_Url,SourceRelativeUrl,OfficeObjectId,UserAgent<br>| sort by UserId asc, TimeGenerated desc;<br>let o=union o1,o2;<br>//auditlog<br>let a1 = AuditLogs <br>| where TimeGenerated &gt; old<br>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br>| where InitiatedByEntity in~(if) or TargetedUser in~(if)<br>| where isnotempty(InitiatedByEntity)<br>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources<br>| sort by InitiatedByEntity asc, TimeGenerated desc;<br>let a2 = AuditLogs <br>| where TimeGenerated &gt; old<br>| extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br>| extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br>| extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br>| where InitiatedByEntity in~(x) or TargetedUser in~(x)<br>| where isnotempty(InitiatedByEntity)<br>| project-reorder TimeGenerated, InitiatedByEntity, LoggedByService,IPAddress, AADOperationType, OperationName, Category,Result, ResultDescription,TargetedUser, InitiatedBy,TargetResources<br>| sort by InitiatedByEntity asc, TimeGenerated desc;<br>let a=union a1,a2;<br>let i = IdentityInfo<br>| where TimeGenerated &gt; ago(90d)<br>| summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)<br>| where AccountUPN in~(if)<br>| project-reorder TimeGenerated, AccountUPN, AccountDisplayName, UserType, RiskLevel, RiskState, BlastRadius, AssignedRoles, JobTitle, Department, GroupMembership, MailAddress, AdditionalMailAddresses, IsAccountEnabled,CompanyName, ChangeSource<br>| sort by AccountName asc, TimeGenerated desc;<br>let c=CloudAppEvents<br>|where TimeGenerated &gt;ago(2d)<br>| extend ParsedData = parse_json(RawEventData) <br>| extend UserId = tostring(ParsedData.UserId) <br>| extend ClientIP = tostring(ParsedData.ClientIP) <br>| where UserId in (if) <br>| project-reorder TimeGenerated, AccountDisplayName,UserId, ActivityObjects, IsExternalUser, ISP, CountryCode, IPAddress,ObjectName,ObjectType,ActivityType,AccountType,RawEventData; <br>let az1=<br>AzureActivity<br>|where Caller has_any (if)<br>|project-reorder TimeGenerated,OperationNameValue,CallerIpAddress,ActivityStatusValue,ResourceGroup,SubscriptionId;<br>let az2=<br>AzureActivity<br>|where Caller has_any (x)<br>|project-reorder TimeGenerated,OperationNameValue,CallerIpAddress,ActivityStatusValue,ResourceGroup,SubscriptionId;<br>let az=union az1,az2;<br>// To fetch the processed data: <br>//shortcut for logs — — — s- signin ,ns-nonintractive signinlogs ,o-office activity , a-auditlog, i=identityinfo ,c-cloudappevent,az-Azureactivity — — — — — — — — — <br>s</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>SecurityIncident<br>| where TimeGenerated between(datetime(2024–09–01 00:00:00) .. datetime(2024–09–03 23:59:59))<br>|where isnotempty(Owner.email)<br>| summarize arg_max(TimeGenerated,*) by IncidentNumber<br>| where tostring(Labels) !contains “Informational”<br>| where tostring(Labels) !contains “Redirected”<br>| where Status == “Closed”<br>| extend TimeOfDay = format_datetime(TimeGenerated, ‘HH:mm:ss’)<br>| extend Shift = case(<br> (TimeGenerated &gt;= startofday(TimeGenerated) + 6h + 30m) and (TimeGenerated &lt; startofday(TimeGenerated) + 14h + 30m), ‘Morning’,<br> (TimeGenerated &gt;= startofday(TimeGenerated) + 14h + 30m) and (TimeGenerated &lt; startofday(TimeGenerated) + 22h + 30m), ‘Afternoon’,<br> (TimeGenerated &gt;= startofday(TimeGenerated) + 22h + 30m) or (TimeGenerated &lt; startofday(TimeGenerated) + 6h + 30m), ‘Night’,<br> ‘Unknown’<br>)<br>| summarize MorningCount = countif(Shift == ‘Morning’), AfternoonCount = countif(Shift == ‘Afternoon’), NightCount = countif(Shift == ‘Night’) by bin(TimeGenerated, 1d)<br>| project Date = format_datetime(TimeGenerated, ‘yyyy-MM-dd’), MorningCount, AfternoonCount, NightCount</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -<br>let starttime = todatetime(‘2024–8–20 00:00:00’);<br>let endtime = todatetime(‘2024–10–26 23:59:59’);<br>let MaxAlerts1 = SecurityIncident<br> | where TimeGenerated between (starttime .. endtime)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber, Title<br> | where tostring(Labels) has_any(“Assessment”, “Analysis”, “Containement”, “Closed”)<br> | mv-expand AlertIds<br> | extend common = tostring(AlertIds)<br> | join<br> (<br> SecurityAlert<br> | where TimeGenerated &gt; ago(90d)<br> | extend common = tostring(SystemAlertId)<br> )<br> on common<br> | project IncidentNumber, Entities, Title<br> | mv-expand parse_json(Entities)<br> | extend Type= tostring(Entities.Type)<br> | where Type == “account”<br> | extend upn = tostring(strcat(tostring(Entities.Name), “@”, tostring(Entities.UPNSuffix)))<br> | extend user_a = case(<br> tostring(Entities.Name) has_all (“@”, “.”),<br> tostring(Entities.Name), <br> tostring(Entities.DisplayName) has_all (“@”, “.”),<br> tostring(Entities.DisplayName),<br> upn has_all (“@”, “.”) and upn !contains “ “,<br> upn,<br> “”<br> )<br> | where isnotempty(user_a)<br> | project IncidentNumber, Title, AccountUPN=user_a;<br>let MaxAlerts2 = SecurityIncident<br> | where TimeGenerated between (starttime .. endtime)<br> | summarize arg_max(TimeGenerated, *) by IncidentNumber, Title<br> | where tostring(Labels) has_any(“Assessment”, “Analysis”, “Containement”, “Closed”)<br> | mv-expand AlertIds<br> | extend common = tostring(AlertIds)<br> | join<br> (<br> SecurityAlert<br> | where TimeGenerated &gt; ago(90d)<br> | extend common = tostring(SystemAlertId)<br> )<br> on common<br> | project IncidentNumber, Entities, Title<br> | mv-expand parse_json(Entities)<br> | extend Type= tostring(Entities.Type)<br> | where Type == “account”<br> | extend AadUserId = tolower(tostring(Entities.AadUserId))<br> | where isnotempty(AadUserId)<br> | join kind=inner<br> (<br> IdentityInfo<br> | where TimeGenerated &gt; ago(90d)<br> | extend AadUserId = tolower(AccountObjectId)<br> | summarize arg_max(TimeGenerated, *) by AadUserId<br> )<br> on AadUserId<br> | project IncidentNumber, Title, AccountUPN<br>;<br>union MaxAlerts1, MaxAlerts2<br>| distinct IncidentNumber, Title, AccountUPN=tolower(AccountUPN)<br>| summarize AlertCount=dcount(IncidentNumber), Alerts=make_set(Title) by AccountUPN<br>| join kind=leftouter (<br> IdentityInfo<br> | where TimeGenerated &gt; ago(90d)<br> | extend x = tolower(AccountUPN)<br> | summarize arg_max(TimeGenerated, AccountName, RiskLevel, RiskState) by x<br> )<br> on $left.AccountUPN == $right.x<br>| project AccountUPN, AccountName, AlertCount, RiskState, RiskLevel, Alerts<br>| top 5 by AlertCount</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>SigninLogs<br>| where TimeGenerated &gt;ago(90d)<br>| where UserPrincipalName contains “<a href="/service/mailto:gowsikraj.n@hitachienergy.com">gowsikraj.n@hitachienergy.com</a>”<br>| extend ResultCode = Status.errorCode<br>| extend DeviceName = DeviceDetail.displayName<br>| extend SigninResult = iff((ResultCode == 0), “Successfully Login”, ResultDescription)<br>| extend DeviceName = iff((isnotempty(DeviceName)), DeviceName, DeviceDetail.operatingSystem)<br>| extend ParsedUserAgent = parse_user_agent(UserAgent, dynamic([“browser”,”os”,”device”]))<br>| extend UserAgent_browser = tostring(parse_json(tostring(ParsedUserAgent.Browser)).Family)<br>| extend UserAgent_device = tostring(parse_json(tostring(ParsedUserAgent.Device)).Family)<br>| extend UserAgent_OS = strcat(tostring(parse_json(tostring(ParsedUserAgent.OperatingSystem)).Family), “ “, tostring(parse_json(tostring(ParsedUserAgent.OperatingSystem)).MajorVersion))<br>| project TimeGenerated, IPAddress, Location, Identity, ResultCode, SigninResult, DeviceName, AppDisplayName, ClientAppUsed, MfaDetail, AuthenticationRequirement, AuthenticationDetails, UserAgent_browser, UserAgent_device, UserAgent_OS, Status, DeviceDetail,UserAgent<br>| order by TimeGenerated desc</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>let a = Usage<br>| where TimeGenerated between (todatetime(‘2024–08–01 00:00:00’) .. todatetime(‘2024–08–31 23:59:59’))<br>| summarize [‘Total Ingestion (GB)’]=round(sum(Quantity/1024),2) by DataType<br>| top 10 by [‘Total Ingestion (GB)’];<br>let b = Usage<br>| where TimeGenerated between (todatetime(‘2024–09–01 00:00:00’) .. todatetime(‘2024–09–30 23:59:59’))<br>| summarize [‘Total Ingestion (GB)’]=round(sum(Quantity/1024),2) by DataType<br>| top 10 by [‘Total Ingestion (GB)’];<br>let c = Usage<br>| where TimeGenerated between (todatetime(‘2024–10–01 00:00:00’) .. todatetime(‘2024–10–31 23:59:59’))<br>| summarize [‘Total Ingestion (GB)’]=round(sum(Quantity/1024),2) by DataType<br>| top 10 by [‘Total Ingestion (GB)’];<br>c</p><p>— — — — — — — — — — — — — — — — — — — — <br>SecurityIncident<br>|where TimeGenerated &gt;ago(90d)<br>| search “Email reported by user as malware or phish”<br>|summarize arg_max(TimeGenerated,*) by IncidentNumber</p><p>— — — — — — — — — — — — — — — — — — — — — — — -<br>incidentcount</p><p>SecurityIncident<br>| where CreatedTime between (datetime(“01/16/2025, 00:00:00 AM”)..datetime(“01/23/2025, 11:59:59 PM”))<br>| where isnotempty(Owner.email)<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where Severity &lt;&gt; “Informational”<br>| summarize ActiveCount = countif(Status == “Active”), ClosedCount = countif(Status == “Closed”) by tostring(Owner.email)<br>| sort by Owner_email</p><p>SecurityIncident<br>| where CreatedTime between (datetime(“01/24/2025, 00:00:00 AM”)..datetime(“01/30/2025, 11:59:59 PM”))<br>| where isnotempty(Owner.email)<br>| summarize arg_max(TimeGenerated, *) by IncidentNumber<br>| where Severity &lt;&gt; “Informational”<br>| summarize ActiveCount = countif(Status == “Active”), ClosedCount = countif(Status == “Closed”) by tostring(Owner.email)<br>| sort by Owner_email<br> — — — — — — — — — — — — — — — — — — — -</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9613974a03b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[//user signin ,office activity , auditlog, identityinfo,inbox rule ,cloudappevent,Azureactivity…]]></title>
            <link>https://medium.com/@kgaurav501/user-signin-office-activity-auditlog-identityinfo-inbox-rule-cloudappevent-azureactivity-d0fa6a745d44?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0fa6a745d44</guid>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 06:49:43 GMT</pubDate>
            <atom:updated>2025-03-20T06:49:43.474Z</atom:updated>
            <content:encoded><![CDATA[<p>//user signin ,office activity , auditlog, identityinfo,inbox rule ,cloudappevent,Azureactivity<br>let n = dynamic([“”]);//write user details in array format for this you can use summarize make_set() function in new query1 <br>let old = ago(30d);<br>let s = <br> SigninLogs<br> | where TimeGenerated &gt; old<br> | where UserPrincipalName has_any (n)<br> | extend ResultCode = Status.errorCode<br> | extend DeviceName = DeviceDetail.displayName<br> | extend SigninResult = iff((ResultCode == 0), “Successfully Login”, ResultDescription)<br> | extend DeviceName = iff((isnotempty(DeviceName)), DeviceName, DeviceDetail.operatingSystem)<br> | extend ParsedUserAgent = parse_user_agent(UserAgent, dynamic([“browser”, “os”, “device”]))<br> | extend UserAgent_browser = tostring(parse_json(tostring(ParsedUserAgent.Browser)).Family)<br> | extend UserAgent_device = tostring(parse_json(tostring(ParsedUserAgent.Device)).Family)<br> | extend UserAgent_OS = strcat(tostring(parse_json(tostring(ParsedUserAgent.OperatingSystem)).Family), “ “, tostring(parse_json(tostring(ParsedUserAgent.OperatingSystem)).MajorVersion))<br> | project-reorder<br> TimeGenerated,<br> Identity,<br> IPAddress,<br> Location,<br> ResultCode,<br> ResultDescription,<br> SigninResult,<br> DeviceName,<br> AppDisplayName,<br> ClientAppUsed,<br> MfaDetail,<br> AuthenticationRequirement,<br> DeviceDetail,<br> UserAgent,<br> AuthenticationDetails,<br> UserAgent_browser,<br> UserAgent_device,<br> UserAgent_OS,<br> Status,<br> LocationDetails,<br> UserPrincipalName<br> | order by TimeGenerated desc;<br>let ns=AADNonInteractiveUserSignInLogs<br> | where TimeGenerated &gt; old<br> | where UserPrincipalName has_any (n)<br> | project-reorder<br> TimeGenerated,<br> UserPrincipalName,<br> IPAddress,<br> ResultType,<br> ResultDescription,<br> Location,<br> NetworkLocationDetails,<br> DeviceDetail,<br> UserAgent,<br> AppDisplayName,<br> AuthenticationDetails,<br> CorrelationId,<br> AuthenticationRequirement,<br> RiskDetail,<br> RiskState;<br>// office activity start from here<br>let o = OfficeActivity<br> | where TimeGenerated &gt; old<br> | where UserId in~ (n)<br> | project-reorder<br> TimeGenerated,<br> UserId,<br> Operation,<br> ClientIP,<br> IsManagedDevice,<br> RecordType,<br> ItemType,<br> EventSource,<br> OfficeWorkload,<br> SourceFileName,<br> Site_Url,<br> SourceRelativeUrl,<br> OfficeObjectId,<br> UserAgent<br> | sort by UserId asc, TimeGenerated desc;<br>//auditlog<br>let a = AuditLogs <br> | where TimeGenerated &gt; old<br> | extend InitiatedByEntity = tostring(InitiatedBy.user.userPrincipalName)<br> | extend IPAddress = tostring(InitiatedBy.user.ipAddress)<br> | extend TargetedUser = tostring(extract(‘“userPrincipalName”:”([^”]+)”’, 1, tostring(TargetResources)))<br> | extend AllFields = strcat(tostring(InitiatedByEntity), “ “, tostring(TargetedUser), “ “, tostring(InitiatedBy.user), “ “, tostring(TargetResources))<br> | where AllFields has_any (n)<br> | project<br> TimeGenerated,<br> InitiatedByEntity,<br> LoggedByService,<br> IPAddress,<br> AADOperationType,<br> OperationName,<br> Category,<br> Result,<br> ResultDescription,<br> TargetedUser,<br> InitiatedBy,<br> TargetResources<br> | sort by TimeGenerated desc;<br>let i = IdentityInfo<br> | where TimeGenerated &gt; ago(90d)<br> | summarize arg_max(TimeGenerated, *) by tostring(AccountUPN)<br> | where AccountUPN in~(n) or MailAddress in~ (n)<br> | project-reorder<br> TimeGenerated,<br> AccountUPN,<br> AccountDisplayName,<br> UserType,<br> RiskLevel,<br> RiskState,<br> BlastRadius,<br> AssignedRoles,<br> JobTitle,<br> Department,<br> GroupMembership,<br> MailAddress,<br> AdditionalMailAddresses,<br> IsAccountEnabled,<br> CompanyName,<br> ChangeSource<br> | sort by AccountName asc, TimeGenerated desc;<br>//Rare and potentially high-risk Office operations<br>//write the user details here <br>let r=OfficeActivity <br> //change the time according to your requirement<br> | where UserId has_any(n)<br> | where TimeGenerated &gt; old<br> | where Operation has_any (“Add-MailboxPermission”, “Add-MailboxFolderPermission”, “Set-Mailbox”, “New-ManagementRoleAssignment”, “New-InboxRule”, “Set-InboxRule”, “Set-TransportRule”)<br> | extend details = parse_json(Parameters) <br> | extend ForwardTo = iif(details[0].Name contains ‘ForwardTo’, details[0].Value, iif(details[1].Name contains ‘ForwardTo’, details[1].Value, iif(details[2].Name contains ‘ForwardTo’, details[2].Value, iif(details[3].Name contains ‘ForwardTo’, details[3].Value, iif(details[4].Name contains ‘ForwardTo’, details[4].Value, ‘’))))) <br> | extend RedirectTo = iif(details[0].Name contains ‘RedirectTo’, details[0].Value, iif(details[1].Name contains ‘RedirectTo’, details[1].Value, iif(details[2].Name contains ‘RedirectTo’, details[2].Value, iif(details[3].Name contains ‘RedirectTo’, details[3].Value, iif(details[4].Name contains ‘RedirectTo’, details[4].Value, ‘’)))))<br> | extend RuleName = iif(details[3].Name contains ‘Name’, details[3].Value, iif(details[4].Name contains ‘Name’, details[4].Value, iif(details[5].Name contains ‘name’, details[5].Value, ‘Check Parameters’)))<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br> | extend SentTo<br> | extend SentTo = iif(details[0].Name contains ‘SentTo’, details[0].Value, iif(details[1].Name contains ‘SentTo’, details[1].Value, iif(details[2].Name contains ‘SentTo’, details[2].Value, iif(details[3].Name contains ‘SentTo’, details[3].Value, iif(details[4].Name contains ‘SentTo’, details[4].Value, ‘’))))) <br> | extend SentTo<br> | extend MoveTofolder = iif(details[0].Name contains ‘MoveToFolder’, details[0].Value, iif(details[1].Name contains ‘MoveToFolder’, details[1].Value, iif(details[2].Name contains ‘MoveToFolder’, details[2].Value, iif(details[3].Name contains ‘MoveToFolder’, details[3].Value, iif(details[4].Name contains ‘MoveToFolder’, details[4].Name, ‘’))))) <br> | extend Fullaccess = iif(details[0].Name contains ‘AccessRights’, details[0].Value, iif(details[1].Name contains ‘AccessRights’, details[1].Value, iif(details[2].Name contains ‘AccessRights’, details[2].Value, iif(details[3].Name contains ‘AccessRights’, details[3].Value, iif(details[4].Name contains ‘AccessRights’, details[4].Name, ‘’))))) <br> | extend Rule = iif(<br> ForwardTo != ‘’,<br> ‘Forward’,<br> iif(<br> SentTo != ‘’,<br> ‘Sent’,<br> iif(MoveTofolder != ‘’, ‘MoveToFolder’, iif(Fullaccess != ‘’, ‘FullAccess’, “”))<br>)<br> )<br> | extend RuleParameters = iif(details[2].Name != ‘ForwardTo’ and details[2].Name != ‘RedirectTo’, strcat(tostring(details[2].Name), ‘-’, tostring(details[2].Value)), iif(details[3].Name != ‘ForwardTo’ and details[3].Name != ‘RedirectTo’ and details[3].Name != ‘Name’, strcat(tostring(details[3].Name), ‘-’, tostring(details[3].Value)), iff(details[4].Name != ‘ForwardTo’ and details[4].Name != ‘RedirectTo’ and details[4].Name != ‘Name’ and details[4].Name != ‘StopProcessingRules’, strcat(tostring(details[4].Name), ‘-’, tostring(details[4].Value)), ‘All Mail’))) <br> | project<br> TimeGenerated,<br> Operation,<br> RuleName,<br> Rule,<br> Sent_to=SentTo,<br> RuleParameters,<br> iif(details contains ‘ForwardTo’, ForwardTo, RedirectTo),<br> ClientIP,<br> UserId,<br> details<br> | project-rename Rule_CreatedBy_User = UserId, Email_Forwarded_To = Column1<br> | project-reorder<br> TimeGenerated,<br> Operation,<br> Rule,<br> RuleName,<br> RuleParameters,<br> Rule_CreatedBy_User,<br> Email_Forwarded_To,<br> Sent_to,<br> ClientIP,<br> details;<br>let c=CloudAppEvents<br> | where TimeGenerated &gt; ago(2d)<br> | extend ParsedData = parse_json(RawEventData) <br> | extend UserId = tostring(ParsedData.UserId) <br> | extend ClientIP = tostring(ParsedData.ClientIP) <br> | where UserId in (n) <br> | project-reorder<br> TimeGenerated,<br> AccountDisplayName,<br> UserId,<br> ActivityObjects,<br> IsExternalUser,<br> ISP,<br> CountryCode,<br> IPAddress,<br> ObjectName,<br> ObjectType,<br> ActivityType,<br> AccountType,<br> RawEventData; <br>let az=<br> AzureActivity<br> | where Caller has_any (n)<br> | project-reorder<br> TimeGenerated,<br> OperationNameValue,<br> CallerIpAddress,<br> ActivityStatusValue,<br> ResourceGroup,<br> SubscriptionId;<br>// To fetch the processed data: <br>//shortcut for logs — — — s- signin ,ns-nonintractive signinlogs ,o-office activity , a-auditlog, i=identityinfo,r-inbox rule ,c-cloudappevent,az-Azureactivity — — — — — — — — — <br>ns</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0fa6a745d44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Meesho Clone website]]></title>
            <link>https://medium.com/@kgaurav501/building-meesho-clone-website-78efa85687d6?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/78efa85687d6</guid>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Sat, 07 May 2022 19:11:30 GMT</pubDate>
            <atom:updated>2022-05-09T15:23:10.211Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone,</p><p>I’m happy to share with you all that we as a team were able to build Meesho, an Online shopping website in just 5 days with all the functionalities and pages as in the original website!. Yeah, you read that right, and all the credits go to our wonderful team members which included 6 Developers.</p><p>The name of the project is Meesho. Meesho is India’s online delivery marketplace, where we can sell and buy different types of products. The project was executed by 6 members in 5 days. They are:</p><h3>Developers</h3><ol><li>Jaynika Tandel</li><li>Kumar Gaurav (me)</li><li>Ronak dodeja</li><li>Akash Patil</li><li>Harapriya Sahu</li><li>Chandu Sarihaddu</li></ol><p>We are all students at Masai School and currently, we are in Unit-4, so at the end of each unit, we will be assigned a project to build using all the concepts we learned in that particular unit.</p><p>When we received Meesho the website to clone first thing we did was go through the flow of the actual website and we distributed the tasks among ourselves. Next, we had a meeting with our Team members daily to get updated.</p><p>Then, coming to the <strong><em>Tech Stack</em> </strong>to be used, we used frameworks and libraries that all 6 devs were familiar with for the development, they are</p><ol><li><strong>JavaScript</strong></li><li><strong>HTML</strong></li><li><strong>CSS</strong></li><li>React</li><li>React-redux</li><li>Material UI</li></ol><p>Using the above tools and frameworks we were able to implement a lot of features and build dynamic web pages, following are the <strong><em>features </em></strong>we included in our project.</p><ol><li>Users can Check different types of Products.</li><li>Users can easily buy products.</li><li>Responsive pages.</li></ol><p>We created several features like the navbar where you could find different products by typing the name of the product in the box and it would filter the same and show results.<br>We also have a carousel display, where, by clicking the right arrow one can view the next image, and by clicking on the left arrow one can view the previous image.<br>It also has a footer page where you can check different options.<br>It also has a payment feature where you have the option of making a payment via debit/credit card. You can fill in your details and make the payment after which your order shall be placed,</p><p>So that’s the basic information of what our project includes. Now, let’s walk through how the flow goes. To make it easier to understand, I have added the screen snippet of different pages, you can have a look at them in the below section.</p><h3>SNIPPETS</h3><p><strong>1 Navbar Page</strong></p><p>First of all, you can see here, there is a navbar where you can see the Porter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2hRVgDqO3HhoCJKf5A7SQ.jpeg" /><figcaption>navbar</figcaption></figure><p>2. product page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iCObd3w9LmTlHYj9DzCTg.jpeg" /></figure><p>2. log in and signup page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OmlxgBDhjN7ocqWXd-rasQ.jpeg" /></figure><p>3 product details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*At8kTO78E2rWKl8eFGY_7g.jpeg" /></figure><p>thanks…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78efa85687d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building porter.in Clone website]]></title>
            <link>https://medium.com/@kgaurav501/building-porter-in-clone-website-79cc9fdc28d5?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/79cc9fdc28d5</guid>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Fri, 01 Apr 2022 10:30:20 GMT</pubDate>
            <atom:updated>2022-04-04T10:02:07.205Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone,</p><p>I’m happy to share with you all that we as a team was able to build porter.in, Online courier services website in just 5 days with all the functionalities and pages as in the original website!. Yeah, you read that right, and all the credits go to our wonderful team members which included 6 Developers.</p><p>The name of the project is a porter. in. Porter is India’s largest online delivery marketplace, connecting buyers with suppliers. The project was executed by 6 members in 5 days. They are:</p><h3>Developers</h3><ol><li>Swati Saulanki</li><li>Kumar Gaurav (me)</li><li>Prakash Dsouza</li><li>Akash Patil</li><li>Bharat Razodkar</li><li>Nitesh Singh Rawat</li></ol><p>We are all students at Masai School and currently, we are in Unit-3, so at the end of each unit, we will be assigned a project to build using all the concepts we learned in that particular unit.</p><p>When we received porter. in the website to clone first thing we did was go through the flow of the actual website and we distributed the tasks among ourselves. Next, we had a meeting with our Designers and have gone through the designs prepared by them, no doubt both of them created beautiful layouts for us.</p><p>Then, coming to the <strong><em>Tech Stack</em> </strong>to be used, we used frameworks and libraries that all 6 devs were familiar with for the development, they are</p><ol><li><strong>JavaScript</strong></li><li><strong>HTML</strong></li><li><strong>CSS</strong></li></ol><p>Using the above tools and frameworks we were able to implement a lot of features and build dynamic web pages, following are the <strong><em>features </em></strong>we included in our project.</p><ol><li>Users can link their Paytm wallet for payment.</li><li>Users can Book a porter to deliver the commodity.</li><li>Users can easily book tempo and two-wheeler in 30 seconds.</li><li>Responsive pages.</li></ol><p>We created several features like the navbar where you could find different tempos by typing the name of the tempo in the box and it would filter the same and show results.<br>We also have a carousel display, where, by clicking the right arrow one can view the next image, and by clicking on the left arrow one can view the previous image.<br>It also has a footer page where you can register the problems that you may face while purchasing a tempo for the courier<br>It also has a payment feature where you have the option of making a payment via debit/credit card. You can fill in your details and make the payment after which your order shall be placed,</p><p>So that’s the basic information of what our project includes. Now, let’s walk through how the flow goes. To make it easier to understand, I have added the screen snippet of different pages, you can have a look at them in the below section.</p><h3>SNIPPETS</h3><p><strong>1 Navbar Page</strong></p><p>First of all, you can see here, there is a navbar where you can see the Porter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*q529owEodjB1p9Ww.png" /></figure><h3>2. City Tempo</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*ig_7IXV0vRxrE4zg.png" /></figure><h3>3. Packers &amp; Movers</h3><p>Here you can see this is Porter’s Packers and Movers Page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*S9apUi8a45VpIHw8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*jxHW3h-JwqqVywwY.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*5sNgY3gHsi-pOjvx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*TdzuELhpsbWMg7sU.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*VZn9JRTbr-XuTPnB.png" /></figure><h3>4. Driver Partners</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*txnf-REKvODfccH0.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*Bqf0RHyPDa1rA3p5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*OXHG6RfwNHa4XKas.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*GrVpu_hRPV5Z6Egy.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*OvfGFBFyprM3eZRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*UAUwoACmnzaL5W5D.png" /></figure><h3>5. For Enterprises</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*ldY6jUBcBSQGwsM_.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*JGvQKR_03Ly8QbrW.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*OZ3rija-7aWWjlrk.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*FT7p0KwDLnQJIXVl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*ZqIYy4mvxM0ABUcx.png" /></figure><h3>6. Support</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*fc4uM4ONAYjuy2h_.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*F1xnfc-W5ve3WT7X.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*BTWA091neX6EaRyO.png" /></figure><h3>7. Track Order</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*dPraeO50aZkJoFLk.png" /></figure><h3>8. Pickup and drop anywhere within the city</h3><p>Here you can book tempo your location for the courier. It will arrive in 30 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/0*VwfFGrpxWhmnf9XU.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*6bB3YJhpGSXLq3_1.png" /></figure><h3>9. What We Offer</h3><p>Here You can see all facilities are available for users, whenever users want to deliver their luggage, a courier whatever users want, just you have to click the two-wheeler, three-wheeler whatever you want then book your two-wheeler and your two-wheeler will be arriving in 30 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*frLhj5TKIlLOsMhp.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*a3FD0yYECZnhUnIR.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*hRR1UPrko5ZuyK_E.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*u0pC9coTf0aOD01R.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*AgJ5iVlZ7yHQa4fI.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*8Vk52iZWqrFvDtMz.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*zzlFg89Pqd5RA-0G.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*18tRG-WsWF5Oabr6.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*7J6zfarTtxRycrCZ.png" /></figure><h3>10. Cities</h3><p>We are present right where you need us and care of all your logistics requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*NAQn3zlZnUPIhzI1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*bPVc9A8FwMFHcfV7.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*h-XB4lR52_fRB9A9.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*XblRl2CI4OCp9BSU.png" /></figure><h3>11. FAQ</h3><p>Here users can talk about their queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*XbPmE6w3f1nHzLJ3.png" /></figure><h3>12. Footer</h3><p>This footer is coming on all pages making it easy to check other pages easily.</p><p>Whenever you have a problem like booking tempo, a two-wheeler whatever you have to problem. We are here to help you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*LpRTYkmWhgQdgn1n.png" /></figure><h3>Outcomes of the project</h3><p>By the time we completed this project we were able to understand the core concept of javaScript for web pages and many other things.</p><p>We also learned how to coordinate and work as a team with design pages based on their research and help developers to build user-friendly and beautiful websites.</p><p>I am very thankful to all of our Instructors, I’As, and team members in Unit 3.</p><p>github-<a href="https://github.com/Kgaurav113/porter--clone">https://github.com/Kgaurav113/porter--clone</a></p><p>netlify -link-<a href="https://beautiful-rabanadas-160fc9.netlify.app/">https://beautiful-rabanadas-160fc9.netlify.app/</a></p><h3>Thank you for reading it to the end, your suggestions and constructive feedback to improve our project are always welcomed.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79cc9fdc28d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be Bodywise website clone]]></title>
            <link>https://medium.com/@kgaurav501/be-bodywise-website-clone-3ba298383e78?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ba298383e78</guid>
            <category><![CDATA[clone-script-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[masai-school]]></category>
            <category><![CDATA[website-clone-development]]></category>
            <category><![CDATA[bebody-clone]]></category>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 13:51:01 GMT</pubDate>
            <atom:updated>2022-02-25T13:51:01.527Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hello everyone,</strong></p><p>Hope all of you are doing good in your life. first, we would like to thank Masai School for giving us a golden opportunity to work as a team to clone a website in the given period. I am going to share my construct week experience with you. we created our first project<strong><em> BE BODYWISE </em></strong>website clone in construct week at Masai School. this blog is all about our experience during this construct week. In this construct week, we all work in a team and we learn so many things in this week, Before this construct week, we knew only basic concepts of HTML, CSS, and JAVASCRIPT, but this week we work as a team and learned more things. one thing we learned is that teams give us more strength.</p><blockquote><strong>Now meet our team members:-</strong></blockquote><ol><li>Kumar Gaurav</li><li>Rahul Sinha</li><li>Samson Seemal</li><li>Kiran Das</li><li>Narayan Chatalwal</li><li>Amitabh Ranjan</li></ol><blockquote><strong><em>Technology we used in this project:-</em></strong></blockquote><ol><li>HTML</li><li>CSS</li><li>Java Script</li><li>local storage</li></ol><blockquote><strong>INTRODUCTION</strong></blockquote><p>We worked on cloning a BODYWISE website. This website is mainly for women, where they provide women health-related products and services. in this project, we used HTML, CSS, JAVASCRIPT which we have merged by using GITHUB .our project is dynamic and responsive in work.</p><blockquote><strong>HOW WE WORK AS A TEAM :-</strong></blockquote><p>we had seven days to work on our project. This was the first experience for us to work on such a complex project and before this project, we hadn&#39;t any previous work experience in teamwork, but when we started working on this project, we learned lots of things. we assigned the work to every member.</p><blockquote><strong>Some screenshots of our project :-</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ln_egYPhvn20CFpL5ABrSA.png" /><figcaption>landing page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnQCB6a1eAexICrzrUZ_tw.png" /><figcaption>product page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vtXsuiDmr-7--oHViOdpDw.png" /><figcaption>homepage part</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9C6n4ufF5t6VfXjjwN3dQ.png" /><figcaption>take wellness assessment</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MNwCFyPYkfI0ula8p13okQ.png" /><figcaption>all product section</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*twbLApM9XlYXK9dM8WT8WQ.png" /><figcaption>refer and earn page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*7BsQCfyQKEh6pgo0aXgS_g.png" /><figcaption>cart page</figcaption></figure><blockquote><strong>HOW WAS THE EXPERIENCE :-</strong></blockquote><p>First, we connect on zoom and we planned the whole week&#39;s schedule and divide the work among each other . Most of the dynamic part of the website was made by Rahul Sinha because he knows the js part well . I made the homepage banner and some div parts of the homepage and take the wellness assessment page and Blog writing . Samson did the footer part, Kiran Das made all div parts of the landing page. Narayan created objects of products and banners for the landing page. Amitabh Ranjan made a doctor consultant page and some div parts.</p><blockquote><strong>WHAT WE LEARNT FROM THIS PROJECT :-</strong></blockquote><p>In unit 2 we were only working on a small assignment like Todo task, form, login, signup page, etc. but when we got a chance to work as a team on this project, we implemented the whole concepts whatever we learned during unit 2 . whenever we faced any issues during this project we helped each other and also we learned lots of things from internet about function and some concepts which we are used in this project. now we know team effort can solve any problem because at the beginning of the construct week we were thinking that how? we will make this project, but when we started working as a team it was very easy to make. now we are good friends.</p><blockquote><strong>CONCLUSION :-</strong></blockquote><p><em>Overall we can say that this was a memorable week for us. we gave more than a hundred percent during this week. we made this website the same as the original, some part of a clone is static because in the given time period and how much we know it was very complex, but definitely, you will love our work. we are looking forward to working as a team in the future unit. Thanks to my team members.</em></p><p>……………………………….THANK YOU ……………………………….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ba298383e78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Today motivation]]></title>
            <link>https://medium.com/@kgaurav501/today-motivation-87a03ae91318?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/87a03ae91318</guid>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 04:06:50 GMT</pubDate>
            <atom:updated>2022-01-05T04:06:50.844Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Today motivation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJuErLEagW-rnGHYjpXPbQ.jpeg" /></figure><p>If you don’t know anything just follow the path on which most of successful person follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87a03ae91318" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience at Masai School(From Foundation to Unit 1)]]></title>
            <link>https://medium.com/@kgaurav501/my-experience-at-masai-school-from-foundation-to-unit-1-4d5499777957?source=rss-5553f3df453e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d5499777957</guid>
            <category><![CDATA[masai-school]]></category>
            <dc:creator><![CDATA[Kgaurav]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 13:40:08 GMT</pubDate>
            <atom:updated>2022-01-05T08:15:40.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, Hope you all are doing well in your life, I’m Kumar Gaurav from Jharkhand, and Currently, I’m in Unit-1 and just come crossed from the Foundation Batch.</p><p><a href="https://medium.com/u/490792d7e4d5?source=post_page-----7773ba84d82-----------------------------------">Masai School</a></p><p><strong>Before joining Masai School:-</strong></p><p>After completing my graduation in instrumentation engineering, I was preparing for government exams but giving two or three years in preparation. I didn’t get success and so I decided to acquire some skills in coding because during my graduation I learned some basics of programming, then I searched about any institutes where I can learn these skills and also I wanted to get a job because due to year gap I was unable to get any job in IT sectors.</p><p><strong>Why did I join Masai?</strong></p><p>I’ve already learned some coding language during my graduation and also I wanted to work in any IT sectors. so when I knew about Masai, then I gave MSAT exam, but due to less preparation I didn’t clear MSAT, But Masai give me a golden opportunity to join the foundation batch when I joined the foundation batch, during that I learned math, logic reasoning, python.</p><p><strong>What did I learn till now?</strong></p><p>We have learned a lot of things in these 6 weeks i.e math, some coding practice in python, and the most important part is the first time I was doing logical games like Sudoku, Tic-Tak-Toe, and Tower of Hanoi and blood relation and direction questions and last of foundation batch they teach us basic python programming.</p><p><strong>Where do I feel Masai doing good?</strong></p><p>The most important things in cooperate world are you have to be good in communication skill. so in Masai, there is a separate session for improving our communication skills, during skillathon class I learned so many things and also it help me to improve my communication skill. Especially during skillathon class, they put you in a breakout room to communicate with each other which helped me to interact with different types of students, and due to this, my shy nature decreased gradually. when I come to coding class it is going well till now. I am learning Javascript and DSA .varun batt sir teaching in simple ways and also he is giving us some daily life examples like father and son concept or mother and son example.</p><p><strong>how am I following the 9–9–6 curriculum?</strong></p><p>Before joining Masai I was so lazy most of the time I used to sleep, But after joining Masai my daily routine has changed, In the beginning, there were many problems I faced like a network issue because I was using mobile data and when I seat for a long time my back pain occurs and also most of the time after completing whole day classes I faced headache, But in the scrum, Yogesh sir told us just do for 21 days it will have become your habit. he always motivates us during scrum which starts on 9 am daily. it’s not about only 9–9–6 when you come to Masai you live your whole day as a programmer.</p><h3>What is my experience till now?</h3><p>My 6 weeks experiences at the Masai school are like a mix of khichdi some time I loved to do programming, but when I got stuck, it demotivate me, but in Masai, there is some support system like IA standup where I cleared my doubts. at last, I want to add some points that if you are having some coding experience in past then it will help you in a tough situation Because the curriculum is a little bit tough to survive. you have to manage lots of things in 24hrs like completing your assignments, quizzes, and some basic documentation. only Time management part I am facing problem till now.</p><p><strong>Special about My foundation batch</strong></p><p>The Foundation batch was a beautiful part of my Masai journey where I met some good friends and it gives me much more motivation to my all unit and the foundation batch made my Masai journey a little bit easy.</p><p>THANK YOU</p><p><strong>kumar Gaurav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d5499777957" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>