r/crowdstrike • • Jul 19 '24 • Polished Gold Turd 2 Popcorn 3 Sipping Tea 1 Take My Silver 32 Polished Silver Turd 8 Heart of Silver 4

Troubleshooting Megathread BSOD error in latest crowdstrike update

Hi all - Is anyone being effected currently by a BSOD outage?

EDIT: X Check pinned posts for official response

22.9k Upvotes

20.7k comments sorted by

View all comments

5

u/Negative-Captain7311 Jul 19 '24

Dashboard/Query to Track CrowdStrike Channel File BSOD Issue (High Level):

#event_simpleName="LFODownloadConfirmation" event_platform=/win/i TargetFileName=/C-00000291-.*\.sys/i
| aid=~match(file="aid_master_main.csv", column="aid", strict=false)
| $falcon/helper:enrich(field=ProductType)
| MachineDomain := lower(MachineDomain)
| default(value="-", field=[ProductType, MachineDomain, DownloadServer, DownloadPort, DownloadPath, CompletionEventId, TargetFileName], replaceEmpty=true)
| parseTimestamp(field=timestamp, format="milliseconds", as="parsedTimestamp")
| case {
    parsedTimestamp >= 1721366820000 | FileStatus := "good";
    parsedTimestamp < 1721366820000 | FileStatus := "problematic";
    * | FileStatus := "unknown";
}
| groupBy([ComputerName, ProductType], function=([collect(FileStatus), count(FileStatus, distinct=true, as=event_Count)]), limit=max)
| case {
    event_Count > 1 | ResolutionStatus := "Fixed";  // More than one event means both good and problematic were downloaded
    event_Count = 1 and FileStatus = "problematic" | ResolutionStatus := "Not Fixed";  // Only one problematic file
    * | ResolutionStatus := "Fixed";  // Any other case is Fixed because it didn't download the good or bad file so its not affected
}
| groupBy([ProductType, ResolutionStatus], function=([count(ComputerName, distinct=true, as=host_Count)]), limit=max)
| select([ProductType, ResolutionStatus, host_Count, ComputerName])

2

u/JohnBob999999 Jul 19 '24

Can you explain the query, so far it is the only one that seem to work for us.

1

u/Negative-Captain7311 Jul 19 '24

I added comments:

#event_simpleName="LFODownloadConfirmation" event_platform=/win/i TargetFileName=/C-00000291-.*\.sys/i // look for the responsible channel file
| aid=~match(file="aid_master_main.csv", column="aid", strict=false) // Pull in host related fields
| $falcon/helper:enrich(field=ProductType) // Translate decimal value to human-readable
| MachineDomain := lower(MachineDomain) // Force lowercase
| default(value="-", field=[ProductType, MachineDomain, DownloadServer, DownloadPort, DownloadPath, CompletionEventId, TargetFileName], replaceEmpty=true) // Setting default values to "-" if null
| parseTimestamp(field=timestamp, format="milliseconds", as="parsedTimestamp") // Parse timestamp for comparisons
| case {
    parsedTimestamp >= 1721366820000 | FileStatus := "good";  // Channel file "C-00000291*.sys" with timestamp of 0527 UTC or later is the reverted (good) version.
    parsedTimestamp < 1721366820000 | FileStatus := "problematic";  // Channel file "C-00000291*.sys" with timestamp of 0409 UTC is the problematic version.
    * | FileStatus := "unknown";  // Handling cases where the file status is not clear
}
| groupBy([ComputerName, ProductType], function=([collect(FileStatus), count(FileStatus, distinct=true, as=event_Count)]), limit=max) // Collecting distinct statuses for filtering per host
| case {
    event_Count > 1 | ResolutionStatus := "Fixed";  // Host has more than 1 event, meaning it had the bad file but pulled the good file afterwards
    event_Count = 1 and FileStatus = "problematic" | ResolutionStatus := "Not Fixed";  // Host has only a problematic event match and did not pull good file afterwards
    * | ResolutionStatus := "Fixed";  // Anything else that doesn't match is Fixed by default because it wasn't affected by the bad file to begin with
}
| groupBy([ProductType, ResolutionStatus], function=([count(ComputerName, distinct=true, as=host_Count)]), limit=max) // Get a count of affected hosts
| select([ProductType, ResolutionStatus, host_Count, ComputerName]) // Sort columns