This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nice Sophos DB query's

I though it would be nice to share some of the query's I made to collect data from the Sophos 4.5 database.

Web content scanner
Description:
Shows all the Internet Explorer BHO web content scanner detections in one list sorted by date of detection.
Query:
(SELECT tb1.name As Computer, tb2.ThreatName, tb2.FullFilePath, tb2.FirstDetectedAt AS FirstDetectedAt
FROM ComputersAndDeletedComputers AS tb1, Threats AS tb2
WHERE tb2.FullFilePath LIKE 'h__%'
AND tb2.ComputerID = tb1.ID)
UNION
(SELECT tb1.name AS Computer, tb2.ThreatName, tb2.FullFilePath, tb2.FirstDetectedAt AS FirstDetectedAt
FROM ComputersAndDeletedComputers AS tb1, ThreatsArchive AS tb2
WHERE tb2.FullFilePath LIKE 'h__%'
AND tb2.ComputerID = tb1.ID)
ORDER BY FirstDetectedAt DESC
Example Result:
PC1000 - Mal/Badsrc-C - h__p://evilwebsite.com - 18-7-2010 23:29

If you have some query's please share.

If you are a database guru and have comment on the way I constucted my query please let me know :smileyhappy:

:4050


This thread was automatically locked due to age.
Parents
  • HIPS detections with checksum

    Description:

    Shows all HIPS detections. Includes files version and checksum.

    Query:

    SELECT tb1.name As Computer, tb2.FirstDetectedAt, tb2.ThreatName, tb2.FullFilePath, tb2.FileVersion, tb2.CheckSum
    FROM ComputersAndDeletedComputers AS tb1, ThreatInstancesAll AS tb2
    WHERE tb2.ThreatType = 4
    AND tb2.ComputerID = tb1.ID
    ORDER BY tb2.FirstDetectedAt DESC

    Example Result:

    PC1000 - 21-7-2010 14:52 - HIPS/RegMod-013 - c:\WINDOWS\system32\drivers\xtouch.sys - 4.03.07.3203 built by: WinDDK - a607af8012bbd8ba1800d8f759f9b354

    Remarks:

    I find the checksum (md5 hash) useful for a quick check on Virustotal.

    http://www.virustotal.com/buscaHash.html

    :4106
Reply
  • HIPS detections with checksum

    Description:

    Shows all HIPS detections. Includes files version and checksum.

    Query:

    SELECT tb1.name As Computer, tb2.FirstDetectedAt, tb2.ThreatName, tb2.FullFilePath, tb2.FileVersion, tb2.CheckSum
    FROM ComputersAndDeletedComputers AS tb1, ThreatInstancesAll AS tb2
    WHERE tb2.ThreatType = 4
    AND tb2.ComputerID = tb1.ID
    ORDER BY tb2.FirstDetectedAt DESC

    Example Result:

    PC1000 - 21-7-2010 14:52 - HIPS/RegMod-013 - c:\WINDOWS\system32\drivers\xtouch.sys - 4.03.07.3203 built by: WinDDK - a607af8012bbd8ba1800d8f759f9b354

    Remarks:

    I find the checksum (md5 hash) useful for a quick check on Virustotal.

    http://www.virustotal.com/buscaHash.html

    :4106
Children
No Data