Has anyone got a clever way to create Policies bas...
# fleet
j
Has anyone got a clever way to create Policies based on vulnerable Windows OS versions? macOS has that nice
sofa​_unpatched​_cves
table but Windows doesn't seem to have something similar. I assume the best way is to write something like this that you keep up to date manually with known vulnerable versions?
Copy code
SELECT 
    hostname,
    version,
    build,
    CASE 
        WHEN build < '19041' THEN 'Critical - Windows 10 < 2004'
        WHEN build < '19042' THEN 'High - Missing security updates'
        WHEN build < '22000' THEN 'Medium - Windows 10 EOL approaching'
        ELSE 'Current'
    END as vulnerability_status
FROM os_version 
WHERE platform = 'windows'
👀 1
m
Hello @JJ! That is correct, currently there is not a Windows equivalent for the macOS sofa_unpatched_cves table. In my opinion I think you're approach should work as expected. Going to double check with the team but in the meantime leave some room for the community to respond if there are any other creative ways of addressing it.