<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oyinlola Lawal</title>
    <description>The latest articles on DEV Community by Oyinlola Lawal (@lawaloyinlola).</description>
    <link>https://dev.to/lawaloyinlola</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1256620%2F70f19a67-b6df-493e-b555-4ea22934943d.jpeg</url>
      <title>DEV Community: Oyinlola Lawal</title>
      <link>https://dev.to/lawaloyinlola</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lawaloyinlola"/>
    <language>en</language>
    <item>
      <title>Ethical hacking is not a toolset, it is a mindset with a permission slip</title>
      <dc:creator>Oyinlola Lawal</dc:creator>
      <pubDate>Thu, 10 Sep 2026 15:56:41 +0000</pubDate>
      <link>https://dev.to/lawaloyinlola/ethical-hacking-is-not-a-toolset-it-is-a-mindset-with-a-permission-slip-436a</link>
      <guid>https://dev.to/lawaloyinlola/ethical-hacking-is-not-a-toolset-it-is-a-mindset-with-a-permission-slip-436a</guid>
      <description>&lt;p&gt;Most confusion around ethical hacking is vocabulary, not difficulty. People use hacker, ethical hacker and penetration tester interchangeably, then argue past each other about what is legal and what is not. The distinctions are simple once they are laid out, and they matter, because one of them is the difference between an invoice and a criminal record.&lt;/p&gt;

&lt;p&gt;This is the first of a short series. It covers three things: the mindset, the method and the styles. The lab and the language, meaning how to build a sealed environment to practise in and how to live on the Linux command line, come next.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mindset
&lt;/h2&gt;

&lt;p&gt;Start with the uncomfortable part. An ethical hacker and a criminal have the same skill set. The same tools, the same techniques, often the same curiosity about how a thing comes apart. The difference is not capability. It is motivation and permission.&lt;/p&gt;

&lt;p&gt;Take the locksmith and the burglar. Both can open your door. One was invited, tests the lock, and tells you which one is weak. The other takes your television. Skill is neutral. Intent and authorisation are not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frahlx4veunced6s3onjh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frahlx4veunced6s3onjh.png" alt="Same skill set, one difference: permission" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The three hats
&lt;/h3&gt;

&lt;p&gt;The naming comes from old westerns, where the hero wore white and the villain wore black.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;White hat.&lt;/strong&gt; The professional. Works with permission, inside an agreed scope, reports what he finds and helps fix it. This is the locksmith, and this is the target.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grey hat.&lt;/strong&gt; Pokes at systems nobody asked him to touch. Often means well, sometimes even reports the flaw afterwards, and still breaks the law doing it. My honest read on grey hats is less generous than the textbook one: a grey hat to me is simply a black hat caught in the act and in denial. Good intentions discovered after the fact are not the same as permission obtained before it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Black hat.&lt;/strong&gt; The criminal. Not a distant abstraction either. He is over your shoulder while you type, in the bin behind your office, or already sitting on your network, quietly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1iwomawccg4hjx6twpty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1iwomawccg4hjx6twpty.png" alt="The three hats and where each one stands on permission" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One correction worth making while we are here. Hackers do not wear hoodies, do not work exclusively at night, and are not defined by a stock photo. The people doing this professionally look like the people doing any other engineering job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ethical hacking is not the same as penetration testing
&lt;/h3&gt;

&lt;p&gt;These two get used interchangeably and they are not the same size.&lt;/p&gt;

&lt;p&gt;Ethical hacking is the whole thing: the mindset, the skill set and the process of looking for weakness with permission. It is ongoing and open ended.&lt;/p&gt;

&lt;p&gt;Penetration testing is ethical hacking with a scope of work. It has an agreed target, a start date, an end date, and a report at the end of it.&lt;/p&gt;

&lt;p&gt;Every penetration test is ethical hacking. Not every piece of ethical hacking is a penetration test.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one rule that keeps you employable
&lt;/h2&gt;

&lt;p&gt;Never touch a system you do not have written permission to test.&lt;/p&gt;

&lt;p&gt;No permission, no test. That is the whole rule, and it is worth more than any tool you will learn.&lt;/p&gt;

&lt;p&gt;Skill does not make an action legal. Permission does. The exact same scan, run with the same command, against the same kind of target, is a paid engagement on a client's network and a crime on a stranger's. Nothing about the technique changes. Only the paperwork does.&lt;/p&gt;

&lt;p&gt;This applies further than people expect. Not a friend's website because he said it was fine over WhatsApp. Not a company you admire and want to impress. Not a login page you stumbled onto and got curious about. Get it in writing, every time, and keep the writing.&lt;/p&gt;

&lt;p&gt;Two ideas carry that rule in practice. The rules of engagement set out what you may test, when you may test it, how far you may go, and who to call when something breaks. The scope is the fence: the exact list of targets you are allowed to touch. Anything outside the fence is off limits even when it looks easy, and especially when it looks easy. Find something new mid engagement and you ask first and wait for a yes. When you are not sure, you stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The method
&lt;/h2&gt;

&lt;p&gt;Hacking is not random. Real engagements follow a path, and each stage feeds the next. What you learn while looking around decides what you scan, and what you scan decides what you try to break.&lt;/p&gt;

&lt;p&gt;Seven stages, start to finish:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pre-engagement.&lt;/strong&gt; Agree the rules, the scope and the permission, in writing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reconnaissance.&lt;/strong&gt; Gather everything you can about the target, mostly without touching it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scanning.&lt;/strong&gt; Probe for open doors: live hosts, ports, services, versions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Access.&lt;/strong&gt; Use what you found to get in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintaining access.&lt;/strong&gt; Hold that foothold long enough to prove impact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Covering tracks.&lt;/strong&gt; Understand how an attacker would hide the evidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reporting.&lt;/strong&gt; Write down everything, clearly, for the people who have to fix it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6qla9hrxf1vjaqno7g4a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6qla9hrxf1vjaqno7g4a.png" alt="The seven stages, with the two an attacker never has" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look closely at that list and one thing stands out. Stages two through six are exactly what an attacker does. Same sequence, same tools, often the same afternoon. Judge by the middle of the list alone and a penetration test and a breach are indistinguishable.&lt;/p&gt;

&lt;p&gt;What actually separates the two is the first stage and the last. The pentester asks permission before, and explains everything after. The attacker does neither. Remove pre-engagement and reporting and you are not doing security work, you are committing an offence with good documentation habits.&lt;/p&gt;

&lt;p&gt;Stage six deserves a footnote, because it reads strangely in an ethical context. A real attacker covers his tracks to stay hidden. An ethical hacker studies the technique so he can describe it, then does the opposite: logs every step, records every change, and hands it all over. Anything you altered gets restored. Nothing you found gets hidden.&lt;/p&gt;

&lt;h2&gt;
  
  
  The styles
&lt;/h2&gt;

&lt;p&gt;Before a test starts, both sides agree how much of the map the tester gets. That single decision changes the cost, the timeline and the realism of the whole engagement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Black box.&lt;/strong&gt; Little to no information, sometimes just a company name or a domain. Closest to what a genuine outsider faces, and the slowest, because a good chunk of the budget goes on discovering things the client already knew.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grey box.&lt;/strong&gt; Some information, often a normal user account and a rough idea of the architecture. The practical middle ground, and the one most engagements land on, because it simulates the realistic threat of an attacker who already has a foothold or a stolen credential.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;White box.&lt;/strong&gt; Everything: network diagrams, credentials, configuration, sometimes the source code. The fastest and most thorough option, and the best value when the goal is coverage rather than theatre.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuopki427k6q6j95te60i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuopki427k6q6j95te60i.png" alt="Black box, grey box and white box, by how much you are told" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is a temptation to treat black box as the serious option because it feels most like a real attack. It is not automatically the better buy. If the goal is to find as many real weaknesses as possible in a fixed number of days, telling the tester more usually finds more.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can actually be tested
&lt;/h2&gt;

&lt;p&gt;A penetration test is not one activity. The target decides the tools, the techniques and the skills you need.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;What it covers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;Servers, firewalls, internal and external infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web application&lt;/td&gt;
&lt;td&gt;Websites, portals, APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mobile&lt;/td&gt;
&lt;td&gt;Android and iOS applications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wireless&lt;/td&gt;
&lt;td&gt;Wi-Fi networks and their authentication&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud&lt;/td&gt;
&lt;td&gt;AWS, Azure, GCP configuration and identity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Social engineering&lt;/td&gt;
&lt;td&gt;Phishing and the human layer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configuration review&lt;/td&gt;
&lt;td&gt;Settings, builds, hardening baselines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything else&lt;/td&gt;
&lt;td&gt;IoT, hardware, physical access&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Coming from frontend and full stack engineering, the web application and cloud rows are where existing knowledge transfers most directly, and that is deliberately where I am aiming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things worth holding onto
&lt;/h2&gt;

&lt;p&gt;Permission is not paperwork you clear on the way to the interesting part. It is the thing that makes the interesting part legal.&lt;/p&gt;

&lt;p&gt;The process is the profession. Anyone can run a scanner. Scoping the work properly and writing a report someone can act on is the part that gets paid for.&lt;/p&gt;

&lt;p&gt;The report is the product. Nobody is buying the exploit. They are buying the explanation of how it happened and what to change.&lt;/p&gt;

&lt;p&gt;Next in this series: the lab and the language. How to build a sealed environment where you can break things freely, and the handful of Linux commands you end up living inside.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>appsec</category>
      <category>penetrationtesting</category>
    </item>
  </channel>
</rss>
