News for hackers. Stuff that matters.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by macmac on Tuesday July 04, 2017 @08:20AM (#14695409)
What is the best approach to guarding against crap like this on Linux, Ubuntu specifically?
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by jaimex2 on Tuesday July 04, 2017 @09:45AM (#14695823)
Don't run random scripts basically, always check their content. Specially if they require root.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by astrodust on Tuesday July 04, 2017 @12:39PM (#14696826)
Welp, there goes Rubygems and NPM global modules.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by chocolateboy on Tuesday July 04, 2017 @02:06PM (#14697361)
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by astrodust on Tuesday July 04, 2017 @03:18PM (#14697721)
You can do it without root if you take precautions, but the default is to use root.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by chocolateboy on Tuesday July 04, 2017 @03:34PM (#14697816)
Depends on the system. The default on Arch Linux is local gem installs:

    $ cat /etc/gemrc
    # --user-install is used to install to $HOME/.gem/ by default since we want to separate
    #                pacman installed gems and gem installed gems
    gem: --user-install
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by astrodust on Tuesday July 04, 2017 @04:41PM (#14698148)
That's a nice touch and some good work on the part of the package maintainer. Most (Ubuntu, RedHat, etc.) do not, they just expect you to sudo everything.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by zurn on Tuesday July 04, 2017 @01:02PM (#14696983)
Always wall off your dev/admin machine and all the credentials therein. Sandbox NPM type things using a VM or at least a non-root container.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by black_puppydog on Tuesday July 04, 2017 @08:29AM (#14695440)
well, as the article states, this attack needs elevated rights on your machine anyway. so to install that, you need to be pwned in the first place. and (also stated) you better hope that all admins of all websites/services you use take care about this, too, since they're the real juicy targets...
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by Thaxll on Tuesday July 04, 2017 @10:26AM (#14696051)
If you don't use Iptables you can blacklist the modules from loading at boot.

https://help.ubuntu.com/community/Loadable_Modules

Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by ComodoHacker on Tuesday July 04, 2017 @10:40AM (#14696111)
OTOH, not using iptables leaves you vulnerable to many other crap.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by safeharbourio on Tuesday July 04, 2017 @10:49AM (#14696152)
there is ufw and firewalld.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by a3n on Tuesday July 04, 2017 @10:59AM (#14696215)
Disclaimer: I'm a casual Linux user, not an experienced system administrator.

My understanding is that ufw uses iptables under the hood. I use ufw, yet my laptop (casual user) has iptables; don't know whether it was installed as a result of installing ufw, or if it's there by default.

Regardless of using iptables or ufw, these are both for manipulating the lower level kernel network firewall. And the article shows using iptables to load an nf kernel module. (I think) it's the module that's important, and iptables is just the convenience function to get it done.

Anyone who has root access could easily install and uninstall iptables, or use some other method of module installation.

I think.

Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by danieldk on Tuesday July 04, 2017 @11:03AM (#14696234)
All these tools just manage iptables or nftables rules.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by warbiscuit on Tuesday July 04, 2017 @11:07AM (#14696274)
Not to mention shorewall, which IMO provides a really nice abstraction over iptables, that fits 90% of the needs out there.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by scriptkiddy on Tuesday July 04, 2017 @12:33PM (#14696779)
On Ubuntu specifically, ensure that you are only installing packages from Cannonical's repositories or VERY trusted PPAs.
Re:CIA Targeting Linux Users With OutlawCountry Network Traf... by danieldk on Tuesday July 04, 2017 @11:06AM (#14696263)
In principle, secure boot plus signed kernel modules:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterp...

Though, I am not sure how vulnerable the key infrastructure is to the CIA.