News for hackers. Stuff that matters.
Re:HiddenWasp Malware Stings Targeted Linux Systems by xupybd on Thursday May 30, 2019 @11:46PM (#20058079)
Well that is scary. What anti virus / security tools do others on here run. On Linux I run nothing. I'm concerned that this might not be okay any more.
Re:HiddenWasp Malware Stings Targeted Linux Systems by zaarn on Friday May 31, 2019 @07:30AM (#20059921)
The AntiVirus industry is a snakeoil industry. Their products barely work and if they do, they do while sucking a lot of performance out of your device. If you absolutely want one, install ClamAV. Then use uBlock Origin + HTTPS Everywhere on your browser and PiHole on the network. Install all updates on devices, devices with no updates are isolated into a separate network. Use a password manager and SSH keys, disable password auth on all SSH servers you connect to. Close all ports to the outside that are not necessary and could be accessed with a VPN instead (keep one SSH port open to repair said VPN). Do not download email attachments you did not prompt for. If you need to open email attachments (ie you're HR and you received a Resume), make sure it's a real file and not a fake (a .pdf.exe) or ask for a share link from a popular storage provider (Nextcloud, Google Drive, Dropbox, etc.).

The above notes should get you protected better than 99.9% of people on the internet.

Re:HiddenWasp Malware Stings Targeted Linux Systems by shakna on Friday May 31, 2019 @12:34AM (#20058233)
> The malware is still active and has a zero-detection rate in all major anti-virus systems.

Anti virus wouldn't really help in this case. I should also point out that it appears that HiddenWasp is targeting systems that are already compromised in some form.

The "achilles heel" of these sorts of CnC attacks tends to be, and is apparently so in this case, that they do need to phone home.

In this case, the IP addresses are known, and blackholing them with your firewall (try something like ufw [1], if you don't have one), or your hosts file, is enough. Using something like pi-hole you can also deploy these protections for every device on your network.

There are quite a few hosts lists maintained out in the wild [0], and tools like fail2ban to protect against brute-force attacks.

But, as usual, by far and away the safest way to protect your system is to not run untrusted code. You probably have a package manager, going outside it tends to be less safe.

[0] For example: https://github.com/mitchellkrogza/Ultimate.Hosts.Blacklist

[1] https://wiki.archlinux.org/index.php/Uncomplicated_Firewall#...

Re:HiddenWasp Malware Stings Targeted Linux Systems by pushpop on Friday May 31, 2019 @01:38AM (#20058469)
Even using the official repos doesn’t guarantee you to be safe. The project developer might have had their development machine hacked and/or their source repository hacked and malicious code inserted. So when Arch / Ubuntu / etc package maintainers pull the latest source, unless they’re doing very thorough diffs of each source file, they could easily miss the injected malicious code and subsequently repackage that for the distro. What has actually happened before.

Also if your Linux / UNIX machine has an addressable WAN IP then you have all the usual risks of involved with hosting services on the public internet. A few years ago there was a spate of compromised web servers with the malware running as Apache modules.

So there aren’t really any guarantees when running Linux.

Re:HiddenWasp Malware Stings Targeted Linux Systems by LoveKebabble on Friday May 31, 2019 @03:52PM (#20064342)
The problem with this strategy is that IP Address/Domains/Hashes that are publicly available for free are typically dated and are rarely useful for catching anything other than mass scanning / ssh brute forcing or for doing retroactive searching and analysis.

You're also assuming that the linux server is the initial attack vector.

It is not uncommon for an org to be breached, and for the adversary to pivot to an admin box, and for the adversary to then gain control of a server using the admins legitimate credentials. All the while dropping persistence mechanisms along the way. Secure configurations and setups are always recommended and the above information is great advice. BUT it is also dated advice.

If you're not actively monitoring these servers and the activity on these servers they will eventually be popped. Logging all process/CLI activity is an awesome way to get started on monitoring, but if you're going that route, deploying Wazuh or an EDR tool can only add extra value by allowing you to create alerts off of specific values.

Re:HiddenWasp Malware Stings Targeted Linux Systems by jorangreef on Friday May 31, 2019 @03:36AM (#20058904)
If you don't expect your users to receive shell script email attachments from untrusted sources (which could be the initial attack vector here), then blocking the SH extension would be one simple step. Of course, there are a few more things you could do: blocking shell script shebang signatures, zipped files with the executable bit set etc.

If this is something you want from your email provider, along with some other simple defenses [1][2], then please drop me an email at [email protected], I work on an email startup in private beta.

[1] https://blog.cotten.io/ghost-emails-hacking-gmails-ux-to-hid...

[2] https://snyk.io/blog/how-to-crash-an-email-server-with-a-sin...

Re:HiddenWasp Malware Stings Targeted Linux Systems by LoveKebabble on Friday May 31, 2019 @09:57AM (#20060890)
I work as a detection engineer for a Security vendor and I'm going to go against the grain and say that there ARE tools you should run to monitor your linux infrastructure that are similar to AV but are NOT AV. I write detection's for these tools all day long for Linux systems and there's a BUNCH you can detect and alert on that's abnormal activity that should be investigated and having tools in place such as an EDR tool can make those investigations easier.

Looking at the original post - some of those would be monitoring the the bash history environment variables. This is commonly modified by threat actors as a defense evasion technique. (I see it a bunch with insider threats to)

There's a bunch of others - but having just that one alert trigger would have likely been enough to start an investigation and catch this malware should the protective controls others have recommended fail.

That said the tools to do the more necessary modern monitoring do typically require more maintenance and configuration and it's not typically a set and forget type of solution.

Options I'd recommend:

LimaCharlie - https://limacharlie.io - Cloud based EDR tool, it has a cost, but is not expensive ($1 per endpoint monitored, supports all Linux flavors). It's a lot easier to deploy and manage, but you'll have to write your own rules. This though will also allow you to remotely look at all processes/pull files off of a machine remotely/isolate hosts on the network etc

There are a bunch of other EDR tools out there like Carbon Black or CrowdStrikes/FireEye's tooling, but they run a high premium ($20-40 per end point, and typically only support Ubuntu or Redhat or both)

Wazuh - https://wazuh.com/ - It's a better maintained fork of OSSEC that makes mass deployments easier/has more default rules etc. It'll give you FIM/Notify you of insecure configurations etc - This one will require the most work to setup

Security Onion - https://securityonion.net/ - this one is probably a little overkill, but modern versions include Wazuh (as seen above) as well as OSQuery/Network IDS's (which are it's core feature)

Re:HiddenWasp Malware Stings Targeted Linux Systems by lloydw on Friday May 31, 2019 @02:39AM (#20058696)
Don’t use it myself, but heard good things about Sandfly Security. Doesn’t use signatures but rather looks for odd things and detects HiddenWasp due to simple things like processes running from /tmp and users with uid 0