News for hackers. Stuff that matters.
Re:OpenSSH user enumeration by ddtaylor on Sunday August 19, 2018 @12:52AM (#17792672)
Are you willing to send me a list of all your usernames on all your systems?
Re:OpenSSH user enumeration by mirimir on Sunday August 19, 2018 @12:58AM (#17792690)
Sure. It's root and user, on everything :)
Re:OpenSSH user enumeration by ddtaylor on Sunday August 19, 2018 @02:15AM (#17792868)
Does that mean that `wc -l /etc/passwd` is just two?
Re:OpenSSH user enumeration by daurnimator on Sunday August 19, 2018 @06:39AM (#17793671)
No. There will be plenty of system user. But they do not have SSH access permitted.
Re:OpenSSH user enumeration by tjoff on Sunday August 19, 2018 @08:42AM (#17794070)
It doesn't matter if ssh access is permitted.
Re:OpenSSH user enumeration by mirimir on Sunday August 19, 2018 @04:06PM (#17795924)
So how is an attacker going to access the machine?
Re:OpenSSH user enumeration by tjoff on Sunday August 19, 2018 @06:48PM (#17796630)
If a certain account is present then the attacker might know a certain service is running and then target that.

Might also reveal the purpose of the machine (oh, this is probably the build server) or who is managing it.

Re:OpenSSH user enumeration by mirimir on Sunday August 19, 2018 @06:57PM (#17796676)
Nothing crucial should be directly accessible from the Internet.
Re:OpenSSH user enumeration by tjoff on Monday August 20, 2018 @02:26AM (#17798072)
Indirectly then, or, the publicly facing servers are crucial enough.

It is information leakage, not the end of the world but it can potentially be helpful for an attacker.

Re:OpenSSH user enumeration by zaarn on Sunday August 19, 2018 @04:28AM (#17793252)
List of all users allowed to use SSH on my systems:

- root

- user

- ansible_conf_daemon_user

End of List. It's all containers so IDGAF and I use pubkey authentication on each user.

Re:OpenSSH user enumeration by xorcist on Sunday August 19, 2018 @05:46AM (#17793515)
For non trivial environments with audit requirements this is not an option.

Running all software under the same uid is also usually best avoided, you'll always have data at rest somewhere (which needs to be backed up, access controlled, and so on).

Re:OpenSSH user enumeration by zaarn on Sunday August 19, 2018 @05:51AM (#17793528)
Of course there is other users but they aren't configured for SSH via AllowUser.

Additionally most of those are containers where running it all as the same UID isn't a problem.

Re:OpenSSH user enumeration by xorcist on Sunday August 19, 2018 @10:01AM (#17794351)
User ids without login privileges can be just as interesting to enumerate.

Containerization isn't really relevant to protecting data, as you'd normally find data volumes and backups attached.

Re:OpenSSH user enumeration by zaarn on Sunday August 19, 2018 @10:40AM (#17794474)
Well, it would but the exposed containers don't have any non-default users.

Plus, this is LXC, not Docker. There is no data volumes or backups attached. Backups are shipped to an append only server via SSH tunnel with low privileges, which also doesn't have nonstandard users setup.

Re:OpenSSH user enumeration by brodsky on Sunday August 19, 2018 @02:07AM (#17792851)
there is an "ubuntu" user on most of my systems. I hope you find this information useful.
Re:OpenSSH user enumeration by Someone1234 on Sunday August 19, 2018 @02:41AM (#17792934)
I know you're being facetious but, yes, I would find that information useful. Now I've just IDed the distribution I'm targeting.
Re:OpenSSH user enumeration by blattimwind on Sunday August 19, 2018 @04:58AM (#17793366)
This is usually in the OpenSSH version string anyway, e.g. "OpenSSH 6.7p1 Debian 5+deb8u4 (protocol 2.0)". Guess what distro that server is running?
Re:OpenSSH user enumeration by eahman00 on Sunday August 19, 2018 @05:01AM (#17793377)
I believe only Debian does that, out of vanity (I presume).
Re:OpenSSH user enumeration by jwilk on Sunday August 19, 2018 @06:22AM (#17793611)
https://salsa.debian.org/ssh-team/openssh/raw/master/debian/...

Subject: Include the Debian version in our identification

This makes it easier to audit networks for versions patched against security vulnerabilities. It has little detrimental effect, as attackers will generally just try attacks rather than bothering to scan for vulnerable-looking version strings. (However, see debian-banner.patch.)

Re:OpenSSH user enumeration by thaumaturgy on Sunday August 19, 2018 @03:29AM (#17793048)
A disappointing number of servers happily give away this information in their http response headers. For those that don't, `nmap -O` will sometimes do the trick.
Re:OpenSSH user enumeration by Someone1234 on Sunday August 19, 2018 @03:42AM (#17793088)
nmap's OS detection won't normally tell you the distribution, only the OS (and maybe kernel version).