Yes, the most crucial point is where it comes from. But I haven’t been able to trace it yet.
First of all, it’s a regular file, not a symbolic link to the Nix Store.
I had the agent compile a complete timeline (of course, I can’t be sure if it’s accurate; for example, the backdoor might have simply deleted and updated itself at this point):
22:04:03 binary created (birth)
22:05:38 binary finished writing (mtime — 12MB over 95s, looks like a download)
22:05:54 timer created
22:06:02 service created
22:06:43 chmod +x
22:07:25 systemd daemon-reload (user level, I don't know if it's a coincidence or actively triggered by the backdoor program; according to the logs, it was a reload requested by fwupd.service. Based on my personal judgment, it's the backdoor program deliberately used the reload of the fwupd service to hide itself.)
22:07:33 first start
However, this happened on October 22nd (all times mentioned are UTC+8, consistent with the git repository time).
I checked the Nixos records, and I didn’t perform any switch operations that day:
[yueyinqiu@erthane:~]$ nixos-rebuild list-generations | grep 10-24 -C 2
70 2026-10-27 17:46:20 26.11.20261020.02c087f 6.18.57 Unknown [] False
69 2026-10-25 18:11:03 26.11.20261020.02c087f 6.18.57 Unknown [] False
68 2026-10-24 15:04:14 26.11.20261020.02c087f 6.18.57 Unknown [] False
67 2026-10-24 14:19:46 26.11.20261010.6510408 6.18.55 Unknown [] False
66 2026-10-11 16:26:13 26.11.20261010.6510408 6.18.55 Unknown [] False
65 2026-10-11 16:07:55 26.11.20260919.20b1ddd Unknown Unknown [] False
The more suspicious home-manager generation has already been garbage collected. But according to my git history, I did not modify the home-manager configuration on that day (or even a few days before), so there is no reason to perform a home-manager switch or other related operations.
My configuration is located here (I apologize for not keeping a detailed Git history; Sorry if this causes problems during troubleshooting):
https://github.com/yueyinqiu/NixosErthane
https://github.com/yueyinqiu/HomeAtErthane
Based on the home-manager configuration from October 17th and the NixOS configuration from October 11th. The imported content includes:
# Not really commonly used
github:Beriholic/nix-wpsoffice-cn # I use it to import some Chinese fonts; actually, quite a few people in China use this(?)
github:denful/import-tree
github:epireyn/niri-flake # This is not sodiboo/niri-flake, because I need a newer version of Niri
# Relatively well-known
github:AshleyYakeley/NixVirt/v0.6.0
github:fufexan/nix-gaming
github:in-a-dil-emma/declarative-flatpak/latest
github:nix-community/NUR
github:notashelf/nvf
# Trusted(?)
github:NixOS/nixpkgs/nixos-unstable
github:nix-community/home-manager/master
# The following are packages I developed or participated in, and should be trustworthy (unless the packaged target itself has issues):
github:yueyinqiu/NixDaemonProxy-Nix
github:yueyinqiu/MindustryBinNix
github:yueyinqiu/SubNix
github:yueyinqiu/Snavi-Nix
github:yueyinqiu/BaidunetdiskNix
github:MihomoManager/HomeManagerMihomoManager
github:bitbloxhub/nix-airgap
So… they all seem to be safe, relatively. NURs are indeed included. However, no actual NUR packages are referenced (I used to publish some of my packages in NUR, hence the reference, but later I published them directly in separate GitHub repositories; I just haven’t removed the input).
Based on these clues, if the backdoor was indeed introduced at October 22nd, I’m more inclined to believe it entered from the outside in some way, rather than originating from my home-manager or NixOS configuration.
But it seems I don’t have a good way to trace it further… Maybe that’s why I’m posting here for help. Perhaps someone has encountered the same situation? Or, what should I do next? Enable auditd, delete the file, and see if it reappears?