NSA: Please Turn off the Lights When You Leave. Nothing to See Here.

Linux Advocate Dietrich Schmitz shows how the general public can take action to truly protect their privacy using GnuPG with Evolution email. Read the details.

Mailvelope for Chrome: PGP Encrypted Email Made Easy

Linux Advocate Dietrich Schmitz officially endorses what he deems is a truly secure, easy to use PGP email encryption program. Read the details.

Step off Microsoft's License Treadmill to FOSS Linux

Linux Advocate Dietrich Schmitz reminds CIOs that XP Desktops destined for MS end of life support can be reprovisioned with FOSS Linux to run like brand new. Read how.

Bitcoin is NOT Money -- it's a Commodity

Linux Advocate shares news that the U.S. Treasury will treat Bitcoin as a Commodity 'Investment'. Read the details.

Google Drive Gets a Failing Grade on Privacy Protection

Linux Advocate Dietrich Schmitz puts out a public service privacy warning. Google Drive gets a failing grade on protecting your privacy.

Email: A Fundamentally Broken System

Email needs an overhaul. Privacy must be integrated.

Opinion

Cookie Cutter Distros Don't Cut It

Opinion

The 'Linux Inside' Stigma - It's real and it's a problem.

U.S. Patent and Trademark Office Turn a Deaf Ear

Linux Advocate Dietrich Schmitz reminds readers of a long ago failed petition by Mathematician Prof. Donald Knuth for stopping issuance of Software Patents.

Showing posts with label Security-Enhanced Linux. Show all posts
Showing posts with label Security-Enhanced Linux. Show all posts

Saturday, September 27, 2014

Public Computer Security Misperceptions Abound

Gmail Google Phishing Message

Generally, I try to avoid giving out unsolicited advice, but, sometimes, will reflexively do so, especially for a friend who I know encountered some kind of "Windows" security issue.

Well, a friend posted up a gmail message they had received with concern to make their circle of friends aware of.

It is of the email 'click-bait' variety.  They all work the same on legacy Windows (x86) from present 8.1 back to Windows 2000.  The commonality is that all versions share the same core WinNT design that Microsoft cannot change as it will 'break' Enterprise software badly.

No, it's more what I call "shooting fish in a barrel" or "taking candy from a baby".  The email sent to the unwary Windows user is 'socially engineered' to steer them to opening the email and/or attachment, either of which (on Windows) will spawn Javascript to download and inject DLL code and run all silently unbeknownst to the user -- until, of course, it's too late when suddenly a rogue fake security warning comes up or the dreaded CryptoLocker virus has just finished locking (encrypting hard drive) the user out of their system and very professionally offers up a screen of payment credit card options for making payment, which will unlock said PC.  CryptoLocker is becoming endemic.

So, my weak moment was to offer unsolicited advice to the poster of Drive-by threats inherent in the use of Windows.  This kind of advice was coupled to my 'standard' recommendation to the poster to consider switching to Linux which I have used since 2005.

I've been in the IT business for 20 years and ought to know something at this point in my life about issues regarding computer security, one would think.  Yet, despite offering up this kind of friendly advice, there is always the random respondent who turns up and shows his/her ignorance with great facile, I might add.  Here are their remarks:


"I hate this kind "commercial" attitude some people have. I dont like Linux. It may be the safest whatever OS and good for servers. But I don't like it. How can someone possibly even think Linux is safer when its open source for God's sake the only reason Linux is safe is  because is not as popular as windows yet. Maybe it might become that much popular and be used almost everywhere but as far as I'm concerned almost all companies and 90 % of the users worldwide are still on windows. That is why its the most vulnerable because if I was a criminal who would I attack?  A bigger area of effect obviously. 
How little people think nowadays really. Thank you for your kind offer but I'm not going to an open source program. Keep your eyes open for "these kind of threats" and alert others.
No operating system that is on the internet is safe. Not even Linux. Linux has one of the biggest issues if anything for being open source. If anything attacking the Linux website one day for example and their downloads and all other server connections they have would  compromise absolutely every single user and you do not need to be a computer tech to realize that. 
Thank you, but no. Have a wonderful day. :)"

Okay, instead of responding in my friends post, I chose to submit to her woeful ignorance and put things into perspective here point by point:

1) "I hate this kind "commercial" attitude some people have."


Commercial?  This was posted to a 'friend' for her benefit and so wasn't a commercial or if she meant an endeavor to profit, Linux is FREE.  It wasn't motivated by money.

2) "How can someone possibly even think Linux is safer when its open source for God's sake."


Huh?  The user presumably associates the word 'open' with some form of security vulnerability like 'leaving the door open'?  One of the cornerstones of Linux is its Gnu Public License for sharing the entire source code base and making changes to it freely.   Because of this, user of Linux enjoy true "Transparency", which means many eyes (more so than what Microsoft has in employee headcount), around the globe are looking at and vetting source code to ensure no rogue code insertion occurs.  Unlike Linux, Windows is proprietary and the end-user cannot see their source code, cannot copy it, and thus have NO idea whatsoever what the employees of legacy Windows did or did not do to the code base.  Being proprietary means effectively, Microsoft can write the operating system and applications however they wish, and, that includes code insertion of functionality like 'back doors'.

Yep, back doors exist in Windows for both Microsoft's use and for their partnering governmental agencies which wish to access your PC.  They come and go silently with impunity.  After you've thought about that for a minute, go find some black electric tape and place it over your Laptop's camera, mmmkay?

This doesn't even speak to the unfixed zero-day exploits present and hidden because Microsoft's code base is not viewable by anyone other than their privileged but shrinking staff of programmers most of whom didn't write the original code and might not have a clue as to how to go about changing it.  Those programmers left 5-10-15 years ago.  So, Zero-Day exploits are rampant, and, the hackers that have discovered them sell their exploits on the black market to people on the other side of the globe who want access to you, usually for money.

Microsoft code doesn't get continually refactored like Linux and vetted for safety.  It gets written and then forgotten.  Their maintainers will fix what they can if they can do so without breaking the system, but their resources are limited.

3) "Linux is safe is because is not as popular as windows yet."


Oh right.  The security by obscurity argument.  Alright let me explain the central security issue with Windows:

If an exploit (drive-by, email attachment same difference) on Windows is 'successful' in running, it will make its own SYSTEM call() to perform an 'Administrative' function.  It is at this point that Windows should stop to check on what that 'action' is and by what process id (parent) is making the call.  It doesn't.  Nope.  Once the exploit gets a toe hold, it proceeds to run administratively with no other cross-check security mechanism.  Got that?  Your PC is officially owned.

With Fedora Linux, you have what is called sandboxing technology.  SELinux, a Linux Security Module (LSM), binds to the kernel at bootstrap and maintains a 'hook' api in the SYSTEM kernel.  This 'hook' gets called on each granular system administrative process invoked on Linux.  SELinux (the Sandbox or Mandatory Access Control), cross-checks each discrete action against its policy group for the calling app  and if it isn't an allowed action, it on returning from the hook sends a 'deny' to the kernel.  The rogue code, exploit, is stopped cold.

It doesn't matter from whenst it came, the sandbox blocks it from getting a toe hold in Fedora Linux.

Windows Legacy users?  To you I say: Go with God.

Fedora Linux: The safest operating system on the Planet.
I stake my reputation on it.  -- Dietrich



Sunday, June 22, 2014

Is it Okay to Disable SELinux or AppArmor?


I am flabbergasted at what some so-called, self-anointed 'Linux Experts' offer in the way of sound technical advice.

Take Igor Ljubuncic (aka Dedoimedo) for example.  He seems to be a smart guy and many look to him for reviews of Linux Distributions.  But, I tend to disagree with him about as much as I agree.

His latest story, Linux Mint vs. Ubuntu Security, spurred me to write this post and as it is more than a bit problematic and misguided, I take exception here to disagree with his security recommendation.

As we, in the IT business, should know, security is a process, not a thing.  The effectiveness of one Distro's security implementation may or may not be as good as another's.  And, how each Distro's developers choose to configure security isn't necessarily guided by good decision making.  In fact, I have written, many cookie-cutter clones, or spins if you will, inherit the bad design decisions of their parent Distro, which is one of my pet peeves for why cloning is not necessarily good for Linux at large.



It was causing problems so we disabled it

A response to resolving Linux Security Modules (LSM) issues often heard is the advice given to disable the 'offending' module entirely, when such errors arise.

Igor writes:


Aha, I knew it. There you go. Linux Mint does not ship with AppArmor or any profiles. Well, interesting, not. The thing is, security tools like Apparmor or SELinux are much like HIPS software in Windows. In other words, not necessary. Moreover, they usually cause more harm than good by blocking legitimate software from running. What we like to call the false positive, or fail publicly (FP).


Here, Igor takes it upon himself, despite the considerable design efforts put forth by Canonical Ltd. to provide enhanced LSM sandboxing technology, to marginalize the importance of such technology.  I find that rather irresponsible, given today's situation, what with world-wide rampant security exploitation and surveillance on the Internet growing by leaps and bounds.

No, I am afraid Igor is giving bad advice and has no business telling readers to disable a service provided by software vendors, backed by good justification and years of experience.  

Igor goes on to say:

Indeed, if I look at the history of my involuntary use of Apparmor and SELinux in various distros, I have seen the former kick in only once, and the latter about three dozen times, and each example was a case of a legitimate program being mislabeled. In theory, yes, they might prevent exploits, but you're not running a commercial Web server, so relax.
So, on the one hand, he's admitting that LSMs do indeed prevent exploits, yet on the other he's suggesting (paraphrasing) there was a bug in mislabeling a legitimate application.

So, why, then, did Canonical choose to include LSM AppArmor with Ubuntu and Fedora choose to include LSM SELinux for their several Desktop spins?  

Evidence like Stuxnet, Identity Theft, Ransomware, Malware, Bots, Keyloggers ought to be good clues as to the gravity of the situation.  This clearly isn't sensational.  It is real and happening to the unwary every day.  Igor, strangely, minimizes the seriousness of the situation.

What should be done in the case of a reproducible LSM sandbox error?


If you are experiencing a reproducible error (verses a 'one-time' intermittent error)  using a signed application in your Distro's software repository, do open a software support call ticket on their website so that the vendor can take immediate corrective action.

Don't disable your LSM sandbox.  Go directly to your software vendor for support.  Your issues will be resolved expediently with revisions to your security software. 

-- Dietrich

Wednesday, November 13, 2013

Sandbox? What Sandbox? -- Fedora Has You Covered

by Dietrich Schmitz

It's not something the average user thinks about -- security.  But as with most Linux Distributions (Distro) Fedora, a Red Hat community-based Distro, has some things going for it that are not apparent.

The single biggest asset going for Fedora is security.  You see, just about everything you do while on Fedora is under what's called 'Mandatory Access Control'.  That's security-speak for basically having everything you do 'watched' by a third-party 'Linux Security Module', (LSM) including even actions taken by the system kernel.  That may not mean much to you but to system administrators and security experts alike, it is 'peace of mind'.

Simply put, bad things won't happen on Fedora's watch.

No, unlike Microsoft Windows, this 'third-party' is always cross-checking what your PC is doing and if anything isn't in your SELinux 'policy' say trying to gain administrative privilege to control your system without your expressed permission, SELinux steps in and kills the process.

That's the way security should be.  And you can rest assured your PC won't be hit by silent 'drive-by' javascript DLL injection attack as is still prevelant with Microsoft Windows legacy x86; even Windows 8.1 uses the legacy WinNT 2000 kernel.  That's ancient by today's standards and it is fraught with security issues like the one described above.

I've written about how Google's Engineers have posted a general 'disclaimer' on their chromium.org website for Chrome that effectively says:  
 
"W'eve tried our best to sandbox Chrome on Windows, but we can't guarantee you won't get infected.  Sorry."  (shrugs)

So, if you've been bitten one too many times by a virus from out of nowhere on Windows, maybe now is a good time for you to make a switch for the better.

Get smart.  Get Fedora Linux with LSM SELinux found here:
http://fedoraproject.org/
 
Fedora has you covered.  Be safe. -- Dietrich
Enhanced by Zemanta

Tuesday, March 19, 2013

Linux Systems Administrator Tools to Die For

by Dietrich Schmitz

You are the 'go-to' Linux Systems Administrator for your organization.

The fact is, you have a lot to do and there are only so many hours in a day.  So, you are always looking for new ways to leverage the use of your time.

Here is a list of popular tools which should be in every Admin's toolbox that provide time-saving functions and features that will help in all manner of troubleshooting and problem-solving situations.

Nmap/Zenmap


Nmap is one of those tools that simply cannot be overlooked and will save hours of guess work when troubleshooting a network.  Used to discover hosts and services on a network from the command line an accompanying graphical package can be installed, called ZenMap.

Command Line Utilities

These command line tools are some of the most commonly-used system utility programs for every-day system administration.  To get help, read the respective man page for each.

ssh, screen, vim, awk, sed, Perl, Netcat, Nslookup, ping, whois, traceroute, Netstat, dig, dd, tcpdump, rsync

WireShark

Wireshark is an open source packet analyzer.  It is simply indispensable when it comes to troubleshooting network connections and provides visualization in a Gtk graphical display of every minutiae for the protocol being traced.

BitDefender System Rescue CD


System Rescue CD provides a Live bootable CD for performing Anti-Virus scanning of any volume.  It's advantage comes from being able to bootstrap (pen drive or CD) into Linux on a Windows PC and scan the Windows NTFS drive partition for virus detection off-line.  Doing a full scan off-line ensures the persistent signature of a virus will be detected.  Quite often, Viruses evade detection by on-line Windows AV software, so this is a good security tool to have for a network having both Windows and Linux PCs.

Virtual Network Computing (VNC)

VNC, was released as open source and licensed under GPL.  It has several derivative versions, including RealVNC, TightVNC, UltraVNC, all of which allow remote desktop access and control over a network.  This free tool is popular for performing IT support in an organization for obvious reasons.


FreeNX


FreeNX is a subset of the commercial NX thin client protocol for remote desktop computing.  FreeNX is open source and licensed under GPL and offers free NX-based thin client terminal access to a Linux Server.  NX has programming optimizations which reduce the amount of X Windows metadata semantics which must travel across a connection by only sending the 'delta' portion of a screen change.  This effectively results in near-local machine performance over long distances and even on low-bandwith 56K dial-up connections. NX by default is secured and running over a tunnel-encrypted secure shell (ssh) connection.

OpenVPN


OpenVPN is an open source GPL licensed Virtual Private Network (VPN) solution.  Linux NetworkManager plugin architecture provides an OpenVPN module for easily setting up Client PCs with access to a corporate-firewalled VPN private subnet.  VPNs by default expose both TCP and UDP port ranges for all ip-ranges defined in the OpenVPN configuration.  This effectively means a remote PC can see and use all corporate resources while tunneled over a VPN secure encrypted connection the same way as a locally connected PC.

Chrome Remote Desktop


Popular Google Chrome web browser has become an indispensable tool for so many reasons.  One need only visit Google's Chrome Web Store to see the array of applications and plug-in extensions available for download.

Among these extensions is found Chrome Remote Desktop.  Chrome Remote has become a popular easy way to provide remote PC assistance.  It is free and the only requirement is that both end-point PCs be running Chrome with the Chrome Remote extension loaded.  Chrome Remote doesn't require special firewall pass-through rules and uses it's own Google server tunnel encrypted protocol (middle-man) to bridge across any firewall for unimpeded access.

Kernel-based Virtual Machine (KVM)


Kernel-based Virtual Machine (KVM) is built into the Linux Kernel and free.  KVM is a type 1 hypervisor providing 'bare metal' performance and is competitive with other Virtual Machine host software vendors such as Citrix ZenHost, VMware, ProxMox, and most recent Linux Containers (LXC).

Virtual Machines offer many benefits not the least of which is quick deployment of servers as resource loads on a VM host without the need to procure additional server hardware.  All hardware is emulated in the virtual machine.  Many IT shops are trending with collapsing down racks upon racks of rack servers into a consolidated high-performance host virtual machine 'farm'.  The multi-core VM host handles the processor overhead of the former bare-metal hardware based processors transparently, reduces power consumption, increases 'high availability' (little or no down-time).  These features increasingly make transitioning to virtual machines a 'hot' technology, and a very competitive one.  Knowing a modicum about KVM will give the Linux System Administrator a sharp technical edge and automatic advantage in today's cost-cutting tight-budget IT environments.

SELinux/AppArmor

SELinux, a Linux Security Module (LSM) is at the very core of Linux's security design, originally developed with assistance from the National Security Agency.  SELinux essentially defines Mandatory Access Control for each application running in its sandbox.  Applications must adhere to a profile of expected or allowed normal behaviors and any deviation from those policies is automatically undefined and will be rejected by the SELinux kernel module.  The Mandatory Access Control is quite effective and you will find SELinux present in Red Hat Linux, Fedora Linux, and an LSM called AppArmor running by default in Ubuntu Linux.  Learning either SELinux or AppArmor is an imperative for today's Linux System Administrator to gain a competitive advantage in the IT job market.

Samba

Samba is an open source free software application which re-implements the  SMB/CIFS networking protocol for sharing files across a network.  SAMBA4, recently released, now includes support for acting as a wholesale replacement for a Windows Active Directory Primary Domain Controller (PDC).

If you watch technology trends as closely as I do, you will realize the implications of Samba4 are quite big.  Already there are Samba PDC stack vendors competing to sell Windows AD PDC implementations replacing Windows Hardware and unencumbering buyers of Windows Licensing restrictions and cost.  Learn as much as you can about Samba.  You'll definitely score high the more you know and IT retention usually takes into consideration those who have the most important skills.  Catch my drift? ;)


Nagios System Monitor


Nagios may not be the newest System Monitor on the block, but, still, its reputation precedes it.  That means its deployment will greatly lower some of the inherent risks that every IT department faces.  Nagios when properly configured will monitor your entire network of services and based on its rule set notify you if/when a service goes down.  That can keep your down-time vulnerability to just minutes when you are sitting at home and get an SMS text message that one of your servers is off-line.  Quickly responding from anywhere with remote corrective action might mean that no one will even know there was an issue or you will have a chance to act before reaching work on a Monday as opposed to having a down system during production hours--an IT manager's worst nightmare.  It's just good business practice in today's world to set up and configure a system monitor for your IT shop.  It will pay over and over for itself.  I promise.

Clonezilla


You know, in the proprietary software world, you can spend a lot of IT dollars without blinking an eye.  Every time you turn around Symantec has another License renewal that must be paid for.

Ghosting machines doesn't have to cost money.  In fact, Clonezilla does everything Symantec Ghost does for free.  So if you pre-image your PCs using Ghost, switch to Clonezilla and get those software license IT dollars back into the budget by doing the job for free.  This is another cutting edge skill you will want to get under your belt.

So, that's it.  I think that covers the range of skills areas over which a Linux System Administrator will want to have maximal efficient control.  Stay smart.  Use the 'best of breed' tools you can find and run a tight IT shop with open source Linux tools 'to die for'.

-- Dietrich



Enhanced by Zemanta