<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Jordao on Medium]]></title>
        <description><![CDATA[Stories by Daniel Jordao on Medium]]></description>
        <link>https://medium.com/@daniel-js?source=rss-c6d86a1d19e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UfothUBmkKhzU1d6weWuJg.jpeg</url>
            <title>Stories by Daniel Jordao on Medium</title>
            <link>https://medium.com/@daniel-js?source=rss-c6d86a1d19e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:07:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daniel-js/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using shell faster in Linux]]></title>
            <link>https://daniel-js.medium.com/using-shell-faster-in-linux-aaf9692267ad?source=rss-c6d86a1d19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaf9692267ad</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Daniel Jordao]]></dc:creator>
            <pubDate>Wed, 03 Mar 2021 22:59:07 GMT</pubDate>
            <atom:updated>2021-03-03T22:59:07.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>7 tips for using shell terminals faster and efficiently</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AynJiaO9hf01hfTIIAMDqw.jpeg" /></figure><p>Here are 7 tips for using shell faster and efficiently.</p><blockquote>sudo !!</blockquote><p>Many times we forget to prepend a command by “sudo”. Instead for getting last command, hit HOME and append “sudo”, we can type in a blank line: “sudo !!” This repeats last command prepending “sudo” to it.</p><blockquote>CTRL + K</blockquote><p>Sometimes we confuse ourselves about the arguments passed to a program and needs to delete the lasting portion of a command. We could of course delete by holding DELETE or BACKSPACE keys. But we could position our cursor and just hit CTRL + K. This command cuts all text after cursor.</p><blockquote>CTRL + U</blockquote><p>Instead of cutting text after the cursor, you can cut text before it using CTRL + U.</p><blockquote>CTRL + Y</blockquote><p>If after using above commands you need to undo the text cutting, just press CTRL + Y. This will give back the cutted portion.</p><blockquote>CTRL + W</blockquote><p>You can easily delete words backwards using CTRL + W</p><blockquote>ALT + . (period)</blockquote><p>Usually in penetrating testing, you need to pass the same argument between distinct shell commands like host ip. Argument repeating can be done using ALT + . after typing each program name (nmap, hping, etc).</p><blockquote>reset</blockquote><p>Not rarely some process die and the terminal gets into a abnormal state. Instead of hitting CTRL+C, closing our connection and restart the whole connection process, we can use reset to keep our session open.</p><p>#cybersecurity #linux #shell #bash #pentesting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaf9692267ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detaching Linux processes from the shell / SSH sessions]]></title>
            <link>https://daniel-js.medium.com/detaching-linux-processes-from-the-shell-ssh-sessions-a3d310965ff8?source=rss-c6d86a1d19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d310965ff8</guid>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[detachment]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Daniel Jordao]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 18:32:10 GMT</pubDate>
            <atom:updated>2020-06-19T18:32:10.671Z</atom:updated>
            <content:encoded><![CDATA[<p>How many times have you been stuck in a shell or SSH session just to keep that critical process running trying to avoid its cancellation upon disconnection?</p><p>If you need to detaching any Linux process from your parent shell or SSH session without installing any tools you need to know this built-in command: <strong><em>disown</em></strong></p><p>According to wikipedia, this command is used to remove jobs from the job table, or to mark jobs so that a SIGHUP signal is not sent to them if the parent shell receives it (e.g. if the user logs out).</p><p>In this brief article I will show a simple usage example: I was in need to keep a node process running in my cloud server and when I disconnected, the process was killed.</p><p>Firstly, I start my node process and put it in background in my terminal :</p><pre>node index.js &amp;</pre><p>Then, I check if my process is running:</p><pre>jobs -l</pre><p>So, I call disown passing the -h argument and %1 as PID from previous command:</p><pre>diswon -h %1</pre><p>And now you can check if your process is still running</p><pre>ps aux | grep node</pre><p>That’s it! Now you can disconnect your session and your process still will be running.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d310965ff8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Safer Passwords]]></title>
            <link>https://daniel-js.medium.com/safer-passwords-9820f36636b4?source=rss-c6d86a1d19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9820f36636b4</guid>
            <category><![CDATA[password-management]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[password-security]]></category>
            <dc:creator><![CDATA[Daniel Jordao]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 22:14:18 GMT</pubDate>
            <atom:updated>2021-10-19T02:56:15.454Z</atom:updated>
            <content:encoded><![CDATA[<p>Everything you need to know about password strengh</p><p><strong>Principles</strong></p><p>We are currently living in the digital age, where many of us still don’t care about the 3 basic pillars of information security: Confidentiality, Integrity and Accessibility. In this article, we will cover the first one, confidentiality, the main form of protection of confidentiality being our passwords. Defining a password creation and maintenance process is essential for us to protect our personal and professional information within a growing scenario of cyber attacks involving data breaches from large corporations.</p><p><strong>Threats</strong></p><p>Within a wide horizon of attack surfaces, one of the most fragile and attacked is your password.<br>A very widespread method of cracking passwords is the brute-force attack method, which consists of using dictionaries of combinations of words, numbers and other characters, for massive and successive attempts at authentication based on trial and error. When an authentication is valid, the process stops and displays the user’s correct password.</p><p>These attacks are classified in 2 types:</p><p>Online Brute Force Attack, in which the service is attacked directly, as a user trying to authenticate;<br>Offline Brute Force Attack, through which the attacker already has a copy of the target service database (or password hash) that allows him to carry out the attack without any alerts for the user or the service provider.</p><p>Such dictionaries (or wordlists) used are generated through specific tools which human words can be compiled in a specific language or created infinite combinations of letters, numbers and special characters in order to create a list of possible passwords that will be used by tools of brute force attack. As a result, these dictionaries are often very large plain text files, usually starting in tons of GB to more. Mostly, passwords like god, love with numbers at the end are the easiest to guess and are often at the beginning of this type of wordlist.</p><p><strong>Password criteria</strong></p><p>Unfortunately, many users use password generation criteria of 15 years ago, when cryptographic keys and processing power did not allow breaking a password via brute force in a humanly timely manner. This scenario has changed and it can now be quick to crack an 8 character password. Nowadays, we need to keep in mind that cryptographic keys have evolved, as well as computational power, and we must follow this trend so that our data remains protected.<br>Currently, we have the following difficulties:</p><p>- Difficulty remembering the password;<br>- Difficulty typing it;<br>- Difficulty breaking it;</p><p>We will now go into technical details about the strength of a password, if you do not wish to dive deeper technically, skip the next section.</p><p><strong>Entropy</strong></p><p>Password entropy is a measure of the unpredictability (or strength) of a password. It is calculated based on the character set used, and it is possible to expand this set using lowercase, uppercase letters, numbers and special characters, as well as the length of the password. A password entropy is usually represented in terms of bits. A password already discovered has entropy 0, while a password that can be discovered on the first attempt usually has entropy 1. The entropy calculation of a password is done based on the entropy for each character used, calculated by the base logarithm 2 of the characters map, numbers and symbols of the set multiplied by the length of the password.</p><p>We currently have the following password length standards and their bit complexity level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*qnzuy_53aAOe0fsCVrIqlw.png" /><figcaption>Password Entropy Reference .: <a href="https://en.wikipedia.org/wiki/Password_strength">https://en.wikipedia.org/wiki/Password_strength</a></figcaption></figure><p>In this table, we will focus on the Alpha-Numeric column, inside Case Sensitive (since passwords are usually differentiated between upper and lower case characters). In this column, note that passwords below 11 characters are considered extremely weak and vulnerable since the nowadays computational power that military forces and intel agencies already has, it allows breaking passwords below 128 bits relatively fast. Therefore, we have to focus on at least 3 levels of password complexity:</p><p>128 bit encryption: 22 characters (Minimally satisfactory, but will fall out of use in the coming years due to its fragility, since the coming of quantum computing)<br>256 bit: 43 characters (Good for medium-term use)<br>512 bit — 86 characters (very good)</p><p>I agree, it is not trivial to generate and memorize such long passwords, but I will expose some techniques and tools that can assist you in this process.</p><p>To begin, we have to devise a new concept of password. Some time ago, in English, the term password (pass word) was used, literally translated into Portuguese “access word”. Today, international literature has left that term aside and passphrase is used, literally being a pass phrase. This is an important concept so that we can create stronger and harder to crack passwords.</p><p><strong>Leetspeak</strong></p><p>It is the technique of representing letters through numbers, generally used to satisfy minimum security criteria in a given service. As an example it is quite common to exchange the letter A for 4, E for 3, O for 0 and so on. It is a good technique but use with caution, often the misuse of leetspeak decreases the entropy of a password. I recommend using password entropy calculators or attack estimation tools to measure the strength of a password, I leave some links below:</p><p><a href="https://apps.cygnius.net/passtest/">https://apps.cygnius.net/passtest/</a><br>http://rumkin.com/tools/password/passchk.php<br>https://www.grc.com/haystack.htm</p><p>I will use the first one link to demonstrate the strength of different types of passwords. You can try it for yourself. Always check the “crack time (seconds)”, “crack time (display)” information to see how weak the password is.</p><h3>Anti-rules: What not to do when creating a password</h3><p><strong>Rule # 1: Never register passwords that are composed in whole or in part by any of your public information.</strong></p><p>This also applies to data of close people such as dates, document numbers, telephone numbers, etc. A person does not even need to have technical knowledge to discover his password. Never relate any part of your password with your login.</p><p><strong>Rule # 2: Do not use word patterns beginning with capitals and numbers at the end. Example: Love123</strong></p><p>It is a standard widely used among users and widely applied in password cracking methods. Note that the estimated time to discover this type of password is instantaneous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*WLwPo8ArPFZjMXISn7oi0A.png" /></figure><p><strong>Rule # 3: Do not use increasing or decreasing sequences of numbers or keyboard patterns.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*UIYekb0IB19g0kEIrY7Ykg.gif" /><figcaption>Ref: <a href="https://wpengine.com/unmasked/">https://wpengine.com/unmasked/</a></figcaption></figure><p>With respect to the positions of the character keys, the closer they are, the greater the predictability of the password, and less entropy. That is, the faster you enter the password, the lower the entropy.</p><p>When testing the effectiveness of this type of combination, we see that it is a popular and predicted pattern. Here are some tests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*snj2Lq7lqT9Xb0bxMNsE_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*5AN3Vsi_Nkd_T1eYObLb5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*0D_Odc_KaJtqTUQn6fXQUQ.png" /></figure><p><strong>Rule # 4: Avoid placing special characters (symbols) only at the end. Example school123!@#</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*2szvr9LNM9Fm9Af2S0T1vg.png" /></figure><p>Spread out the special characters in the middle of your sentence, which should be as random as possible, containing lowercase letters, uppercase letters and numbers and special characters.</p><p><strong>Rule # 5: Minimize or avoid using Leetspeak (mentioned above)</strong></p><p>The use of this technique may be harder to memorize than to assist in the strength of the password, especially when it is below 22 characters. In that case, prefer long sentences that will be easier to memorize and have the same strength.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*uqAcMlDxoTow-qvLs-ashw.png" /></figure><p><strong>Rule # 6: Absence of multi-factor authentication. Whenever possible enable 2-factor authentication (2FA) on the sites you have accounts.</strong></p><p>Although there are flaws in mobile network protocols (outside the scope of this article), enabling 2-factor authentication prevents unauthorized access to kiddie scripts or ill-prepared people. No system is 100% secure, so the goal is to make access to your information access as difficult as possible.</p><p>PS: Note that this password validator is for a specific application, and treats a password shorter than 16 characters as a problem. Ignore this alert and always use the maximum allowed in the registrations.</p><p><strong>Rule # 7: Never save your password in browser</strong></p><p>Malicious extensions can capture passwords saved in browser and compromise your accounts. Third-party plugins have become an exponent vector of attacks against end users.</p><p><strong>Rule # 8: Never use the same password on different sites.</strong></p><p>Commonly, the crossing of leaked credentials from one site is tested on other sites with the same email or login. You can check if your account data has leaked on the website <a href="https://haveibeenpwned.com/">https://haveibeenpwned.com</a>, where the query is made by email. If there are any leaks in your email, change your password immediately.</p><p><strong>Password generators (Offline / Online)</strong></p><p>There are countless password generation tools on the internet, which you can configure the character map to be used, thus generating a random (and possibly strong) password with which you can use it more safely.<br>These tools can be used by the browser or even have offline versions that you can install and use on your computer or cell phone.</p><p><a href="https://passwordsgenerator.net/">https://passwordsgenerator.net</a><br><a href="https://www.lastpass.com/password-generator">https://www.lastpass.com/password-generator</a><br><a href="https://www.dashlane.com/features/password-generator">https://www.dashlane.com/features/password-generator</a></p><p>The tools listed above are reasonable options: You can select the maximum randomness of the character set by generating a sentence with strong entropy. I recommend enabling the use of uppercase, lowercase letters, numbers, special symbols and everything that is allowed with at least 42 characters. Remember that the links above do not store the generated passwords, you will need a password management tool to be able to access them again.</p><p><strong>Password managers</strong></p><p>Good password managers usually come with parameterizable password generators (reinforcing the parameter recommendations above), but they have the ability to store all your passwords in a database. This database is encrypted and protected by a master password (and sometimes also allowing the use of additional cryptographic keys).</p><p>Classic password managers include the different versions of Keepass (Keepass, KeepassX, KeepassXC, etc.) that have versions for download on various platforms, including mobile versions to facilitate their use on different devices.</p><p>In addition to these offline managers, there are also password safe services in the cloud, such as LastPass, TeamPass and PasswordSecurity.</p><p>However, the Master Password application is noteworthy for its password generation method. It does not store any data locally or in the cloud, it simply generates (always the same) password based on the hash of the website along with the hash of your master password. The result is always unique and you must remember how you placed the website address when generating it. Always use a default without https: // and without www. The results of this utility are usually passwords good enough to use and acceptable on most sites without having to truncate the password.</p><p><a href="https://masterpassword.app/">https://masterpassword.app</a></p><h3><strong>Rules: What to do to generate a more secure password.</strong></h3><p><strong>Rule # 1: Base Phrase — You can (and should) use a base phrase, extracted from books, poetry, music, movies, etc.</strong></p><p>I am Your Father, Luke</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*Pj5tR7dnhh-h0YC3lZOsow.png" /></figure><p><strong>Rule # 2: Quotes — Cite the author or character of the base sentence. You can use acronyms too.</strong></p><p>DV: “I am Your Father, Luke”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*CDMb3S48WGZS49lyPlty8A.png" /></figure><p><strong>Rule # 3: Ending sentences with a capital letter increases the complexity (entropy) of the password:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*n8ep9d0os0juvHUoOLiTvQ.png" /></figure><p><strong>Rule # 4: Padding — Add numbers at the end of your sentence until you fill in the registration field. Be careful not to discover a flaw in the service you are registering with :-D</strong></p><p>DV: “IamYourFather, Luke” 000000000000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*X20pV0dB2yMf-O4tg0Q_Pw.png" /></figure><p><strong>Rule # 5 — If you don’t speak English, use your source language</strong></p><p>There are more English password dictionaries on the Internet than in other languages.</p><p><strong>Rule # 6 — Ease / speed of typing</strong></p><p>When creating a new password, keep in mind that it must be easy to type on a regular keyboard from notebooks and smaller devices such as cell phones and tablets. Passwords that are difficult to type can be a deterrent for you to adopt secure methodologies for using in your passwords or even for other people to memorize your password when you type it.</p><p><strong>Rule # 7 — Access notifications</strong></p><p>Additionally, activate all access notifications to your account. When you have information about attacks and thefts / data leaks or any notification of access or attempt to your account, change your password.<br>According to Microsoft’s data , 99.9% of people are hacked for not having this active service, as you can check <a href="https://www.windowscentral.com/microsoft-999-people-get-hacked-one-ridiculous-reason">here</a>.<br><a href="https://www.windowscentral.com/microsoft-999-people-get-hacked-one-ridiculous-reason">https://www.windowscentral.com/microsoft-999-people-get-hacked-one-ridiculous-reason</a></p><p><strong>Rule # 8 — Use a Password Safe / Manager</strong></p><p>Organize your passwords in the aforementioned password vaults, protecting the password database with the highest level of complexity (you can combine several passwords into one) that you can get for a master password, along with a private key for the safe.</p><p><strong>Rule # 9 — Create passwords with different levels of security.</strong></p><p>Divide and manage your passwords in layers, for example:<br>1. Most basic passwords for social networks, emails with low confidentiality, etc.<br>2. Medium complexity passwords related to work, systems, corporate emails, etc;<br>3. Complex passwords: Bank, financial, confidential information, master passwords, etc;</p><p>Use the following list to define the entropies of your different levels of entropy:<br> <br>&lt;28 bits = very weak; can alienate family members<br>28–35 bits = Weak; should keep most people out, generally good for desktop login passwords<br>36–59 bits = Reasonable; very secure passwords for network and company passwords<br>60–127 bits = Strong; can be good at protecting financial information<br>128+ bits = Very strong; often exaggerate</p><p>Always remember that the more critical / sensitive the information to be kept confidential, the greater the complexity of the password. You can follow the layer-based recommendation as I exemplified or you can create your own methodology, how to compose a passphrase with 3 different passwords, alternating their order according to the site / service, separating them with symbols and so on.</p><p><strong>Conclusion</strong></p><p>We were able to see our passwords’ weakness and how easy and fast it can be broke. The black hat community (crackers, who use their knowledge for malicious and criminal purposes) increases significantly each year, as they updates their technical skills and equipment with greater processing power.<br>I have been working with information technology for 20 years, since then following the evolution of defensive and offensive cybersecurity, feeling the need to expose this information through this article (which I consider a manifesto), I really hope to help people having safer identities in a digital universe that becomes more integrated and vulnerable each day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9820f36636b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Senhas mais seguras]]></title>
            <link>https://daniel-js.medium.com/senhas-mais-seguras-ff78bf964d61?source=rss-c6d86a1d19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff78bf964d61</guid>
            <category><![CDATA[privacidade]]></category>
            <category><![CDATA[confidencialidade]]></category>
            <category><![CDATA[segurança]]></category>
            <category><![CDATA[senhas]]></category>
            <dc:creator><![CDATA[Daniel Jordao]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 22:51:25 GMT</pubDate>
            <atom:updated>2025-08-08T18:12:32.061Z</atom:updated>
            <content:encoded><![CDATA[<p>Tudo o que você precisa saber — E aplicar</p><p><strong>Princípios</strong></p><p>Vivemos atualmente na era digital, aonde muitos de nós ainda não se preocupam com os 3 pilares básicos de segurança da informação: Confidencialidade, Integridade e Acessibilidade. Nesse artigo abordaremos o primeiro deles, a confidencialidade, sendo que a principal forma de proteção de confidencialidade são as nossas senhas. Definir um processo de criação e manutenção de senha é fundamental para que possamos proteger nossas informações pessoais e profissionais dentro de um cenário crescente de ataques cibernéticos envolvendo vazamento de dados de grandes corporações.</p><p><strong>Ameaças</strong></p><p>Dentro de um vasto horizonte de superfícies de ataque, uma das mais frágeis e atacadas é a sua senha.</p><p>Um método muito difundido de quebrar senhas é o método ataque de força-bruta, que consiste na utilização de dicionários de combinações de palavras, números e outros caracteres, para tentativas massivas e sucessivas de autenticação com base na tentativa e erro. Quando uma autenticação é válida, o processo pára e exibe a senha correta do usuário.</p><p>Esses ataques são dividos em 2 tipos:</p><p>Online Brute Force Attack, no qual o serviço é atacado diretamente, como se fosse um usuário tentando realizar uma autenticação;</p><p>Offline Brute Force Attack, através do qual o atacante já possui uma cópia do banco de dados do serviço-alvo (ou hash da senha) que o permite realizar o ataque sem qualquer alertas para o usuário ou o provedor de serviços.</p><p>Tais dicionários (ou wordlists) usados são gerados através de ferramentas específicas com as quais podem ser compiladas palavras prontas em um idioma específico ou criadas infinitas combinações de letras, números e caracteres especiais a fim de criar uma lista de possíveis senhas que serão utilizadas por ferramentas de brute force. Como resultado, esses dicionários costumam ser arquivos de texto puro muito pesados, geralmente na ordem de dezenas de GB para mais. Majoritariamente, senhas como deus/god, amor/love com números no final são as mais fáceis de serem adivinhadas e muitas vezes estão no início desse tipo de wordlist.</p><p><strong>Critérios de senhas</strong></p><p>Infelizmente, muitos usuários utilizam critérios de geração de senha de 15 anos atrás, quando as chaves criptográficas e poder de processamento não permitiam quebrar uma senha via força bruta em tempo humanamente hábil. Esse cenário mudou e atualmente pode ser rápido quebrar uma senha de 8 caracteres. Nos dias de hoje, precisamos ter em mente que chaves criptográficas evoluíram, assim como o poder computacional e devemos acompanhar essa tendência para que nossos dados permaneçam protegidos.</p><p>Atualmente, temos as seguintes dificuldades:</p><p>- Dificuldade de lembrar a senha;</p><p>- Dificuldade de digitá-la;</p><p>- Dificuldade em quebrá-la;</p><p>Entraremos agora em detalhes técnicos sobre a força de uma senha, se não desejar entrar tecnicamente no assunto, pule a seção seguinte.</p><p><strong>Entropia</strong></p><p>Entropia de senhas é a medida de imprevisibilidade (ou força) de uma senha. É calculada com base no conjunto de caracteres utilizados, sendo possível expandir esse conjunto utilizando letras minúsculas, maiúsculas, números e caracteres especiais, assim como o comprimento da senha. A entropia de uma senha geralmente é representada em termos de bits. Uma senha já descoberta tem entropia 0, enquanto uma senha possível de ser descoberta na primeira tentativa geralmente tem entropia 1. O cálculo de entropia de uma senha é feito com base na entropia por cada caracter utilizado, calculado pelo logarítimo base 2 do mapa de letras, números e simbolos do conjunto multiplicado pelo número de caracteres na senha.</p><p>Atualmente temos os seguintes padrões de comprimento de senhas e o seu nível de complexidade em bits:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*qnzuy_53aAOe0fsCVrIqlw.png" /></figure><p><em>Ref.: </em><a href="https://en.wikipedia.org/wiki/Password_strength"><em>https://en.wikipedia.org/wiki/Password_strength</em></a></p><p>Nessa tabela, vamos focar na coluna <em>Alpha-Numeric</em>, dentro de <em>Case Sensitive</em> (uma vez que senhas via de regra são diferenciadas entre caracteres maiúsculos e minúsculos). Nessa coluna, repare que senhas abaixo de 11 caracteres são consideradas extremamente fracas e vulneráveis uma vez que o atual poder computacional das forças militares e agências de inteligência já permitem quebrar senhas abaixo de 128 bits de forma relativamente rápido. Portanto, temos que focar no mínimo em 3 níveis de complexidade de senhas:</p><p>128 bit encryption : 22 caracteres (Minimamente satisfatório, porém cairá em desuso nos próximos anos devido à sua fragilidade e a chegada da computação quântica)</p><p>256 bit : 43 caracteres (Bom para ser utilizado a médio prazo)</p><p>512 bit — 86 caracteres (Muito bom)</p><p>Eu concordo, não é trivial gerar e memorizar senhas tão longas, mas vou expor algumas técnicas e ferramentas que podem auxiliá-lo nesse processo.</p><p>Para começar, temos que conceber um novo conceito de senha. Há algum tempo, em inglês, se usava o termo <em>password (pass word)</em>, traduzido literalmente para o português “palavra de acesso”. Hoje, a literatura internacional deixou de lado esse termo e usa-se <em>passphrase</em>, sendo literalmente frase de acesso. Isso é um conceito importante para que possamos criar senhas mais fortes e difíceis de serem quebradas.</p><p><strong>Leetspeak</strong></p><p>É a técnica de se representar letras através de números, geralmente utilizado para satisfazer critérios mínimos de segurança em um determinado cadastro. Como exemplo é bem comum trocarmos a letra A por 4, E por 3, O por 0 e por ai vai. É uma boa técnica mas use com precaução, muitas vezes o uso indevido de leetspeak prejudica a entropia de uma senha. Recomendo utilizar calculadoras de entropia de senhas ou de estimativas de ataques para mensurar a força de uma senha, deixo alguns links abaixo:</p><p><a href="https://apps.cygnius.net/passtest/">https://apps.cygnius.net/passtest/</a></p><p><a href="http://rumkin.com/tools/password/passchk.php">http://rumkin.com/tools/password/passchk.php</a></p><p><a href="https://www.grc.com/haystack.htm">https://www.grc.com/haystack.htm</a></p><p>Utilizarei o primeiro link para demonstrar a força de diferentes tipos de senhas. Você pode tentar por si mesmo. Verifique sempre as informações de “crack time (seconds)” (tempo para craquear em segundos), crack time (display) (Arredondamento dos segundos) para verificar o quão fraca é a senha.</p><p><strong>Anti-regras: O que não fazer ao criar uma senha</strong></p><p><strong>Anti-Regra #1 : Nunca registre senhas que sejam compostas parcial ou integralmente por nenhuma informação pública sua.</strong></p><p>Isso vale também para dados de pessoas próximas como datas, números de documentos, telefones, etc. Uma pessoa sequer precisará ter conhecimentos técnicos para descobrir a sua senha. Nunca relacione qualquer parte da sua senha com o login.</p><p><strong>Anti-Regra #2 : Não utilize padrões de palavras iniciando com maiúsculas e números no final. Exemplo: Amor456</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*Q4SpN4QbxkgKvyQA5DWeMw.png" /></figure><p>É um padrão muito utilizado entre usuários e amplamente aplicado em métodos de quebra de senhas. Veja que o tempo estimado para descobrir esse tipo de senha é instantâneo.</p><p><strong>Anti-Regra #3 : Não utilize sequências crescentes ou decrescentes de números ou padrões de teclado.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*UIYekb0IB19g0kEIrY7Ykg.gif" /></figure><p><em>Ref: </em><a href="https://wpengine.com/unmasked/"><em>https://wpengine.com/unmasked/</em></a></p><p>No que diz respeito às posições das teclas dos caracteres, quanto mais perto elas forem, maior será a previsibilidade da senha, e menor entropia. Ou seja, quanto mais rápido for digitar a senha, menor será a entropia.</p><p>Ao testarmos a eficácia desse tipo de combinação, vemos que é um padrão popular e previsto. Veja alguns testes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*0D_Odc_KaJtqTUQn6fXQUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*snj2Lq7lqT9Xb0bxMNsE_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*5AN3Vsi_Nkd_T1eYObLb5A.png" /></figure><p><strong>Anti-Regra #4 : Evite colocar caracteres especiais (símbolos) somente no final. Exemplo escola123!@#</strong></p><p>Espalhe os caracteres especiais no meio de sua sentença, que deve ser o mais aleatória possível, contendo letras minúsculas, maiúsculas e números e caracteres especiais.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*tOoaaYTT41xrh44NShK2UA.png" /></figure><p><strong>Anti-Regra #5 : Minimize ou evite o use de Leetspeak (mencionado acima)</strong></p><p>O uso desta técnica pode mais atrapalhar a memorização do que auxiliar na força da senha, principalmente quando for abaixo de 22 caracteres. Nesse caso, prefira sentenças longas que serão mais fáceis de memorizar e terão a mesma força.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*OvPvo4L6YHa9nEcvx49OBw.png" /></figure><p><strong>Anti-Regra #6 : Não usar autenticação em múltiplos fatores. Habilite sempre que possível o uso de autenticação em 2 fatores (2FA) nos sites que tenha cadastro.</strong></p><p>Embora hajam falhas nos protocolos de telefonia celular (fora do escopo desse artigo) habilitar autenticação em 2 fatores previne acessos não autorizados de scripts kiddies ou pessoas mal-preparadas. Nenhum sistema é 100% seguro, portanto o objetivo é dificultar o máximo que puder o acesso às suas informações.</p><p><em>PS: Note que esse validador de senhas é para uma aplicação específica, e trata como um problema uma senha menor que 16 caracteres. Desconsidere esse alerta e use sempre o máximo permitido nos cadastros.</em></p><p><strong>Anti-Regra #7 : Jamais salve sua senha no navegador</strong></p><p>Extensões maliciosas podem capturar as senhas salvas no browser e comprometer suas contas. Plugins de terceiros se tornaram um exponente vetor de ataques contra os usuários finais.</p><p><strong>Anti-Regra #8 : Nunca use a mesma senha em diferentes sites.</strong></p><p>É uma prática muito comum o cruzamento de credenciais vazadas de um site serem testados em outros sites com o mesmo email ou login. Você pode checar se houve vazamento de dados de suas contas no site <a href="https://haveibeenpwned.com,/">https://haveibeenpwned.com,</a> aonde a consulta realizada é por seu email. Se houver registros de vazamentos do seu email, altere imediatamente sua senha.</p><p><strong>Geradores de senhas (Offline / Online)</strong></p><p>Existem na internet inúmeras ferramentas de geração de senhas, com as quais você pode configurar o mapa de caracteres a ser utilizado, gerando assim uma senha aleatória (e possivelmente forte) com a qual você pode utilizar com mais segurança.</p><p>Essas ferramentas podem ser utilizadas através do navegador ou ainda possuem versões offline que você pode instalar e usar em seu computador ou celular.</p><p><a href="https://passwordsgenerator.net/">https://passwordsgenerator.net</a></p><p><a href="https://www.lastpass.com/password-generator">https://www.lastpass.com/password-generator</a></p><p><a href="https://www.dashlane.com/features/password-generator">https://www.dashlane.com/features/password-generator</a></p><p>As ferramentas listadas acima são opções razoáveis: Você pode selecionar a aleatoridade máxima do conjunto de caracteres gerando uma sentença com forte entropia. Recomendo habilitar o uso de letras maísculas, minúsculas, números, simbolos especiais e tudo o que for permitido com no mínimo 42 caracteres. Vale lembrar que os links acima não armazenam as senhas geradas, você precisará de uma ferramenta de gerenciamento de senhas para poder acessá-las novamente.</p><p><strong>Cofres de senhas</strong></p><p>Bons cofres / gerenciadores de senhas geralmente já vem com geradores de senhas parametrizáveis (reforço as recomendações de parâmetros acima), porém trazem o recurso de armazenar em um banco de dados todas as suas senhas. Esse banco de dados é encriptado e protegido por uma senha mestra (e algumas vezes também permitindo o uso de chaves criptográficas adicionais).</p><p>Clássicos gerenciadores de senha incluem as distintas versões do Keepass (<a href="https://keepass.info/">Keepass</a>, <a href="https://www.keepassx.org/">KeepassX</a>, <a href="https://keepassxc.org/">KeepassXC</a>, etc) que possuem versões para download em diversas plataformas, inclusive versões mobile para facilitar o seu uso em diferentes dispositivos.</p><p>Além desses gerenciadores offline, também existem serviços de cofres de senhas na nuvem, como o <a href="https://www.lastpass.com/">LastPass</a>, <a href="https://teampass.net/">TeamPass</a> e <a href="https://senhasegura.com/en/">SenhaSegura</a>.</p><p>Entretanto, o aplicativo <a href="https://masterpassword.app/">Master Password</a> merece destaque por seu método de geração de senha. Ele não armazena nenhum dados localmente ou na nuvem, ele simplesmente gera (sempre a mesma) senha baseada no hash do site juntamente com o hash da sua senha-mestra. O resultado é sempre único e você deve se lembrar de como colocou o endereço do site na hora de gerar. Use sempre um padrão sem https:// e sem o <a href="http://www./">www. </a>Os resultados desse utilitário geralmente são senhas suficientemente boas para se utilizar e aceitável em grande parte dos sites sem precisar truncar a senha.</p><p><strong>Regras: O que fazer para gerar uma senha mais segura.</strong></p><p><strong>Regra #1 : Frase Base — Você pode (e deve) usar uma frase-base, extraída de livros, poesias, musicas, filmes, etc.</strong></p><p>I am Your Father, Luke</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*Pj5tR7dnhh-h0YC3lZOsow.png" /></figure><p><strong>Regra #2 : Citação — Cite o autor ou personagem da frase-base. Pode usar siglas também.</strong></p><p>DV: “I am Your Father, Luke”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*CDMb3S48WGZS49lyPlty8A.png" /></figure><p><strong>Regra #3 : Terminando as frases com uma maiúscula a complexidade (entropia) da senha aumenta:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*n8ep9d0os0juvHUoOLiTvQ.png" /></figure><p><strong>Regra #4 : Padding — Adicione números no final da sua sentença até preencher o campo de registro. Cuidado para não descobrir uma falha no serviço que estiver se cadastrando :-D</strong></p><p>DV: “IamYourFather, Luke”000000000000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*X20pV0dB2yMf-O4tg0Q_Pw.png" /></figure><p><strong>Regra #5 — Se não falar inglês, use o seu idioma de origem</strong></p><p>Existem muito mais dicionários de senhas em inglês na internet do que em outros idiomas.</p><p><strong>Regra #6 — Facilidade / rapidez de digitação</strong></p><p>Ao criar uma nova senha, tenha em mente que ela deve ser fácil de digitar em um teclado comum, de notebooks e dispositivos menores como celulares e tablets. Senhas de difícil datilografia poderão ser um impeditivo para que você adote metodologias de uso seguras para suas senhas, ou até mesmo para que outras pessoas memorizem sua senha vendo você a digitar.</p><p><strong>Regra #7 — Notificações de acesso</strong></p><p>Adicionalmente, ative todas as notificações de acesso à sua conta. Quando tiver informações de ataques e roubos / vazamento de dados ou qualquer notificação de acesso ou tentativa à sua conta, altere a sua senha.</p><p>Segundo dados da Microsoft, 99.9% das pessoas são hackeadas por não terem esse serviço ativo, como pode ser visto <a href="https://www.windowscentral.com/microsoft-999-people-get-hacked-one-ridiculous-reason">aqui</a>.</p><p><strong>Regra #8 — Use cofre de senhas</strong></p><p>Organize as suas senhas nos cofres de senhas referidos, protegendo o banco de senhas com o mais alto nível de complexidade (você pode juntar várias senhas em uma) que consequir para uma senha-mestra, juntamente com uma chave privada para o cofre.</p><p><strong>Regra #9 — Crie senhas com níveis diferentes de segurança.</strong></p><p>Divida e gerencie suas senhas em camadas, por exemplo:</p><p>1. Senhas mais básicas para redes sociais, emails com baixo teor de confidencialidade, etc.</p><p>2. Senhas de média complexidade relativas à trabalho, sistemas, emails corporativos, etc;</p><p>3. Senhas complexas : Informações bancárias, financeiras, sigilosas, senhas mestras, etc;</p><p>Use a seguinte lista para definir as entropias de seus diferentes níveis de entropia:</p><p>&lt;28 bits = muito fraco; pode afastar os membros da família</p><p>28–35 bits = Fraco; deve manter de fora a maioria das pessoas, geralmente boa para senhas de login de desktop</p><p>36–59 bits = Razoável; senhas seguras para senhas de rede e da empresa</p><p>60–127 bits = Forte; pode ser bom para proteger informações financeiras</p><p>128+ bits = Muito forte;</p><p>Lembre-se sempre de que quanto mais crítica / sensível for a informação a se manter o sigilo, maior deve ser a complexidade da senha de acesso. Você pode seguir as recomendações de camadas como exemplifiquei ou criar a sua própria metodologia, como compor uma frase de acesso com 3 senhas diferentes, alternando a ordem delas de acordo com o site/serviço, separando-as com símbolos e por ai vai.</p><p><strong>Conclusão</strong></p><p>Pudemos ver o quão frágil são as nossas senhas e qual é a facilidade e agilidade para que as mesmas sejam quebradas. A comunidade de black hats (crackers, que usam seus conhecimentos para fins maliciosos e criminosos) aumentam significativamente a cada ano, assim como suas habilidades técnicas e equipamentos com maior poder de processamento.</p><p>Trabalho há 20 anos com tecnologia da informação, acompanhando desde então a evolução de segurança cibernética defensiva e ofensiva, sentindo a necessidade de expor essas informações através desse artigo (que considero um manifesto) para que consiga ajudar as pessoas a terem credenciais e identidades cada vez mais seguras em um universo digital que a cada dia que passa se torna mais integrado e vulnerável.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff78bf964d61" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>