{"id":38445,"date":"2016-10-18T22:32:49","date_gmt":"2016-10-19T03:32:49","guid":{"rendered":"http:\/\/notsosecureblog.wordpress.com\/?p=455"},"modified":"2016-10-18T23:07:00","modified_gmt":"2016-10-19T04:07:00","slug":"you-shall-not-pass","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc2027fall2016\/syndicated\/you-shall-not-pass\/","title":{"rendered":"You shall not pass!"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/notsosecureblog.wordpress.com\/2016\/10\/18\/you-shall-not-pass\/\"><a href=\"https:\/\/notsosecureblog.wordpress.com\">The shield of the world<\/a><\/a><\/em><br \/><\/p>\n<p>So today post is about Authentication and Access Control&#8230;which is something not so new for someone who actually respects the base configuration of Windows (Yeah&#8230;right) permissions about new software and modifications and also for the Unix base OS with sudo.<\/p>\n<p><span id=\"more-455\"><\/span><\/p>\n<p>So in the more basics words Authentication is when we identify ourselves to the OS, with an username and a password. So authentication is in reality so simple, just helps the OS to verify that the individual or &#8220;user&#8221; we claim to be, is indeed ours.<\/p>\n<p>Actually when you are on the same network as others computers and you want to access the information on them, you got a pop-up asking for an specific user and password. This is to authenticate that you are trying to get your own information and not someone else.<\/p>\n<figure data-shortcode=\"caption\" id=\"attachment_468\" style=\"width: 345px\" class=\"wp-caption aligncenter\"><img class=\" size-full wp-image-468 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/96aad22ba6747fe1bbeefea1f38e3f0c.jpg\" alt=\"authentication\"   \/><figcaption class=\"wp-caption-text\">Image from\u00a0<a href=\"https:\/\/docs.oracle.com\/cd\/E12752_01\/doc.1013\/e12748\/setting_up.htm\">Oracle<\/a><\/figcaption><\/figure>\n<p>We have seen movies where the authentication is almost a ritual, first the person just stands by and uses his password of 4 digits, then in the other door he puts his fingertip, on the other one he uses his eye to authenticate himself and finally he almost have to sing or dance or pray to the gods looking for it to work and access the most secret place and treasure.<\/p>\n<p><img class=\" size-full wp-image-426 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/09\/55071f00fd116969b680d5ba95e90ae0.jpg\" alt=\"2001\"   \/><\/p>\n<p>Of course in real life there is a high chance that you don\u00b4t even have the user and password authentication enable. We are lazy, yes we are&#8230; but we need to know when to block our PC and avoid those email for the entire enterprise saying &#8220;DONUTS ON ME&#8221;, no, I haven\u00b4t suffered this, but someone in my group did.<\/p>\n<p><img class=\" size-full wp-image-473 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/8cc4d2da53511cc264075c7243ee20a7.jpg\" alt=\"200\"   \/><\/p>\n<p>Is not entirely necessary to implement the full ritual that I just mention to you, but a 2 factor authentication can help us to avoid getting our information filtered. When you lost <div class=\"post-limited-image\"><img class=\" size-full wp-image-486 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/5cbd35f27f80b7787ec9cfe597aa4f54.jpg\" alt=\"2001\"   \/><\/div>\n<div class=\"post-limited-image\"><img class=\" size-full wp-image-494 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/999ed010ae4f543a87560805697d5e21.jpg\" alt=\"windows_7_uac_signedcode\"   \/><\/div>\n<div class=\"post-limited-image\"><img class=\" size-full wp-image-503 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/eae062461faca30cc1aa3dc234069034.jpg\" alt=\"giphy\"   \/><\/div>\n<div class=\"post-limited-image\"><img class=\" size-full wp-image-517 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/cf20b4b47acbd76031fc3555b5d83401.jpg\" alt=\"giphy1\"   \/><\/div>\n<div class=\"post-limited-image\"><img class=\"alignnone size-full wp-image-338 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/b0ac941c9ab73442fa370d19cacc5644.jpg\" alt=\"giphy1\"   \/><\/div>\n<div class=\"post-limited-image\"><img alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/10f2a5e10a93410c28cd0832e8d96c7f.jpg\" \/><\/div>\n<div class=\"post-limited-image\"><img alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/f5c41526aa86db7c70ae587932aad5d4.jpg#038;blog=115211217&%23038;post=455&%23038;subd=notsosecureblog&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/><\/div><!--more--> cellphone and somehow all your photos and stuff is online, a 2 factor authentication could help you not to suffer this. As a example Steam now fully implement a &#8220;2 factor authentication&#8221; you need to know your username and password and then you have to put the code that is showing off in your cellphone, so yes! You need a cellphone.<\/p>\n<p>If you ask me, is cool that more enterprises related to user information are implementing this, probably the banks are ones of the first in using a 2 factor authentication, with that message saying &#8220;Oh sorry, you need the Token to do that&#8221;. So&#8230; some factors to utilize as another authentication source is the username and password, the smartphone app and your fingerprint or retina or a voice message ooooor SMS passcodes, Phone callbacks, mobile passcode like One time password app.<\/p>\n<p>So even if you have a username and password, but you use the password &#8220;password&#8221; is almost useless, so a 2 factor authentication can prevent from someone else sniffing around your accounts and information. Is your fault for using such password, but I&#8217;m a nice person and that&#8217;s why I&#8217;m suggesting you to use a 2 factor authentication.<\/p>\n<p><img class=\" size-full wp-image-486 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/5cbd35f27f80b7787ec9cfe597aa4f54.jpg\" alt=\"2001\"   \/><\/p>\n<p>Let\u00b4s now talk about Access Control, we indeed have seen this at least once in Windows and is the everyday tool in Unix systems.<\/p>\n<p>On Windows we see this little windows every time we want to do something like installing a new software, messing around with the registers or something that may damage the OS.<\/p>\n<figure data-shortcode=\"caption\" id=\"attachment_494\" style=\"width: 466px\" class=\"wp-caption aligncenter\"><img class=\" size-full wp-image-494 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/999ed010ae4f543a87560805697d5e21.jpg\" alt=\"windows_7_uac_signedcode\"   \/><figcaption class=\"wp-caption-text\">Image from\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/User_Account_Control\">Wikipedia<\/a><\/figcaption><\/figure>\n<p>And basically UAC limites application software to standard uses privileges until an administrator(you) authorizes an increase or elevation. By doing this just the applications trusted by the user may receive administrator privileges and this will help us to stay away from Malware. So even if our account has admin privileges the UAC help us prevent unauthorized behavior from random or strange apps. Even if by mistake the admin user open and run the app it will ask for permission before actually letting the app run free.<\/p>\n<p>&nbsp;<\/p>\n<p>And this is exactly what happens in Unix with the sudo command. But why not explain the same again&#8230; sudo or &#8220;superuser do&#8221; allows the user with proper permissions to execute a command as another user, such as the superuser&#8230;yes when you type su is for superuser&#8230; and not this is not a good practice when you are working in Linux-Unix.<\/p>\n<p><img class=\" size-full wp-image-503 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/eae062461faca30cc1aa3dc234069034.jpg\" alt=\"giphy\"   \/><\/p>\n<p>But there is a little more security level here&#8230; even if you type sudo before the command you want to run, it will ask for the password of the user&#8230; is not like thaaaaat secure, but it is something. When you authenticate yourself again, because we have to do this to actually enter to the OS, there is a time stamp where the user can call commands without the need of writing sudo again, this will happen for 5 minutes and after that you need to use sude again.<\/p>\n<p>So this seems pretty insecure, but to actually write sudo and do something we need to be on the sudoers list, if we are not there when we are trying to call sudo, it is considered an unsuccessful attemp to breach system security and mail is sent to the proper authorities(don\u00b4t really think so&#8230;but who knows) as defined at configure time or in the sudoers file. The default authority is root.<\/p>\n<p><img class=\" size-full wp-image-517 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/cf20b4b47acbd76031fc3555b5d83401.jpg\" alt=\"giphy1\"   \/><\/p>\n<p>So as we learned today authentication and access control are some of the best ways OS has to protect us and to improve the security of our information and data.<\/p>\n<p>Hope you like it and CY@ Folks!!<\/p>\n<p><img class=\"alignnone size-full wp-image-338 aligncenter\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/b0ac941c9ab73442fa370d19cacc5644.jpg\" alt=\"giphy1\"   \/><\/p>\n<blockquote><p>All gifs are from Giphy!<\/p><\/blockquote>\n<p>&nbsp;<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/notsosecureblog.wordpress.com\/455\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/10f2a5e10a93410c28cd0832e8d96c7f.jpg\" \/><\/a> <img alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc2027fall2016\/wp-content\/uploads\/2016\/10\/f5c41526aa86db7c70ae587932aad5d4.jpg#038;blog=115211217&%23038;post=455&%23038;subd=notsosecureblog&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at The shield of the world So today post is about Authentication and Access Control&#8230;which is something not so new for someone who actually respects the base configuration of Windows (Yeah&#8230;right) permissions about new software and modifications and also for the Unix base OS with sudo. So in the more basics words Authentication &hellip; <a href=\"https:\/\/kenscourses.com\/tc2027fall2016\/syndicated\/you-shall-not-pass\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">You shall not pass!<\/span><\/a><\/p>\n","protected":false},"author":10,"featured_media":38446,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[106,145,42,24,146],"class_list":["post-38445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-authentication","tag-password","tag-security","tag-tc2027","tag-username"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/posts\/38445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/comments?post=38445"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/posts\/38445\/revisions"}],"predecessor-version":[{"id":38463,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/posts\/38445\/revisions\/38463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/media\/38446"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/media?parent=38445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/categories?post=38445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc2027fall2016\/wp-json\/wp\/v2\/tags?post=38445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}