Today Greynoise released a community edition of their API, I saw this flying by on Twitter and immediately decided to blog about it. I love it when vendors make major data points available for everyone, especially when the data could be super useful in security investigations.
I’ve decided to make a blog on how you can monitor the IP reputation of all remote connections to a machine. You can then use this data to either block specific IP addresses, or add them to your filters so your SIEM or logging solution doesn’t get clogged up with useless information.
The script has a couple of other use cases too, It seems that Greynoise API also shows if the IP has a bad reputation or not. You can use the script below to automatically add all malicious IPs to your firewall, that way you’ll have a little bit of extra security against those pesky scanning and spamming IPs.
Of course this can be achieved with any other tool too, but I really like that Greynoise is opening up a bit more of community data, this can improve us all.
You can run the script using your RMM system, as with most of my blogs. You can add any invalid IP to the list too, in case it’s required.
And that’s it. As always, Happy PowerShelling!