Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Operating Systems
ChromeOS & Linux
Least Privilege for Ubuntu 24.04 Standard User
Message
<blockquote data-quote="Victor M" data-source="post: 1085894" data-attributes="member: 96560"><p>A little background on Least Privilege.</p><p></p><p>Least Privilege by definition means configuring your account to be able only to do the necessary things for daily use. So that means it should run the necessary apps like email clients and browsers and subjectively necessary apps, but nothing else. And that definitely does not include access to admin programs, package installers and the ability to change configuration files. Ubuntu, like Wndows, is designed for convenience, and your first account can use sudo to do admin things. You may think sudo offers some protection because it requires your password to execute an admin command. But when you think security, and become more aware of different ways that an attack and compromise can happen, you will arrive at the conclusion that it is better to have no admin rights accessible in your daily account. That way, should you be compromised, the exploit/attacker will be trapped in an account that can do nothing.Vulnerabilities happen - daily. Every major browser has multiple CVE registered security holes discovered with every single version ever released. They fix them but develop new features which adds another round of new security holes, and it just continues on - predictably. Your browser is a good example, particularly because you use it every day, and it is almost always running - you are always exposed. All it takes is a visit to a compromised web site, you will never notice any immediate effect. You may say you have this great anti-malware, but detection methods grow old and malware are custom coded to evade techniques used by popular protection. That's why it is a cat and mouse game. Your protections improve, and the attackers improve in turn o defeat them. So, the ultimate defense is to rely on the Least Privilege principle. Be uncompromisable. If your account can't access admin things, the attackers have little chance to take over the machine. Least Privilege is not infallible, if the attacker can reach outside of an account and modify a startup script of an admin account, for example, then she may have a chance. This attack approach is applicable to Linux and also to Windows. But it is only a 'possible' way, the opportunity may not be available.If the admin has not mistakenly configured her startup script to be world read/writable then there will not be an opening. Another way Least Privilege may fail is when there is a vulnerability in an app and the app has system wide privileges. Even Apparmor cannot hold against such a vulnerability. But there are very few of these kinds of apps - your browser is certainly not one of them.</p><p></p><p>So I have explained what the principle is, why it works, and even how it may be circumvented. It should be evident to you that it is in your best interest to apply the Least Privilege principle. It is a foundation security concept.</p></blockquote><p></p>
[QUOTE="Victor M, post: 1085894, member: 96560"] A little background on Least Privilege. Least Privilege by definition means configuring your account to be able only to do the necessary things for daily use. So that means it should run the necessary apps like email clients and browsers and subjectively necessary apps, but nothing else. And that definitely does not include access to admin programs, package installers and the ability to change configuration files. Ubuntu, like Wndows, is designed for convenience, and your first account can use sudo to do admin things. You may think sudo offers some protection because it requires your password to execute an admin command. But when you think security, and become more aware of different ways that an attack and compromise can happen, you will arrive at the conclusion that it is better to have no admin rights accessible in your daily account. That way, should you be compromised, the exploit/attacker will be trapped in an account that can do nothing.Vulnerabilities happen - daily. Every major browser has multiple CVE registered security holes discovered with every single version ever released. They fix them but develop new features which adds another round of new security holes, and it just continues on - predictably. Your browser is a good example, particularly because you use it every day, and it is almost always running - you are always exposed. All it takes is a visit to a compromised web site, you will never notice any immediate effect. You may say you have this great anti-malware, but detection methods grow old and malware are custom coded to evade techniques used by popular protection. That's why it is a cat and mouse game. Your protections improve, and the attackers improve in turn o defeat them. So, the ultimate defense is to rely on the Least Privilege principle. Be uncompromisable. If your account can't access admin things, the attackers have little chance to take over the machine. Least Privilege is not infallible, if the attacker can reach outside of an account and modify a startup script of an admin account, for example, then she may have a chance. This attack approach is applicable to Linux and also to Windows. But it is only a 'possible' way, the opportunity may not be available.If the admin has not mistakenly configured her startup script to be world read/writable then there will not be an opening. Another way Least Privilege may fail is when there is a vulnerability in an app and the app has system wide privileges. Even Apparmor cannot hold against such a vulnerability. But there are very few of these kinds of apps - your browser is certainly not one of them. So I have explained what the principle is, why it works, and even how it may be circumvented. It should be evident to you that it is in your best interest to apply the Least Privilege principle. It is a foundation security concept. [/QUOTE]
Insert quotes…
Verification
Post reply
Top