Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix m365d/mde hunting query options #702

Merged
merged 13 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions msticpy/data/queries/m365d/kql_m365_hunting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ defaults:
metadata:
data_source: 'hunting_queries'
parameters:
start:
description: Query start time
type: datetime
end:
description: Query end time
type: datetime
# The m365d hunting queries doesn't use start and end time param, time range is implemented statically.
Tatsuya-hasegawa marked this conversation as resolved.
Show resolved Hide resolved
#start:
# description: Query start time
# type: datetime
#end:
# description: Query end time
# type: datetime
add_query_items:
description: Additional query clauses
type: str
Expand Down Expand Up @@ -429,7 +430,7 @@ sources:
makeset(Command), count(), min({time_column}) by
AccountName, DeviceName, DeviceId
| order by AccountName asc
| where min_Timestamp > ago(1d)
| where min_{time_column} > ago(1d)
{add_query_items}'
uri: "https://github.com/microsoft/WindowsDefenderATP-Hunting-Queries/blob/master/Lateral%20Movement/ServiceAccountsPerformingRemotePS.txt"
parameters:
Expand Down
13 changes: 7 additions & 6 deletions msticpy/data/queries/mde/kql_mdatp_hunting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ defaults:
metadata:
data_source: 'hunting_queries'
parameters:
start:
description: Query start time
type: datetime
end:
description: Query end time
type: datetime
# The mde hunting queries doesn't use start and end time param, time range is implemented statically.
#start:
# description: Query start time
# type: datetime
#end:
# description: Query end time
# type: datetime
add_query_items:
description: Additional query clauses
type: str
Expand Down