Skip to content

Instantly share code, notes, and snippets.

@ecapuano
Created June 1, 2022 00:23
Show Gist options
  • Save ecapuano/fc0cde0e9293bff8b01783cf8666d214 to your computer and use it in GitHub Desktop.
Save ecapuano/fc0cde0e9293bff8b01783cf8666d214 to your computer and use it in GitHub Desktop.
Velociraptor Unsigned Processes w/VT Lookups
// Run against hunt results from Windows.System.Pslist
// Note: Returns ONLY unsigned processes, which minimizes less critical API calls
// Use's the server side enrichment artifact 'Artifact.Server.Enrichment.Virustotal' from @therealwlambert
LET VTKey <= "$apikey"
LET Results = SELECT Pid,Ppid,TokenIsElevated,Name,CommandLine,Exe,Hash.SHA256 AS SHA256, Authenticode, Username FROM source()
WHERE NOT Authenticode.Trusted = "trusted" // unsigned binaries
LIMIT 50
SELECT *, {SELECT * FROM Artifact.Server.Enrichment.Virustotal(VirustotalKey=VTKey, Hash=SHA256) } AS VTResults FROM foreach(row=Results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment