<?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: Arashad Dodhiya</title>
    <description>The latest articles on DEV Community by Arashad Dodhiya (@arashad_dodhiya_0e4bdba5a).</description>
    <link>https://dev.to/arashad_dodhiya_0e4bdba5a</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3676094%2F44443da4-e92a-4c56-9139-54d04da1f682.jpg</url>
      <title>DEV Community: Arashad Dodhiya</title>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arashad_dodhiya_0e4bdba5a"/>
    <language>en</language>
    <item>
      <title>Reconnaissance Is Not Hacking (And That's Why It's So Powerful)</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Sun, 31 May 2026 19:44:27 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/reconnaissance-is-not-hacking-and-thats-why-its-so-powerful-3h10</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/reconnaissance-is-not-hacking-and-thats-why-its-so-powerful-3h10</guid>
      <description>&lt;p&gt;When most people hear the word "cybersecurity," they imagine someone furiously typing commands in a dark room trying to break into a system.&lt;/p&gt;

&lt;p&gt;Movies have done a great job convincing us that hacking starts with attacking.&lt;/p&gt;

&lt;p&gt;In reality, it usually starts with looking.&lt;/p&gt;

&lt;p&gt;A lot of looking.&lt;/p&gt;




&lt;h2&gt;
  
  
  Imagine You're Moving Into a New City
&lt;/h2&gt;

&lt;p&gt;Suppose you're visiting a city you've never been to before.&lt;/p&gt;

&lt;p&gt;Before you rent a house, what do you do?&lt;/p&gt;

&lt;p&gt;You check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The neighborhood&lt;/li&gt;
&lt;li&gt;Nearby roads&lt;/li&gt;
&lt;li&gt;Hospitals&lt;/li&gt;
&lt;li&gt;Schools&lt;/li&gt;
&lt;li&gt;Traffic&lt;/li&gt;
&lt;li&gt;Safety&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nobody would call this "breaking into the city."&lt;/p&gt;

&lt;p&gt;You're simply gathering information.&lt;/p&gt;

&lt;p&gt;Cybersecurity works the same way.&lt;/p&gt;




&lt;h2&gt;
  
  
  Reconnaissance Is Just Information Gathering
&lt;/h2&gt;

&lt;p&gt;Before security teams assess a system, they first need answers to basic questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What assets exist?&lt;/li&gt;
&lt;li&gt;Which websites belong to the company?&lt;/li&gt;
&lt;li&gt;What technologies are being used?&lt;/li&gt;
&lt;li&gt;Which systems are exposed to the internet?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can't protect or assess something you don't even know exists.&lt;/p&gt;




&lt;h2&gt;
  
  
  Think Like a Security Consultant
&lt;/h2&gt;

&lt;p&gt;Imagine a company hires you and says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Tell us how secure we are."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You wouldn't immediately start testing systems.&lt;/p&gt;

&lt;p&gt;You'd first want a map.&lt;/p&gt;

&lt;p&gt;Something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Company
│
├── Website
├── API
├── VPN
├── Email Server
└── Cloud Infrastructure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This process is called &lt;strong&gt;asset discovery&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before security comes visibility.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where Threat Modeling Fits In
&lt;/h2&gt;

&lt;p&gt;Now that you have a map, you can start asking questions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which systems are most important?&lt;/li&gt;
&lt;li&gt;What happens if they fail?&lt;/li&gt;
&lt;li&gt;Who might target them?&lt;/li&gt;
&lt;li&gt;What are the possible risks?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is called &lt;strong&gt;threat modeling&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It's less about finding vulnerabilities and more about understanding what could go wrong.&lt;/p&gt;




&lt;h2&gt;
  
  
  Security Assessments Start Here
&lt;/h2&gt;

&lt;p&gt;A security assessment without reconnaissance is like inspecting a building without knowing how many rooms it has.&lt;/p&gt;

&lt;p&gt;You might check the front door.&lt;/p&gt;

&lt;p&gt;But what about the side entrance?&lt;/p&gt;

&lt;p&gt;The roof?&lt;/p&gt;

&lt;p&gt;The basement?&lt;/p&gt;

&lt;p&gt;The forgotten storage room nobody uses anymore?&lt;/p&gt;

&lt;p&gt;Reconnaissance helps ensure you're looking at the whole picture.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Biggest Myth
&lt;/h2&gt;

&lt;p&gt;Many people think reconnaissance is the first step of hacking.&lt;/p&gt;

&lt;p&gt;That's not entirely true.&lt;/p&gt;

&lt;p&gt;Reconnaissance is the first step of understanding.&lt;/p&gt;

&lt;p&gt;Attackers use it.&lt;/p&gt;

&lt;p&gt;Defenders use it.&lt;/p&gt;

&lt;p&gt;Consultants use it.&lt;/p&gt;

&lt;p&gt;Security teams use it.&lt;/p&gt;

&lt;p&gt;Because before you can secure, test, or improve anything...&lt;/p&gt;

&lt;p&gt;You need to know what's there.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thought
&lt;/h2&gt;

&lt;p&gt;The best cybersecurity professionals aren't always the ones who know the most exploits.&lt;/p&gt;

&lt;p&gt;They're often the ones who ask the best questions.&lt;/p&gt;

&lt;p&gt;And most of those questions start with:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What are we actually looking at?"&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>beginners</category>
      <category>cybersecurity</category>
      <category>infosec</category>
      <category>security</category>
    </item>
    <item>
      <title>Certificate Transparency Logs: The Internet's Public Diary</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Sun, 31 May 2026 19:33:03 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/certificate-transparency-logs-the-internets-public-diary-ng2</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/certificate-transparency-logs-the-internets-public-diary-ng2</guid>
      <description>&lt;p&gt;Imagine if every time someone built a new house, they were required to register it in a public record book that anyone could read.&lt;/p&gt;

&lt;p&gt;Sounds strange, right?&lt;/p&gt;

&lt;p&gt;But that's essentially how modern HTTPS certificates work.&lt;/p&gt;

&lt;p&gt;Every day, thousands of organizations create new websites, APIs, cloud environments, and internal services. To secure these systems, they obtain SSL/TLS certificates.&lt;/p&gt;

&lt;p&gt;What many people don't realize is that these certificates are often recorded in publicly accessible logs.&lt;/p&gt;

&lt;p&gt;These records are called &lt;strong&gt;Certificate Transparency (CT) Logs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And for security researchers, they can be a goldmine of information.&lt;/p&gt;




&lt;h1&gt;
  
  
  The Problem That Created Certificate Transparency
&lt;/h1&gt;

&lt;p&gt;Years ago, there was a major trust problem on the internet.&lt;/p&gt;

&lt;p&gt;Browsers trusted Certificate Authorities (CAs) to issue certificates correctly.&lt;/p&gt;

&lt;p&gt;For example, if someone wanted a certificate for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;a trusted CA would verify ownership and issue the certificate.&lt;/p&gt;

&lt;p&gt;Simple enough.&lt;/p&gt;

&lt;p&gt;But what if a CA accidentally issued a certificate to the wrong person?&lt;/p&gt;

&lt;p&gt;Or worse...&lt;/p&gt;

&lt;p&gt;What if a certificate was issued maliciously?&lt;/p&gt;

&lt;p&gt;The website owner might never know.&lt;/p&gt;

&lt;p&gt;The internet needed a way to make certificate issuance visible.&lt;/p&gt;

&lt;p&gt;The solution was surprisingly simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Make certificate issuance public.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  What Are Certificate Transparency Logs?
&lt;/h1&gt;

&lt;p&gt;Certificate Transparency Logs are public, append-only records of issued SSL/TLS certificates.&lt;/p&gt;

&lt;p&gt;Think of them as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The Internet's Public Diary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every time a certificate is issued, information about it is published to public logs.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;api.company.com
vpn.company.com
mail.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;may all appear in Certificate Transparency Logs after certificates are issued.&lt;/p&gt;

&lt;p&gt;The goal is transparency.&lt;/p&gt;

&lt;p&gt;Nobody can secretly create certificates without leaving evidence behind.&lt;/p&gt;




&lt;h1&gt;
  
  
  A Real-World Analogy
&lt;/h1&gt;

&lt;p&gt;Imagine a city where every new building permit must be publicly posted on a giant bulletin board.&lt;/p&gt;

&lt;p&gt;Anyone can walk by and see:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;New Warehouse
New Office
New Shopping Center
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Certificate Transparency works in a similar way.&lt;/p&gt;

&lt;p&gt;Whenever organizations create new internet-facing services and obtain certificates, they leave traces in these public records.&lt;/p&gt;




&lt;h1&gt;
  
  
  Why Are Certificates Public?
&lt;/h1&gt;

&lt;p&gt;The answer is trust.&lt;/p&gt;

&lt;p&gt;Without transparency:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CA → Issues Certificate
Nobody Knows
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With transparency:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CA → Issues Certificate
Certificate Logged Publicly
Everyone Can Verify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates accountability.&lt;/p&gt;

&lt;p&gt;Organizations can monitor for unauthorized certificates.&lt;/p&gt;

&lt;p&gt;Browsers can verify legitimacy.&lt;/p&gt;

&lt;p&gt;Researchers can identify suspicious activity.&lt;/p&gt;

&lt;p&gt;The entire ecosystem becomes more trustworthy.&lt;/p&gt;




&lt;h1&gt;
  
  
  What Information Is Visible?
&lt;/h1&gt;

&lt;p&gt;Certificate Transparency Logs can reveal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Subdomains
Certificate Issuer
Issue Dates
Expiration Dates
Domain Names
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, a company may publicly advertise only:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But CT logs may reveal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;api.company.com
dev.company.com
staging.company.com
vpn.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Suddenly, you have a much clearer picture of the organization's infrastructure.&lt;/p&gt;




&lt;h1&gt;
  
  
  Why Security Researchers Love CT Logs
&lt;/h1&gt;

&lt;p&gt;In cybersecurity, visibility is everything.&lt;/p&gt;

&lt;p&gt;One of the first questions during reconnaissance is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What assets exist?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Organizations often have hundreds or thousands of internet-facing systems.&lt;/p&gt;

&lt;p&gt;Many of these aren't linked from the main website.&lt;/p&gt;

&lt;p&gt;However, if certificates were issued for them, CT logs may reveal their existence.&lt;/p&gt;

&lt;p&gt;This makes Certificate Transparency one of the most valuable passive reconnaissance sources available today.&lt;/p&gt;




&lt;h1&gt;
  
  
  Passive Reconnaissance: Learning Without Touching
&lt;/h1&gt;

&lt;p&gt;One reason CT logs are so powerful is that they're passive.&lt;/p&gt;

&lt;p&gt;Instead of directly interacting with a target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Researcher → Target
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the researcher simply examines public records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Researcher → Public Logs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The target is never contacted.&lt;/p&gt;

&lt;p&gt;No requests are sent.&lt;/p&gt;

&lt;p&gt;No alerts are triggered.&lt;/p&gt;

&lt;p&gt;It's similar to reading public records at a city office rather than knocking on someone's door.&lt;/p&gt;




&lt;h1&gt;
  
  
  The Benefits of Certificate Transparency
&lt;/h1&gt;

&lt;h2&gt;
  
  
  1. Detecting Unauthorized Certificates
&lt;/h2&gt;

&lt;p&gt;Organizations can monitor CT logs for certificates issued in their name.&lt;/p&gt;

&lt;p&gt;If a suspicious certificate appears:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fake-company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vpn.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;they can investigate immediately.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Increased Trust
&lt;/h2&gt;

&lt;p&gt;Certificate Authorities become more accountable.&lt;/p&gt;

&lt;p&gt;Everything they issue becomes publicly visible.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Improved Security Monitoring
&lt;/h2&gt;

&lt;p&gt;Security teams can track infrastructure changes.&lt;/p&gt;

&lt;p&gt;New services often appear in CT logs before they are publicly announced.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Faster Incident Detection
&lt;/h2&gt;

&lt;p&gt;Unexpected certificates can indicate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Misconfigurations&lt;/li&gt;
&lt;li&gt;Shadow IT&lt;/li&gt;
&lt;li&gt;Forgotten assets&lt;/li&gt;
&lt;li&gt;Potential compromise&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  The Privacy Debate
&lt;/h1&gt;

&lt;p&gt;Transparency improves security.&lt;/p&gt;

&lt;p&gt;But it also creates challenges.&lt;/p&gt;

&lt;p&gt;Consider a company building a secret project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;project-phoenix.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before launch, they obtain a certificate.&lt;/p&gt;

&lt;p&gt;The moment that certificate is logged, the subdomain may become visible to anyone monitoring CT logs.&lt;/p&gt;

&lt;p&gt;This means transparency can sometimes reveal infrastructure that organizations would prefer to keep private.&lt;/p&gt;




&lt;h1&gt;
  
  
  The Risks of Certificate Transparency
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Infrastructure Discovery
&lt;/h2&gt;

&lt;p&gt;CT logs can expose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dev.company.com
staging.company.com
internal-api.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These systems may not be intended for public discovery.&lt;/p&gt;




&lt;h2&gt;
  
  
  Attack Surface Expansion
&lt;/h2&gt;

&lt;p&gt;Every discovered asset becomes another system that must be secured.&lt;/p&gt;

&lt;p&gt;Attackers and defenders often see the same information.&lt;/p&gt;

&lt;p&gt;The difference is what they do with it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Information Leakage
&lt;/h2&gt;

&lt;p&gt;Subdomain names sometimes reveal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Internal project names&lt;/li&gt;
&lt;li&gt;Business initiatives&lt;/li&gt;
&lt;li&gt;Technologies&lt;/li&gt;
&lt;li&gt;Development environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A poorly chosen subdomain can unintentionally disclose sensitive information.&lt;/p&gt;




&lt;h1&gt;
  
  
  Certificate Transparency and Modern Reconnaissance
&lt;/h1&gt;

&lt;p&gt;Years ago, discovering hidden infrastructure required significant effort.&lt;/p&gt;

&lt;p&gt;Today, public data sources reveal a surprising amount of information.&lt;/p&gt;

&lt;p&gt;Certificate Transparency Logs have become one of the most valuable resources for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Security Researchers&lt;/li&gt;
&lt;li&gt;Blue Teams&lt;/li&gt;
&lt;li&gt;Asset Discovery Programs&lt;/li&gt;
&lt;li&gt;Bug Bounty Hunters&lt;/li&gt;
&lt;li&gt;Attack Surface Management Teams&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They help answer a fundamental cybersecurity question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What exists?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And in security, that's often the most important question of all.&lt;/p&gt;




&lt;h1&gt;
  
  
  Final Thoughts
&lt;/h1&gt;

&lt;p&gt;Certificate Transparency Logs were created to make the internet safer and more trustworthy.&lt;/p&gt;

&lt;p&gt;They succeeded.&lt;/p&gt;

&lt;p&gt;But they also created something unexpected:&lt;/p&gt;

&lt;p&gt;A public historical record of internet infrastructure.&lt;/p&gt;

&lt;p&gt;For defenders, CT logs provide visibility.&lt;/p&gt;

&lt;p&gt;For researchers, they provide discovery.&lt;/p&gt;

&lt;p&gt;For organizations, they provide accountability.&lt;/p&gt;

&lt;p&gt;And for anyone learning cybersecurity, they offer a fascinating reminder that sometimes the most valuable information isn't hidden at all—it's sitting in a public diary that anyone can read.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Certificate Transparency Logs are public records of issued SSL/TLS certificates.&lt;/li&gt;
&lt;li&gt;They were created to improve trust and accountability.&lt;/li&gt;
&lt;li&gt;Security researchers use them to discover internet-facing assets.&lt;/li&gt;
&lt;li&gt;Organizations use them to monitor unauthorized certificates.&lt;/li&gt;
&lt;li&gt;CT logs provide enormous security benefits but can also reveal infrastructure details.&lt;/li&gt;
&lt;li&gt;Understanding CT logs is fundamental to modern reconnaissance and attack surface management.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cybersecurity</category>
      <category>bugbounty</category>
      <category>websecurity</category>
      <category>reconnaissance</category>
    </item>
    <item>
      <title>The Castle Analogy: Understanding Attack Surface Through Subdomains</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Sun, 31 May 2026 13:11:45 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/the-castle-analogy-understanding-attack-surface-through-subdomains-8e2</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/the-castle-analogy-understanding-attack-surface-through-subdomains-8e2</guid>
      <description>&lt;p&gt;Most beginners think a company's website is just a single website.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple, right?&lt;/p&gt;

&lt;p&gt;Not exactly.&lt;/p&gt;

&lt;p&gt;In reality, modern organizations are more like massive castles with dozens of gates, towers, secret passages, storage rooms, and sometimes even forgotten buildings that nobody remembers anymore.&lt;/p&gt;

&lt;p&gt;Understanding this idea is one of the most important concepts in cybersecurity: &lt;strong&gt;Attack Surface&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Let's explore it through a castle.&lt;/p&gt;




&lt;h2&gt;
  
  
  Imagine a Castle
&lt;/h2&gt;

&lt;p&gt;Suppose you're standing outside a medieval castle.&lt;/p&gt;

&lt;p&gt;From the outside, you can only see the main entrance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Castle
│
└── Main Gate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If someone asked you how many ways there are to enter the castle, you might answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Just the main gate."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But that's rarely true.&lt;/p&gt;

&lt;p&gt;A large castle may also have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Castle
│
├── Main Gate
├── Side Gate
├── Merchant Entrance
├── Guard Entrance
├── Secret Tunnel
├── Storage Building
└── Watch Tower
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every additional entry point increases the number of places that must be protected.&lt;/p&gt;

&lt;p&gt;This is exactly how modern organizations work.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Website You See Is Usually Just the Main Gate
&lt;/h2&gt;

&lt;p&gt;When you visit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you're usually seeing the main entrance.&lt;/p&gt;

&lt;p&gt;Most people stop there.&lt;/p&gt;

&lt;p&gt;But security researchers know that there are often many more systems behind the scenes.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www.company.com
api.company.com
mail.company.com
vpn.company.com
dev.company.com
staging.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are called &lt;strong&gt;subdomains&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of them as different buildings or entrances inside the castle.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Attack Surface?
&lt;/h2&gt;

&lt;p&gt;Attack Surface is simply the total number of places that could potentially be interacted with, accessed, or misconfigured.&lt;/p&gt;

&lt;p&gt;A small attack surface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Castle
│
└── Main Gate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A larger attack surface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Castle
│
├── Main Gate
├── Side Gate
├── Secret Tunnel
├── Watch Tower
├── Storage Room
└── Guard Entrance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More entrances don't automatically mean insecurity.&lt;/p&gt;

&lt;p&gt;However, they do mean there are more things that must be managed and monitored.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Forgotten Tower Problem
&lt;/h2&gt;

&lt;p&gt;Now imagine a castle that has been expanding for twenty years.&lt;/p&gt;

&lt;p&gt;Every new king builds something.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Year 1  -&amp;gt; Main Gate
Year 5  -&amp;gt; Watch Tower
Year 8  -&amp;gt; Storage Building
Year 12 -&amp;gt; Secret Passage
Year 15 -&amp;gt; Merchant Entrance
Year 20 -&amp;gt; New Tower
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over time, some structures stop being used.&lt;/p&gt;

&lt;p&gt;Maybe nobody visits the old watch tower anymore.&lt;/p&gt;

&lt;p&gt;Maybe the storage building is abandoned.&lt;/p&gt;

&lt;p&gt;Maybe everyone forgot the secret passage even exists.&lt;/p&gt;

&lt;p&gt;The same thing happens in technology.&lt;/p&gt;

&lt;p&gt;Developers create systems such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dev.company.com
test.company.com
old.company.com
legacy.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Projects end.&lt;/p&gt;

&lt;p&gt;Teams move on.&lt;/p&gt;

&lt;p&gt;Employees leave.&lt;/p&gt;

&lt;p&gt;The systems remain.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Attackers Look Beyond the Main Website
&lt;/h2&gt;

&lt;p&gt;Imagine you're trying to enter a castle.&lt;/p&gt;

&lt;p&gt;Would you attack the heavily guarded main gate?&lt;/p&gt;

&lt;p&gt;Or would you look for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An unlocked side door&lt;/li&gt;
&lt;li&gt;A forgotten tunnel&lt;/li&gt;
&lt;li&gt;An abandoned watch tower&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most people would choose the easier path.&lt;/p&gt;

&lt;p&gt;Attackers think the same way.&lt;/p&gt;

&lt;p&gt;The main website is often heavily monitored and regularly updated.&lt;/p&gt;

&lt;p&gt;Forgotten systems may not be.&lt;/p&gt;

&lt;p&gt;This is why security professionals spend significant time identifying all assets that belong to an organization.&lt;/p&gt;




&lt;h2&gt;
  
  
  Real-World Example
&lt;/h2&gt;

&lt;p&gt;A company may actively maintain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;with the latest security updates.&lt;/p&gt;

&lt;p&gt;However, there could also be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;old.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;running software that hasn't been updated in years.&lt;/p&gt;

&lt;p&gt;From a business perspective, it may have been forgotten.&lt;/p&gt;

&lt;p&gt;From an attacker's perspective, it may be the most interesting system the company owns.&lt;/p&gt;




&lt;h2&gt;
  
  
  Visibility Comes Before Security
&lt;/h2&gt;

&lt;p&gt;One of the most important lessons in cybersecurity is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You cannot secure what you don't know exists.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Before defending systems, organizations must first discover and inventory them.&lt;/p&gt;

&lt;p&gt;Security teams often perform asset discovery to answer questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What systems do we own?&lt;/li&gt;
&lt;li&gt;Which services are publicly accessible?&lt;/li&gt;
&lt;li&gt;Which environments are still active?&lt;/li&gt;
&lt;li&gt;Which systems should be retired?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without visibility, security becomes guesswork.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Modern Castle
&lt;/h2&gt;

&lt;p&gt;Today's organizations are no longer simple websites.&lt;/p&gt;

&lt;p&gt;They are ecosystems.&lt;/p&gt;

&lt;p&gt;A single company might have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www.company.com
api.company.com
auth.company.com
mail.company.com
vpn.company.com
staging.company.com
dev.company.com
blog.company.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each one serves a purpose.&lt;/p&gt;

&lt;p&gt;Each one must be maintained.&lt;/p&gt;

&lt;p&gt;Each one becomes part of the organization's attack surface.&lt;/p&gt;

&lt;p&gt;The challenge isn't building the castle.&lt;/p&gt;

&lt;p&gt;The challenge is remembering every door you've ever added.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;When people first learn cybersecurity, they often focus on vulnerabilities.&lt;/p&gt;

&lt;p&gt;But before vulnerabilities come assets.&lt;/p&gt;

&lt;p&gt;Before assets come visibility.&lt;/p&gt;

&lt;p&gt;And before visibility comes understanding how organizations are structured.&lt;/p&gt;

&lt;p&gt;The next time you visit a website, don't think of it as a single page on the internet.&lt;/p&gt;

&lt;p&gt;Think of it as a castle.&lt;/p&gt;

&lt;p&gt;Because in cybersecurity, the most interesting discoveries are rarely behind the main gate-they're usually hidden somewhere deeper inside the walls.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>websecurity</category>
      <category>devops</category>
      <category>security</category>
    </item>
    <item>
      <title>If WhatsApp Can Edit Messages, Why Can't Gmail Edit Emails?</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Sun, 31 May 2026 05:47:06 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/if-whatsapp-can-edit-messages-why-cant-gmail-edit-emails-1b61</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/if-whatsapp-can-edit-messages-why-cant-gmail-edit-emails-1b61</guid>
      <description>&lt;p&gt;A few days ago, I was editing a message on WhatsApp after sending it and a random question came to mind:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If WhatsApp lets us edit messages, why can't Gmail let us edit emails after they're sent?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At first, it feels like both should work the same way. After all, both are sending text over the internet.&lt;/p&gt;

&lt;p&gt;But once I started digging into it, I realized the answer has a lot to do with how these systems are designed and even touches on some interesting cybersecurity concepts.&lt;/p&gt;

&lt;h2&gt;
  
  
  WhatsApp and Email Are Not the Same Thing
&lt;/h2&gt;

&lt;p&gt;Most people think of WhatsApp messages and emails as the same type of communication.&lt;/p&gt;

&lt;p&gt;They're not.&lt;/p&gt;

&lt;p&gt;When you send a WhatsApp message, Meta controls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The app on your phone&lt;/li&gt;
&lt;li&gt;The server in the middle&lt;/li&gt;
&lt;li&gt;The app on the recipient's phone&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because everything is part of the same ecosystem, WhatsApp can update a message after it has been sent.&lt;/p&gt;

&lt;p&gt;When you edit a message, WhatsApp isn't magically changing history. It simply tells the server:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Update message #123 with this new content."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The recipient's app then receives the updated version and displays the little &lt;strong&gt;"Edited"&lt;/strong&gt; label.&lt;/p&gt;

&lt;p&gt;That's why message editing works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Email Works More Like Physical Mail
&lt;/h2&gt;

&lt;p&gt;Email follows a completely different model.&lt;/p&gt;

&lt;p&gt;Imagine sending a physical letter.&lt;/p&gt;

&lt;p&gt;Once the letter reaches the recipient's mailbox, you can't walk into their house and replace it with a new version.&lt;/p&gt;

&lt;p&gt;Email works in a similar way.&lt;/p&gt;

&lt;p&gt;Let's say:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;you@gmail.com → friend@yahoo.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When Gmail sends that email, Yahoo receives its own copy.&lt;/p&gt;

&lt;p&gt;At that point, Google no longer controls the message.&lt;/p&gt;

&lt;p&gt;The email has already been delivered.&lt;/p&gt;

&lt;p&gt;That's why Gmail cannot simply "edit" the email afterward.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then What About Gmail's "Undo Send"?
&lt;/h2&gt;

&lt;p&gt;This was the most surprising part for me.&lt;/p&gt;

&lt;p&gt;Many people think Gmail recalls an email after it has been sent.&lt;/p&gt;

&lt;p&gt;It doesn't.&lt;/p&gt;

&lt;p&gt;What actually happens is much simpler.&lt;/p&gt;

&lt;p&gt;When you click Send, Gmail waits a few seconds before delivering the message.&lt;/p&gt;

&lt;p&gt;If you click &lt;strong&gt;Undo&lt;/strong&gt;, Gmail simply cancels the delivery before the email leaves Google's servers.&lt;/p&gt;

&lt;p&gt;The email was never truly sent.&lt;/p&gt;

&lt;p&gt;No recall. No editing. Just a delayed send.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Cybersecurity Side of This
&lt;/h2&gt;

&lt;p&gt;Now imagine if email editing actually existed.&lt;/p&gt;

&lt;p&gt;An attacker could:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Send a harmless email.&lt;/li&gt;
&lt;li&gt;Let it pass security checks.&lt;/li&gt;
&lt;li&gt;Edit it later into a phishing email.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Original email&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Meeting scheduled for tomorrow.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Edited version&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your account has been suspended.
Click here to reset your password.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That would create serious security problems.&lt;/p&gt;

&lt;p&gt;Email is often used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contracts&lt;/li&gt;
&lt;li&gt;Business communication&lt;/li&gt;
&lt;li&gt;Audit records&lt;/li&gt;
&lt;li&gt;Legal documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because of this, email systems are designed to preserve the original message once it's delivered.&lt;/p&gt;

&lt;p&gt;In cybersecurity, this principle is called &lt;strong&gt;immutability&lt;/strong&gt;—once something is recorded, it shouldn't silently change later.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Difference
&lt;/h2&gt;

&lt;p&gt;The answer isn't really about WhatsApp versus Gmail.&lt;/p&gt;

&lt;p&gt;It's about control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WhatsApp&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Centralized platform&lt;/li&gt;
&lt;li&gt;One company controls everything&lt;/li&gt;
&lt;li&gt;Editing is easy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Email&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Distributed system&lt;/li&gt;
&lt;li&gt;Multiple organizations own different servers&lt;/li&gt;
&lt;li&gt;Editing becomes difficult and potentially dangerous&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The moment data leaves a system you control and enters someone else's system, your ability to modify it usually disappears.&lt;/p&gt;

&lt;p&gt;And that's why you can edit a WhatsApp message but not an email.&lt;/p&gt;




&lt;p&gt;Have you ever wondered how many everyday apps work differently behind the scenes even though they look similar on the surface? This was one of those moments for me.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>beginners</category>
      <category>techtalks</category>
      <category>security</category>
    </item>
    <item>
      <title>Starting My Cybersecurity Learning Journey 🚀</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Sun, 31 May 2026 04:37:52 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/starting-my-cybersecurity-learning-journey-3b96</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/starting-my-cybersecurity-learning-journey-3b96</guid>
      <description>&lt;h1&gt;
  
  
  Starting My Cybersecurity Learning Journey 🚀
&lt;/h1&gt;

&lt;p&gt;Hey everyone 👋&lt;/p&gt;

&lt;p&gt;I'm Arashad, and this is my first post on Dev.to.&lt;/p&gt;

&lt;p&gt;Over the last few months, I've been diving deep into cybersecurity. What started as simple curiosity quickly turned into late nights reading documentation, setting up labs, breaking things, fixing them, and asking myself a lot of questions.&lt;/p&gt;

&lt;p&gt;One thing I've learned is that cybersecurity is huge.&lt;/p&gt;

&lt;p&gt;There are so many topics-networking, web security, cryptography, operating systems, authentication, reconnaissance, cloud security, malware analysis, and much more. Sometimes it feels like the deeper you go, the more you realize how much there is still to learn.&lt;/p&gt;

&lt;p&gt;That's exactly why I'm starting this blog.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I'm Writing
&lt;/h2&gt;

&lt;p&gt;I'm not an expert.&lt;/p&gt;

&lt;p&gt;I'm a learner.&lt;/p&gt;

&lt;p&gt;And honestly, I think that's a good thing.&lt;/p&gt;

&lt;p&gt;As I study different concepts, I often find explanations that are either too complex or assume you already know a lot of background information. So whenever I finally understand something, I write it down in simple words.&lt;/p&gt;

&lt;p&gt;Instead of keeping those notes to myself, I thought I'd share them publicly.&lt;/p&gt;

&lt;p&gt;Maybe they'll help someone who's learning the same things I am.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You'll Find Here
&lt;/h2&gt;

&lt;p&gt;Most of my posts will focus on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cybersecurity fundamentals&lt;/li&gt;
&lt;li&gt;Networking concepts&lt;/li&gt;
&lt;li&gt;Reconnaissance and enumeration&lt;/li&gt;
&lt;li&gt;Nmap and scanning techniques&lt;/li&gt;
&lt;li&gt;Web application security&lt;/li&gt;
&lt;li&gt;Authentication and authorization&lt;/li&gt;
&lt;li&gt;Cryptography concepts&lt;/li&gt;
&lt;li&gt;Vulnerability research&lt;/li&gt;
&lt;li&gt;Security tools and labs&lt;/li&gt;
&lt;li&gt;Beginner-friendly explanations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My goal is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Learn. Build. Share. Repeat.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Makes This Blog Different?
&lt;/h2&gt;

&lt;p&gt;I won't be pretending to know everything.&lt;/p&gt;

&lt;p&gt;If I learn something interesting, I'll write about it.&lt;/p&gt;

&lt;p&gt;If I make mistakes, I'll correct them.&lt;/p&gt;

&lt;p&gt;If I discover a better explanation, I'll share it.&lt;/p&gt;

&lt;p&gt;Think of this blog as a public notebook documenting my journey through cybersecurity.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Coming Next?
&lt;/h2&gt;

&lt;p&gt;Some topics I'm currently learning and planning to write about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why Hosts Block ICMP but Nmap Still Finds Them&lt;/li&gt;
&lt;li&gt;Encoding vs Hashing vs Encryption&lt;/li&gt;
&lt;li&gt;NTLM Authentication Explained&lt;/li&gt;
&lt;li&gt;Kerberoasting for Beginners&lt;/li&gt;
&lt;li&gt;NoSQL Injection Basics&lt;/li&gt;
&lt;li&gt;HTTP Request Smuggling Explained&lt;/li&gt;
&lt;li&gt;Reconnaissance Methodology for Beginners&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let's Connect
&lt;/h2&gt;

&lt;p&gt;If you're also learning cybersecurity, feel free to follow along.&lt;/p&gt;

&lt;p&gt;And if you're experienced in the field, I'd love to learn from your feedback and suggestions.&lt;/p&gt;

&lt;p&gt;Thanks for stopping by and reading my first post.&lt;/p&gt;

&lt;p&gt;Here's to learning something new every day. 🍻&lt;/p&gt;

&lt;p&gt;See you in the next post.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>beginners</category>
      <category>learning</category>
      <category>networking</category>
    </item>
    <item>
      <title>Linux for Cybersecurity: The Commands That Actually Matter (Reality Check)</title>
      <dc:creator>Arashad Dodhiya</dc:creator>
      <pubDate>Wed, 24 Dec 2025 04:17:08 +0000</pubDate>
      <link>https://dev.to/arashad_dodhiya_0e4bdba5a/linux-for-cybersecurity-the-commands-that-actually-matter-reality-check-3bkc</link>
      <guid>https://dev.to/arashad_dodhiya_0e4bdba5a/linux-for-cybersecurity-the-commands-that-actually-matter-reality-check-3bkc</guid>
      <description>&lt;p&gt;When I started learning cybersecurity, Linux felt overwhelming.&lt;/p&gt;

&lt;p&gt;People talk about &lt;em&gt;“master Linux”&lt;/em&gt; like you need to memorize hundreds of commands before you can do anything useful. That mindset almost made me quit early.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reality:&lt;/strong&gt;&lt;br&gt;
You don’t need &lt;em&gt;all&lt;/em&gt; Linux commands.&lt;br&gt;
You need the &lt;strong&gt;right ones&lt;/strong&gt;, and you need to understand &lt;strong&gt;why they matter&lt;/strong&gt; from a security point of view.&lt;/p&gt;

&lt;p&gt;This post is a practical breakdown of the &lt;strong&gt;Linux commands that actually matter for cybersecurity beginners&lt;/strong&gt; — not for flexing in terminals, but for real understanding.&lt;/p&gt;


&lt;h2&gt;
  
  
  Navigation &amp;amp; File System (You Can’t Secure What You Can’t See)
&lt;/h2&gt;

&lt;p&gt;Before hacking anything, you need to know &lt;strong&gt;where things live&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;pwd
ls
cd
&lt;/span&gt;tree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Why this matters in security
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Config files, logs, credentials — everything is just files&lt;/li&gt;
&lt;li&gt;Attackers look for &lt;strong&gt;interesting locations&lt;/strong&gt;, not random commands&lt;/li&gt;
&lt;li&gt;You need to move fast and confidently inside unknown systems&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Security mindset
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;If you don’t understand the Linux filesystem, you’ll never understand privilege escalation or misconfigurations.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  Reading Files (Logs Are Gold)
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat
&lt;/span&gt;less
more
&lt;span class="nb"&gt;head
tail&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Logs reveal &lt;strong&gt;authentication attempts&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Config files reveal &lt;strong&gt;secrets and bad permissions&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You’ll constantly inspect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/etc/passwd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/etc/shadow&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/var/log/auth.log&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.env&lt;/code&gt; files&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Pro tip
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tail&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; /var/log/auth.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This lets you &lt;strong&gt;watch logins in real time&lt;/strong&gt; — very useful for learning.&lt;/p&gt;


&lt;h2&gt;
  
  
  File Permissions &amp;amp; Ownership (This Is Where Most Vulnerabilities Live)
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt;
&lt;span class="nb"&gt;chmod
chown
id
whoami&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Misconfigured permissions = easy privilege escalation&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You must understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read (&lt;code&gt;r&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Write (&lt;code&gt;w&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Execute (&lt;code&gt;x&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Who owns what — and &lt;strong&gt;who shouldn’t&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Security example
&lt;/h3&gt;

&lt;p&gt;If a sensitive script is writable by everyone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nt"&gt;-rwxrwxrwx&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s a &lt;strong&gt;huge vulnerability&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Searching for Interesting Files (Attackers Don’t Browse — They Search)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find
&lt;span class="nb"&gt;grep
&lt;/span&gt;locate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Real use cases
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find / &lt;span class="nt"&gt;-perm&lt;/span&gt; &lt;span class="nt"&gt;-4000&lt;/span&gt; 2&amp;gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Finds SUID binaries (very important for privilege escalation)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-R&lt;/span&gt; &lt;span class="s2"&gt;"password"&lt;/span&gt; /etc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Finds hardcoded secrets (common beginner mistake)&lt;/p&gt;




&lt;h2&gt;
  
  
  Processes &amp;amp; Services (What’s Running = What Can Be Attacked)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps
top
htop
systemctl
service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Running services expose &lt;strong&gt;attack surfaces&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Misconfigured services = easy targets&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You need to see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What’s running&lt;/li&gt;
&lt;li&gt;Under which user&lt;/li&gt;
&lt;li&gt;With what permissions&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps aux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Shows &lt;strong&gt;everything running&lt;/strong&gt; — attackers love this.&lt;/p&gt;




&lt;h2&gt;
  
  
  Networking Basics (Your First Recon Tool Is Linux Itself)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip a
ip route
ss
netstat
ping
curl
wget
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Before Nmap, understand &lt;strong&gt;local networking&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IP addresses&lt;/li&gt;
&lt;li&gt;Open ports&lt;/li&gt;
&lt;li&gt;Listening services
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ss &lt;span class="nt"&gt;-tuln&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Shows open ports without fancy tools&lt;/p&gt;




&lt;h2&gt;
  
  
  User &amp;amp; Login Information (Who Has Access?)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;who
&lt;/span&gt;w
last
su
&lt;span class="nb"&gt;sudo&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;See who’s logged in&lt;/li&gt;
&lt;li&gt;Identify admin users&lt;/li&gt;
&lt;li&gt;Detect suspicious activity
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;last
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Shows login history (great for blue team learning)&lt;/p&gt;




&lt;h2&gt;
  
  
  Package Management (Attackers Love Outdated Software)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Commands that matter
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt
apt update
apt upgrade
dpkg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why this matters
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Old packages = known vulnerabilities&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Knowing what’s installed helps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attackers find exploits&lt;/li&gt;
&lt;li&gt;Defenders patch systems&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h2&gt;
  
  
  Commands You Don’t Need (At the Beginning)
&lt;/h2&gt;

&lt;p&gt;You can safely ignore (for now):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Advanced shell scripting&lt;/li&gt;
&lt;li&gt;Kernel compilation&lt;/li&gt;
&lt;li&gt;Custom init systems&lt;/li&gt;
&lt;li&gt;Exotic filesystem tuning&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Learn depth, not breadth.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Reality Check
&lt;/h2&gt;

&lt;p&gt;Cybersecurity Linux is not about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Memorizing commands&lt;/li&gt;
&lt;li&gt;Showing off terminal tricks&lt;/li&gt;
&lt;li&gt;Using Kali tools blindly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understanding systems&lt;/li&gt;
&lt;li&gt;Reading configurations&lt;/li&gt;
&lt;li&gt;Spotting mistakes&lt;/li&gt;
&lt;li&gt;Thinking like an attacker&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you master &lt;strong&gt;these commands and the reasons behind them&lt;/strong&gt;, you’ll be far ahead of most beginners.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I’m Doing Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Practicing on real labs&lt;/li&gt;
&lt;li&gt;Reading logs daily&lt;/li&gt;
&lt;li&gt;Breaking small systems safely&lt;/li&gt;
&lt;li&gt;Learning &lt;em&gt;why&lt;/em&gt; vulnerabilities exist&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’re learning cybersecurity too - slow down, learn Linux properly, and don’t chase tools too early.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>linux</category>
      <category>infosec</category>
      <category>learninginpublic</category>
    </item>
  </channel>
</rss>
