LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-05-2019, 04:34 PM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Rep: Reputation: Disabled
Any good security programs for linux ?


Does anyone know of any good security programs for linux like there are for windows ? Something that locks-hides files & folders so they can`t be edited or moved deleted ? Any that restricts access to certain features like start menu,control panel,registry and others, Folder Lock as a example.
 
Old 10-05-2019, 07:29 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
A standard Linux system will generally not allow a normal user (non-root, non-administrator) to write to any location the /home/user directory but will allow reading to many locations. If a user can't write to a directory, s/he cannot edit anything. Not sure what you want to limit in the Menu but the Control Panel used to configure various settings on the computer should require root privileges. There is no 'registry' in Linux, not sure what would be comparable but I'm sure someone else will post.
 
Old 10-05-2019, 07:47 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
There are two frameworks that make background services more secure, AppArmor and SELinux. They are installed and configured by default on several distros. Their working principle is containment of attacks: When a service, for example web server, is compromised, an attacker that has gained root privilege can only cause damage to the files that belong to that service, and not to the system at large.

SELinux can tighten security even more by implementing its Multi-Level Security policy, which can make your system get clearance from the CIA and other spy organizations. May be overkill for you, but only the paranoid survive.

Some distros configure a strict firewall that only opens the ssh port by default. It is not too hard to set up such a firewall on a more permissive system.

Linux includes a command, chattr, that allow you to "lock down" a file, so that even root can't modify it. However, root can use chattr to unlock the file.
 
Old 10-06-2019, 05:58 PM   #4
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
There are two frameworks that make background services more secure, AppArmor and SELinux. They are installed and configured by default on several distros. Their working principle is containment of attacks: When a service, for example web server, is compromised, an attacker that has gained root privilege can only cause damage to the files that belong to that service, and not to the system at large.

SELinux can tighten security even more by implementing its Multi-Level Security policy, which can make your system get clearance from the CIA and other spy organizations. May be overkill for you, but only the paranoid survive.

Some distros configure a strict firewall that only opens the ssh port by default. It is not too hard to set up such a firewall on a more permissive system.

Linux includes a command, chattr, that allow you to "lock down" a file, so that even root can't modify it. However, root can use chattr to unlock the file.
Funny SELinux or Security Enhanced Linux was developed by the NSA way back when in the 2000`s sometime i don`t remember exactly, but are you trying we can actually trust anything the Gov. or the NSA,FBI or the rest of them say ? I would not trust any thing by them no matter what it is or what they say.
 
Old 10-06-2019, 06:41 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by TokTok View Post
Funny SELinux or Security Enhanced Linux was developed by the NSA way back when in the 2000`s sometime i don`t remember exactly, but are you trying we can actually trust anything the Gov. or the NSA,FBI or the rest of them say ? I would not trust any thing by them no matter what it is or what they say.
It's open-source. You have to have a high degree of paranoia if you think that everybody competent enough to understand the source code is part of the conspiracy.
 
Old 10-06-2019, 06:50 PM   #6
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Didn`t say it was or was not a conspiracy, just that i would not trust any of them-might be open source but was still developed by the NSA sometime in the 2000`s i do not trust any Gov. rep elected or otherwise & won`t change in the future. I do study history and go by what the facts are so i`m not going to trust them at all no matter what they say-it`s what they do that count`s.
 
Old 10-06-2019, 06:57 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Distrust of governments, people in power and secret services is healthy. My point is that this is not relevant. The software is open-source and has been since 10-15 years; if it contains anything nefarious, it would have been detected by now.
 
1 members found this post helpful.
Old 10-06-2019, 07:06 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
As berndbausch points out the likelyhood of it being a trojan is much less (but perhaps still non-zero) with many eyes reviewing the code.

On the other hand, you still trust those same actors, and more, to have not successfully compromised the kernel code (we know they have tried), and pretty much every other application you depend on... have you actually verified them all?

At some point you have to decide whether and what to expose, and use your best judgment rather than rely on actual trust.
 
Old 10-06-2019, 07:13 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by astrogeek View Post
On the other hand, you still trust those same actors, and more, to have not successfully compromised the kernel
Yes. If you don't trust SELinux, why do you trust Linux?

Perhaps you should look into OpenBSD. As far as I know, it's the most secure free operating system.
 
Old 10-06-2019, 08:09 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
As others have pointed out, by default, security is built into Linux out of the box. Linux was built to Unix standards, and, as Unix was a multi-user system from the get-go, security was always a concern.

The basic element of security with Linux are the same as with any other OS: a good firewall. Firewall capability is built into the Linux kernel--it's called iptables. Linux firewall "programs" are usually frontends for configuring iptables.

Viruses are not a major concern, as most viruses target more popular operating systems, but that doesn't mean you should ignore them. There are AV programs for Linux.

The biggest weakness in Linux is the same as with any other OS: The person sitting behind the keyboard: don't go to dodgy websites, don't click on questionable links, don't get phished. All the security software in the world can't protect against stupid.

You may find this a good reference: https://www.linuxtopia.org/LinuxSecurity/index.html
 
2 members found this post helpful.
Old 10-07-2019, 10:48 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TokTok View Post
Something that locks-hides files & folders so they can`t be edited or moved deleted ?
Lock: baked right into Linux filesystems.
Code:
chmod 400 file
makes it read only, and readable only by the owner.
Just one of a million examples, read
Code:
man chmod
man chown
So that's not even touching on SELinux.

Hide: various trivial solutions exist. I use encfs for my porn collection.
 
Old 10-07-2019, 11:02 AM   #12
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by berndbausch View Post
The software is open-source and has been since 10-15 years; if it contains anything nefarious, it would have been detected by now.
Not necessarily. On the basis of "nefarious, implanted back doors", you may have a point, but in terms of vulnerabilities which have been discovered and not disclosed it's a different matter altogether - but the same can be said for any "open source" software. The Linux kernel is a very large and bloated code base, so it's not a given that the fabled "eyeballs" have audited ever single line.

I think OpenSSL taught developers and users, quite a lot with respect to "open source" code, in that problems can still lie hidden for years, if the code is not being continually re-examined, reevaluated and developed.
 
1 members found this post helpful.
Old 10-08-2019, 02:48 AM   #13
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by TokTok View Post
Does anyone know of any good security programs for linux like there are for windows ? Something that locks-hides files & folders so they can`t be edited or moved deleted ? Any that restricts access to certain features like start menu,control panel,registry and others, Folder Lock as a example.
"chattr" can make files immutable, so they can't be edited or deleted.
 
Old 10-09-2019, 12:38 PM   #14
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Distrust of governments, people in power and secret services is healthy. My point is that this is not relevant. The software is open-source and has been since 10-15 years; if it contains anything nefarious, it would have been detected by now.
I can agree to that-But i still don`t trust them ot it.
 
Old 10-09-2019, 12:43 PM   #15
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Lock: baked right into Linux filesystems.
Code:
chmod 400 file
makes it read only, and readable only by the owner.
Just one of a million examples, read
Code:
man chmod
man chown
So that's not even touching on SELinux.

Hide: various trivial solutions exist. I use encfs for my porn collection.
What`s this encfs about / Can you explain it ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any good Linux-compatible streaming video capture/conversion programs? isaac3rd Linux - Newbie 3 09-25-2009 12:19 PM
Any good website design programs for Linux? Mikesoft Linux - Desktop 2 01-04-2007 01:32 PM
Before switching to Linux, are there any good alternatives to these programs? ralph76 Linux - Software 4 06-26-2004 01:48 PM
any good programs to play videos on Linux? ShawnD Linux - Software 15 09-01-2002 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration