<?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 Telman Hajibutayev on Medium]]></title>
        <description><![CDATA[Stories by Telman Hajibutayev on Medium]]></description>
        <link>https://medium.com/@telman.hajibutayev?source=rss-2c9c008d52fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xvi23mJK5wDUbSiiMik25g.jpeg</url>
            <title>Stories by Telman Hajibutayev on Medium</title>
            <link>https://medium.com/@telman.hajibutayev?source=rss-2c9c008d52fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:06:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@telman.hajibutayev/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[Conquering the Buffer: Journey into Memory Vulnerabilities]]></title>
            <link>https://medium.com/@telman.hajibutayev/conquering-the-buffer-journey-into-memory-vulnerabilities-21d3aad529a8?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/21d3aad529a8</guid>
            <category><![CDATA[holberton-school]]></category>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[buffer-overflow]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 13:14:38 GMT</pubDate>
            <atom:updated>2026-04-04T13:15:01.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7C600wVlX653RckaehSbw.png" /></figure><p>Hello Teammate! You know me, I`m a passionate student in the Cybersecurity curriculum at <strong>Holberton School Azerbaijan</strong>. In our recent project, we’ve been plunging headfirst into the fascinating, complex world of memory management. One vulnerability keeps popping up as both classic and incredibly powerful: the <strong>Buffer Overflow</strong>.</p><p>Whether you’re a fellow student navigating these concepts or simply curious about the hidden battlegrounds of hacking and defense, this blog post is for you. Let’s demystify how a simple “spill” can bring an entire system to its knees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWGj4wKC-Dp0JlVVsHX8nQ.png" /></figure><p>Imagine you have a small, clear glass designed to hold exactly 8 ounces of water. In computer terms, this glass is a <strong>buffer</strong> — a temporary storage area in the computer’s memory (RAM). It’s built for a specific job: holding data.</p><p>Now, imagine someone attempts to pour an entire gallon of water into that tiny 8-ounce glass. The glass overflows, right? The excess water doesn’t just vanish; it splashes all over the table, potentially wetting other objects, creating a mess, and maybe even shorting out some electronics.</p><p>In a computer, a <strong>Buffer Overflow</strong> occurs in exactly the same way. A program tries to write more data into a buffer than it was allocated to hold. This “extra” data “spills” beyond the buffer’s designated boundaries and starts <strong>overwriting adjacent memory locations</strong>. This “mess” is far from harmless — it can corrupt critical data, cause the program to crash, or, most terrifyingly, allow an attacker to seize control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VI7unRCglC3kBH5P67lDA.png" /></figure><p>Here’s the critical part that every future cyber expert needs to grasp. When a programmer defines a buffer (for example, to store a user’s nickname), they assign it a fixed size, say, 12 characters. If the program fails to validate the <em>actual</em> size of the input, a crafty user could enter 200 characters.</p><p>The extra 188 characters don’t disappear. They spill over and clobber whatever memory happens to be next to the buffer. On the <strong>stack</strong> (the part of memory where local variables and function call information live), this is particularly dangerous.</p><p>A prime target in this adjacent memory is the <strong>Return Address</strong>.</p><p><strong>Think of the return address as the program’s roadmap.</strong> When a function finishes its job, this address tells the computer precisely which instruction to execute next, guiding it back to its original path.</p><p>An attacker’s goal is to carefully craft their overflowing input so that the precise characters that overwrite the return address “point” the computer to a new, malicious location. That location usually contains their own custom-written code, known as <strong>Shellcode</strong>, designed to grant them administrative access, steal information, or worse. The attacker effectively hacks the roadmap, forcing the computer to take a dangerous detour of their choosing. This is known as <strong>arbitrary code execution</strong>, and it’s the ultimate prize for most attackers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrtS7NfQct2VpnVyxNLODQ.png" /></figure><p>Let’s dissect a simple, classic example in C, a powerful language that places memory management directly in the programmer’s hands, making it a fertile ground for these types of vulnerabilities.</p><pre>#include &lt;string.h&gt;<br>#include &lt;stdio.h&gt;<br><br>void process_login() {<br>    char username[8]; // WARNING: This buffer is tiny! Only 8 characters.<br><br>    printf(&quot;Welcome to SecureApp v1.0!\n&quot;);<br>    printf(&quot;Please enter your username: &quot;);<br><br>    // DANGER ZONE!<br>    // gets() is notoriously dangerous because it has absolutely NO bounds checking.<br>    gets(username);<br><br>    // Some simple logic (just for demonstration)<br>    if (strcmp(username, &quot;admin&quot;) == 0) {<br>        printf(&quot;Access Granted! Proceed with caution...\n&quot;);<br>    } else {<br>        printf(&quot;Access Denied. Incorrect username.\n&quot;);<br>    }<br>}<br><br>int main() {<br>    process_login();<br>    return 0;<br>}</pre><p>Imagine a user enters a very long string, say 1234567890ABCDEF. The gets() function, true to its dangerous nature, will happily gobble up all those characters and try to jam them into the 8-byte username buffer.</p><ul><li>The first 8 characters (12345678) will fit.</li><li>The <em>entire</em> rest of the string (90ABCDEF) will spill out.</li></ul><p>These overflowing characters will <strong>brute-force their way into the adjacent memory on the stack</strong>. They might overwrite other local variables, function arguments, the stored frame pointer, and, you guessed it, the <strong>vital return address</strong>. An attacker who knows the exact layout of memory can overwrite this return address with the address of their shellcode, which they’ve already cunningly placed elsewhere in memory. When process_login() finishes, instead of returning to main(), the program will jump straight into the attacker’s waiting code. <strong>Boom — system compromised.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRWUfmYr8I3vh5XNs9NU0A.png" /></figure><p>While buffer overflows seem like a foundational, “solved” problem, history proves otherwise. They have been at the heart of some of the most significant events in cyber history:</p><ul><li><strong>The Morris Worm (1988):</strong> One of the very first worms to traverse the nascent internet, the Morris Worm used a buffer overflow vulnerability in the “fingerd” network service to rapidly spread and shut down thousands of computers. It was a stark wake-up call about network security.</li><li><strong>The Heartbleed Bug (2014):</strong> Okay, technically this was a <strong>buffer over-<em>read</em></strong>, which is the mirror image of an overflow. Instead of <em>writing</em> too much, it allowed an attacker to <em>read</em> beyond the buffer’s intended boundary in OpenSSL, leaking massive amounts of sensitive information (like private keys, usernames, and passwords) from a server’s memory. <em>Both</em> types of vulnerabilities stem from incorrect memory boundary handling and underscore the massive impact a simple coding error can have.</li></ul><h4><strong>Forging Your Shield: How to Defend Against Buffer Overflows</strong></h4><p>As future cybersecurity professionals, knowing how these attacks work is only half the battle. Our true mission is defense. Here are practical, robust methods to prevent these exploits:</p><ol><li><strong>Use Safe Functions &amp; Input Validation:</strong> This is Rule #1. <em>Never</em> use functions known to be dangerous like gets() or strcpy(). Replace them with their modern, safer counterparts that explicitly check input size, such as fgets() and strncpy(). Even more importantly, <strong>always validate <em>all</em> user input.</strong> Sanitize it, check its length, and ensure it meets expected formats. <em>Never trust user input.</em></li><li><strong>Choose Modern, Memory-Safe Languages:</strong> Languages like <strong>Python, Java, and C#</strong> handle memory automatically. They include built-in bounds checking for arrays and strings, making classic stack-based buffer overflows nearly impossible by design. While they are not a silver bullet for <em>all</em> security issues, they offer built-in protection for this class of vulnerability.</li><li><strong>Deploy Stack Canaries:</strong> Think of this as a security guard standing watch. A special, “secret” random value (the “canary”) is placed on the stack right before the return address. Before a function returns, the program checks if the canary’s value has changed. If it has, the program knows a buffer overflow occurred and immediately terminates, preventing the attack from executing.</li><li><strong>Implement ASLR (Address Space Layout Randomization):</strong> This is like constantly rearranging the map. Every time a program starts, ASLR randomizes where key memory segments (like the stack, heap, and code libraries) are located. This makes it incredibly difficult for an attacker to predict the exact address of their shellcode or the return address they need to overwrite.</li><li><strong>Utilize Non-Executable (NX) Stacks:</strong> This technique marks the stack memory segment as non-executable. Even if an attacker successfully overflows the buffer and writes their shellcode onto the stack, the computer’s processor will refuse to run it, neutralizing the threat.</li></ol><h3>Conclusion: The Importance of Knowing Your Memory</h3><p>Diving into buffer overflows has been a profound learning experience for me. It’s taught me that a seemingly trivial mistake — one single line of code, one missed input validation — can have cataclysmic security consequences. It reinforces the truth that understanding <strong>how systems work under the hood</strong>, especially how memory is managed, is not optional for cybersecurity experts; it’s fundamental.</p><p>For my fellow Holberton students and colleagues, I hope this guide provides a clear foundation as we tackle our projects. Keep digging deep!</p><p>Stay curious, practice responsibly, and remember: with great knowledge comes the power to build a more secure digital world. Ethical hacking is key!</p><p><a href="https://www.youtube.com/watch?v=1S0aBV-Waeo">https://www.youtube.com/watch?v=1S0aBV-Waeo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21d3aad529a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 5: The Grand Finale — Building a Master Shield for the Digital Age]]></title>
            <link>https://medium.com/@telman.hajibutayev/part-5-the-grand-finale-building-a-master-shield-for-the-digital-age-1a4ac49b2c66?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a4ac49b2c66</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[azerbaijantech]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[holberton-school]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 18:24:29 GMT</pubDate>
            <atom:updated>2026-02-23T18:24:29.486Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FIsdp22JjyfVZSmTCgTow.jpeg" /></figure><p>Hello everyone! It has been an incredible journey sharing my cybersecurity studies at <strong>Holberton School Azerbaijan</strong> with you.</p><p>We have explored many different “tools” in our security toolbox. But in the professional world, a tool is only useful if you know how to use it as part of a bigger plan. Today, for our final entry, we are putting everything together. We are moving from single principles to a <strong>Cohesive Security Strategy</strong>.</p><h3>A Quick Recap: Our Five Pillars</h3><p>Before we build the strategy, let’s remember the five pillars we discussed in this series:</p><ol><li><strong>Defense in Depth:</strong> Using multiple layers of security so there is no single point of failure.</li><li><strong>Least Privilege (PoLP):</strong> Giving users only the minimum access they need to do their jobs.</li><li><strong>Separation of Duties (SoD):</strong> Dividing critical tasks between different people to prevent fraud or major mistakes.</li><li><strong>Secure by Design:</strong> Building security into the foundation of a product from day one, not adding it later.</li><li><strong>Security Through Obscurity:</strong> Using secrecy (like hiding version numbers) as a small, extra layer of confusion for attackers.</li></ol><h3>The Synergy: How the Principles Interlock</h3><p>In cybersecurity, $1 + 1$ often equals $3$. When these principles work together, they become much stronger than they are alone.</p><p>Imagine a developer at a tech company:</p><ul><li>Because of <strong>Secure by Design</strong>, the code they write is naturally resistant to common attacks.</li><li>Because of <strong>Separation of Duties</strong>, they cannot push that code to the live website without a teammate reviewing it first.</li><li>Because of <strong>Least Privilege</strong>, even if their account is hacked, the attacker cannot delete the whole database.</li><li>Because of <strong>Defense in Depth</strong>, the entire system sits behind a firewall and an intrusion detection system.</li></ul><p>This is <strong>synergy</strong>. Each principle covers the weaknesses of the others.</p><h3>Designing Your Cohesive Strategy</h3><p>A real security strategy for a company isn&#39;t just about software; it’s about <strong>culture</strong> and <strong>policy</strong>.</p><h4>1. The Human Element (Culture)</h4><p>Security starts with people. If employees understand <em>why</em> they shouldn&#39;t have full admin rights (Least Privilege) or <em>why</em> they need a second person to approve a transfer (SoD), they are more likely to follow the rules. A &quot;Security First&quot; culture is the strongest defense.</p><h4>2. Policy and Enforcement</h4><p>Guidelines must be clear and written down. Companies need automated tools to enforce these policies—for example, a system that automatically removes access for employees who leave the company.</p><h4>3. Continuous Improvement</h4><p>The &quot;bad guys&quot; are always learning. A cohesive strategy must include regular audits and updates. You cannot &quot;finish&quot; security; you can only maintain it.</p><p>&quot;Security is a marathon, not a sprint. We must constantly adapt our strategy to survive.&quot;</p><h3>Looking Forward: The Future of Defense</h3><p>As we look to the future, new challenges like <strong>AI-driven attacks</strong> and <strong>Cloud security</strong> are becoming more common. However, these foundational principles will always be relevant:</p><ul><li>In the Cloud, <strong>Least Privilege</strong> is even more important because everything is connected.</li><li>Against AI, <strong>Defense in Depth</strong> is vital because an AI might find a way through one layer, but it will struggle to get through five different ones.</li></ul><h3>Conclusion and Call to Action</h3><p>This project at <strong>Holberton School Azerbaijan</strong> has shown me that cybersecurity is a holistic field. It is not just about being “Offensive” or “Defensive” — it’s about being <strong>strategic</strong>.</p><p>Now, I have a challenge for you:</p><p>Take a look at your own digital life or your company’s practices.</p><ul><li>Do you have “Defense in Depth” (like Multi-Factor Authentication)?</li><li>Are you practicing “Least Privilege” with your personal passwords?</li></ul><p><strong>Don’t wait for a breach to happen.</strong> Start building your cohesive strategy today.</p><p>Thank you for reading my series! I hope it helps you stay safe in our technology-driven world. If you have any questions or want to discuss these strategies further, let’s connect in the comments!</p><p>#Cybersecurity #HolbertonSchool #InfoSec #AzerbaijanTech</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a4ac49b2c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part4: The “Hidden Key” Debate: Is Security Through Obscurity Actually Secure?]]></title>
            <link>https://medium.com/@telman.hajibutayev/part4-the-hidden-key-debate-is-security-through-obscurity-actually-secure-29522d3a905f?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/29522d3a905f</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[holberton-school]]></category>
            <category><![CDATA[azerbaijantech]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 18:24:14 GMT</pubDate>
            <atom:updated>2026-02-23T18:24:14.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Trb5XmlSGn6d0TnbGmzpjA.jpeg" /></figure><p>Hello, Holberton Azerbaijan community and fellow tech enthusiasts!</p><p>Welcome back to my series exploring the bedrock principles of cybersecurity. As a student right here in Baku, diving deep into the world of digital defense, I’ve learned a lot about building strong walls (<strong>Defense in Depth</strong>) and managing keys carefully (<strong>Least Privilege</strong>).</p><p>Today, however, we are tackling the most controversial topic in our field. It feels less like engineering and more like a spy movie plot. We are talking about <strong>Security Through Obscurity (StO)</strong>.</p><p>Walk into any room of security professionals and mention StO, and you will immediately start a loud debate. Some swear it’s a necessary layer of defense; others think it’s a dangerous illusion.</p><p>Let’s break down what it is, why it’s so polarizing, and where it fits in a modern cybersecurity strategy.</p><h4>What exactly is security through obscurity?</h4><p>At its simplest, Security Through Obscurity relies on secrecy as the main form of protection.</p><p>Imagine you want to secure your house. Instead of buying a high-quality deadbolt for the front door, you just hide the key under a fake plastic rock in the garden.</p><ul><li>Is the key hidden? Yes.</li><li>Is the house secure? Well, that depends entirely on nobody ever looking under that rock.</li></ul><p>In the digital world, this means trying to secure a system by hiding implementation details — like software versions, internal IP addresses, or configuration settings — hoping attackers just won’t find them.</p><h4>When hiding actually adds value (The Good)</h4><p>In my studies, my mentors have emphasized that “obscurity is not security.” However, that doesn’t mean it is useless. It can be a helpful <em>tactic</em>, even if it’s not a full <em>strategy</em>.</p><p>Where does it help?</p><ol><li><strong>Stopping the “Noise”:</strong> Automated bots scan the internet constantly looking for standard doors, like SSH on port 22. Changing that port to a random number (e.g., 49222) won’t stop a targeted human hacker, but it will stop thousands of dumb bots.</li><li><strong>Buying time:</strong> Obfuscating code (making it messy and hard to read) won’t stop reverse-engineering forever, but it might slow an attacker down enough for you to detect them.</li><li><strong>Decoys:</strong> Setting up fake servers (honeypots) that look like valuable targets can distract attackers and waste their resources while you study their methods.</li></ol><h4>The Critical Flaw: complacency (The Bad)</h4><p>So, why do so many experts hate it? Because it creates <strong>false confidence</strong>.</p><p>The biggest danger is when a company or a developer thinks, “Nobody knows where our admin panel is login page is located, so we don’t need strong multi-factor authentication on it.”</p><p>This is a fatal mistake. Experienced attackers have tools that can map a network and find hidden services very quickly. To a professional hacker, obscurity isn’t a wall; it’s just a small speed bump.</p><p>Once the “secret” is discovered, your security drops instantly to zero.</p><h4>Finding the balance: transparency is stronger</h4><p>In modern cybersecurity, we lean towards <strong>transparency</strong> for our core defenses.</p><p>Think about the encryption algorithms that secure the internet (like AES). They are open-source. The whole world knows exactly how the math works. We trust them not because they are secret, but because thousands of experts have tried to break them and failed. This is often called Kerckhoffs’s principle: a system should be secure even if the enemy knows everything about how it works — except the key.</p><p><strong>The Holberton way:</strong> We should use Defense in Depth. Your system’s architecture should be robust enough to survive even if its blueprints are leaked. You can use obscurity as a thin outer layer to confuse amateurs, but never rely on it as your foundation.</p><h4>Practical recommendations for us students</h4><p>As future professionals graduating from Holberton Azerbaijan, how should we handle this?</p><ul><li><strong>Assume the secret is out:</strong> Always design your defenses assuming the attacker already knows your IP addresses and software versions. If the system is still secure under those conditions, you’ve done a good job.</li><li><strong>Don’t overcomplicate:</strong> If your “hiding” techniques make it hard for your own IT team to maintain the system or fix bugs, you have gone too far. Security shouldn’t break usability.</li><li><strong>Use it as “Seasoning”:</strong> Think of obscurity like salt in cooking. A little bit can improve the dish, but you can’t make a meal out of just salt.</li></ul><h3>ritical thought: The ethical question</h3><p>To wrap up, this topic brings up a tough ethical question for our community.</p><p>When a company discovers a major security flaw in their product, they often keep it secret (“obscure”) while they rush to fix it before hackers find it. Is this a responsible way to protect users, or is it untransparent and dangerous?</p><p>There is no easy answer. But one thing is clear: relying solely on hiding in the shadows is a strategy destined to fail in the bright light of modern cyber threats. We must build systems that can stand up to scrutiny.</p><p><strong>What’s your take?</strong> Is hiding the key under the mat a smart “life hack” or just lazy security? Let’s discuss it in the comments!</p><p>#Cybersecurity #HolbertonSchool #InfoSec #AzerbaijanTech</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29522d3a905f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 4: Building the Foundation: What is “Secure by Design”?]]></title>
            <link>https://medium.com/@telman.hajibutayev/part-4-building-the-foundation-what-is-secure-by-design-cbfa1a24fda3?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbfa1a24fda3</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[holberton-school]]></category>
            <category><![CDATA[secure-by-design]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 07:30:21 GMT</pubDate>
            <atom:updated>2026-02-22T07:30:21.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qofp_aEAQA_OQe4nXxjYww.png" /></figure><h4>Hello, tech enthusiasts!</h4><p>As my journey at <strong>Holberton School Azerbaijan</strong> continues, I am learning a very important lesson: you cannot simply “add” security to a finished product. If you build a house with no windows and then try to cut holes for them later, you might weaken the whole structure.</p><p>In cybersecurity, we call this the difference between “Bolt-on Security” (trying to fix things later) and <strong>“Secure by Design”</strong> (building it right from the start).</p><h4>What does “Secure by Design” mean?</h4><p><strong>Secure by Design</strong> is a proactive approach. It means that security is not an afterthought. Instead, it is a core requirement from the very first day of planning a system or writing a single line of code.</p><p>Instead of waiting for a hacker to find a hole and then fixing it (reactive), we try to build a system that has no holes to begin with (proactive).</p><h4>The core elements of secure design</h4><p>To build something secure, we use three main “tools” in the design phase:</p><ol><li><strong>Threat modeling:</strong> Before we build, we ask: “Who might want to attack this? How would they do it?” By thinking like a hacker early, we can design defenses before the system even exists.</li><li><strong>Minimization:</strong> The more “stuff” a program has, the more “stuff” there is to break. We only include the features, code, and access that are absolutely necessary. This reduces the <strong>Attack Surface</strong>.</li><li><strong>Secure defaults:</strong> A system should be safe “out of the box.” For example, when you install new software, the most restrictive security settings should be “ON” by default. The user should have to choose to make it less secure, not the other way around.</li></ol><h4>Why it matters: The “$1 vs $100” rule</h4><p>Why should companies care? Because it is <strong>cheaper</strong>.</p><p>In the industry, there is a famous idea: if it costs <strong>$1</strong> to fix a security bug during the design phase, it will cost <strong>$100</strong> (or more!) to fix it after the software is already released and used by millions of people.</p><p>Beyond money, it builds <strong>trust</strong>. Customers are much more likely to use a product if they know security was a priority from day one.</p><h4>How to implement It: “Shift Left”</h4><p>In modern software development, we use a term called <strong>“Shift Left.”</strong> If you look at a timeline of making software (from left to right), “Shift Left” means moving security checks from the end (the right) to the beginning (the left).</p><ul><li><strong>Developers:</strong> They need to learn “Secure Coding” practices.</li><li><strong>Security Specialists:</strong> They work with developers during the planning phase, not just at the end.</li><li><strong>Automation:</strong> We use <strong>CI/CD pipelines</strong> (Continuous Integration/Continuous Deployment) to automatically scan code for vulnerabilities every time a developer saves their work.</li></ul><p>“Security is a process, not a product.” — This is the heart of Secure by Design.</p><h4>Challenges to overcome</h4><p>The biggest challenge is <strong>speed</strong>. Technology companies want to release new features as fast as possible. Sometimes, people think security “slows them down.”</p><p><strong>The Solution:</strong> We must show that a major security breach slows the company down much more than a few days of security design! By automating security tests, we can stay fast <em>and</em> safe.</p><h4>A real-world example: apple’s secure enclave</h4><p>A great example of Secure by Design is how modern smartphones handle your fingerprint or face data. They don’t just “save a photo” of your fingerprint in a folder.</p><p>They use a special, separate piece of hardware (like Apple’s <strong>Secure Enclave</strong>) that is designed <em>only</em> for security. Even if the main phone operating system is hacked, the attacker still cannot reach that secret hardware. That is Secure by Design.</p><h3>Conclusion: think before you build</h3><p>The future of technology depends on trust. As we build more AI, more cloud systems, and more connected devices, we cannot afford to be reactive. We must be proactive.</p><p><strong>What about you?</strong> In your projects, do you think about security before you start coding, or do you wait until the end? Let’s discuss in the comments!</p><p><strong>Next time:</strong> We will wrap up our series by looking at the Security Through Obscurity<strong>.</strong></p><p>#cybersecurity #HolbertonSchool #HolbertonSchoolAzerbaijan #SecurebyDesign</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbfa1a24fda3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 3: The “Two-Person Rule”: Mastering Separation of Duties (SoD)]]></title>
            <link>https://medium.com/@telman.hajibutayev/part-3-the-two-person-rule-mastering-separation-of-duties-sod-c7fe6158122a?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7fe6158122a</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[separation-of-duties]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[holberton-school]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 07:29:14 GMT</pubDate>
            <atom:updated>2026-02-22T07:29:14.524Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back to my series on cybersecurity fundamentals!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAV-qvHRAgBWqFSL05--Iw.png" /></figure><p>I am continuing my journey at <strong>Holberton School Azerbaijan</strong>, learning how to build robust defenses for technology companies. In my last <a href="https://medium.com/@telman.hajibutayev/part-2-the-power-of-no-understanding-the-principle-of-least-privilege-polp-d878c5dd9f5c">post</a>, we discussed the “<a href="https://medium.com/@telman.hajibutayev/part-2-the-power-of-no-understanding-the-principle-of-least-privilege-polp-d878c5dd9f5c">Principle of Least Privilege</a>” (giving people only the keys they need).</p><p>Today, we are taking that concept a step further. What if the key is for something incredibly important, like the company’s main bank account or the “delete all” button for your servers? Should one person hold that key alone?</p><p>Absolutely not. This brings us to a vital concept called <strong>Separation of Duties (SoD)</strong>.</p><h4>What is Separation of Duties?</h4><p>At its core, Separation of Duties is about ensuring that no single person has complete control over a critical process from start to finish.</p><p>It is the idea of “checks and balances.” You break a sensitive task into two or more parts and assign those parts to different people. To complete the task, these people must cooperate. If one person wants to do something malicious (or just makes a big mistake), the other person is there to stop it.</p><p>Think of it like a nuclear submarine in a movie. To launch a missile, the Captain and the Executive Officer must both turn their separate keys at the exact same time. One person cannot do it alone.</p><h4>Not Just a Cyber Concept</h4><p>SoD didn’t start with computers. It has deep roots in finance and accounting.</p><p>For hundreds of years, businesses realized that the person who collects the cash from customers should not be the exact same person who records how much money the company made in the ledger book. If they were the same person, they could easily steal some cash and write down a lower number in the book.</p><p>In cybersecurity, we apply this same ancient logic to digital assets.</p><h4>Why SoD is Crucial (The Benefits)</h4><p>Implementing SoD can feel like it slows things down, but the safety benefits are massive:</p><ol><li><strong>Minimizing Insider Threats:</strong> It is much harder for a disgruntled employee to damage the company if they need a conspirator to help them.</li><li><strong>Catching Honest Mistakes:</strong> We are all human. If a System Administrator accidentally types a command that will delete a database, SoD means another person (or system) has to approve that command before it executes. It’s a safety net.</li><li><strong>Enhancing Accountability:</strong> When tasks are split, we know exactly who was responsible for which step.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4pDOinWY5ivT3QpiqnoVBA.png" /></figure><h4>Practical Applications in IT Security</h4><p>How does a modern tech company use SoD? Here are common examples:</p><ul><li><strong>Software Development (DevOps):</strong> The developer who writes the code should not be the same person who deploys that code to the live “production” environment. Another developer or manager should review and approve it first. This prevents bad code (accidentally or on purpose) from going live instantly.</li><li><strong>Administrative Privileges:</strong> The person responsible for creating new user accounts should not also be the person responsible for reviewing the security logs of those accounts.</li><li><strong>Incident Response:</strong> In a major security investigation, the person collecting digital evidence shouldn’t be the only one analyzing it. This ensures the evidence isn’t tampered with to cover someone’s tracks.</li></ul><h4>Challenges and Solutions</h4><p>In the real world, especially in fast-paced tech startups, SoD is hard. Small teams often complain: “We only have three people in IT! How can we separate duties? It takes too long to get anything approved!”</p><p>This is a valid challenge. Here is how we solve it:</p><ul><li><strong>Role-Based Access Control (RBAC):</strong> As mentioned in the previous post on Least Privilege, defining strict roles helps enforce SoD automatically.</li><li><strong>Automation:</strong> If you don’t have enough people, use code. Instead of a human approving a code deployment, an automated testing suite can act as the “second person,” blocking the deployment if tests fail.</li></ul><h4>A Simple Case Study in Failure</h4><p>Imagine a company where the IT Manager has full control over purchasing new hardware <em>and</em> full control over the inventory system that tracks where that hardware goes.</p><p>Without SoD, this manager could order ten expensive new laptops for the company, intercept the delivery, take five laptops home to sell on eBay, and then edit the inventory system to show that only five laptops ever arrived.</p><p>With SoD, the Purchasing Department orders the laptops, but an IT Technician must scan them into inventory upon arrival. The theft becomes immediately obvious.</p><h3>Conclusion</h3><p>Separation of Duties is essential for creating a resilient organization. While “Least Privilege” restricts what a user can do <em>alone</em>, “Separation of Duties” restricts what a user can do <em>without cooperation</em>. Together, they form a powerful defense against both malicious insiders and accidental disasters.</p><p><strong>What about you?</strong> Does your workplace require two people to approve major changes, or does one “super-user” hold all the power? Share your experiences in the comments below!</p><p><strong>Coming Up Next:</strong> In the next part of this series, we will look at the “Secure by Design”</p><p>#CyberSecurity #HolbertonSchool #SeparationOfDuties #HolbertonSchoolAzerbaijan #Part3</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7fe6158122a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2: The Power of “No”: Understanding the Principle of Least Privilege (PoLP)]]></title>
            <link>https://medium.com/@telman.hajibutayev/part-2-the-power-of-no-understanding-the-principle-of-least-privilege-polp-d878c5dd9f5c?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/d878c5dd9f5c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[holberton-school]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 18:00:29 GMT</pubDate>
            <atom:updated>2026-02-20T18:00:29.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Xvaybp_uQ7TS7JqO1_Ipw.png" /></figure><p>In my last <a href="https://medium.com/@telman.hajibutayev/cybersecurity-fundamentals-series-why-defense-in-depth-is-more-than-just-a-buzzword-b951d8b0bd02">post</a>, we talked about building a castle with many layers. But what happens if you give every person in the castle a “master key” that opens every single door, including the king’s treasury? Even with big walls, one person losing their key would mean the whole castle is in danger.</p><p>This is why our next fundamental principle is the <strong>Principle of Least Privilege (PoLP)</strong>.</p><h4><strong>What is least privilege?</strong></h4><p>In simple terms, Least Privilege means giving a user, a program, or a system only the <strong>minimum</strong> access they need to do their job — and nothing more.</p><p>If you are a graphic designer, you need access to Photoshop and the “Marketing” folder. You do <strong>not</strong> need access to the “Payroll” database or the server’s root settings. By saying “no” to extra access, we create a much safer environment.</p><h4>Why it matters: real-world risks</h4><p>Why are we so “stingy” with permissions? Because of the <strong>Attack Surface</strong>.</p><p>Imagine a hacker steals the password of a junior employee.</p><ul><li><strong>Scenario A (No PoLP):</strong> The employee has “Administrator” rights. The hacker now has full control over the company’s entire network. They can delete everything.</li><li><strong>Scenario B (With PoLP):</strong> The employee only has access to their own files. The hacker is “trapped” in a small room. They can’t move to the sensitive servers.</li></ul><p>Many famous data breaches happened because a single compromised account had way more power than it actually needed.</p><h4>Least privilege in action</h4><p>This principle isn’t just for people; it applies to everything in a tech company:</p><ul><li><strong>Operating Systems:</strong> You shouldn’t browse the internet using a “Root” or “Admin” account. Use a standard user account for daily tasks.</li><li><strong>Databases:</strong> A website’s code should be able to <em>read</em> products from a database, but it shouldn’t have the power to <em>delete</em> the whole database.</li><li><strong>Cloud Environments (AWS/Azure):</strong> In the cloud, we use “Identities.” We give a specific cloud service only the exact permissions (like “Read-only”) it needs to run a specific task.</li></ul><h4>Challenges and how to solve them</h4><p>Implementing this is not always easy. Employees might complain that they have to “ask for permission” too often, which can slow down work. This is called “access friction.”</p><p>To solve this, modern companies use:</p><ol><li><strong>Role-Based Access Control (RBAC):</strong> Instead of giving permissions to <em>individuals</em>, we give them to <em>roles</em> (e.g., “Accounting Role”, “Developer Role”).</li><li><strong>PAM Tools:</strong> Privileged Access Management tools help manage “super-user” accounts. They can give temporary access that expires after an hour (Just-In-Time access).</li></ol><h4>Practical tips for your team</h4><p>If you want to start applying this today, here are some student-to-pro tips:</p><ul><li><strong>Conduct Access Audits:</strong> Every few months, check who has access to what. If they haven’t used a folder in 90 days, remove their access.</li><li><strong>Default to “Deny”:</strong> Start with zero permissions and add only what is requested and justified.</li><li><strong>Automate:</strong> Use scripts to manage permissions so that when an employee leaves the company, their access is deleted instantly.</li></ul><p><strong>Conclusion: Stay Vigilant!</strong></p><p>The Principle of Least Privilege is not a “set it and forget it” task. It is a mindset of constant checking and refining. It might seem strict, but it is the most effective way to stop a small mistake from becoming a company-wide disaster.</p><p><strong>What about you?</strong> Have you ever worked in a place where everyone was an “Admin”? Or maybe you’ve felt the frustration of not having enough access? Let me know your stories in the comments!</p><p><strong>Next time:</strong> We will look at how the “bad guys” actually think. We’re diving into <strong>Cyber Attack Methodologies</strong> to understand how hackers plan their moves. See you then!</p><p>#cybersecurity #LeastPrivilege #HolbertonSchoolAzerbaijan #HolbertonSchool #AttackSurface #Part2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d878c5dd9f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybersecurity Fundamentals Series: Why “Defense in Depth” is More Than Just a Buzzword]]></title>
            <link>https://medium.com/@telman.hajibutayev/cybersecurity-fundamentals-series-why-defense-in-depth-is-more-than-just-a-buzzword-b951d8b0bd02?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/b951d8b0bd02</guid>
            <category><![CDATA[cybersecurity-education]]></category>
            <category><![CDATA[cybersecurity-awareness]]></category>
            <category><![CDATA[holberton-school]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybersecurity-training]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 17:44:15 GMT</pubDate>
            <atom:updated>2026-02-20T17:47:55.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XM6aU85ygT9JvXPVuRmqfA.png" /></figure><h3>Hello, tech community!</h3><p>I am currently a student in the Cybersecurity cohort at <strong>Holberton School Azerbaijan</strong>. Every day, I am learning amazing new things about how to protect digital systems. The more I learn, the more I realize that cybersecurity is not just about installing one antivirus program and hoping for the best.</p><p>Today, the digital landscape is complex and full of clever threats. Relying on a single security measure is a recipe for disaster. This brings us to one of the most critical concepts I have studied so far: <strong>Defense in Depth (DiD)</strong>.</p><p>This post is the first in a series where I will explore fundamental security principles. Let’s start with the foundation.</p><h3>A Strategy as Old as Castles</h3><p>The concept of Defense in Depth is not actually new to computers. It originated in military strategy centuries ago.</p><p>Think about a medieval castle. The people inside didn’t just trust the front door lock to keep them safe. They built a moat around the outside. Then, they had high outer walls. Inside those walls, there were guards, watchtowers, and maybe another inner wall before you could reach the king’s treasure.</p><p>Why so many layers? Because if an attacker crossed the moat, the walls would stop them. If they climbed the walls, the guards would stop them.</p><p>In cybersecurity, we use this exact same logic. We cannot rely on just one “wall” to protect our critical data. We need multiple layers of defense so that if one fails, another is ready to block the threat.</p><h3>Layered Security Explained (The “Onion” Analogy)</h3><p>n the tech world, we often compare Defense in Depth to an onion. To get to the center, you have to peel back many layers.</p><p>These layers generally fall into three main categories that work together:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zblJ9uPuKJ3v5su3rpOOg.png" /></figure><h4>1. The Physical Layer</h4><p>This is the most basic level. It is about protecting real-world access to your hardware.</p><ul><li><strong>Examples:</strong> Locked doors to server rooms, security cameras, security guards, and ensuring employee laptops are locked down when not in use.</li></ul><h4>2. The Technical Layer</h4><p>This is what most people think of when they hear “cybersecurity.” It involves hardware and software tools used to protect systems.</p><p><strong>Examples:</strong></p><ul><li><strong>Firewalls:</strong> To filter bad traffic from the internet.</li><li><strong>Endpoint Security (Antivirus/EDR):</strong> To protect individual laptops and servers from malware.</li><li><strong>Encryption:</strong> Scrambling data so that even if a hacker steals it, they cannot read it.</li></ul><h4>3. The Administrative Layer (The Human Element)</h4><p>This layer is incredibly important and often the hardest to manage. It involves policies, rules, and human behavior.</p><ul><li><strong>Examples:</strong> Strong password policies, rules about who can access sensitive data, and crucial <strong>Security Awareness Training</strong> to help employees recognize phishing emails</li></ul><h4>Implementation in Technology Companies</h4><p>So, how does a modern technology-driven company apply Defense in Depth practically? They don’t just pick one layer; they weave them all together.</p><p>If a company wants to protect its customer database, here is how DiD works in practice:</p><ul><li><strong>Network Security:</strong> They use firewalls and Intrusion Detection Systems (IDS) at the perimeter to stop obvious attacks.</li><li><strong>Application Security:</strong> Before the software is even released, developers test the code to ensure there are no easy “backdoors” for hackers.</li><li><strong>Endpoint Security:</strong> Every employee’s computer has security software installed to catch malware that might slip through the network defenses.</li><li><strong>The Human Firewall:</strong> The company regularly trains staff on how to spot social engineering attacks. If an employee receives a suspicious link, their training kicks in, and they don’t click it. This is a vital layer of defense.</li></ul><h4>Conclusion</h4><p>Defense in Depth is about <strong>redundancy</strong>. In the cyber world, we must assume that eventually, one defensive measure will fail. A firewall might have a bug, or an employee might make a mistake and click a bad link.</p><p>y implementing Defense in Depth, we ensure there isn’t a single point of failure. The goal is to slow down attackers, make their job much harder, and give our security teams time to detect and react to the threat. It is the foundation of any robust cybersecurity strategy.</p><h4>Coming Up Next:</h4><p>Now that we understand the defensive foundation, how do we actively test it? In the next post in this series, I will dive into the exciting dynamic of <strong>Offensive vs. Defensive Security</strong> and explore the roles of Red Teams and Blue Teams. Stay tuned!</p><p>#Cybersecurity #DefenseinDepth #DID #HolbertonSchoolAzerbaijan #HolbertonSchool #PeerLearning</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b951d8b0bd02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Magic Librarian: Understanding How Databases Think]]></title>
            <link>https://medium.com/@telman.hajibutayev/the-magic-librarian-understanding-how-databases-think-c35c331d85ac?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c35c331d85ac</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[data-literacy]]></category>
            <category><![CDATA[tech-education]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 12:23:02 GMT</pubDate>
            <atom:updated>2025-11-29T12:23:02.955Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2y1spOjANxoWQFHCtTsj5A.jpeg" /></figure><p>As a literature teacher, you understand that language is a powerful tool. We use it to tell stories, give instructions, and ask questions. In the world of computers, there is a special language called <strong>SQL</strong> (Structured Query Language). It is the language we use to talk to databases.</p><p>But how does a computer understand a sentence like “Find all students who got an ‘A’ in Hamlet”? It doesn’t have a brain, but it has a very clever system. To understand this system, we need to look at the architecture of a database engine, which acts remarkably like a team of librarians running a massive archive.</p><h4><strong>The Core Concept: “What” vs. “How”</strong></h4><p>In most programming, you have to be very bossy. You have to tell the computer exactly <em>how</em> to do something: “Walk ten steps, turn left, pick up the pen.”</p><p>SQL is different. In SQL, you only describe <strong>what</strong> you want. You don’t tell the computer how to find it.</p><p><strong>Example 1: The Request</strong> Imagine you are asking a librarian for a book.</p><ul><li><strong>The “How” (Bad way):</strong> “Walk to the third aisle. Look at the top shelf. Scan every book spine until you see ‘Pride and Prejudice’. If you don’t see it, look at the next shelf…”</li><li><strong>The “What” (SQL way):</strong> “Please bring me a copy of ‘Pride and Prejudice’.”</li></ul><p>The Database Engine is the genius Librarian who figures out the best way to fulfill your request .</p><h3>The Architecture: The Assembly Line</h3><p>The database engine works like a factory assembly line split into two main teams: the <strong>Front End</strong> (The Planner) and the <strong>Back End</strong> (The Runner) .</p><p>Let’s trace a query through this system.</p><h4>Part 1: The Planner (The Compiler)</h4><p>When you type a request (a query), it goes to the Planner first. The Planner has three specific jobs :</p><ol><li><strong>The Tokenizer (Breaking it Down)</strong> Just like you teach students to identify words in a sentence, the engine breaks your request into pieces called “tokens.”</li></ol><ul><li><strong>Input SQL:</strong></li></ul><pre>SELECT title FROM books WHERE author = &#39;Shakespeare&#39;;</pre><ul><li><strong>Tokenizer Output:</strong> [SELECT] [title] [FROM] [books] [WHERE] [author] [=] [&#39;Shakespeare&#39;] [;]</li></ul><p><strong>2. The Parser (Grammar Check)</strong> Now the engine diagrams the sentence. It checks the grammar. Did you spell “SELECT” correctly? Does the “books” table actually exist? It builds a tree structure to understand the meaning.</p><p><strong>3. The Code Generator (The Strategy)</strong> This is the smartest part. The Planner looks at the request and decides the fastest way to solve it. It writes a specific set of instructions (a program or “byte code”) for the Runner to follow.</p><h3>Part 2: The Runner (The Virtual Machine)</h3><p>The Runner (Virtual Machine) takes the instructions from the Planner and does the heavy lifting.</p><ul><li>It acts like a machine processing a checklist.</li><li>It goes to the physical hard drive (the bookshelves) via the <strong>B-Tree</strong> and <strong>Pager</strong> .</li><li>It pulls the data, organizes it, and hands it back to you.</li></ul><p>Let’s look at a concrete example of what the Runner actually does inside the computer logic.</p><p><strong>Example 2: A Full Table Scan</strong> If we ask for all books, the Runner executes a loop :</p><pre>1. Open the &#39;books&#39; file.<br>2. Rewind to the beginning.<br>3. LOOP:<br>    a. Are we at the end of the file? If yes, STOP.<br>    b. Read the current book&#39;s title.<br>    c. Send the title to the user.<br>    d. Move to the next book.<br>4. Close the file.</pre><p>Output:</p><pre>Title<br>----------------<br>Hamlet<br>Macbeth<br>Romeo and Juliet<br>... (and thousands more)</pre><h3>The Shortcut: The Index</h3><p>Imagine you gave your class an assignment: “Find the page number where the character ‘Atticus Finch’ is first mentioned in <em>To Kill a Mockingbird</em>.”</p><p>A student without a plan would start on page 1 and read the whole book until they found the name. In databases, this is called a <strong>Full Table Scan</strong>. It is very slow if you have millions of records.</p><p>A smart student would flip to the back of the book and look at the <strong>Index</strong>.</p><p><strong>Database Indexes</strong> work exactly the same way.</p><ul><li>An index is a sorted list of specific information (Key/Value pairs)8.</li><li>It allows the engine to jump directly to the data without reading every row.</li></ul><p>Example 3: Using an Index</p><p>Let’s look for fruit prices. Without an index, the computer scans everything. With an index on “Fruit,” it performs a Binary Search ($O(\log N)$)9.</p><p>The SQL Query:</p><pre>SELECT price FROM inventory WHERE item = &#39;Orange&#39;;</pre><p><strong>How the Index helps:</strong></p><ol><li>The engine looks at the “Item Index.”</li><li>It jumps straight to ‘O’ for Orange.</li><li>The index tells the engine: “Oranges are located at Row #240 and Row #0” .</li><li>The engine goes directly to those spots to get the price.</li></ol><p><strong>Output:</strong></p><pre>Price<br>-----<br>0.85<br>1.05</pre><h4>Advanced Operations: The “Pesky OR”</h4><p>Sometimes we ask complex questions. “Find me books by Shakespeare OR books that cost less than $5.”</p><p>In the past, databases struggled with “OR” because it meant looking in two different places. But modern engines are clever. They can use multiple indexes at once!</p><p><strong>Example 4: The Union</strong> If we look for Fruit = &#39;Orange&#39; OR GrownIn = &#39;CA&#39; (California), the engine can run two separate searches and glue the results together .</p><p><strong>The Logic:</strong></p><ol><li>Use Index A to find all Oranges.</li><li>Use Index B to find everything from California.</li><li>Combine the lists (Union) and remove duplicates.</li></ol><p><strong>Output:</strong></p><pre>Item       Origin    Price<br>--------------------------<br>Orange     FL        0.85  (Found via Orange Search)<br>Orange     CA        1.05  (Found via Orange Search)<br>Grape      CA        0.80  (Found via California Search)</pre><h3>Summary</h3><p>So, the next time you search for a student’s grade on your computer, remember the invisible team working for you:</p><ol><li><strong>You asked “What”:</strong> You typed a name.</li><li><strong>The Planner (Compiler):</strong> Checked your grammar and wrote a plan.</li><li><strong>The Runner (Virtual Machine):</strong> Followed the plan to fetch the data.</li><li><strong>The Index:</strong> Helped them skip reading the whole “library” to find your answer instantly.</li></ol><p>It is a complex mechanical process hidden behind a simple language, designed to save you from having to do the hard work yourself!</p><h3>What queries in YOUR life would you like to execute faster?</h3><p>Have you ever wondered why some searches on your school portal are instant while others take time? It might just be a missing index! Let me know in the comments if you’ve encountered a “slow librarian” in your software.</p><p><em>#Database #SQL #TechEducation #LearningToCode #DataLiteracy</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c35c331d85ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Class vs. Instance Attributes in Python]]></title>
            <link>https://medium.com/@telman.hajibutayev/understanding-class-vs-instance-attributes-in-python-9b43783f2f46?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b43783f2f46</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 20:10:49 GMT</pubDate>
            <atom:updated>2025-11-24T20:10:49.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*MHQTCRzfbKltc9lD4IBnvQ.png" /></figure><p>Welcome, future cybersecurity pros! In the world of programming, just like in security, knowing where data lives and who can access it is crucial. Python is a fantastic language for managing data through <strong>Object-Oriented Programming (OOP)</strong>.</p><p>Think of a <strong>class</strong> as a blueprint, like a design for a secure access card. An <strong>object</strong> is the actual card made from that design. The data stored inside these classes and objects are called <strong>attributes</strong>. Let’s break down the two main types.</p><h3>What’s a Class Attribute?</h3><p>A <strong>class attribute</strong> is a variable that belongs to the class itself. It is shared by all objects (instances) created from that class. Think of it like the “Company Logo” on our access card blueprint. Every single card printed will have the same logo.</p><p>In Python, you define a class attribute inside the class, but outside of any methods.</p><p>In Python, you define a class attribute inside the class, but outside of any methods.</p><pre>class AccessCard:<br>    # This is a class attribute. All cards are for this organization.<br>    organization = &quot;CyberGuard Solutions&quot;<br><br># Create two different cards<br>card1 = AccessCard()<br>card2 = AccessCard()<br><br># Both share the same organization name<br>print(card1.organization) # Output: CyberGuard Solutions<br>print(card2.organization) # Output: CyberGuard Solutions</pre><h3>What’s an Instance Attribute?</h3><p>An <strong>instance attribute</strong> is data that belongs to a specific object. It is unique to that instance. Going back to our card example, this would be the employee’s name or photo. Each card has its own separate information.</p><p>The best way to create them is inside the special __init__ method. We use self to refer to the specific object being created.</p><pre>class AccessCard:<br>    organization = &quot;CyberGuard Solutions&quot; # Class attribute<br><br>    def __init__(self, employee_name, clearance_level):<br>        # These are instance attributes. They are unique to each card.<br>        self.employee_name = employee_name<br>        self.clearance_level = clearance_level<br><br># Create cards with unique data<br>card1 = AccessCard(&quot;Alice Smith&quot;, &quot;Level 3&quot;)<br>card2 = AccessCard(&quot;Bob Jones&quot;, &quot;Level 1&quot;)<br><br>print(card1.employee_name) # Output: Alice Smith<br>print(card2.employee_name) # Output: Bob Jones</pre><h3>How to Create Them (The Pythonic Way)</h3><p>While there are a few ways to add attributes, it’s best to stick to the standard, or “Pythonic,” ways for clear code.</p><ul><li><strong>Class Attributes:</strong> Declare them directly inside the class body, as seen with organization above. You <em>can</em> add them later (e.g., AccessCard.new_attr = 10), but declaring them upfront is clearer.</li><li><strong>Instance Attributes:</strong> Define them inside the __init__ method using self.. This makes it obvious what data every new object will start with. You <em>can</em> add attributes to an object anytime (e.g., card1.is_active = True), but it&#39;s better practice to keep them organized in __init__.</li></ul><h3>Key Differences</h3><ul><li><strong>Class Attributes:</strong></li><li>Belong to the class (the blueprint).</li><li>Are <strong>shared</strong> by all instances.</li><li>Are defined inside the class, but outside of methods.</li><li>Can be accessed via ClassName.attribute or object.attribute.</li></ul><p><strong>Instance Attributes:</strong></p><ul><li>Belong to a specific object (an instance).</li><li>Are <strong>not shared</strong>; each object has its own unique copy.</li><li>Are defined inside methods (usually __init__) using self..</li><li>Can be accessed via object.attribute only.</li></ul><p><strong>Important Note:</strong> If you try to change a class attribute using an object, Python will create a new instance attribute on that object instead! This is called “shadowing.”</p><pre>card1.organization = &quot;New Corp&quot; # This creates a new instance attribute for card1!<br><br>print(card1.organization)      # Output: New Corp (The new instance attribute)<br>print(card2.organization)      # Output: CyberGuard Solutions (Still the shared value)<br>print(AccessCard.organization) # Output: CyberGuard Solutions (Original is unchanged)</pre><p>To change the shared value for <em>everyone</em>, you must use the class name: AccessCard.organization = &quot;New Corp&quot;.</p><h3>Advantages and Drawbacks</h3><p><strong>Class Attributes</strong></p><ul><li><strong>Advantages:</strong> Great for constants that never change or for data that <em>must</em> be shared (like a counter for how many objects exist). They save memory since the data is stored in only one place.</li><li><strong>Drawbacks:</strong> Changing a class attribute affects all instances, which can cause unexpected problems if not managed carefully.</li></ul><p><strong>Instance Attributes</strong></p><ul><li><strong>Advantages:</strong> Perfect for data that needs to be unique for each object. They provide isolation, so changing one object’s data doesn’t affect others.</li><li><strong>Drawbacks:</strong> If every object stores the exact same large piece of data, it uses more memory than necessary.</li></ul><h3>The Secret Sauce: __dict__</h3><p>How does Python manage this behind the scenes? Every class and object has a special dictionary called __dict__ that holds its attributes.</p><ul><li>AccessCard.__dict__ stores class attributes.</li><li>card1.__dict__ stores card1&#39;s instance attributes.</li></ul><p>When you ask for an attribute like card1.organization, Python performs a lookup process:</p><ul><li>It first checks card1.__dict__. Is &quot;organization&quot; there?</li><li>If not, it checks the class’s AccessCard.__dict__. Is &quot;organization&quot; there?</li></ul><p>This explains the “shadowing” behavior. When we did card1.organization = &quot;New Corp&quot;, we added an entry to card1&#39;s personal __dict__. So, the next time we asked for it, Python found it there first and stopped looking.</p><p>For a cybersecurity student, understanding this lookup process is key to knowing exactly where data is stored and which value is being used!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b43783f2f46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you execute ls *.c: ?]]></title>
            <link>https://medium.com/@telman.hajibutayev/what-happens-when-you-execute-ls-c-e37c71ba362c?source=rss-2c9c008d52fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/e37c71ba362c</guid>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[bash-scripting]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Telman Hajibutayev]]></dc:creator>
            <pubDate>Tue, 11 Nov 2025 06:07:52 GMT</pubDate>
            <atom:updated>2025-11-11T06:07:52.053Z</atom:updated>
            <content:encoded><![CDATA[<h3>What happens when you execute ls *.c: ?</h3><h4>Did you ever wonder about the hidden magic behind your terminal commands? Typing ls *.c and hitting Enter seems instant, but it kicks off a chain reaction orchestrated by your shell, like Bash.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*3rgutkxZZtWkouvlKjDTkQ.png" /></figure><p>Let’s uncover it, step-by-step:</p><p>1️. You type, terminal listens.<br>Your terminal captures keystrokes, sending them to your shell. It stores them in a buffer, ready for action.</p><p>2️. The enter key: “Execute!”<br>This is the signal. Your shell takes the full command line (ls *.c) and begins processing.</p><p>3️. Parsing &amp; tokenization.<br>The shell breaks your command into meaningful pieces (tokens): ls (the command) and *.c (its argument).</p><p>4️. The command hunt: alias, built-in, or PATH?<br>Bash has a strict search order to find ls:<br>Alias first: Is ls a shortcut you’ve defined? (e.g., alias ls=’ls — color=auto’). If yes, it expands the alias.<br>Built-in next: Is ls a command the shell handles internally (like cd or echo)? No, ls is an external program.<br>PATH last: The shell searches directories listed in your $PATH environment variable (e.g., /usr/bin:/bin) until it finds the ls executable (typically in /usr/bin).</p><p>5️. Wildcard expansion.<br>This is where *.c transforms. The * is a wildcard. Bash doesn’t pass *.c literally to ls. Instead:<br>- It scans your current directory;<br>- It finds all files matching the pattern (ending in .c);<br>- It replaces *.c with the actual list of those filenames (e.g., main.c helper.c test.c);</p><p>So, your original command is now effectively: /usr/bin/ls — color=auto main.c helper.c test.c (if an alias was used).</p><p>6️. Forking &amp; executing.<br>Bash uses fork() to create a new, identical child process. The original shell (parent) waits.<br>The child process then uses execve() to replace itself with the ls program, passing all the processed arguments.</p><p>7️. ls does its job.<br>The ls program is now running in the child process. It receives the filenames, formats them (with colors, etc.), and prints the list to your screen.</p><p>8️. Exit &amp; the new prompt.<br>Once ls finishes, the child process terminates. The parent shell detects this, cleans up, and presents a fresh prompt (whose format is defined by your $PS1 environment variable), ready for your next command.</p><p>Why does this matter? Understanding this flow helps you debug, write better scripts, and truly appreciate the power of the command line. It’s a fundamental concept for anyone working with Linux or Unix-like systems.</p><p>#Linux #Shell #Bash #Terminal #TechExplained #Commandline #Developer #SystemAdministration #Coding #PS1</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e37c71ba362c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>