Gluetun detected as a Trojan!? #1152
qdm12
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
Since 9 September 2022, Gluetun is detected as a Trojan virus "Unix.Trojan.Agent-6762136-0", for now only by
ClamAV
.TLDR: false positive detection due to Gluetun being compiled from Go and handling firewall/routing/wireguard/kernel.
Analyzing the Gluetun binary program (built locally for amd64, commit e5be20d) with virustotal.com gives this result, where only ClamAV finds it as a trojan virus.
The behavior section lists the following:
Defense evasion: Sample contains symbols with suspicious names.
- I guess it doesn't like Go compiled programs. It it is true a lot of viruses are now written in Go since its program compilation is unique and so there is not much tooling to reverse engineer it. I also don't do any funny compilation with Gluetun, it's justgo build ./cmd/gluetun/main.go
.System Network Configuration Discovery: Executes the "iptables" command used for managing IP filtering and manipulation
yes it does but for good reasons, to interact with the container firewall. It also runsip6tables
,iptables-nft
andip6tables-nft
. It might be replaced one day with Feature request: usegoogle/nftables
to handle nftables firewall #898 which would remove this warning, but I can't give an exact timeline.Security Software Discovery: Uses the "uname" system call to query kernel version information (possible evasion)
: it doesn't in Gluetun code (see this search). Checking dependencies, the only match I found is ingolang.org/x/sys
, which is used forgolang.org/x/sys/unix
to read and create the tun device as well as in Wireguard code. Also that's code from the official Go repositories (from Google) so they can be quite trusted.You can also see the Processes Tree which is just what Gluetun does to detect the firewall capabilities (does it support
iptables
,ip6tables
,iptables-nft
? For example/usr/sbin/iptables iptables -A OUTPUT -o fpllngzieyoh43e -j DROP
).For context/historical/transparency purposes (all times are EST timezone):
[email protected]
reached out to me by email onSep 9, 2022, 4:24 AM
asking why Gluetun disappeared from the Unraid app storeOn
Sep 9, 2022, 10:06 AM
, he/she replied:Looking at the Unraid forum, indeed Squid commented this on Sep 9, 2022, 09:27 AM.
I signed up on these Unraid forums to post my comment here on Sep 10, 2022, 12:25 PM.
Squid added Gluetun back in the Unraid app store on Sep 13, 2022, 12:00PM
@wjoshraymond created another discussion mentioning the same detection on Sep 14, 2022, 3:17PM
I wrote this announcement Sep 14, 2022, at around 4:30PM
Beta Was this translation helpful? Give feedback.
All reactions