News for hackers. Stuff that matters.
Re:Ask HN: How do you continuously monitor web logs for hack... by dsl on Monday May 07, 2018 @09:39PM (#17018155)
I break into stuff professionally.

There is nothing I love more than the "just throw {Cloudflare,Akamai,Fastly,etc} in front of it" crowd. If you are going to deploy a WAF [1] it _needs_ to be at the edge of your datacenter or cloud environment. No matter what fancy feature your provider wants to sell you to fix this, there is a way to bypass it.

* Make sure you are logging centrally, and logging the right things.

* Make sure someone is looking at the logs, it doesn't have to be a full time person, but it needs to be someones job.

* Depending on how big you are, hire people to break in on some regular basis. It could be anything from hiring a cheap contractor to run a bunch of automated tools, to full on 10 person adversarial teams. They will find some stuff for you to fix, but more importantly you will know whether the first two points are working based on what you see.

1. https://www.owasp.org/index.php/Web_Application_Firewall

Re:Ask HN: How do you continuously monitor web logs for hack... by ownagefool on Tuesday May 08, 2018 @05:19AM (#17019763)
I disagree.

If your WAF is the edge of your datacentre, it will likely be ran by some sepperarte team with a generic ruleset, literally be MITMing all your connections, but more importantly it will be attackable via your company VPN or some other side channel like B2B connections generally, that you probably have no control over.

Your WAF, if you choose to have one, should sit directly in front of your app and have rules tailored to your app. Even those on VPNs, or in the datacentre , should be forced to traverse the apps WAF.

That said, the WAF logic is largely what you're going to do in your input validation layer, so unless you feel you need to double bag it try and to mitigate unknown framework or library issues, or are having another person write the rules, then you're just repeating work aimlessly.

When some dickhead manager buys an insecure http service they want on the web, you should probably quit. Failing that put a WAF in front of it.

Re:Ask HN: How do you continuously monitor web logs for hack... by dsl on Tuesday May 08, 2018 @04:46PM (#17024875)
It is up to you to define where your peremiter is, and put your protections there.

I generally recommend having the WAF live in front of of apps, but with a small gap that allows your scanners to still access the app. It is important to still be identifying vulnerabilities that your WAF might block, because they aren't perfect.

Re:Ask HN: How do you continuously monitor web logs for hack... by dom_hutton on Tuesday May 08, 2018 @12:38AM (#17018855)
> Make sure you are logging centrally, and logging the right things.

Could you please elaborate on what some of the right things generally are?

Re:Ask HN: How do you continuously monitor web logs for hack... by riku_iki on Tuesday May 08, 2018 @03:19PM (#17023909)
> Depending on how big you are, hire people to break in on some regular basis.

Just curious, how this is covered from legal standpoint? Do you ask clients to sign some consent document to release you from liability from damage from hacking by automated tools?

Re:Ask HN: How do you continuously monitor web logs for hack... by dsl on Tuesday May 08, 2018 @04:52PM (#17024951)
For work I am doing, most of the "automated tools" are things I wrote myself and I know what they do. It is up to the engineers working on the engagement to exercise care and avoid causing disruptions to the target or doing things they can't reverse easily.

I like to remind people that having someone on retainer that breaks your stuff with an automated tool is better than having some random guy on the internet break your site with the same tool. Either way it is eventually going to happen, but at least I will immediately notice and contact the right folks to help get it fixed.

Re:Ask HN: How do you continuously monitor web logs for hack... by BinaryIdiot on Tuesday May 08, 2018 @02:33AM (#17019241)
> to full on 10 person adversarial teams

Okay this sounds incredibly interesting. Are there any open source groups that do this "for free" sorta? Not asking to get free working, asking so I could possibly jump in and learn.

Re:Ask HN: How do you continuously monitor web logs for hack... by fragmede on Tuesday May 08, 2018 @11:35AM (#17021680)
If you're interested in learning the kind of particular skills used, there's a whole subculture in computer security having to do with Capture the Flags (CTFs), for a rather broad concept of "flag".

https://microcorruption.com/ is a quite a good one to get started with. (Because embedded systems are smaller and do less, they are easier to reason about, which makes it easier to see vulnerabilities.)

See also: https://www.reddit.com/r/securityCTF/

More broadly, the (with-permission) attackers are known as "the Red Team", and the concept is used against computer networks as well as in literal war-games by the US government.

Re:Ask HN: How do you continuously monitor web logs for hack... by westpfelia on Tuesday May 08, 2018 @02:54AM (#17019316)
There are websites that let you practice. hackthebox.eu is really popular. And there is a bit of a test to even get access to that.
Re:Ask HN: How do you continuously monitor web logs for hack... by dartf on Tuesday May 08, 2018 @05:12PM (#17025166)
Wow! Thanks for this! I "signed up" and it looks very interesting so far
Re:Ask HN: How do you continuously monitor web logs for hack... by dsl on Tuesday May 08, 2018 @04:54PM (#17024973)
Take the OSCP course, it is relatively cheap for the value of the content and it is one of the few certs in security that is respected.

From your profile it looks like you work for a big company. Ping some people in security and find out who runs your "Red Team" (if you have one). Make friends with them.

Re:Ask HN: How do you continuously monitor web logs for hack... by pvtmert on Tuesday May 08, 2018 @02:44AM (#17019278)
we call it hacking forums/teams. main motivation is some idelogical/political belief tho.

imho try to hack yourself first

Re:Ask HN: How do you continuously monitor web logs for hack... by MandieD on Tuesday May 08, 2018 @05:32AM (#17019799)
Speaking of "Hack Yourself First", this completely non-ideological (though somewhat commercial - it advertises the creator's Pluralsight course) website where you can learn and practice intro hacking skills:

https://hackyourselffirst.troyhunt.com/