News for hackers. Stuff that matters.
Re:API providing threat analysis of any given IP address by AnkhMorporkian on Saturday August 06, 2016 @02:58PM (#12239385)
I like this, but I have to tell you what I've been looking for in one of these services for forever.

I help develop a fairly popular webgame. One of our biggest headaches is people who are evading bans by using VPNs (public or not), VPSes, etc. Although we've outright blocked some large chunks of IPs (AWS, for instance), I've never seen a good service that identifies those specific blocks. Sometimes I go manually digging in the case of serious ban evaders, looking up the owners of specific IP blocks, but boy it'd be convenient if there was a service out there that did that.

Re:API providing threat analysis of any given IP address by wtbob on Saturday August 06, 2016 @05:21PM (#12239993)
> One of our biggest headaches is people who are evading bans by using VPNs (public or not), VPSes, etc. Although we've outright blocked some large chunks of IPs (AWS, for instance)

Please don't do this. It's perfectly legitimate to route one's traffic through other nodes one owns.

Please consider other ways of dealing with banned players — perhaps make creating an account slow and/or costly.

Re:API providing threat analysis of any given IP address by AnkhMorporkian on Saturday August 06, 2016 @06:15PM (#12240136)
We've examined all the options. We already use browser fingerprinting, and that takes care of a good percentage of it, but for the truly committed there are really only two options: Blocking all VPNs, or using supercookies. I'm actually a bigger fan of the supercookie solution, but one of the other developers is staunchly against that. It's an ongoing battle.

The problem with the slow/costly account thing is that one of the big draws of our game is that there's no registration necessary. You can jump in a game instantly by pressing 'Play Now', and you just get named 'Some Ball 1/2/3/4/etc' and tossed with the registered players.

Re:API providing threat analysis of any given IP address by thaeli on Saturday August 06, 2016 @10:09PM (#12240742)
Been there, tried supercookies, found that the same users who are motivated and savvy enough to dodge browser fingerprinting are also able to dodge supercookies.
Re:API providing threat analysis of any given IP address by IshKebab on Sunday August 07, 2016 @05:32AM (#12241585)
What do the evil Some Balls do that you want to avoid? I've never noticed an bad behaviour tbh (other than just being not very good).

Tagpro is awesome btw.

Re:API providing threat analysis of any given IP address by AnkhMorporkian on Sunday August 07, 2016 @03:51PM (#12243356)
Mostly really nasty chat and working against own team. You don't see too much of it nowadays as we're very proactive about that, and have blocked all the major slurs from being typable.

Always glad to find a player in the wild! We're working hard on Next and hope to have the beta open soon.

Re:API providing threat analysis of any given IP address by DanielDent on Saturday August 06, 2016 @04:34PM (#12239779)
While I don't believe this type of thinking about IP addresses represents a sustainable approach to an open internet, https://www.maxmind.com/en/geoip2-anonymous-ip-database and/or https://www.maxmind.com/en/proxy-detection-service may be what you are looking for.
Re:API providing threat analysis of any given IP address by ThePhysicist on Saturday August 06, 2016 @03:02PM (#12239398)
Should be possible using the ASN id of the IP address, and I think Domaintools provides this information and some other fields as well, although their API is not free. That won't help with most VPNs though as they just rent servers from various providers, so you need some kind of active monitoring, which might be tricky to implement from a technical and legal point of view.
Re:API providing threat analysis of any given IP address by toast0 on Sunday August 07, 2016 @02:00AM (#12241231)
If you have a BGP feed, you can use that to go from IP -> ASN, otherwise, there are public bgp dumps [1]. Many networks renting servers are pretty simple to flag this way.

[1] One source is http://www.routeviews.org/

Re:API providing threat analysis of any given IP address by ThePhysicist on Sunday August 07, 2016 @06:34AM (#12241694)
Thanks for pointing this out, I couldn't find a way to get the ASN for free, so this is a great resource!
Re:API providing threat analysis of any given IP address by achillean on Saturday August 06, 2016 @05:26PM (#12240012)
With Shodan you could export a list of IPs that are currently operating a VPN service:

https://www.shodan.io/search?query=port%3A500%2C4500+vpn

Or you could lookup the IP of the user on Shodan and check whether that IP is running a VPN service. Per IP lookups are free on Shodan and it's fairly simple. For example, this is how you'd do it in Python:

    def is_vpn(user_ip):

        import shodan

        api = shodan.Shodan("API key")

        host = api.host(user_ip)

        for banner in host['data']:

            if banner['port'] in [500, 4500]:

                return True

        return False
Here's an overview of the VPN services that are currently on Shodan:

https://www.shodan.io/report/2aLrR79C

Re:API providing threat analysis of any given IP address by AnkhMorporkian on Sunday August 07, 2016 @03:52PM (#12243357)
This is brilliant. Thank you so much!

Edit: I made a modification for conciseness' sake, and to include SSH in the mix as that can be used as a poor man's VPN.

    def is_vpn(self, ip):
        api = shodan.Shodan(self.config['keys']['shodan'])
        host = api.host(ip)
        return any(banner['port'] in [22, 80, 500, 4500] for banner in host['data'])
Re:API providing threat analysis of any given IP address by achillean on Sunday August 07, 2016 @04:56PM (#12243607)
I realized it only afterwards but you can actually just look at the host['ports'] property which contains a list of ports that were found open. And you might also want to include PPTP on port 1723.
Re:API providing threat analysis of any given IP address by dylz on Saturday August 06, 2016 @03:29PM (#12239502)
Re:API providing threat analysis of any given IP address by AnkhMorporkian on Saturday August 06, 2016 @03:36PM (#12239544)
Yup, and I seriously appreciate those that do that, but it's the small providers which inevitably end up screwing us over. Some small VPS company has a vulnerable server that someone makes a VPN on, and suddenly we get a wave of ban evaders. It ends up being a constant headache.
Re:API providing threat analysis of any given IP address by dylz on Saturday August 06, 2016 @03:40PM (#12239556)
If it's default ports, you can just probe on login and deny it. We do this for a game I've admined for, and it's in the terms of service. Common L2TP, PPTP, etc.
Re:API providing threat analysis of any given IP address by cmdrfred on Saturday August 06, 2016 @04:34PM (#12239777)
Interesting. So if I put a terms of service discussing it on my blog can I nmap all my visitors?
Re:API providing threat analysis of any given IP address by swhipple on Saturday August 06, 2016 @07:40PM (#12240394)
Scanning the defaults for open proxies with a note in the ToS is not super uncommon with some types of services. I don't recommend sweeping random visitors to your website.
Re:API providing threat analysis of any given IP address by sah2ed on Saturday August 06, 2016 @05:37PM (#12240041)
Since the OP said:

> I help develop a fairly popular webgame.

... unless the web-based game relies on a plugin that can skirt the browser's sandbox, there's no way to probe for active ports.

Re:API providing threat analysis of any given IP address by wbl on Saturday August 06, 2016 @06:01PM (#12240102)
You can ask the server to do it for you.
Re:API providing threat analysis of any given IP address by MichaelGG on Saturday August 06, 2016 @04:31PM (#12239764)
Isn't this a lost battle? Only remotely possible due to IPv4 being so limited?

Do you allow normal users to get around banned IPs by buying a pass or something? (Then you can ban the pass, like 4chan.)

Re:API providing threat analysis of any given IP address by fragfester on Saturday August 06, 2016 @03:34PM (#12239529)
It has been added to Trello