Valid query to check for outdated AV signatures on Linux machines

Wojciech Rozanski 75 Reputation points
2023-08-08T10:04:06.4466667+00:00

Hello,

I am looking for a query that will show me outdated AV signatures on Linux machines.

I found this query: https://github.com/alexverboon/MDATP/blob/master/AdvancedHunting/MDE%20-%20Outdated%20Defender%20Signatures.md but it does not provide accurate results.

As an example, I just ran it now and here are the results:

User's image

Those signatures have been released yesterday. From within the VM everything is in order:

User's image

Does anyone perhaps have a different query and would be willing to share?

Thank you,

Wojciech

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,518 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 35,591 Reputation points Microsoft Employee
    2023-08-09T16:13:35.1233333+00:00

    @Wojciech Rozanski Got an alternate query to achieve the above outcome.

    DeviceTvmInfoGathering

    | where OSPlatform in ("Linux")

    | where LastSeenTime >= ago(7d)

    | join (DeviceInfo | where isnotempty(OSVersion) |summarize arg_max(Timestamp, *) by DeviceId) on DeviceId

    | where OnboardingStatus == "Onboarded"

    | extend AvMode = iif(tostring(AdditionalFields.AvMode) == '0', 'Active', iif(tostring(AdditionalFields.AvMode) == '1', 'Passive',iif(tostring(AdditionalFields.AvMode) == '2', 'Disabled', iif(tostring(AdditionalFields.AvMode) == '5', 'PassiveAudit',iif(tostring(AdditionalFields.AvMode) == '4', 'EDR Block Mode' ,'Unknown')))))  

    | extend PlatformVersion =tostring(AdditionalFields.AvPlatformVersion)

    | extend SignatureVersion = tostring(AdditionalFields.AvSignatureVersion)

    | extend EngineVersion = tostring(AdditionalFields.AvEngineVersion)

    | where AvMode != "Unknown" and isnotempty(PlatformVersion)

    | project DeviceName, OSPlatform, AvMode,OSVersion, LastSeenTime, PlatformVersion, SignatureVersion, LastSigUpdate = AdditionalFields.AvSignatureUpdateTime , EngineVersion

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Givary-MSFT 35,591 Reputation points Microsoft Employee
    2023-08-09T12:23:55.5533333+00:00

    @Wojciech Rozanski Thank you for reaching out to us, just check if this query mentioned over here - https://jeffreyappel.nl/microsoft-defender-for-endpoint-series-defender-vulnerability-management-part5/#:~:text=Parsed_json%20KQL%20query%20for%20SCID%2D2011%20%E2%80%93%20Query%20with%20extracted/%20parsed%20%E2%80%9Ccontext%E2%80%9D%20field%3A helps to get the accurate results, in the meantime I will check with my team internally on this requirement.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.