News for hackers. Stuff that matters.
Re:HiddenWasp Malware Stings Targeted Linux Systems by xorcist on Friday May 31, 2019 @04:56AM (#20059303)
Is it really that strange? Windows email clients tend to run code in attachments just by clicking them (or, in some cases, just viewing them). So the risk factor in letting these emails in is quite large.

That's not as common with other platforms. Even the common GUI platforms on Linux would require the user to manually save the file and explicitly marking the file as executable. Nobody would conflate user friendliness with the ease of running untrusted code.

Defaults does make a difference. Even as these users are "left behind" in email filtering, we're seeing limited effects of malware with the more popular Linux platforms such as Android and the various desktops.

Re:HiddenWasp Malware Stings Targeted Linux Systems by IronBacon on Friday May 31, 2019 @07:45AM (#20059977)
> Even the common GUI platforms on Linux would require the user to manually save the file and explicitly marking the file as executable.

If someone can find a way to drop a text file in my "~/.config/autostart" dir, next time I log in my Gnome desktop will happily execute the command present in the "Exec" line and it doesn't require the execute bit.

I think something similar could be done using "~/.local/share/applications", overriding an installed application next time that application is launched, but it probably would show two icons; the autostart at the moment is more stealth.

Re:HiddenWasp Malware Stings Targeted Linux Systems by mbrumlow on Friday May 31, 2019 @10:20AM (#20061104)
I think the point is -- do to that you would have to have the email client do it.

While once it is out side the control of the email client -- as the quote suggest, it's up to the user -- not the email client to do the dirty work.

The notion is that on windows, even a all knowing user who knew the email contained a virus after viewing it would be helpless as the email client already did the steps required to make the virus active. Where as on Linux, the user would still need to be the facilitator -- not the email client blindly destroying your system.

As a example. You can email me virus all day long, and it is not likely I will get infected because of how my email client handles files and attachments. If I were to switch to a windows based system using a windows client then all bets are off.

tl;dr your exception would mean the bad thing we are talking about already happened. If they could get your email client to write to that file they probably already had enough control to do whatever you are suggesting they put in autostart.

Re:HiddenWasp Malware Stings Targeted Linux Systems by IronBacon on Saturday June 01, 2019 @02:48AM (#20067707)
> The notion is that on windows, even a all knowing user who knew the email contained a virus after viewing it would be helpless as the email client already did the steps required to make the virus active. Where as on Linux, the user would still need to be the facilitator -- not the email client blindly destroying your system.

OK, I see your point, normal usage against exploits, and usually security goes against convenience.

I don't know if I'm overly paranoid, but in this specific case I've started long time ago to keep my autostart dir read only. At the same time I've dirs in my command path that are writable by my user (but those need the execute bit tho)...

Re:HiddenWasp Malware Stings Targeted Linux Systems by jorangreef on Saturday June 01, 2019 @02:58AM (#20067738)
Keeping your autostart directory read-only is a great idea.

After that, a ZIP symlink traversal could still drop a script in your command path directories that are writable by your user. The execute bit is not a hurdle, unzip utilities will typically preserve the execute bit on Unix systems.

ZIP directory traversals are as old as the hills, yet they are still a thing: https://snyk.io/research/zip-slip-vulnerability.

ZIP symlink traversals are even more powerful, yet they are hardly spoken of.

Ideally, you want your email provider to be blocking ZIP attachments with symlink traversals or execute bits (but I am not aware of any which do).

Re:HiddenWasp Malware Stings Targeted Linux Systems by jorangreef on Friday May 31, 2019 @05:23AM (#20059425)
"Linux would require the user to manually save the file [...] explicitly marking the file as executable."

ZIP attachments preserve executable flags.

Also, symlink traversal attacks only require a ZIP attachment to be clicked. Apple patched macOS for this a little while ago, but it's probably still a thing on many systems - since most email providers know to detect ZIP directory traversals, but not ZIP symlink traversals.

There's also a range of other containers for macOS and Linux which will preserve executable flags if you ask them to.

And we have also seen simple character encoding attacks which can crash Apple Mail just on viewing the email.

Re:HiddenWasp Malware Stings Targeted Linux Systems by kryptiskt on Friday May 31, 2019 @07:23AM (#20059885)
I wouldn't be so complacent, I'm reminded of this vulnerability: https://scarybeastsecurity.blogspot.com/2016/11/0day-exploit...
Re:HiddenWasp Malware Stings Targeted Linux Systems by skrebbel on Friday May 31, 2019 @05:13AM (#20059378)
> Windows email clients tend to run code in attachments just by clicking them

Citation please? This is not my experience.

Re:HiddenWasp Malware Stings Targeted Linux Systems by littlestymaar on Friday May 31, 2019 @05:29AM (#20059444)
On windows, when you (double)click on an executable file it runs, because that's the default action for executables. On Unixes you need to mark the file as executable (with `chmod`) for this to happen.
Re:HiddenWasp Malware Stings Targeted Linux Systems by skrebbel on Friday May 31, 2019 @05:57AM (#20059541)
In an email client? Without any warning of sorts?

Which email client is that?

Also, for many years already, Windows won't let you run an executable that you just downloaded from the internet just by double clicking, without first clicking through a warning dialog.

Re:HiddenWasp Malware Stings Targeted Linux Systems by jorangreef on Friday May 31, 2019 @06:09AM (#20059585)
Yes, but then again warning dialogs don't have much track record in preventing malware outbreaks.

For example, recent versions of Word won't run VBA macros by default without the user clicking through a warning dialog, and yet people fall for it all the time.

Malware authors don't mind either way.

Re:HiddenWasp Malware Stings Targeted Linux Systems by skrebbel on Friday May 31, 2019 @06:18AM (#20059613)
I didn't say anything about that. I'm only refuting the claim that Windows email clients will run an executable just by clicking on them.
Re:HiddenWasp Malware Stings Targeted Linux Systems by jorangreef on Friday May 31, 2019 @06:35AM (#20059697)
Well, then I would disagree with you there. There are plenty of ways to get Windows to run executable code just by clicking an attachment, and this even without warning dialogs:

- PDFs with JS code. It's not a joke, someone actually titled a paper on PDF exploits alone, "PDF, Let Me Count the Ways".

- Hostile RTFs (with or without OLEs) disguised as Word documents (which Office will gladly open).

- Hostile HTML disguised as Excel spreadsheets (likewise).

- New unknown variants of the old Windows metafile exploit (just by viewing, as xorcist suggested).

- Image "stegosploits" (likewise).

The list goes on...

Re:HiddenWasp Malware Stings Targeted Linux Systems by kevingadd on Friday May 31, 2019 @08:51AM (#20060383)
I've literally never used a mail client that behaves this way. If the EXE even makes it past attachment scanners, I get a 'save'/'run' prompt and then if it's not signed and trusted, SmartScreen usually prompts me again to confirm that I really want to run it.

The app is usually in an installer package or ZIP which adds a couple more execute barriers.

The real threat is malware hidden in document formats like docx or pdf, which usually have fewer clicks before open + get exploited.