News for hackers. Stuff that matters.

jonssons

Re:Ask HN: How do you monitor your email inbox placement? on Thursday October 12, 2017 @08:45AM (#15457544)
Your best option would be to use the [Return receipt] or [Delivery status notification] options. The latter will be an automated notification from the mail server stating it accepted or deferred the e-mail.
what. again?
Re:Undercover in a Toronto factory where a temp worker died on Wednesday September 13, 2017 @05:40AM (#15236775)
I had to depart quickly so I had to cut it short. To elaborate further:

The temp offices usually work with day contracts, allowing them to 'fire' you when you get a bad review, they don't need you that day or they don't like you. This provides a very unstable income.

In my case, the company that was hiring me used the temp jobs as a kind of 'trial period' and easily disposable workforce. If somebody did not live up to expectations, that person does not come back, but every day, 50 of those workers were needed. It took me 1.5 year as a temp worker on day contracts to get a permanent contract from the employer. I was a lucky exception.

Looking back on the stress, the uncertainty, the misery and humiliation I had to undergo to keep the most basic job, I would never, ever go back to that industry again.

Re:Undercover in a Toronto factory where a temp worker died on Tuesday September 12, 2017 @08:23AM (#15226668)
as an ex-temp worker: that's how it is. You want to work, you have to put up with the stuff they throw at you. No. It's not fair. No. It's not just. It's for the poor. It's for the uneducated. It's for the immigrants. It's for the vulnerable people, because they are easy to exploit. They don't know their own rights.

Temp offices should not be allowed to exist.

Re:The only safe email is text-only email on Tuesday September 12, 2017 @07:06AM (#15226313)
Thanks. I love the examples.
Re:Useless Etherium Token on Monday September 11, 2017 @08:32AM (#15218021)
my hero! 91k of free monies (minus operation costs)
and they still call me paranoid ...
Re:Oracle Finally Killed Sun on Wednesday September 06, 2017 @05:43AM (#15182322)
title sounds like a battle of epic proportions took place in the netherworlds ...
how about a solar panel on the back (or a transparant one on the front). How about heat activated. How about activated by radiation in the air (microwaves).
Re:Cvv attempts? on Wednesday August 30, 2017 @08:05AM (#15131400)
Re:How ACH works: A developer perspective (2014) on Friday August 25, 2017 @01:34AM (#15096343)
FTP, not SFTP? I'd increase the bill of my neighbours I don't like a bit.
tl;dr: you'll have to buy new led lights over 5 years.
exactly
Re:Ask HN: How do you handle security for your website(s)? on Wednesday August 09, 2017 @08:51AM (#14968114)
using certificates is getting advanced. Here you'll allow the server to request a client certificate from the visitor. The visitor will have to supply the certificate (which is 4096b if you take security serious).

Easy (read easier) to do with nginx: https://www.google.de/search?q=nginx+client+side+certificate...

It requires quite a bit of steps, but is as secure as it gets what web access is concerned.

You should not be surprised to see 15k+ failed login attempts on ssh with popular ISP's. As I said, a system is the most vulnerable when it has just been installed and a/the default root password has not yet been changed. Simply disallow password login on ssh, change the port and only allow non-root users you need to allow. I have on my systems only 1 user allowed to login, authenticated by a 4096b key. There is no way an attacker can use ssh if not using an ssh exploit. The system is updated automatically every hour. This way known exploits are very quickly taken care of.

For me, server security has been a practice over many years and it takes many years to perfect your 'secure server setup'. It's depressing how many companies do not adhere good security practices and just leave their systems unprotected. Especially mail servers.

Re:Ask HN: How do you handle security for your website(s)? on Monday August 07, 2017 @04:36AM (#14946055)
There are lots of possibilities. For example: Only allow web connections through localhost and start an x session through ssh. This would require you to install a webbrowser though, so that's another security risk. Perhaps you could set up a VM with a dedi IP and only allow connections from there. (secure it well)

Another possibility would be to first pass a reverse proxy that will request a client-side certificate. That'd make it pretty secure.

A password protected directory is just asking for a brute force through a botnet. Your failtoban won't even block anything because the attacker would only let 1 host attempt a password once per 30 min or per hour. But if he has thousands of bots to his disposal, he can still bruteforce a couple times a second.

That's OK you say. I have a strong password. Don't forget: Each connection and failed login attempts is logged. Your logfile will quickly grow. If you did not set a seperate VAR partition on your disk, your root disk will quickly get full and server will crash. Additionally, it will fill up your bandwith and be as effective as a ddos attack.

Don't use passwords. Use certificates. easier for you, impossible to hack.

There are other methods of course, but these would be my preferred methods. Setting phpmyadmin publically is asking to get your data stolen. Do not assume there are not exploits in the latest phpmyadmin. But don't forget to update it within the first 10 minutes when a security patch comes along, otherwise your data may well already be compromised.

letsencrypt if security is not all that important.
Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:59AM (#14927771)
In my experience:

- Ubuntu is not stable

- it is not hardened out of the box

- it can contain dangerous configuration out of the box

- it calls home

- it will tempt you to install dev packages or other packages unfit for production (because devs dev on ubuntu and they require the dev packages)

But please, don't mind me. Other people are better at explaining this. I'm biassed.

Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:54AM (#14927750)
rkhunter does fim in a limited way. I hope OP is not talking about sites with sensitive data. ossec is usually great for storing more sensitive data.

The above list will help you from most scriptkiddy attacks, which are 99% of the attacks I have experienced. It's a good idea not to piss off anybody on the net or do it with a sufficiently obscure account.

Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:50AM (#14927731)
if you wanna go there. I use a custom script to make backups, encrypt them using gpg and store them on public ftp boxes. Automated retrieval of said backup in case of problems and automated server recovery in case of disaster.
Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:48AM (#14927725)
I don't use debian because I don't like apt. The most vulnerable moment of my systems is when the ISP sends the password in plain text over e-mail. Until the password has been changed and the system has been sanitized(), I consider it compromised.

() updated, rkhunter, clamav, ...

Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:42AM (#14927686)
> - reverse proxy to backend webserver

Using a reverse proxy allows you to cache static content, decreasing load. I'm not talking about load balancers. These days you need them when your website pulls _a lot_ of requests (1000/s) Your reverse proxy will also stop unwanted requests and indeed will have a firewall incorperated.

> - run checks on each request on the reverse proxy

post => clamav

post => sqlinjection

get => blacklisted address?

any => iptables (let any connection go through your firewall. It's a check)

don't terminate SSL on reverse proxy though. It's a bad idea, unless you are a bad person and like to read your visitors data they think is secure.

There are plenty of other ways of using security on a reverse proxy. Have a look around on google.

Re:Ask HN: How do you handle security for your website(s)? on Friday August 04, 2017 @06:35AM (#14927653)
I am a sysadmin with approx 15 years of experience running linux systems and open source software. When I set things up, I tend to form things my way. I usually have little resources for monitoring or staff, so automation is the best to do. A server serves, it may produce errors and you can act upon that (error 404 for not finding phpmyadmin (which should _never_ be public => add ip to drop table). There are scripts that can do this for you.

However, the application which is being served, may produce different errors (failed login attempt, attempt for sql injection, cross site attack, ...). Some things are better logged by the application, Then the application needs to produce these logs. An awful lot of applications do nothing when presented with any of these type of attacks, making them extremely vulnerable. It's the dev's job to provide logging.

Debian: fine if you like pain :) it's stable.

Re:Ask HN: How do you handle security for your website(s)? on Thursday August 03, 2017 @03:33AM (#14917655)
pov of sysadmin:

- reverse proxy to backend webserver

- run checks on each request on the reverse proxy

- close all ports except what needs to be open

- only allow access to what needs to be seen

- perform frequent security updates (script it, automate it, run it hourly)

- never install more software then strictly required

- never allow SSH directly to your public address

- for ssh, use custom ports, cert (4096b) with passwords

- install logwatch or something else that will inform you about logs (elk stack)

- automate checks in logs for tell-tale signs of scriptkiddies (attempted access to /wp-admin or phpmyadmin for example) => automate adding source IP's to firewalls

- frequently check for malicious code (clamav, rkhunter, ...)

- only use stable and tested software

- only use stable and tested OS (Centos/redhat. DO NOT run production on anything else, especially ubuntu.)

- do not use ubuntu for production. it is not suited.

- install failtoban

from dev pov:

- implement measures to prevent sql injection

- don't require production to install dev libraries

- don't require production to install packages only available on ubuntu

- log strange behaviour to a file, make sure actions can be automated (iptable drop)

I'm no dev, but those are things I'd like dev's to do with their software.