News for hackers. Stuff that matters.
Re:Is yt-dlp/yt-dlp compromised? by forensicnoob on Monday November 04, 2024 @06:34AM (#42040601)
The last linux binaries ( yt-dlp_linux ) are contacting tor exit nodes and attempting to shutdown syslog starting from release 2024.10.22 according to virustotal.

3f6ab524d899f39ef46004a9db1f09ac8983aa5bd96243c417edf7c0c00627d7 yt-dlp_linux 2024.11.04 dcca6afb6ac9770d4d3425c35e415f4a8fc69b626c60f12ca899bfc05f6a72fc yt-dlp_linux 2024.10.22

Re:Is yt-dlp/yt-dlp compromised? by Johnnynator on Monday November 04, 2024 @07:03AM (#42040753)
There is nothing about stopping/killing rsyslog in thst virustotal output. `kill -s HUP` sends SIGHUP to a process (read rsyslogd(8) to know how it interprets HUP).

It seems like virustotal also records unrelated processes running on that host, logrotation is a normal thing.

Re:Is yt-dlp/yt-dlp compromised? by midtake on Monday November 04, 2024 @06:58AM (#42040723)
Can you produce some evidence, even a screenshot? It would be helpful.
Re:Is yt-dlp/yt-dlp compromised? by that_lurker on Monday November 04, 2024 @06:47AM (#42040667)
When did it do that? yt-dlp uses .onion addresses for some of the sites.
Re:Is yt-dlp/yt-dlp compromised? by perihelions on Monday November 04, 2024 @07:35AM (#42040970)
That's not described in the documentation. Does it do that automatically or does it ask for a user action first?
Re:Is yt-dlp/yt-dlp compromised? by stogot on Monday November 04, 2024 @06:51AM (#42040688)
Did you open an issues on their GitHub page?
Re:Is yt-dlp/yt-dlp compromised? by wis on Monday November 04, 2024 @07:35AM (#42040973)
FWIW, It appears one of the people who saw this post asked in a comment in an issue on GitHub [1]:

  > @seproDev unrelated, but what you think about https://news.ycombinator.com/item?id=42040600
.. and one of the main maintainers (ranked #14th by #commits, but a recently active maintainer) replied the following:

  > False positive in virus total. Calling yt-dlp without any arguments makes no web requests.
  > To expand a bit more. Our releases are built with github runners and they report back the sha hash during build. https://github.com/yt-dlp/yt-dlp/actions/runs/11656153929 for the release from yesterday
  > You can see the commit that was built, what we merged in the last couple days, and the hash of the resulting files to check against the files in the release section.
  > Those network requests are likely just other processes on the machine. I remember windows executable would regularly show microsoft servers in the "connections made" list due to windows update and telemetry still running.
[1] https://github.com/yt-dlp/yt-dlp/issues/11451#issuecomment-2...
Re:Is yt-dlp/yt-dlp compromised? by dqv on Monday November 04, 2024 @07:53AM (#42041079)
Can you link to the issue?
Re:Is yt-dlp/yt-dlp compromised? by wis on Monday November 04, 2024 @08:13AM (#42041216)
Sure: https://github.com/yt-dlp/yt-dlp/issues/11451#issuecomment-2...

I edited my reply too.

Edit: I'd caution against spamming the maintainers though (not caution you specifically), the possibility of that happening is what swayed me to not post the link originally.

Re:Is yt-dlp/yt-dlp compromised? by dqv on Monday November 04, 2024 @08:21AM (#42041277)
Ah yeah that makes sense. I just wanted to confirm it because I couldn't really find anything when I was searching.
Re:Is yt-dlp/yt-dlp compromised? by datadeft on Monday November 04, 2024 @07:03AM (#42040762)
Is it using Tor to download content?

(The second part of your comment was just normal log rotation as it turns out)

Re:Is yt-dlp/yt-dlp compromised? by 3np on Monday November 04, 2024 @07:08AM (#42040797)
If all you have is results from VirusTotal, this is a nothingburger. Dig into what those calls actually are before you cry wolf.
Re:Is yt-dlp/yt-dlp compromised? by Latty on Monday November 04, 2024 @07:26AM (#42040921)
It's not crying wolf to ask the question (yes, leading questions can be used that way, but they are clearly asking here, not trying to imply), they presented the thing that concerned them to get eyes on it and find out if it was a problem, that seems reasonable.
Re:Is yt-dlp/yt-dlp compromised? by blueflow on Monday November 04, 2024 @07:45AM (#42041024)
That would make it our job to teach OP critical thinking.
Re:Is yt-dlp/yt-dlp compromised? by seba_dos1 on Tuesday November 05, 2024 @11:22AM (#42052780)
This is a news aggregator, not a help desk. It's perfectly fair to characterize submitting such entry as "crying wolf", even when it's formulated as a question. When I browse my RSS feed from HN, I expect the items to have at least some minimal substance.
Re:Is yt-dlp/yt-dlp compromised? by api on Monday November 04, 2024 @08:05AM (#42041151)
VirusTotal seems to be generating more false positives lately. Seems like they’re adding some poorly written heuristics. We’ve seen problems with false reports of things being infected like our own products.
Re:Is yt-dlp/yt-dlp compromised? by phantomathkg on Monday November 04, 2024 @06:47AM (#42040670)
Re:Is yt-dlp/yt-dlp compromised? by diggan on Monday November 04, 2024 @06:49AM (#42040677)
The only thing VirusTotal would tell you about, is already known patterns of virus/malware. If there is a novel/different way of doing something, and/or it hasn't been noticed by the AVs they're collaborating with, you'll end up with everything green.

PoC Rust program that takes the contents of .npmrc and uploads it to a random IP (DONT RUN THIS! It'll steal your npm authentication token): https://gist.github.com/victorb/adf0ac8b7ada8d5a4982462e24e8...

"No security vendors flagged this file as malicious" = https://www.virustotal.com/gui/file/b99b86a5ce3aa24b39ec53dd...

But clearly, it is malicious :)

Re:Is yt-dlp/yt-dlp compromised? by littlestymaar on Monday November 04, 2024 @06:53AM (#42040695)
I don't understand, the op claims the alert came from Virustotal.
Re:Is yt-dlp/yt-dlp compromised? by 0x00cl on Monday November 04, 2024 @06:59AM (#42040727)
I think he might be talking about the "relations" tab. You can see the "Contacted IP addresses" section that claims to be "contacted IPs by the file uploaded to virus total". If you click the IP some will have detections and flagged as bad or criminal.

https://www.virustotal.com/gui/file/dcca6afb6ac9770d4d3425c3...

Says it contacted 45.66.35.11 and you can see its a tor relay https://metrics.torproject.org/rs.html#details/7EA6EAD6FD830...

Though haven't looked at how yt-dlp works, I'd guess yt-dlp might attempt to use tor network in case some IP or network is blocked and can't reach a server.

Re:Is yt-dlp/yt-dlp compromised? by blueflow on Monday November 04, 2024 @07:11AM (#42040821)
Its not just a tor relay, it is one of the directory servers: https://metrics.torproject.org/rs.html#search/flag:authority
Re:Is yt-dlp/yt-dlp compromised? by forensicnoob on Monday November 04, 2024 @06:51AM (#42040689)
Look at other tabs https://www.virustotal.com/gui/file/3f6ab524d899f39ef46004a9... at the bottom you can see the commands that looks like the program trying to delete down syslogs. Look also in the relations tab that shows some tor nodes.
Re:Is yt-dlp/yt-dlp compromised? by blueflow on Monday November 04, 2024 @06:59AM (#42040733)
This is not "shutting down" rsyslog. The kill command sends a SIGHUP to rsyslog, which causes it to reopen its log files - what you are seeing is a normal logrotation, not an attempt to terminate the process.

I suspect virustotal did the check in a container with a logrotation job still running, and it happened to run right in the moment when yt-dlp was being tested.

Re:Is yt-dlp/yt-dlp compromised? by Faaak on Monday November 04, 2024 @07:03AM (#42040756)
You mean this `systemctl kill -s HUP rsyslog.service` ? This just tells syslog to reload itself
Re:Is yt-dlp/yt-dlp compromised? by FergusArgyll on Monday November 04, 2024 @07:10AM (#42040810)
Why would yt-dlp tell syslog to reload?
Re:Is yt-dlp/yt-dlp compromised? by netsharc on Monday November 04, 2024 @08:06AM (#42041163)
It seems VirusTotal spins up a virtual machine/container to run the program, and monitors what happens inside that environment. And it further seems that during that time syslog (or something else, probably the distribution) reloaded itself. And some other process tried to connect to the TOR IPs.

And since we're all amateurs here who don't understand what VirusTotal is doing, some of us think "ZOMG yt-dlp compromised?!?".

If you look at the process tree, the process that reloaded rsyslog wasn't spawned from the yt-dlp_linux process.

Re:Is yt-dlp/yt-dlp compromised? by viraptor on Monday November 04, 2024 @07:01AM (#42040739)
I don't see anything trying to delete syslogs. There's a line for reloading new configuration (kill -HUP ...) - is that what you meant?
Re:Is yt-dlp/yt-dlp compromised? by YetAnotherNick on Monday November 04, 2024 @06:58AM (#42040721)
Source?