<?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 Vineeth Tunk on Medium]]></title>
        <description><![CDATA[Stories by Vineeth Tunk on Medium]]></description>
        <link>https://medium.com/@vineethtunk?source=rss-6e225698dc28------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZDOH_pIVtOASdoK34gVjeA.png</url>
            <title>Stories by Vineeth Tunk on Medium</title>
            <link>https://medium.com/@vineethtunk?source=rss-6e225698dc28------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:54:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vineethtunk/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[The Attack Your WAF Can’t See: Supply Chain Attacks]]></title>
            <link>https://vineethtunk.medium.com/the-attack-your-waf-cant-see-supply-chain-attacks-2231aea39026?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/2231aea39026</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[supply-chain]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 10:52:44 GMT</pubDate>
            <atom:updated>2026-10-24T10:52:44.757Z</atom:updated>
            <content:encoded><![CDATA[<h4>Not Today, Hacker — 5</h4><h4>👋 Quick Intro</h4><p>Peter just deployed his new web application.</p><blockquote>WAF? Configured.<br>DAST? Passed.<br>Security dashboard? All green. ✅</blockquote><blockquote>Peter: My application is secure. No hacker is getting in today!</blockquote><blockquote>Brian: Cool. Did you check the npm packages your application depends on?</blockquote><blockquote>Peter: npm what?</blockquote><blockquote>Brian: 💀</blockquote><p>🎬 <strong>What if the biggest threat to your application isn’t an attacker breaking in, but malicious code that’s already inside?</strong></p><p>In this episode of <em>Not Today, Hacker!</em>, let’s explore a security blind spot that doesn’t always involve exploiting your web application: <strong>software supply chain attacks.</strong></p><p>Because sometimes, the code you trust can become the threat you never saw coming.</p><p><em>So, what happens when a dependency you trust turns against you?</em></p><h4>🔍 The Problem: Trusting Open-Source Packages</h4><p>Modern applications rarely run entirely on code written by their developers. They depend on open-source libraries, frameworks, and third-party packages.</p><p>Now add AI coding assistants and vibe coding to the mix.</p><p>You describe what you want, and an AI tool generates the code, selects libraries, and sometimes suggests commands to install dependencies. You can build an application faster than ever, even without understanding every line of code.</p><p>That’s powerful. But faster development doesn’t automatically mean safer development.</p><p>AI-generated code can introduce vulnerable patterns, unnecessary dependencies, or packages that haven’t been properly reviewed. The risk increases when developers blindly accept generated code or run installation commands without checking what they’re adding to the project.</p><p>Attackers know that developers trust package registries, familiar package names, and increasingly, AI-generated suggestions.</p><p>One technique they exploit is <strong>typosquatting</strong>, where attackers publish packages with names similar to legitimate ones, hoping someone installs the wrong package.</p><p>And this isn’t just a hypothetical scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpsyrqoDa8ZXGcSzq0OyVw.png" /></figure><h4>🚨 Real-World Case: One Typo, Entire Project Gone</h4><p>In May 2025, Socket researchers reported a malicious npm package named xlsx-to-json-lh.</p><p>It impersonated the legitimate package xlsx-to-json-lc and had remained on npm for approximately six years before its discovery.</p><p>Here’s what made it dangerous:</p><ul><li>🕵️ <strong>It looked legitimate:</strong> The package included working functionality, making the malicious behavior less obvious.</li><li>🌐 <strong>It connected to a command-and-control server:</strong> The package maintained a connection and waited for instructions.</li><li>💣 <strong>It could delete project files:</strong> A remote trigger could cause entire project directories to be removed.</li></ul><p>Imagine losing your source code, Git history, configuration files, and other project assets because of a dependency you trusted.</p><blockquote>Peter: But I have a WAF!</blockquote><blockquote>Brian: Your WAF is protecting your website, Peter. Not every package you install on your machine.</blockquote><p>Read the full technical breakdown from Socket here:</p><p>👉 <a href="https://socket.dev/blog/npm-package-wipes-codebases-with-remote-trigger">Malicious npm Package Wipes Codebases with Remote Trigger</a></p><h3>🛡️ Why Your WAF Can’t See This Attack</h3><p>Let’s get one thing straight: <strong>the WAF isn’t broken.</strong></p><p>A WAF primarily inspects HTTP traffic flowing through a protected web application. It helps detect and block attacks such as SQL injection, cross-site scripting, LFI, RFI…etc.</p><p>But a malicious dependency can execute code during installation, while building the application, or when the application runs.</p><p>It might access local files, read environment variables, or attempt to communicate with an external server.</p><p>If that activity happens outside the traffic and systems monitored by your WAF, the WAF may never see it.</p><p>Here’s the difference:</p><p>🔴 <strong>Traditional web attack:</strong> An attacker sends a malicious request to your application. Your WAF may detect and block it.</p><p>🔴 <strong>Supply chain attack:</strong> A developer or build pipeline installs a malicious dependency. The code executes inside that environment, potentially without any malicious request reaching your protected website.</p><p>Your WAF might still block a later malicious HTTP request, depending on the traffic and its configuration. But it isn’t designed to establish whether every dependency in your application is trustworthy.</p><p>And DAST? It tests your running application for security weaknesses. It doesn’t guarantee that all your dependencies are free from malicious code.</p><p><strong>A clean security scan doesn’t automatically mean your software supply chain is safe.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*nZ2XxJ3SJXM7U3m_1r6Fuw.png" /></figure><h3>🔐 How Do We Protect Ourselves?</h3><p>No need to panic and uninstall every npm package, Peter. Let’s be practical.</p><p>✅ <strong>1. Check your dependencies</strong></p><p>Review package names, maintainers, release history, and unexpected changes. A familiar-looking name doesn’t guarantee a legitimate package.</p><p>✅ <strong>2. Use lockfiles</strong></p><p>Commit your package-lock.json and use npm ci in CI/CD pipelines for reproducible installations. Remember, a lockfile can also pin a malicious version.</p><p>✅ <strong>3. Use SCA tools</strong></p><p>Software Composition Analysis helps identify vulnerable dependencies. Consider additional package-security tools that can detect known malicious packages and suspicious behavior, not just published CVEs.</p><p>✅ <strong>4. Secure your CI/CD pipeline</strong></p><p>Apply least privilege. Restrict access to secrets and deployment credentials. Isolate build environments so that compromising one dependency doesn’t automatically expose everything.</p><p>✅ <strong>5. Monitor suspicious behavior</strong></p><p>Look for unexpected processes, unusual outbound connections, and suspicious file activity across developer machines, build agents, and production workloads.</p><p>✅ <strong>6. Keep backups</strong></p><p>If a malicious package deletes your project, an isolated, tested backup can be the difference between recovery and disaster.</p><p>One more thing: removing the package isn’t enough if it has already executed and exposed your credentials. Investigate the environment and rotate potentially compromised secrets.</p><h3>🧠 Final Thoughts</h3><p>Your WAF is important. Your DAST scans are important. But neither one can protect every stage of your software development lifecycle.</p><p>Modern application security means looking beyond the public-facing application and understanding the risks introduced by dependencies, developers, and build pipelines.</p><p>Because sometimes, the attacker doesn’t need to break through your front door.</p><p>They just need you to install the wrong package.</p><p>Peter: So, is my WAF useless?</p><p>Brian: No, Peter. Just stop expecting it to do everyone’s job.</p><p><strong>Secure your application. Verify your dependencies. Protect your pipeline.</strong></p><p>And when a hacker tries to sneak malicious code into your software?</p><p>🛡️ <em>Not Today, Hacker!</em></p><h3>👨‍💻 ~whoami</h3><p>I’m Vineeth, a security enthusiast since 2022 who enjoys breaking things ethically and helping teams fix them smarter.</p><p>I work around application security, WAFs, vulnerability assessments, and security automation. Through <em>Not Today, Hacker</em>, I share real-world security lessons in a way developers and security teams can actually use.</p><h3>💬 Quick Question Before You Go</h3><ul><li>Do you check your npm dependencies before installing them?</li><li>Can your current security stack detect malicious packages that don’t have a CVE?</li><li>Have you ever caught a suspicious dependency during a security review?</li></ul><p>Drop your thoughts in the comments. Let’s learn from each other.</p><h3>🔗 Let’s Stay Connected</h3><p>Want more of this mix of 🧠 + 🔐 + a little Peter-level chaos?</p><ul><li>LinkedIn: Vineeth Tunk</li><li>X: @TunkVineeth</li><li>Medium: <a href="https://vineethtunk.medium.com/">Not Today, Hacker</a></li></ul><p>Together, let’s make the internet a little harder to hack, one Peter at a time. ️</p><p>👇 Catch up from the beginning:</p><p><strong>Not Today, Hacker — Episode 1:</strong> <em>Too Many, Too Fast: Why Your API Needs a Bouncer</em></p><p><a href="https://vineethtunk.medium.com/too-many-too-fast-why-your-api-needs-a-bouncer-9bf30b7b5455">https://vineethtunk.medium.com/too-many-too-fast-why-your-api-needs-a-bouncer-9bf30b7b5455</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2231aea39026" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ACME Proves You Own a Domain: HTTP-01, DNS-01, TLS-ALPN-01 & DNS-PERSIST-01 Explained]]></title>
            <link>https://vineethtunk.medium.com/how-acme-proves-you-own-a-domain-http-01-dns-01-tls-alpn-01-dns-persist-01-explained-bcfbfb207f60?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcfbfb207f60</guid>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 04:11:01 GMT</pubDate>
            <atom:updated>2026-08-03T04:11:01.345Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>Understand the domain validation methods behind modern SSL/TLS certificate automation.</em></strong></h4><p>In my previous article, we explored why <a href="https://medium.com/@vineethtunk/new-ssl-tls-certificate-guidelines-shorter-lifetimes-smarter-automation-6ddd19b09724?sharedUserId=vineethtunk">SSL/TLS certificate lifetimes are getting shorter and why automation is becoming essential</a>.</p><p>But that raises an interesting question.</p><p>If certificates can renew automatically every few weeks, how does a Certificate Authority (CA) know you still own the domain?</p><p>It certainly doesn’t send you an email asking, “Hey, do you still own example.com?”</p><p>Instead, it uses a protocol called Automatic Certificate Management Environment.(ACME)</p><p>Let’s break down how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qmJIBu3uSVlR1JSfzpW1A.png" /></figure><h4>The Only Question a Certificate Authority Asks</h4><p><em>Imagine Peter walks into a government office and says,</em></p><blockquote>I own this building.</blockquote><p>The officer doesn’t hand over the paperwork immediately.</p><p>Instead, they ask,</p><blockquote>Can you prove it?</blockquote><p>That’s exactly what happens when your server requests an SSL/TLS certificate.</p><p>Your ACME client says,</p><blockquote>I’d like a certificate for example.com.</blockquote><p>The CA replies,</p><blockquote>Great. Now prove that you control the domain.</blockquote><p>Notice I said control, not legal ownership. ACME only verify that you can control the domain right now. Business verification is handled separately by Organization Validation (OV) and Extended Validation (EV) certificates.</p><p>So, how do you prove it?</p><p><strong>💡Before the challenge begins…</strong></p><blockquote>Your ACME client first generates a <strong>Certificate Signing Request (CSR)</strong> containing your public key and certificate details. The CSR tells the Certificate Authority <em>what certificate you want</em>, but it doesn’t prove you control the domain. That’s why the CA still performs an ACME challenge before issuing the certificate.</blockquote><h4><strong>1.HTTP-01: Leave a Note at the Front Door</strong></h4><p>This is the simplest and most common validation method. The CA gives your ACME client a random token. Your client creates a file at:</p><p><em>http://example.com/.well-known/acme-challenge/abc123xyz789</em></p><p>The CA visits that URL over port 80. If the file contains the expected token, the certificate is issued.</p><p>Best for</p><ul><li>Blogs Websites</li><li>Small business websites</li><li>Personal websites</li></ul><p>Things to remember</p><p>✅ Easy to automate</p><p>❌ Requires port 80 to be reachable</p><p>❌ Doesn’t support wildcard certificates</p><blockquote>During one renewal, everything looked correct on the server, but the certificate still wouldn’t issue. The problem wasn’t the application — it was a WAF rule blocking the CA’s request. That’s why I always check the edge before checking the origin.</blockquote><h4>2.DNS-01: Updating DNS Instead of Your Website</h4><p>Unlike HTTP-01, DNS-01 doesn’t ask you to place a file on your web server. Instead, it asks you to prove control by creating a TXT record in your DNS.</p><p>Your ACME client creates a record like this:</p><pre>_acme-challenge.example.com TXT &quot;dHk39Jka839J7Hs2…&quot;</pre><p>The Certificate Authority (CA) looks up the TXT record. If the value matches the expected challenge, your certificate is issued.</p><p>One major advantage of DNS-01 is that it works even if your application isn’t publicly accessible. Whether it’s running inside a private network, behind a VPN, or only exposes HTTPS, the CA only needs access to your DNS records.</p><p>It’s also the <strong>only ACME challenge</strong> that supports <strong>wildcard certificates like *.example.com.</strong></p><p>But here’s the catch…</p><p>The <strong>TXT record value changes every time your certificate is issued or renewed </strong>because each ACME challenge is <strong>unique</strong>.</p><p>If your automation asks the CA to validate the domain before the new TXT record has propagated across DNS servers, the validation can fail. Most ACME clients solve this by waiting for a configurable propagation <strong>delay </strong>before notifying the CA.</p><p><strong>Why do some providers ask for a CNAME instead?</strong></p><blockquote>If you’ve worked with commercial Certificate Authorities, you may have seen instructions like this:</blockquote><pre>_acme-challenge.example.com CNAME 12345.validation.ca-provider.com</pre><p>At first glance, this looks like a completely different validation method.</p><p>It isn’t.</p><p>This is still DNS-01.</p><p>Instead of storing the TXT record in your own DNS zone, the CNAME tells the CA where to find it. DNS automatically follows the CNAME and reads the TXT record from the provider’s DNS zone.</p><p>The best part is that you configure the <strong>CNAME only once. </strong>From then on, the certificate provider updates the changing TXT record automatically during every renewal.</p><p><strong>This also follows the principle of least privilege.</strong> Your automation no longer needs permission to modify your production DNS records, making the renewal process both simpler and more secure.</p><h4>3. TLS-ALPN-01: The Secret Handshake</h4><p>Imagine two spies meeting at a café. No documents. No notes. Just a very specific handshake — and both know the other is legitimate.</p><p>That’s TLS-ALPN-01.</p><p>The CA connects directly to port 443 and initiates a special TLS handshake using a protocol extension called acme-tls/1. Your server responds by briefly presenting a temporary certificate carrying the validation token. If it matches, the certificate is issued.</p><p>No files. No DNS changes. Just a handshake.</p><p>When does this matter? Port 80 is closed, a firewall blocks HTTP entirely, or you don’t have API access to your DNS provider. TLS-ALPN-01 says: you already have port 443 open — that’s enough.</p><p>The catch: Not every server speaks this language. Nginx and Apache don’t natively handle acme-tls/1 — your ACME client needs to briefly take over port 443 to complete the handshake.</p><p>One thing I’ve seen break this in production: running behind a<strong> load balancer or CDN</strong> that terminates TLS before traffic reaches your server. The CA handshakes with the edge, not your origin. Surprisingly hard to diagnose the first time.</p><p>Things to remember</p><p>✅ No DNS changes, no port 80 required<br>❌ Limited support across web servers and proxies<br>❌ Fails silently behind TLS-terminating load balancers</p><h4>4. The Future: DNS-PERSIST-01</h4><p>Here’s the problem with DNS-01 at scale.</p><p>Every time your certificate renews — which, with 47-day lifetimes coming in 2029, could be every few weeks — your automation needs to create a fresh TXT record, wait for DNS propagation, let the CA validate it, then clean it up. Repeat forever.</p><p>That’s a lot of moving parts for something that’s supposed to be invisible.</p><blockquote>DNS-PERSIST-01 flips the model. Instead of a temporary TXT record per renewal, you publish a single persistent authorization record once. The CA checks it every time. No create, no wait, no cleanup.</blockquote><p>Think of it like a building access card versus a visitor pass. DNS-01 issues a new visitor pass every few weeks. DNS-PERSIST-01 gives you a permanent access card.</p><p>Where it stands today: The concept is approved and standardized by the IETF. But widespread production support isn’t here yet — most CAs and ACME clients are still catching up.</p><p>For now, it’s the direction everything is heading, not the tool you reach for today.</p><h4>Which Method Should You Choose?</h4><ul><li><strong>HTTP-01</strong> → Best for public websites and blogs.</li><li><strong>DNS-01</strong> → Best for enterprises, APIs, and wildcard certificates. <strong>CNAME delegation</strong> makes DNS-01 easier to automate.</li><li><strong>TLS-ALPN-01</strong> → Useful when only HTTPS (port 443) is available.</li><li><strong>DNS-PERSIST-01</strong> → Promising, but still evolving.</li></ul><h4>WHOAMI</h4><p>I’m Vineeth, a Web Application Security Consultant specializing in Application Security, WAF, API Security, and security automation. I write to simplify complex cybersecurity concepts through practical, real-world examples.</p><h4>🤝 Let’s Connect / Collaborate</h4><p>If you’d like to collaborate, discuss cybersecurity, or learn along with me:</p><ul><li><strong>Topmate:</strong> <a href="https://topmate.io/vineethtunk">https://topmate.io/vineethtunk</a></li><li><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/vineethtunk/">Vineeth Tunk</a></li><li><strong>X (Twitter):</strong> <a href="https://x.com/TunkVineeth">TunkVineeth</a></li><li><strong>Instagram:</strong> vineeth_tunk</li></ul><h4>📚 References</h4><ul><li>RFC 8555 (ACME)</li><li>Let’s Encrypt Documentation</li><li>CA/Browser Forum Baseline Requirements</li><li>IETF ACME DNS-PERSIST Draft</li></ul><h3>Final Thoughts</h3><p>Every HTTPS website begins with a simple question:</p><blockquote><strong>“Can you prove you control this domain?”</strong></blockquote><blockquote>Whether that proof comes from a file, a DNS record, or a TLS handshake, ACME has quietly become one of the most important protocols powering today’s Internet.</blockquote><blockquote>Most users will never notice it — but every secure connection depends on it.</blockquote><p>As SSL/TLS certificate lifetimes continue to shrink, understanding these validation methods is becoming essential for secure, reliable certificate automation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcfbfb207f60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New SSL/TLS Certificate Guidelines: Shorter Lifetimes, Smarter Automation]]></title>
            <link>https://vineethtunk.medium.com/new-ssl-tls-certificate-guidelines-shorter-lifetimes-smarter-automation-6ddd19b09724?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ddd19b09724</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 07:21:49 GMT</pubDate>
            <atom:updated>2025-09-04T06:25:01.180Z</atom:updated>
            <content:encoded><![CDATA[<h4>How the shift to shorter SSL/TLS certificates impacts you, and why automating renewals is now essential.</h4><p>SSL/TLS certificates aren’t just green padlocks in the browser bar — they’re the backbone of secure communication on the internet. They encrypt traffic, protect users from man-in-the-middle attacks, and build trust between websites and visitors.</p><p>But the way we manage these certificates is changing, and it’s going to affect everyone from small developers to enterprise teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*xsZ_MBMhjtPzWGxN-Fz0Yg.png" /></figure><p>Here’s the thing: the rules for how long those certificates can live are changing — and fast. If your team still treats certificate renewals like a calendar reminder, this post is for you.</p><h3>TL;DR</h3><ul><li>Certificate lifespans fall: <strong>398 days → 200 days (2026) → 100 days (2027) → 47 days (2029)</strong>.</li><li>Domain validation reuse windows shrink too, ending at <strong>10 days</strong> by 2029.</li><li>Security improves, but manual processes won’t survive. <strong>Automate now.</strong></li><li>First deadline you should care about: <strong>March 15, 2026</strong> (200 days).</li></ul><h3>What’s happening (short version)</h3><p>The CA/Browser Forum approved a phased schedule to reduce certificate validity and DCV reuse windows. It’s a staged rollout so the ecosystem can adapt, but the end goal is short-lived, frequently rotated certs across the public web.</p><p>Key dates:</p><ul><li><strong>Now → Mar 14, 2026</strong>: up to <strong>398 days</strong></li><li><strong>Mar 15, 2026</strong>: up to <strong>200 days</strong></li><li><strong>Mar 15, 2027</strong>: up to <strong>100 days</strong></li><li><strong>Mar 15, 2029</strong>: up to <strong>47 days</strong> (and DCV reuse down to <strong>10 days</strong>)</li></ul><p>(For the official ballot and details, see CA/Browser Forum’s release.)</p><blockquote>So if you got a 1-year cert today, you’ll have to renew 4 times a year instead of once. That sounds like more work, but with automation (like Certbot + ACME), it’s hands-off.”</blockquote><h3>🔍 Why These Changes Are Happening</h3><p>Shorter lifetimes aren’t just to make your life harder — there are good reasons:</p><ul><li><strong>Reduced exposure →</strong> If a certificate or private key is compromised, it’s only valid for a much shorter time — months or even just weeks — instead of a full year.</li><li><strong>Forces automation</strong> → No more “set and forget.” This shift nudges everyone toward automated renewal.</li><li><strong>Industry trend</strong> → Major browsers like Chrome and Safari are pushing for stronger, faster-moving certificate policies.</li></ul><h3>What this means for teams (practical actions)</h3><ol><li><strong>Automate certificate issuance and deployment.</strong> ACME (Let’s Encrypt / Certbot), acme.sh, or commercial cert-management platforms are the obvious choices.</li><li><strong>Treat certs like infrastructure.</strong> CI/CD pipelines, monitoring, and rollback paths belong to your cert process now.</li><li><strong>Identify affected systems.</strong> Embedded devices, legacy APIs, and partner integrations often assume long-lived certs. Inventory them.</li><li><strong>Test renewals end-to-end.</strong> Don’t just renew; verify the full deploy and client compatibility.</li><li><strong>Communicate early.</strong> Tell device teams, vendors, and partners what’s coming and when.</li></ol><h3>⚡ Smarter Automation with ACME</h3><p>With 90-day lifetimes, manual renewals are a nightmare. This is where automation saves the day.</p><p>Tools like <strong>Certbot</strong> use the <strong>ACME protocol (Automatic Certificate Management Environment)</strong> to request, renew, and deploy SSL/TLS certificates automatically.</p><ul><li>For free providers like <strong>Let’s Encrypt</strong>, it means fully hands-off renewals.</li><li>Add a simple deploy hook (like reloading Nginx/Apache after renewal), and your webserver will always serve a fresh cert.</li></ul><h4>Hands-on: quick cert automation examples</h4><p>Use these as copy-paste starting points. Adjust for your tooling and environment.</p><h3>1) Basic Certbot (ACME) non-interactive issuance</h3><pre># Issue a certificate using standalone mode (use only if port 80/443 available)<br>sudo certbot certonly --standalone \<br>  -d example.com -d www.example.com \<br>  --non-interactive --agree-tos \<br>  -m admin@example.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xky_-mHDhX3wfEmDsb6qww.png" /></figure><h3>2) Renewal is automatic via certbot; add a deploy hook to reload Nginx after a cert renews</h3><p>Create /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh:</p><pre>#!/bin/bash<br># /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh<br>set -e<br>if nginx -t; then<br>  systemctl reload nginx<br>fi</pre><p>Make it executable:</p><pre>sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh</pre><p>Certbot runs certbot renew (daily cron/systemd) and calls this on successful renewals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHRHgpJhbuw6WacdtMnSSA.png" /></figure><h3>A Quick Note on ACME vs Enterprise CLM</h3><p>ACME is fantastic for automation — especially with free providers like Let’s Encrypt. It takes care of issuance, renewal, and deployment with almost no manual effort.</p><p>But here’s the catch:</p><ul><li><strong>Paid SSL/TLS certificates (OV/EV)</strong> still require manual steps like organization validation. ACME alone can’t fully automate those.</li><li>Enterprises managing hundreds or thousands of certs also need visibility, alerts, and compliance checks.</li></ul><p>That’s where <strong>Certificate Lifecycle Management (CLM)</strong> tools come in. CLM solutions integrate with ACME and add:</p><ul><li>Centralized certificate inventory</li><li>Renewal/reissuance workflows</li><li>Alerts before expiry</li><li>Automated deployment across large environments</li></ul><p>👉 Think of it like this:<br> <strong>ACME handles the handshake. CLM handles the big picture.</strong></p><blockquote>Have you already automated your cert renewals, or are you still renewing manually? Drop your experience below.</blockquote><p><strong>Will this affect Let’s Encrypt?</strong><br>Yes. Let’s Encrypt issues publicly trusted certs, so their issuance cadence and tooling will adapt to meet these CA/Browser Forum constraints. Expect Let’s Encrypt to keep automations easy to use.</p><p><strong>Do internal (private) PKI certs need to change?</strong><br>No — the CA/Browser Forum rules apply to publicly trusted CAs. That said, it’s a good chance to review internal lifetimes and automation practices.</p><p><strong>What about devices that can’t do frequent renewals?</strong><br>Inventory and categorize: (1) devices that can be updated/automated, (2) devices that require manual intervention, (3) devices that will need replacement. For constrained devices, consider edge gateways or TLS termination proxies that you control and can rotate quickly on behalf of the device.</p><p>Have you already automated your cert renewals, or are you still renewing manually? Drop your experience below.</p><h4>WHOAMI</h4><p>I’m <strong>Vineeth</strong> — security engineer turned content creator. I started with bug bounties and pentesting, and today I work in Managed Security Services focusing on web app security, WAF tuning, and automation. I write to make changes like this practical and less painful.</p><h4><strong>🔮 What’s Next</strong></h4><p>In this post, we covered the <strong>90-day certificate change</strong> and why automation is the only way forward.</p><p>👉 In <strong>Part 2</strong>, I’ll dive into <em>how ACME actually proves domain ownership</em> — comparing <strong>HTTP-01, DNS-01, and TLS-ALPN-01 challenges</strong>, and when to use each.</p><h3>Let’s connect / Collab</h3><p>Anyone wants to collaborate or learn along with me, here’s my Topmate: <a href="https://topmate.io/vineethtunk">https://topmate.io/vineethtunk</a></p><ul><li>LinkedIn: <a href="https://www.linkedin.com/in/vineethtunk/">Vineeth Tunk</a></li><li>X (Twitter): <a href="https://twitter.com/TunkVineeth">@TunkVineeth</a></li><li>Instagram: <a href="https://instagram.com/vineeth_tunk">@vineeth_tunk</a></li></ul><h3>📚 References</h3><ul><li><a href="https://letsencrypt.org/2015/11/09/why-90-days">Let’s Encrypt</a></li><li>CA/Browser <a href="https://cabforum.org/working-groups/server/baseline-requirements/requirements/">Forum Guidelines</a></li><li>Google Chrome <a href="https://googlechrome.github.io/chromerootprogram/">Root Program</a></li></ul><h3>Final Thoughts</h3><p>SSL/TLS certificates aren’t getting weaker — they’re getting smarter. Shorter lifetimes reduce risk. Automation makes management effortless. And if you’re in an enterprise setting, pairing ACME with CLM is the future-proof way to stay ahead.</p><p><strong>The padlock icon might look the same, but the way we manage trust online is evolving fast.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ddd19b09724" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding TP, FP, FN, and TN in Cybersecurity]]></title>
            <link>https://vineethtunk.medium.com/understanding-tp-fp-fn-and-tn-in-cybersecurity-8a8823e0205b?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a8823e0205b</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[it-security-operation]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 10:00:14 GMT</pubDate>
            <atom:updated>2025-07-31T10:44:08.951Z</atom:updated>
            <content:encoded><![CDATA[<h4>Not Today, Hacker — 4</h4><p>Peter triggers alerts — but is it real? Learn TP, FP, FN &amp; TN aka the Confusion Matrix in Episode 4 of Not Today, Hacker. Stop the confusion. 🛡️</p><p>Think of your detection system like a judgment table. When it checks a person or request, there are 4 possible outcomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*sQXPNS4Hieh-6IRKKkArrw.png" /></figure><h3>🧠 Simple Definitions</h3><h4>✅ True Positive (TP) — “Caught the bad guy!”</h4><p>Peter actually <em>was</em> trying to SQL inject your login page.<br>The system caught it. All good.</p><h4>❌ False Positive (FP) — “Oops… blocked a harmless Peter.”</h4><p>Peter was just doing his job at Godspeed — clicking, refreshing like a pro.<br>But the WAF thought he was a bot and blocked him.<br>Poor Peter. Just fast, not dangerous. 🙃That’s an alert gone wrong.</p><h4>❌ False Negative (FN) — “You missed it!”</h4><p>Peter <em>did</em> sneak in malware, but your system ignored it.<br>That’s dangerous. That’s how ransomware starts.</p><h4>✅ True Negative (TN) — “No threat, no alert. Perfect.”</h4><p>Peter browsed your FAQ page peacefully.<br>System said “cool.” Everyone chilled.</p><h3>Confusion Matrix</h3><pre>|  Threat Scenario    | System Says: Threat | System Says: Safe    |<br>|---------------------|---------------------|----------------------|<br>| Actually Threat     | True Positive (TP)  | False Negative (FN)  |<br>| Actually Safe       | False Positive (FP) | True Negative (TN)   |</pre><h3>🧠 TL;DR</h3><ul><li>TP = Blocked an actual bad guy</li><li>FP = Blocked someone innocent</li><li>FN = Missed an actual threat</li><li>TN = Ignored a harmless action (as it should)</li></ul><p>Every detection tool in security tries to get this balance right — and when it fails, Peter either gets blocked unfairly… or breaks your site 😅</p><h3>💣 Why It Matters (Even if You’re Not a SOC Analyst)</h3><ul><li>Too many <strong>FPs</strong> = your security team ignores real threats because they’re drowning in noise.</li><li>Too many <strong>FNs</strong> = real attacks get through silently.</li><li>Good systems aim for <strong>more TPs</strong>, fewer FPs/FNs — a balance.</li></ul><h3>🛠 Real-World Tools That Use This Logic</h3><ul><li>🔍 <strong>SIEMs</strong> (like Splunk, QRadar, Wazuh)</li><li>🧠 <strong>EDRs</strong> (like OpenEDR, CrowdStrike, SentinelOne)</li><li>🛡️ <strong>WAFs / IPS</strong> (like AppTrana, Akamai, Snort)</li></ul><p>They all use this matrix to measure accuracy.</p><h3>📊 Quick Reality Check: FP &amp; FN in 2024–2025</h3><p>🔁 <strong>False Positives:</strong><br> 15% of cyber teams spend <strong>7+ hours/week</strong> handling false alarms. That’s a full workday lost to “Peter just clicking fast — you would need to review your bot and DDOS rules” <br>Major players like McAfee &amp; Microsoft have had real outages due to false positives.<br> 🔗 <a href="https://www.upguard.com/blog/false-positives">UpGuard Blog</a></p><p>🕳️ <strong>False Negatives:</strong><br> Average data breach cost in 2024? <strong>$4.88 million</strong>.<br> Miss one real attack (FN), and it’s not just downtime — it’s data, trust, and dollars lost.<br> 🔗 <a href="https://www.checkpoint.com/cyber-hub/cyber-security/understanding-false-negatives-in-cybersecurity/">Checkpoint</a></p><p>⚙️ <strong>Industry Strain:</strong><br> Only <strong>10–15% of vulnerabilities</strong> are patched each month.<br> Time wasted on FPs means less time fixing real risks.<br> 🔗 <a href="https://www.vikingcloud.com/blog/cybersecurity-statistics">Viking Cloud, 2025</a></p><h3>📦 Bonus Tip</h3><p><strong>Want to improve your detection rules?</strong><br> 👉 Start by reviewing your FP/FN logs regularly. Need help in reviewing FPs DM me.<br>It’s like debugging your security brain.</p><h3>👨‍💻 ~whoami</h3><p>Hey, I’m <strong>Vineeth</strong> — a web security nerd who got curious in 2022 and hasn’t stopped breaking (and fixing) things since.<br>By day, I work in <strong>Managed Security Services (MSS)</strong> — wrangling APIs, WAFs, CDNs, and tuning defenses so devs don’t rage-quit.<br>By night (or coffee breaks), I write blogs to make security <strong>fun, practical, and slightly Peter-proof</strong>.</p><h3>📖 About Not Today, Hacker</h3><p><em>Not Today, Hacker</em> is a storytelling-style blog series where I break down web app security using real-world examples, memes, and the occasional disaster starring <strong>Peter Griffin</strong>.</p><p>Whether you’re a <strong>developer</strong>, <strong>security beginner</strong>, or just tired of corporate buzzwords — you’re in the right place.<br>This isn’t just theory — it’s real stories, real mistakes, and real fixes.</p><h3>🔗 Stay in the loop &amp; vibe with me:</h3><p><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/vineethtunk/">Vineeth Tunk</a><br><strong>Twitter/X</strong> — <a href="https://twitter.com/TunkVineeth">@TunkVineeth</a><br> <strong>Instagram</strong> — <a href="https://instagram.com/vineeth_tunk">@vineeth_tunk</a></p><p><strong>Let’s clear the confusion — one alert, one Peter, and one detection matrix at a time. 🧠🛡️</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a8823e0205b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP Security Headers for Beginners]]></title>
            <link>https://vineethtunk.medium.com/http-security-headers-for-beginners-ed7f97e4865b?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed7f97e4865b</guid>
            <category><![CDATA[http-security-headers]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[secure-coding]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 14:33:35 GMT</pubDate>
            <atom:updated>2025-07-24T14:33:35.098Z</atom:updated>
            <content:encoded><![CDATA[<h4>Not Today, Hacker — 3</h4><p><strong><em>Welcome back to another episode of Not Today, Hacker — the series where we break down real-world security tricks and show how smart defenses keep your apps safe, stable, and Peter-proof.</em></strong></p><h4>Peter’s Brilliant Plan (That Wasn’t)</h4><p><em>Picture this: Peter’s back in his basement lair, surrounded by energy drink cans and the glow of multiple monitors. He’s found your web app and his eyes light up with malicious intent.</em></p><blockquote>What if I embed this site in an &lt;iframe&gt;, create a fake overlay, and trick users into clicking... BOOM — their credentials are mine!</blockquote><p>He cracks his knuckles, opens his sketchy domain, and starts coding his “masterpiece.”</p><pre>&lt;iframe src=&quot;https://your-awesome-app.com/login&quot;&gt;&lt;/iframe&gt;</pre><p>Peter hits refresh, expecting to see your login form ready for his clickjacking attack.</p><p>But nothing loads.</p><p>Just a blank white void staring back at him.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RIK9H9fHRo102jxl" /></figure><p>Peter the scriptkidde looking confused when blocked by security headers</p><p>Peter refreshes again. Still nothing. He checks his code, tests different browsers, even restarts his router (classic move, Peter).</p><p>Your app had silently whispered:</p><blockquote>“Not today, hacker.”</blockquote><h3>🧠 What Are HTTP Security Headers?</h3><p>Think of security headers as your website’s invisible bodyguards. They’re lightweight instructions your server sends with every response, telling the browser: <em>“Hey, here are the rules for handling this content safely.”</em></p><p>The beauty? They require zero code changes to your application logic — just smart server configuration.</p><p><strong>Why Security Headers Matter</strong></p><ul><li>85% of websites lack proper security header implementation</li><li>Headers can stop 90%+ of common web attacks like clickjacking and XSS</li><li>They’re free, fast, and effective — the ultimate security trifecta</li></ul><h3>🛡️ Meet Your Header Defense Squad</h3><p>Let’s introduce the six heroes that sent Peter packing:</p><h4>1. X-Frame-Options: The Iframe Bouncer</h4><p>What it does: Prevents your site from loading inside iframes on other domains.</p><p>Peter’s nightmare: His clickjacking overlay becomes useless when your site refuses to load.</p><p>The headers:</p><pre>X-Frame-Options: DENY              # Blocks ALL iframes<br>X-Frame-Options: SAMEORIGIN        # Only allows same-domain iframes<br>X-Frame-Options: ALLOW-FROM https://trusted-domain.com </pre><p>Real-world impact: Prevents overlay attacks, fake login forms, and UI redressing scams.</p><h4>2. Content-Security-Policy (CSP): The Script Sheriff</h4><p>This is your website’s comprehensive security policy document.</p><p>What it does: Controls which scripts, styles, images, and other resources can load and execute.</p><p>Peter tries this:</p><pre>&lt;script&gt;alert(&#39;You got hacked!&#39;);&lt;/script&gt;</pre><p>Result with CSP: <em>Crickets.</em> The script gets blocked before execution.</p><p>Basic CSP setup:</p><pre>// Step 1: Report-only mode<br>Content-Security-Policy-Report-Only: default-src &#39;self&#39;; script-src &#39;self&#39;<br><br>// Step 2: After testing, enforce<br>Content-Security-Policy: default-src &#39;self&#39;; script-src &#39;self&#39;</pre><p>🔧 CSP Pro Tips:</p><ul><li>Start with a restrictive policy and gradually allow what you need</li><li>Use CSP reporting to catch violations during development</li><li>Never use script-src * — it defeats the entire purpose</li></ul><h4>3. X-Content-Type-Options: No More Sniffing</h4><p><strong>What it does:</strong><br>Prevents browsers from “sniffing” file types. Stops them from running disguised scripts.</p><p><strong>How to set:</strong></p><pre>X-Content-Type-Options: nosniff</pre><p><strong>Why it matters:</strong><br>Protects against MIME-type attacks where files pretend to be something they’re not.</p><h4>4. Strict-Transport-Security (HSTS): The HTTPS Enforcer</h4><p>What it does: Forces browsers to use HTTPS, even if users type http:// or click HTTP links.</p><pre>Strict-Transport-Security: max-age=31536000; includeSubDomains; preload </pre><p>Peter’s MITM attack status: <em>Completely neutralized.</em></p><p>Pro tip: The preload directive gets your site added to browser HSTS lists for maximum protection.</p><h4>5. Referrer-Policy: The Privacy Protector</h4><p>What it does: Controls what information gets sent in the Referer header when users navigate away.</p><pre>Referrer-Policy: strict-origin-when-cross-origin</pre><p>Common options:</p><ul><li>no-referrer — Send nothing</li><li>same-origin — Only send referrer for same-site requests</li><li>strict-origin-when-cross-origin — Balanced approach (recommended)</li></ul><h4>6. Permissions-Policy: The API Gatekeeper</h4><p>What it does: Controls which browser APIs your site (and embedded content) can access.</p><pre>Permissions-Policy: geolocation=(), camera=(), microphone=()</pre><p>Why it’s crucial: Prevents malicious ads or embedded content from secretly accessing user devices.</p><blockquote><strong>Of course, there are many more security headers you can implement — depending on your app’s architecture, risk profile, and browser compatibility.</strong><br> Start with the essentials, test as you go, and level up as your app grows.</blockquote><h3>💻 Implementation: Where Do I Add These Headers?</h3><h4>NGINX Configuration</h4><pre>server {<br>    add_header X-Frame-Options &quot;SAMEORIGIN&quot; always;<br>    add_header Content-Security-Policy &quot;default-src &#39;self&#39;; script-src &#39;self&#39; &#39;unsafe-inline&#39;;&quot; always;<br>    add_header X-Content-Type-Options &quot;0&quot; always;<br>    add_header Strict-Transport-Security &quot;max-age=31536000; includeSubDomains; preload&quot; always;<br>    add_header Referrer-Policy &quot;strict-origin-when-cross-origin&quot; always;<br>    add_header Permissions-Policy &quot;geolocation=(), camera=(), microphone=()&quot; always;<br>}</pre><h4>Node.js + Express (Using Helmet)</h4><pre>const helmet = require(&#39;helmet&#39;);<br><br>app.use(helmet({<br>    contentSecurityPolicy: {<br>        directives: {<br>            defaultSrc: [&quot;&#39;self&#39;&quot;],<br>            scriptSrc: [&quot;&#39;self&#39;&quot;, &quot;&#39;unsafe-inline&#39;&quot;]<br>        }<br>    },<br>    hsts: {<br>        maxAge: 31536000, // 1 year in seconds<br>        includeSubDomains: true,<br>        preload: true<br>    }<br>}));</pre><p>Helmet helps set many headers by default, like X-Content-Type-Options, Referrer-Policy, etc.<br> Customize what&#39;s needed using its built-in options.</p><h4>Apache Configuration</h4><pre>Header always set X-Frame-Options &quot;SAMEORIGIN&quot;<br>Header always set Content-Security-Policy &quot;default-src &#39;self&#39;; script-src &#39;self&#39;&quot;<br>Header always set X-Content-Type-Options &quot;nosniff&quot;<br>Header always set Strict-Transport-Security &quot;max-age=31536000; includeSubDomains; preload&quot;<br>Header always set Referrer-Policy &quot;strict-origin-when-cross-origin&quot;<br>Header always set Permissions-Policy &quot;geolocation=(), camera=(), microphone=()&quot;</pre><h3>🚨 Developer Reality Check Q&amp;A</h3><h4>Q: “I added CSP and my site broke. What now?”</h4><p>A: This is totally normal! Start with CSP in report-only mode</p><pre>Content-Security-Policy-Report-Only: default-src &#39;self&#39;; report-uri /csp-report</pre><p>Monitor the violations, adjust your policy, then switch to enforcement mode.</p><h4>Q: “Should I set X-Frame-Options: DENY for everything?&quot;</h4><p>A: Not always. If you need legitimate embedding (like payment widgets or social media plugins), use SAMEORIGIN or specific ALLOW-FROM directives.</p><h4>Q: “Is helmet() enough for Node.js security?&quot;</h4><p>A: It’s a great start, but always review and customize the default settings. One-size-fits-all rarely works for security.</p><h4>Q: “How do I test if my headers are working?”</h4><p>A: Use these tools:</p><ul><li>securityheaders.com — Comprehensive header analysis</li><li>Mozilla Observatory — Security scoring and recommendations</li><li>Browser dev tools — Check response headers manually</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJZwfyM115kYuWLB0pAM5A.png" /><figcaption>Get a</figcaption></figure><h3>🎯 Wrap-Up: Your Security Headers Game Plan</h3><p>Security headers are your first line of defense — free, fast, and incredibly effective. With just a handful of response headers, you can:</p><p>✅ Stop clickjacking attacks<br>✅ Mitigate XSS vulnerabilities<br>✅ Enforce HTTPS connections<br>✅ Protect user privacy<br>✅ Control browser API access</p><p>All without changing a single line of application code.</p><p>But remember — this is just the beginning of your security journey.</p><h4>🔐 Security Headers ≠ Complete Security</h4><p>Headers are powerful, but they’re just one layer in a comprehensive security strategy. You’ll also need:</p><ul><li>Secure coding practices (input validation, output encoding)</li><li>Regular vulnerability scanning and penetration testing</li><li>Proper authentication and authorization mechanisms</li><li>Security monitoring and incident response plans</li><li>Employee security training and awareness programs</li></ul><p>Think of security headers as your invisible shields — they block many drive-by attacks, but a determined adversary will look for other ways in.</p><h4>👨‍💻 ~whoami</h4><p>I’m <strong>Vineeth</strong>, a curious appsec nerd who poked his first login page in 2022 — and never stopped.<br> I now work in MSS, helping secure APIs, WAFs, CDNs, and tuning defenses so developers don’t rage-quit.<br> This blog? Just me making security fun, real, and slightly Peter-proof.</p><h4>📖 About Not Today, Hacker</h4><p><em>Not Today, Hacker</em> is a blog series where I break down web app security using real stories, memes, and the occasional disaster featuring Peter Griffin.<br> If you’re a developer, security beginner, or just like learning without the buzzwords — you’re in the right place.</p><p><strong>Catch the next one soon. And until then… secure those headers.</strong> 🛡️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed7f97e4865b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TLS vs SSL: Why We’re Still Getting It Wrong]]></title>
            <link>https://vineethtunk.medium.com/tls-vs-ssl-why-were-still-getting-it-wrong-369abbc9cdab?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/369abbc9cdab</guid>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[tls]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 12:09:36 GMT</pubDate>
            <atom:updated>2025-07-15T15:16:44.701Z</atom:updated>
            <content:encoded><![CDATA[<h4>Not Today, Hacker — 2</h4><h3>👋 Quick Intro</h3><blockquote><em>Peter just bought a domain.<br> Then he proudly tells his friend:<br> </em>“Don’t worry, bro. I installed SSL. Site’s unhackable now.”</blockquote><p><em>Brian: But wait… isn’t it called </em><strong><em>TLS</em></strong><em> now? </em>There is nothing unhackable on internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfHL5q_95LNUv0ZbELoXIQ.png" /></figure><p>💡 In this blog, we’ll break down:</p><ul><li>What TLS <em>really</em> is (and what happened to SSL)</li><li>Why the terms are mixed up (hint: legacy habits)</li><li>How free &amp; paid certificates work (and which one you <em>actually</em> need)</li></ul><h3>🔍 What is TLS (and why do we still say SSL?)</h3><p><strong>SSL (Secure Sockets Layer)</strong> was the original protocol to encrypt data between your browser and a server.<br>But it had vulnerabilities… so it was replaced by <strong>TLS (Transport Layer Security)</strong>.</p><blockquote><em>📉 SSL is dead. TLS is what we use today.<br></em>People still say SSL out of habit — kinda like calling every search engine ‘Google’<em>.</em></blockquote><p>Current versions in use: <strong>TLS 1.2</strong> &amp; <strong>TLS 1.3</strong><br> (SSL 2.0 &amp; 3.0 are obsolete. If you’re using them — stop. Peter might be watching.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*BMpvM_dwEb3IXdkTx0zgjg.png" /><figcaption>Few Facts from Google itself.</figcaption></figure><h3>📸 The Evolution of SSL/TLS — ft. Peter &amp; the Gang</h3><p>Still confused about the difference between SSL and TLS?<br> You’re not alone — and honestly, you’re in good company 😅</p><p>Here’s a quick visual breakdown I put together, featuring the Family Guy crew (because memes make everything better):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpScQpc_8F0jDOSDrDys8A.png" /></figure><p>This gives quick historical context for readers who skim.</p><pre>🔴 SSL 2.0 (1995) – Broken by design  <br>🔴 SSL 3.0 (1996) – POODLE killed it  <br>🟡 TLS 1.0–1.2 (1999–2008) – Better, but aging  <br>🟢 TLS 1.3 (2018) – Fast, secure, encrypted by default</pre><p><strong>Bottom line:</strong><br> If you’re still on SSL or early TLS versions…<br> Upgrade to TLS 1.3 and keep it clean. 😎</p><h3>🚧 What’s After TLS 1.3?</h3><h4>TLS 1.4? Not Yet.</h4><p>There is <strong>no TLS 1.4 spec</strong> currently in active development by the IETF (as of mid-2025). TLS 1.3 solved many legacy issues and is still considered <strong>secure and modern</strong>. Instead of jumping to a full new version, the focus has shifted to <strong>enhancing</strong> or <strong>extending</strong> TLS 1.3.</p><h3>🧠 Why It Matters TLS ensures <strong>data is encrypted in transit</strong> (login info, session cookies, form data)</h3><ul><li>Prevents <strong>MITM attacks</strong> (man-in-the-middle)</li><li>Shows the 🔒 lock icon in browsers representing HTTPS application and builds user trust.</li></ul><blockquote>🔍 <strong>Curious what version your site is using?</strong><br> Test your SSL/TLS setup here → <a href="https://www.ssllabs.com/ssltest/">https://www.ssllabs.com/ssltest/</a></blockquote><h3>🔐 Free vs Paid TLS Certificates</h3><blockquote><strong>Free (Let’s Encrypt):</strong></blockquote><p>🆓 100% free</p><p>🔁 Valid for 90 days, auto-renewable</p><p>💻 Great for most personal sites, blogs, SaaS apps</p><p>🔐 Uses same strong encryption as paid</p><blockquote><strong>Paid (e.g., DigiCert, Sectigo):</strong></blockquote><p>💳 Cost varies (₹500–₹20k+ depending on type)</p><p>📜 You get <strong>organization validation</strong>, <strong>wildcard</strong>, or <strong>EV certs</strong></p><p>🧾 Better for enterprises, banking, compliance-heavy environments</p><p>💼 Legal liability support &amp; warranties</p><h4>⚙️ Basic TLS Setup Flow</h4><ol><li>Generate private key &amp; CSR</li><li>Choose CA — Let’s Encrypt, DigiCert, etc.</li><li>CA issues cert after validation</li><li>Install cert on your server — Apache, NGINX, etc. (Check out the Step-by-Step Guide to install Let’s Encrypt <strong>TLS </strong>certificate by <a href="https://medium.com/@leanfolks/harnessing-the-power-of-lets-encrypt-a-step-by-step-guide-to-ssl-certificate-generation-with-9aa833b8b642">Leanfolks</a>)</li><li>Redirect HTTP → HTTPS 🔄</li></ol><h4>🧠 Common Mistakes</h4><ul><li>Using expired certs (browsers will scream)</li><li>Common name mismatch.</li><li>Still calling it “SSL” in 2025 (Peter would)</li><li>Not redirecting HTTP → HTTPS</li><li>Skipping HSTS or misconfiguring ciphers</li></ul><h3>✅ TL;DR:</h3><blockquote><strong>SSL is dead</strong>, but people still use the term out of habit.</blockquote><blockquote><strong>TLS is the real deal</strong> — it replaced SSL to fix security flaws and modernize encryption.</blockquote><blockquote><strong>TLS 1.3</strong> is the current standard: faster, safer, and simpler than TLS 1.2.</blockquote><h3>👨‍💻 ~whoami</h3><p>I’m Vineeth — a security nerd since 2022 who breaks things (ethically) and helps fix them smarter.<br> I work in MSS, tuning WAFs, securing APIs, and scripting away manual pain with Python.<br>Making security approachable, hands-on, and a little more resilient to Peter-level chaos.</p><h3>💬 Quick Q before you go:</h3><ul><li>Do you still call it SSL?</li><li>Ever deployed without HTTPS in prod (and sweated bullets)?</li><li>Free certs or paid? Why?</li></ul><p>Let me know in the comments.<br> I’ll tell you about the time our staging app died because someone “forgot” to renew the cert.</p><h3>🔗 Let’s Stay Connected</h3><p>Want more of this mix of 🧠 + 🍻 + 🔐?</p><ul><li><strong>LinkedIn</strong> — <a href="https://www.linkedin.com/in/vineethtunk/">Vineeth Tunk</a></li><li><strong>Twitter/X</strong> — <a href="https://twitter.com/TunkVineeth">@TunkVineeth</a></li><li><strong>Instagram</strong> — <a href="https://instagram.com/vineeth_tunk">@vineeth_tunk</a></li></ul><p>Together, let’s encrypt the chaos and secure the internet — <br> <strong>one Peter at a time</strong> 🛡️</p><p>👇 Catch up from the beginning:<br> 🛡 <em>Not Today, Hacker</em> — Episode 1<br> <strong>Too Many, Too Fast: Why Your API Needs a Bouncer</strong><br> 🔗 <a href="https://vineethtunk.medium.com/too-many-too-fast-why-your-api-needs-a-bouncer-9bf30b7b5455">https://vineethtunk.medium.com/too-many-too-fast-why-your-api-needs-a-bouncer-9bf30b7b5455</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=369abbc9cdab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Too Many, Too Fast: Why Your API Needs a Bouncer]]></title>
            <link>https://vineethtunk.medium.com/too-many-too-fast-why-your-api-needs-a-bouncer-9bf30b7b5455?source=rss-6e225698dc28------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bf30b7b5455</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[no-rate-limit]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[secure-coding]]></category>
            <dc:creator><![CDATA[Vineeth Tunk]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 18:33:06 GMT</pubDate>
            <atom:updated>2025-07-08T18:33:06.867Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Not Today, Hacker — </em><strong>1</strong></h4><h3>🍻 It’s Friday night.</h3><p>The pub’s vibing. People are chill. Bartender’s pouring smooth.<br> But suddenly — Peter barges in like:<br> <strong><em>“50 Tequila shots </em></strong>🥃🥃<strong><em>, NOW.”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwjwRQyUVWrVIiu6xbyRfw.png" /><figcaption>And bartender like:🧍‍♂️”Bro… you good?”</figcaption></figure><p>If you don’t stop him, your bar’s flooded. Everyone else has to wait. The bartender get engaged. The pub crashes.</p><p>Welcome to the world of <strong>unprotected APIs</strong>.<br>And say hello to your savior: <strong>Rate Limiting.</strong></p><h3>🧠 So… What Is API Rate Limiting?</h3><p><em>It’s a technique to control the number of requests a client can make to an API in a time window.</em></p><p>For example: Allow 10 requests/minute on certain critical endpoints such as /auth, /login… (https://www.redactedapi.com/endpoint)</p><p><em>It’s like bouncer saying:<br> </em>“Max 5 drinks per customer every 10 minutes. You go over, you’re cut off or asked to chill.”</p><h4>💥 No Rate Limit 🛡️? Enjoy DoS.</h4><p>Let’s be real — an API without rate limits is like an <strong>open bar with no bartender/ Bouncers</strong>.<br> Anyone can walk in, chug the resources dry, and leave your server passed out on the floor.</p><h3>What Happens When You Skip Rate Limiting:</h3><ul><li><strong>💣 DoS (Denial of Service)</strong>: One user (or bot) sends 10,000 requests in 10 seconds.</li><li><strong>🧍‍♂️ No queue, no block, just burn</strong>: Your server CPU starts cooking breakfast for the attacker.</li><li><strong>📉 Real users?</strong> They’re stuck watching timeouts and spinning loaders.</li></ul><p>And Peter?<br> He’s still in the corner yelling <em>“ONE MORE SHOT!”</em> — crashing every API on the menu.</p><h4>🤖 Brute Force Login?</h4><p><em>Peter tries every password from “admin123” to “quagmire4life.”<br> Bouncer: </em>“Try that again and you’re OUT.”</p><h4>🧽 Free Tier Abuse?</h4><p><em>Peter signed up for the free plan 50 times.<br> Now he’s making your devs cry.</em></p><h3>Dev Time: How To Actually Rate Limit Like a Bouncer</h3><ul><li>Use middleware like express-rate-limit, Django Ratelimit, etc.</li><li>Set thresholds by IP, token, user, or method</li><li>Add headers like X-RateLimit-Remaining, Retry-After</li><li>Monitor logs for Peter-patterns (burst activity, fake agents, etc.)</li><li>Bonus: Use APPTRANA ‘s API Security, Cloudflare or AWS API Gateway to offload this layer</li></ul><blockquote>Rate limiting logic in Peter’s Pub🍻</blockquote><pre>if requests &gt; limit: # Request&#39;s breach the threshold value, block access(429)<br>    return 429<br>else:<br>    pour_shot()  # pour_drink() deprecated in v2</pre><h3>🟩 Node.js (Express + express-rate-limit)</h3><pre>const limiter = rateLimit({ windowMs: 1 * 60 * 1000, max: 10 }); // 10 requests/min<br>app.use(&#39;/api/&#39;, limiter);</pre><h3>🟦 Django (django-ratelimit)</h3><pre>@ratelimit(key=&#39;ip&#39;, rate=&#39;10/m&#39;, method=&#39;GET&#39;, block=True)<br>def view_func(request): ...</pre><h3>🔵 ASP.NET Core (Middleware-based custom policy)</h3><pre>services.AddRateLimiter(opts =&gt; opts.AddFixedWindowLimiter(&quot;default&quot;, x =&gt; x.PermitLimit = 5));<br>app.UseRateLimiter(); // Apply global or per-endpoint</pre><h3>☕ Java (Spring Boot + Bucket4j)</h3><pre>Bucket bucket = Bucket4j.builder().addLimit(Bandwidth.simple(5, Duration.ofMinutes(1))).build();<br>if (bucket.tryConsume(1)) { /* allow request */ } else { /* block with 429 */ }</pre><blockquote><em>✅ This limits requests to </em><strong><em>5 per minute</em></strong><em> per bucket instance.</em>️</blockquote><h4>🧠 TL;DR (Too Lit; Didn’t Rate-limit)</h4><ul><li>APIs = Pubs</li><li>Peter = Abuser</li><li>Rate Limit = Bouncer</li><li>No limit? Your app becomes Peter’s playground</li><li>Add limits → Protect uptime → Sleep better</li></ul><h3>👋 Who Dis?</h3><p>Hey there, internet! Welcome to the <strong>first episode</strong> of <strong><em>Not Today, Hacker</em></strong><em> — </em>a series where I break down real-world web app security with stories, memes, and zero gatekeeping.</p><p>If you’re into <strong>APIs, WAFs, cloud stuff, or just love watching Peter Griffin break things</strong> (and then figuring out how to fix it)… you’re in the right place.</p><h3>👨‍💻~whoami</h3><p>I’m <strong>Vineeth</strong> — a guy who got curious in 2022, poked a few login pages (ethically), and somehow made a career out of it.</p><p>Started in 2022 by asking, <em>“Wait… can this be hacked?”</em><br> Since then:</p><ul><li>Broke a few login pages (ethically 😇)</li><li>Fixed a few too (as part of a WAF product team)</li><li>Now work in a <strong>Managed Security Services (MSS)</strong> team in a Security product based company helping apps survive the internet.</li></ul><p>I deal with:</p><ul><li>🔐 WAFs, VAPT, API security, CDN Optimization and it’s Security.</li><li>🧠 Translating vulnerabilities so devs don’t hate security</li><li>🐍 Writing Python scripts to avoid clicking the same button 500 times</li></ul><h3>🧠 Why This Blog?</h3><p>Because not everyone has a full red team.<br> And honestly… security shouldn’t feel like rocket science or a compliance checklist.</p><p>So here’s the plan:<br> Each week, I’ll break down a real-world security concept — with stories, memes, and zero gatekeeping.</p><p>You’ll laugh, learn, and hopefully think:</p><blockquote><em>“Damn. That actually makes sense.”</em></blockquote><h4>🤔 Quick Qs for You:</h4><ul><li>Ever had a “Peter” in your app who broke stuff by just being… fast?</li><li>What’s the wildest API abuse you’ve seen?</li><li>Do you rate limit like a boss or wing it with cloud defaults?</li></ul><p><strong>💬 Drop your story in the comments.</strong><br> Let’s trade chaos and lessons.</p><p>And if you vibe with this, hit follow — Peter’s just getting started 🍻🛡️</p><p><strong>🔗 Stay in the loop &amp; vibe with me here:</strong></p><ul><li><a href="https://www.linkedin.com/in/vineethtunk/">Linkedln</a>— Vineeth Tunk</li><li><a href="https://x.com/TunkVineeth">Twitter</a> — @TunkVineeth</li><li><a href="https://www.instagram.com/vineeth_tunk/">Instagram</a> — Vineeth_tunk</li></ul><p><strong>Together, let’s rate-limit the chaos and secure the internet — one Peter at a time. 🍻🛡️</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bf30b7b5455" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>