<?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 Aswin P on Medium]]></title>
        <description><![CDATA[Stories by Aswin P on Medium]]></description>
        <link>https://medium.com/@aswinp958?source=rss-0b0f32bf6545------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xC9ER4IImudAjbW-</url>
            <title>Stories by Aswin P on Medium</title>
            <link>https://medium.com/@aswinp958?source=rss-0b0f32bf6545------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:11:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aswinp958/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[8 Common API Testing Mistakes (And How to Actually Fix Them)]]></title>
            <link>https://medium.com/@aswinp958/8-common-api-testing-mistakes-and-how-to-actually-fix-them-d74ad9c4c15c?source=rss-0b0f32bf6545------2</link>
            <guid isPermaLink="false">https://medium.com/p/d74ad9c4c15c</guid>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[postman-testing]]></category>
            <category><![CDATA[api-testing]]></category>
            <category><![CDATA[api-endpoint]]></category>
            <category><![CDATA[apı]]></category>
            <dc:creator><![CDATA[Aswin P]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 07:28:48 GMT</pubDate>
            <atom:updated>2025-04-25T08:08:01.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iKZmfMI84i2EUo2zxliG7g.png" /></figure><h3>Are Your API Tests Really Doing Their Job?</h3><p>Let’s be honest. API testing looks easy on the surface. Just sending a request in Postman, see a 200 OK, and you are done.</p><p>But here’s the thing: I’ve made that same mistake. A lot.</p><p>Over time, I realized that good API testing isn’t about making sure things work, it is about making sure they don’t break.</p><h3>1. Only Testing for 200 OK</h3><p>A successful HTTP response doesn’t mean your API is behaving properly, 200 status just mean the request was processed, not that the result is valid or complete.</p><p><strong>Why this matters:</strong></p><p>You might see a 200, but the response could be missing key data. It might be structured incorrectly, or even silently failing behind the scenes. Always try to look beyond.</p><h3>2. Ignoring Error Responses</h3><p>APIs aren’t just about handling perfect inputs. You need to test how they respond to wrong ones.</p><p><strong>The problem:</strong><br> Most testers only check the happy path — the correct input with a valid token. But real-world users (and attackers) don’t always do the same.</p><p>What to look instead:</p><p>Do you get the right response when something’s missing? How does the API react to bad data? A good API should return meaningful errors and handle failure gracefully, not just throw a 500 server error.</p><h3>3. Skipping Authentication Scenarios</h3><p>APIs that require login or tokens need more than just one test with valid credentials.</p><p><strong>What’s missing:</strong></p><p>Have you tested what happens if you remove a token? Ever tried an expired one? Or a valid token with wrong permissions?</p><p><strong>Why it matters:</strong></p><p>Authorization and authentication bugs can lead to security issues like data leaks or privilege escalation. Don’t just test if you can access something, test if you should be able to.</p><h3>4. Not Validating the Actual Data</h3><p>Sometimes APIs respond with the right structure, but the content will be wrong</p><p><strong>Common issue:</strong><br> You might get a JSON object with all the fields you expect, but they’re empty or incorrect. Something exists, doesn’t mean the data is correct. The provided data might be wrong</p><p><strong>What to do:</strong></p><p>Verify that you got, is what you have expected. It can be user details, order, status, timestamps, or anything else.</p><h3>5. Forgetting to Check Performance</h3><p>APIs might work perfectly in testing. When users start sending hundred of requests. That’s when slow responses and timeouts starts.</p><p><strong>Mistake testers make:</strong></p><p>Only checking functionality, not performance. If your API takes 3–5 seconds to respond, that’s going to affect user experience and maybe even SEO.</p><h3>6. Overlooking Edge Cases</h3><p>Your API might handle normal input fine. But what happens with blank fields? Extra-long strings? Special characters?</p><p><strong>Why this matters:</strong></p><p>In some cases, Attackers often exploit poorly handled inputs, and regular users fall into them.</p><p><strong>Think like this:</strong><br> “What’s the weirdest thing someone might try?” Then test that.</p><h3>7. Not Testing Rate Limits</h3><p>Many APIs use throttling to prevent abuse. But how often do we actually test what happens when we <em>do</em> send 100 requests in a minute?</p><p><strong>Why this is important:</strong></p><p>If rate limiting isn’t properly tested, your backed might be overloaded, or in worst case it might let attackers to brute force their way into your system.</p><h3>8. Failing to Test HTTP Method Restrictions</h3><p>Did you know some APIs will respond to GET, POST, PUT, and DELETE on the same endpoint? Which it should not.</p><p><strong>What this leads to:</strong><br> Unexpected behavior, data leaks, or security flaws and more.</p><p><strong>What to check:</strong></p><p>If an endpoint is supposed to only allow GET, what happens when someone tries POST or DELETE? A well-designed API should reject incorrect methods with a clear response.</p><p>Don’t just settle for 200 OK. Test the errors. Break the rules. Push the limits.</p><p>If you want reliable APIs, test them like you don’t trust them. 😊</p><p>Hope this blog was helpful. If you have any thought, please don’t hesitate to leave a comment. Thank you for reading. Stay secure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d74ad9c4c15c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7Zip might make malware look like VIP. Here's how]]></title>
            <link>https://medium.com/@aswinp958/7zip-might-make-malware-look-like-vip-heres-how-a09070df7e18?source=rss-0b0f32bf6545------2</link>
            <guid isPermaLink="false">https://medium.com/p/a09070df7e18</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[version]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[7zip]]></category>
            <category><![CDATA[motw]]></category>
            <dc:creator><![CDATA[Aswin P]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 09:50:16 GMT</pubDate>
            <atom:updated>2025-02-11T10:11:16.360Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Guys, ever downloaded a file, only to realize you just invited a cybercriminal for a coffee. Well, be ready to thank CVE-2025–0411, 7zip made sure cybercriminals didn’t even have to knock.😂</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQu0M224bch9QUN7JFl22A.jpeg" /></figure><p>CVE-2025–0411 is a vulnerability in 7zip that allows the attacker to bypass the security feature in windows. Nothing but the Mark-of-the-web security feature which is responsible for identifying the files downloaded from the internet is safe or not.</p><p>Here is the deal, when you download a file from the internet, windows usually adds a MoTW tag to the file to warn you. So that malware could not execute on your system.</p><h3><strong><em>How does this affect me?</em></strong></h3><p>Here is the problem that occurs, when you extract a MoTW tagged file the extracted file loses its MoTW tag. Meaning, windows will no longer consider them as unsafe, and the files will get executed without triggering any security warning.</p><p>This attack was targeted on Ukranian organizations using phising emails and malicious zip files. Does that mean others are safe? Of course not.</p><h3>What to do?</h3><p>Here is what you should do to avoid potential exploitation,</p><ul><li>Update 7Zip to the latest version. Which will be 24.09.</li><li>Try to be cautious while extracting files, even from trusted websites.</li></ul><p>Thanks to the Trend zero Day Initiative (ZDI) who is a Threat hunting team who discovered this. After they reported this, the creators of 7Zip launched a patch in version 28.4. Which I have asked to update into🤗🫡.</p><p>Have any suggestions, please don’t hesitate to reach out🤘. Always ready to improve✍️.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a09070df7e18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NAT made simple: Easiest explanation you ever need!]]></title>
            <link>https://medium.com/@aswinp958/nat-made-simple-easiest-explanation-you-ever-need-ad371bc93f34?source=rss-0b0f32bf6545------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad371bc93f34</guid>
            <category><![CDATA[nat]]></category>
            <category><![CDATA[routing-protocol]]></category>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[routing-table]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[Aswin P]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 12:40:43 GMT</pubDate>
            <atom:updated>2025-01-17T12:41:59.892Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>NAT</strong> stands for Network Address Translation, which is a process of changing the IP address information in a data packet while they are passed through a public network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TGTiCU4pGkypOOIyiu2BA.jpeg" /></figure><h4>Why NAT?</h4><p>NAT allows devices on a private network to communicate with the devices on a public network. While the devices on a private network don’t have a public IP, they rely on the Public IP of the router which is assigned by the ISP.</p><h3><strong>Working of NAT</strong></h3><p>Suppose there are two devices on LAN which is formed by a router.</p><p>Device A (Private IP) : <strong>192.168.56.102</strong></p><p>Device B (Private IP): <strong>192.168.56.103</strong></p><p>Router (Public IP): <strong>221:121:56:55</strong></p><p>When the device A need to communicate a device on a public network, which has the IP address <strong>162:66:12:65 </strong>(<em>destination device IP address</em>), here is how NAT comes into picture.</p><p>When the device A tries to send a request to a remote device which in this case from 192.168.56.102 with a port 80 to 162:66:12:65 with port 80 , the router by using NAT changes the IP address information on a data packet.</p><p>Example,</p><p>Source IP: <strong>192.168.56.102</strong></p><p>Destination IP: <strong>162:66:12:65</strong></p><p>Source port: <strong>80</strong></p><p>Destination port: <strong>80</strong></p><p>to</p><p>Source IP: <strong>221:121:56:55</strong></p><p>Destination IP: <strong>162:66:12:65</strong></p><p>Source port: <strong>5555</strong></p><p>Destination port: <strong>80</strong></p><p>You can see that not only the source ip has changed, the source port is also changed. Let me tell you why?</p><p>See, if the router by using NAT explicitly changes the IP address of the device on a device, the router still need to forward the response to the device A on the LAN. Precisely saying, the source port is changed to uniquely identify the device which is responsible for the request.</p><p>When device A makes a request, it’s private IP(<em>source IP</em>)in the request will get translated to router’s public IP.</p><p>At the same time the source port will also get changed to a NAT translated source port. This is done for maintaining a NAT routing table. Here is a simple example for a NAT routing table entry:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqPu0slPPSTkPuqYpusspw.png" /></figure><p>See, while the router gets a response from the device from a public network, the router checks the table and can identify that “to which device does responses to <strong>5555</strong> port should I forward to? Oh, it is Device A with the IP of <strong>192.168.56.102</strong> and the port 80.</p><p>Every entry in the NAT routing table is short lived, means the moment the request and response is successfully served, the entry will get deleted. This is done by the router to avoid the exhaustion of the port number which are limited.</p><p>NAT allows devices on a private network to maintain a single Public IP.</p><p>Private IP range from;</p><ul><li>10.0.0.0 – 10.255.255.255</li><li>172.16.00 – 172.31.255.255</li><li>192.168.0.0 – 192.168.255.255</li></ul><p>While the invention of IPV6 provides a vast address space, NAT might get replaced. But as long as IPV4 is used, NAT remains as a critical technology to support it.</p><p>If needed, please refer to <a href="https://datatracker.ietf.org/doc/html/rfc2663">https://datatracker.ietf.org/doc/html/rfc2663</a> which is IETF’s official documentation about NAT.</p><p>Let me know if the blog was helpful. If you notice any mistakes or any suggestion, feel free to point out. Always open to make modifications.😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad371bc93f34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ever Wondered How SSL/TLS Secures Your Connection? This is all you need!]]></title>
            <link>https://medium.com/@aswinp958/ever-wondered-how-ssl-tls-secures-your-connection-its-not-as-complex-as-you-think-5d7b360d542c?source=rss-0b0f32bf6545------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d7b360d542c</guid>
            <category><![CDATA[tls-certificate]]></category>
            <category><![CDATA[tls-handshake]]></category>
            <category><![CDATA[ssl-handshake]]></category>
            <category><![CDATA[encrypt]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Aswin P]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 18:49:20 GMT</pubDate>
            <atom:updated>2025-01-06T04:52:46.418Z</atom:updated>
            <content:encoded><![CDATA[<p>SSL stands for Secure Socket Layer and TLS stands for Transport Layer Security, which are also called as cryptographic protocols to secure communication over a network, especially the internet. They ensure data transmitted between two parties such as Client(bowser) and the server(Where the website is stored) is encrypted, authenticated and is intact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rms91PTLhpkL0Qrj6lZR_g.jpeg" /><figcaption>Ever Wondered How SSL/TLS Secures Your Connection? It’s Not as Complex as You Think!</figcaption></figure><h4>Analogy for better understanding:</h4><p><em>Think of it as a secret way of communication between two strangers. So even if a person between them eavesdrops 🤫👂, the eavesdropper won’t understand what they are talking about.</em></p><p>Here is a little hack:</p><p><em>When trying to understand tackling tough topics, try comparing them to something familiar. Analogies can make even toughest concepts easier to grasp. Trust me! </em>😎</p><p>Now we can move on to the core part of the SSL/TLS.</p><h4><strong>SSL/TLS Handshake</strong></h4><p>SSL/TLS handshake is the process where the client and the server agree on how to securely communicate with each other. Handshake ensures, the data exchanged between them is Confidential, authentical and integral by using encryption, hashing, key exchange mechanisms.</p><p><strong>Client Hello:<br></strong>The client first initiates the handshake by sending a message which is called Client Hello, which consists of:</p><ul><li>Supported SSL/TLS versions by the browser (TLS 1.2, 1.3)</li><li>List of Cipher suites it supports. Means, what type of Encryption algorithms (e.g. AES), Key exchange methods (e.g. RSA) and Hashing algorithms(e.g. SHA-256) does the browser supports.</li><li>Client random: Just a random number that is later used for the creation of the Session key.</li></ul><p>2.</p><h4>Server Hello:</h4><p>The server responds with a message called Sever Hello to the Client Hello from the Client. Server Hello includes:</p><ul><li>The SSL/TLS version which both the server and the client supports.</li><li>Cipher suite, from the list provided by the client. This Cipher suite is used for the upcoming encryption process.</li><li>Server Certificate: Digital certificate, which is issued by a Certified Authority (e.g. Lets encrypt). This contains the server’s public key, Identity information(e.g. domain name and organization), Digital Signature from the CA that verifies the authenticity of the certificate.</li></ul><p>3.</p><h4>Authentication and Key exchange:</h4><p>The client has got the server’s certificate thought the Server Hello. Now these task are performed by the client:</p><ul><li>Authentication: The client validates the certificate, ensuring it is issued by a trusted CA, matches the domain, and the certificate is valid.</li><li>Depending upon the Version of the SSL/TLS, by using the Key exchange method (e.g. RSA) in the Cipher suite, a key called Pre-Master Secret is created(<em>note to take: creation method of premaster key depends up on the key exchange algorithm</em>). Then, the Key exchange algorithm encrypts the Pre-Master Secret by using the public key from the certificate and sends it to the server.</li></ul><p>4.</p><h4>Session key Generation:</h4><ul><li>The server decrypts the encrypted Pre-master secret by using the Private key.</li><li>Now, both the client and the server have, the Client random value, Server random value and the Pre-master secret. A process called Key Derivation function is done independently by both the server and client to create a key called as Session key. <br>(<em>Hashing is a key component in KDF e.g. HMAC-SHA256</em>)</li></ul><p>5.</p><h4>Handshake finalization:</h4><p>Now, both the client and server has created the session key. Now, here is what happens:</p><ul><li>Both the client and server sends one message called Change Cipher Spec to each other. The intention of the Change Cipher Spec message by the client is to indicate that, it is ready to switch to the agreed-upon encryption, and server’s Change Cipher Spec is an acknowledgement to confirm the readiness to transition to the agreed-upon encryption.</li><li>The SSL/TLS handshake is finished by sending a final message called Finished Message by both client and server. This Final message key is encrypted by using the session key, and this Message contains the cryptographic hash of all the messages exchanged between the client and server during the handshake process. <br>(Note: Cryptographic hash functions take an input and return an output which is referred as a hash or digest. The outputs are not reversible to the original input)</li><li>Both the client and server now, decrypt the hash by using the session key. Both parties then compare whether the hashes match. This is done to confirm that, all the messages transmitted during the handshake have not been tampered. If the hashes don’t match, it means the messages are tampered and the handshake would be considered as invalid.</li></ul><p>6.</p><h4>Secure Data communication:</h4><p>Now, the entire HTTP request is encrypted before transmission, by using the agreed up-on encryption algorithm. The symmetric algorithm, uses the session key(<em>which was created during the handshake</em>) for encryption and for decryption.</p><p>In conclusion, the SSL/TLS handshake is a crucial process for establishing a secure communication environment for between client and server to ensure data confidentially, integrity and authenticity.</p><p>Feel free to leave a comment 💬 or reach out if you have any suggestions for improvement ✍️. I’d be happy to review and make updates 😊.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d7b360d542c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ultimate way Professionals understand protocols. Here’s how]]></title>
            <link>https://medium.com/@aswinp958/do-protocols-make-you-confused-read-the-perfect-analogy-to-master-protocols-3fe5130df0ab?source=rss-0b0f32bf6545------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fe5130df0ab</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[protocols-and-servers]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network-protocols]]></category>
            <dc:creator><![CDATA[Aswin P]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 09:32:48 GMT</pubDate>
            <atom:updated>2024-12-23T17:54:26.483Z</atom:updated>
            <content:encoded><![CDATA[<p>Protocols are standardized set of rules for communication between devices, which defines how data or request should be sent, received and formatted during a communication. These rules ensures the data or the requests will be sent, received, and process in a standardized way. Means in a common way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sn_bhrB_T14xktVd3qr_kQ.jpeg" /><figcaption>Photo by cottonbro studio: <a href="https://www.pexels.com/photo/workstation-computer-monitor-with-html-editor-6804613/">https://www.pexels.com/photo/workstation-computer-monitor-with-html-editor-6804613/</a></figcaption></figure><p>Consider there are two people. Both speaks in different languages. Person A only knows English and Person B only knows Spanish. Would they be able to talk or communicate? Why?</p><p>Here is why? Even if the Person A asks “Could you please let me know what the time is?” , the Person B will not understand what he is asking. Because the person B do not know how to interpret or process the words that he hears. But, if the Person B learns English he could understand what the Person A is asking and can process and give the appropriate answer.</p><p>Same goes with protocols. When a device need to get website,</p><p><em>Person A(Client) = Your device/browser</em></p><p><em>Person B(Sever) = Web server( place where the website resources are stored)</em></p><p><em>English(language)= HTTP(protocol used for communication)</em></p><p>Suppose you need to access the website <a href="http://www.examplewebsite.com./">www.examplewebsite.com.</a> Here is how the communication is done,</p><ol><li>Your Brower sends a request to the server:</li></ol><h4><strong>GET /index.html HTTP/1.1 <br>Host: </strong><a href="http://www.website.com/"><strong>www.examplewebsite.com</strong></a></h4><blockquote>Which means “Give me the webpages of the website www.examplewebsite.com?”</blockquote><p>2. The server understands what the device is asking about and sends a response or talks back:</p><p><strong>HTTP/1.1 200 OK <br>Content-Type: text/html <br>Content-Length: 3456</strong></p><blockquote><strong>Which means, “Here is the webpage you asked about. It’s in HTML format and it 3,456 bytes. </strong>😉”</blockquote><p>Conclusion:<br>1. HTTP is like a language(the rules)</p><p>2. The request is like a question</p><p>3. The response is like an answer.</p><p>Just like every normal human being communicate with a common language, devices also use a common language. Those are called as protocols. Without a common language human beings cannot communicate neither the computers or devices without protocols.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fe5130df0ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>