r/MinecraftServer • • 10h ago

Help Server Security

So I’ve been running a server for my friends for a little while now, the IP isn’t public, and there’s a whitelist, yet in the last few hours I’ve been noticing an IP from Russia, with my username, trying to join the server.

My account has 2FA, I’ve changed the password, banned the ip from the server, and yet the guy keeps trying to connect with my username. I’m pretty confused on how this is possible considering how nothing to do with my server is public, and there’s not really any way the guy can be logged into my account. Can clients mask usernames?

Any thoughts?

4 Upvotes

9 comments sorted by

•

u/AutoModerator 10h ago
  • Featured server: Cozy MC — Java + Bedrock survival in a world that doesn't reset. New players join every day. Build your own place, open a player shop, and get to know your neighbors. No paid ranks or perks. Come explore CozyMC.com
  • TownifyMC — Java + Bedrock survival on a massive 1:300 scale Earth map where the world never resets, meaning everything you build becomes part of a lasting world. Build your own town, grow an empire, shape a player-driven economy, and join a friendly, active community where there's always someone online! play.townifymc.com

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/imprialmc 9h ago

the packet that has the information like how many people are on and also the motd version etc can also broadcast whoevers online so maybe they got that information from that. and anyone can join under any username, but if the server is online mode (the default) it will contact auth servers to verify if your session is valid. if a client doesn't have your microsoft account then its most likely just joining as an offline player without a valid session and will prevent them from joining

1

u/Time-Eagle9507 9h ago

Ah that makes more sense

2

u/trelane99 9h ago

This is really nothing to worry about as his connection will never authenticate as you.

1

u/Jwhodis 9h ago

If you look on the multiplayer server list, it actually shows the player list (hover over the player count), bots can get this by just asking your server for that information. You can disable this in the server.properties file.

For "offline mode" servers, clients just tell the server what their username is and the server trusts them, bots like this one will use usernames in the player list to try and join your server, which would bypass whitelist.

Depending on how you're tunneling/proxying your server (I use Caddy on a VPS), you could set it up to entirely abort/reject connections from that IP, so it thinks that the server no longer exists.

1

u/Time-Eagle9507 9h ago

When you say “offline mode” would that mean when the server itself has been shutdown for anything like file maintenance and such?

1

u/Jwhodis 9h ago edited 9h ago

No, I'm referring to the offline-mode setting in server.properties.

"Offline" mode just means that the server doesn't authenticate users, players can use whatever username they like without owning the account attached to it, some people don't pay for the game and can only play on these "offline" servers.

3

u/Wild_Director7379 9h ago

I have a couple things, but not a full answer to your question

the IP isn’t public

It doesn’t take that long to check every ip4 address on the internet on a specific port. Minecraft has a default port. This can be changed in server.properties, and you have to add y to xxx.xxx.xxx.xxx:yyyyy where y is a 5 digit port number. You can randomly generate a port between 16384 and 65555 then google that port to check if any services use it by default.

username… 2FA etc

There’s little reason to suspect your Minecraft account is at risk. Somehow someone linked your username to this server, that’s the part I don’t have an answer to, and what would give me the willies. But Minecraft usernames aren’t unique. You’ve probably noticed uuids from putting them in your whitelist. I assume the attacker doesn’t have your uuid?

2

u/DDay102 9h ago

This just sounds like a server scanner. As long as your server is set to online mode you’re fine.