<?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 Vishnu Vardhan on Medium]]></title>
        <description><![CDATA[Stories by Vishnu Vardhan on Medium]]></description>
        <link>https://medium.com/@vishnuvardhan3530?source=rss-b32d3e068a36------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dUnwjSsTjvgxQYuh</url>
            <title>Stories by Vishnu Vardhan on Medium</title>
            <link>https://medium.com/@vishnuvardhan3530?source=rss-b32d3e068a36------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:09:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnuvardhan3530/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[Building API Swarm Pentest: An Evidence-First API Security Scanner]]></title>
            <link>https://medium.com/@vishnuvardhan3530/building-api-swarm-pentest-an-evidence-first-api-security-scanner-82386b0e7616?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/82386b0e7616</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[api-security]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 12:20:55 GMT</pubDate>
            <atom:updated>2026-11-17T12:20:55.209Z</atom:updated>
            <content:encoded><![CDATA[<p>A scope-enforced CLI for safer, auditable, and reproducible API security testing</p><p>API security testing often involves a difficult balance: testers need enough visibility to identify weaknesses, but testing must remain controlled, authorized, and safe for the target environment.</p><p>To address this challenge, I built API Swarm Pentest — an evidence-first API security validation CLI designed for authorized staging environments and real security engagements.</p><p>🔗 GitHub: https://github.com/VishnuVardhan34/api-swarn-pentest</p><h3>What is API Swarm Pentest?</h3><p>API Swarm Pentest uses an OpenAPI specification to discover and assess API endpoints while enforcing strict testing boundaries.</p><p>The scanner controls:</p><ul><li>Authorized hosts</li><li>Allowed HTTP methods</li><li>Included and excluded paths</li><li>Request budgets</li><li>Rate limits</li><li>Request timeouts</li><li>Maximum scan duration</li><li>Safe-mode restrictions</li></ul><p>This helps prevent accidental testing outside the approved scope.</p><h3>Key Features</h3><h3>OpenAPI-based discovery</h3><p>The scanner reads an OpenAPI JSON document and builds a queue of endpoints to assess. It can also discover same-host API links returned in responses during the scan.</p><p>External links are not followed, helping keep the scan focused on the approved target.</p><h3>Safe testing by default</h3><p>Safe mode blocks mutating methods such as POST, PUT, PATCH, and DELETE.</p><p>Approved mutation testing is possible, but it requires explicit configuration, authorization confirmation, and the --allow-mutating flag. This encourages testers to begin with read-only validation before performing controlled write operations.</p><h3>Evidence-backed results</h3><p>Each scan stores its history, endpoint data, findings, and compressed evidence in SQLite.</p><p>Reports include:</p><ul><li>Endpoint verdicts</li><li>Finding counts</li><li>Highest severity</li><li>Request counts</li><li>Assessment errors</li><li>Evidence references</li><li>Discovery metrics</li></ul><p>The output can be used for manual review, CI pipelines, and repeatable security assessments.</p><h3>Deterministic security checks</h3><p>The current scanner includes checks for:</p><ul><li>Missing API response cache controls</li><li>Potentially sensitive response fields</li><li>Cross-identity object-access review candidates</li></ul><p>Potential BOLA findings are intentionally reported as needs-review candidates. A successful response alone is not treated as proof of broken authorization because ownership and state transitions require additional validation.</p><h3>Two-Phase Scanning</h3><p>API Swarm Pentest uses a two-phase workflow:</p><ol><li>Probe the API contract and discover approved endpoints.</li><li>Queue same-host API links found in responses and run security checks across the expanded endpoint list.</li></ol><p>This provides broader coverage while still enforcing host, path, method, request, and time boundaries.</p><h3>Example Usage</h3><p>python -m swarm_pentest.cli scan \</p><p>--target https://staging.example.test \</p><p>--spec openapi.json \</p><p>--scope scope.json \</p><p>--db scan.db \</p><p>--report scan-report.json \</p><p>--i-have-authorization</p><p>For safe testing, the scope file should define the approved host, methods, paths, identities, request rate, and request budget.</p><p>Credentials should always be supplied through environment variables or a secret manager — not committed to source control.</p><h3>Validation and Benchmarks</h3><p>The project has been tested against local, intentionally vulnerable environments, including:</p><ul><li>OWASP Juice Shop</li><li>VAmPI</li></ul><p>The repository includes reproducible benchmark reports and operational metrics. In the VAmPI benchmark, the scanner correctly identified the documented excessive-data-exposure endpoint while recording additional cache-control hygiene findings separately.</p><p>These benchmark results are intended to demonstrate reproducibility and scanner behavior. They should not be interpreted as universal security effectiveness measurements.</p><h3>Responsible Use</h3><p>API Swarm Pentest is not intended to be exposed as a public web service. The recommended deployment model is:</p><ul><li>A secured workstation</li><li>A private virtual machine</li><li>A trusted CI runner</li><li>An isolated staging environment</li></ul><p>Only test APIs that you own or have explicit written authorization to assess.</p><p>Start with:</p><ul><li>safe_mode: true</li><li>Read-only methods</li><li>Low request rates</li><li>Limited request budgets</li><li>Staging targets</li><li>Disposable test identities where authentication is required</li></ul><h3>What’s Next?</h3><p>Future improvements may include a workflow engine for comparing object ownership and state transitions, enabling stronger validation of authorization issues such as BOLA.</p><p>The broader goal is to make API security testing more controlled, transparent, and repeatable — while ensuring that every request and finding can be reviewed and explained.</p><h3>Conclusion</h3><p>API security tools should not only find potential issues; they should also demonstrate where, how, and under what authorization those issues were identified.</p><p>API Swarm Pentest is an attempt to build security validation around that principle:</p><blockquote><em>Authorized. Scope-enforced. Evidence-first. Reproducible.</em></blockquote><p>Explore the project on GitHub:</p><p>🔗 <a href="https://github.com/VishnuVardhan34/api-swarn-pentest">https://github.com/VishnuVardhan34/api-swarn-pentest</a></p><p>#CyberSecurity #APISecurity #Pentesting #AppSec #DevSecOps #OpenAPI #Python #EthicalHacking #ApplicationSecurity #SecurityEngineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82386b0e7616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snapped Phish-ing Line]]></title>
            <link>https://medium.com/@vishnuvardhan3530/snapped-phish-ing-line-97f64e3281ce?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/97f64e3281ce</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 07:55:42 GMT</pubDate>
            <atom:updated>2026-10-28T07:55:42.070Z</atom:updated>
            <content:encoded><![CDATA[<p>Apply learned skills to probe malicious emails and URLs, exposing a vast phishing campaign.</p><p>Task1: A series of Suspicious EmailsAs a member of the IT department at SwiftSpend Financial, you are responsible for assisting employees with technical concerns. What initially appeared to be a routine day quickly escalated when multiple employees across different departments reported receiving a suspicious email. Several users noted unusual characteristics in the message, and unfortunately, some had already submitted their credentials and were no longer able to access their accounts. With the potential for a wider compromise, the incident has been escalated for investigation. Your task is to analyze the available evidence, determine the scope of the attack, and uncover how the adversary operated.</p><h3>Objectives</h3><ul><li>Analyze the provided email samples to identify key artifacts</li><li>Investigate phishing URLs to understand redirection</li><li>Retrieve and examine the phishing kit used in the attack</li><li>Use CTI tools to gather intelligence on the adversary</li><li>Analyze the phishing kit to uncover additional indicators</li></ul><h3>Prerequisites</h3><p>It is suggested that you complete the previous four rooms of the <a href="https://tryhackme.com/module/phishing">Phishing Analysis Module</a> to help prepare you for email analysis:</p><ul><li>Check out <a href="https://tryhackme.com/room/phishingemails1tryoe">Phishing Analysis Fundamentals</a> for an overview of email communications and analysis</li><li>Explore <a href="https://tryhackme.com/room/phishingemails2rytmuv">Phishing Emails in Action</a> to gain experience analyzing phishing emails</li><li>Go over <a href="https://tryhackme.com/room/phishingemails3tryoe">Phishing Analysis Tools</a> to learn about tools that enable deeper email analysis</li><li>Cover <a href="https://tryhackme.com/room/phishingemails4gkxh">Phishing Prevention</a> to learn about preventing, detecting, and mitigating email threats</li></ul><p>Answer the questions below</p><blockquote>Begin reviewing the emails in the phish-emails folder on your desktop.<br>Which individual received the email regarding a <strong>Quote for Services Rendered</strong>?</blockquote><p>William McClean</p><blockquote>What email address was used by the adversary to send the phishing emails?</blockquote><p>Accounts.Payable@groupmarketingonline.icu</p><blockquote>Investigate the attachment in the email addressed to Zoe Duncan.<br>What is the root domain of the redirection URL found within the file?</blockquote><p>kennaroads.buzz</p><blockquote>Open the attachment in your VM web browser.<br>Which company is the login page impersonating?</blockquote><p>Microsoft</p><blockquote>Let’s check if the attacker left any files exposed on the same website.<br>Navigate to the /data directory.<br>What is the name of the archive file?</blockquote><p>Update365.zip</p><blockquote>Download the phishing kit archive to your virtual environment.<br>Using the sha256sum command, what is the SHA256 hash of the file?</blockquote><p>ba3c15267393419eb08c7b2652b8b6b39b406ef300ae8a18fee4d16b19ac9686</p><blockquote>Investigate the file hash from the previous question using <a href="https://www.virustotal.com/gui/home/search">VirusTotal</a>.<br>Aside from <strong>phishing</strong>, what other threat category is assigned to the ZIP archive?</blockquote><p>Trojan</p><blockquote>Review the VirusTotal Details page for the phishing kit.<br>How many files are contained within the archive?</blockquote><p>49</p><blockquote>Let’s see if the attacker has exposed any captured credentials.<br>Navigate to the /data/Update365/ directory and investigate the log file.<br>What is the email address of the user who submitted their credentials more than once?</blockquote><p>michael.ascot@swiftspend.finance</p><blockquote>Extract the phishing kit archive and locate the submit.php file.<br>What email address is used by the adversary to collect compromised credentials?</blockquote><p><a href="/service/mailto:m3npat@yandex.com">m3npat@yandex.com</a></p><blockquote>Return to the phishing URL and locate the flag.txt file.<br>Using <a href="https://gchq.github.io/CyberChef/#recipe=From_Base64(&#39;A-Za-z0-9%2B/%3D&#39;,true,false)Reverse(&#39;Character&#39;)&amp;ieol=CRLF">CyberChef</a> to decode the flag, what is the secret value?</blockquote><p>THM{pL4y_w1Th_tH3_URL}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97f64e3281ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing Prevention]]></title>
            <link>https://medium.com/@vishnuvardhan3530/phishing-prevention-0b23e0d57821?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b23e0d57821</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 07:18:09 GMT</pubDate>
            <atom:updated>2026-10-28T07:18:09.725Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to defend against phishing emails.</p><h3><strong>Introduction</strong></h3><p>Phishing remains one of the most common and effective ways for attackers to gain initial access to target systems. To counter this, defenders can deploy a variety of tools and controls designed to protect users from malicious emails.</p><p>The MITRE ATT&amp;CK Framework describes <a href="https://attack.mitre.org/techniques/T1598">Phishing for Information</a> as the attempt to trick targets into divulging information.</p><p>In this room, you’ll learn about various security measures organizations can implement to prevent, detect, and mitigate phishing threats.</p><h3>Learning Objectives</h3><ul><li>Understand core email security controls (SPF, DKIM, DMARC, S/MIME)</li><li>Analyze SMTP network traffic and email content</li><li>Explore anti-phishing protection measures</li></ul><h3>Optional Prerequisites</h3><ul><li>Cover <a href="https://tryhackme.com/room/phishingyl">Phishing</a> to gain an overview of phishing campaigns</li><li>Check out <a href="https://tryhackme.com/room/phishingemails1tryoe">Phishing Analysis Fundamentals</a> to learn common phishing types</li></ul><p>Answer the questions below</p><p>I understand the learning objectives and am ready to learn about phishing prevention!</p><p>No Answer Needed</p><h3><strong>Sender Policy Framework(SPF)</strong></h3><p>Dmarcian, a platform dedicated to helping organizations protect email domains from phishing, defines the <strong>Sender Policy Framework</strong> (<a href="https://dmarcian.com/what-is-spf/"><strong>SPF</strong></a>) as follows:</p><p>“Sender Policy Framework (SPF) is used to authenticate the sender of an email. With an SPF record in place, Internet Service Providers can verify that a mail server is authorized to send email for a specific domain. An SPF record is a DNS TXT record containing a list of the IP addresses that are allowed to send email on behalf of your domain.”</p><p>Let’s take a look at a workflow diagram for SPF</p><p>So, in essence, when an email is sent, the receiving mail server checks the domain’s SPF record to verify whether the sending server is authorized to send messages on behalf of that domain. The delivery of the email (intended action) is based on the result of the SPF record verification.</p><p>Verification ResultIntended ActionPass, Neutral, NoneAccept (Allow and process the email)SoftFail, PermErrorFlag (Mark as suspicious but allow)Fail, TempErrorReject (Immediately discard the email)</p><h3>SPF Records</h3><p>Let’s take a look at a sample SPF record and break down its format. Further information on SPF Record Syntax can be found <a href="https://dmarcian.com/spf-syntax-table/">here</a>.</p><p>v=spf1 ip4:127.0.0.1 include:_spf.google.com -all</p><ul><li>v=spf1 Signifies the start of the SPF record</li><li>ip4:127.0.0.1 Specifies which IP can send mail (IPv4 in this case)</li><li>include:_spf.google.com Specifies which domain can send mail</li><li>-all Non-authorized emails will be rejected</li></ul><h3>Tools</h3><p>The <a href="https://dmarcian.com/spf-survey/"><strong>SPF Surveyor</strong></a> tool from dmarcian enables us to gain a visual look at DNS records. It also helps ensure the record uses the correct syntax.</p><p>Let’s take a look at <strong>TryHackMe</strong>’s SPF record as an example.</p><p>You may notice that no IP addresses are visibly present in the main record, but three domains are listed. In this case, all IP addresses authorized by the domains will be recognized as legitimate senders.</p><ul><li>_spf.google.com</li><li>email.chargebee.com</li><li>7168674.spf05.hubspotemail.net</li></ul><p><strong>Google Admin Toolbox </strong><a href="https://toolbox.googleapps.com/apps/messageheader/"><strong>Messageheader</strong></a> allows you to analyze delivery details using an email’s full header. It shows various record results, including SPF. Check out the example below, which shows the SPF record as softfail with IP Unknown!. A SoftFail means the sending mail server is not listed as an authorized sender, but the receiving server will still accept the email and flag it as suspicious. In this case, the sending IP address could not be verified.</p><p>Answer the questions below</p><blockquote>Based on TryHackMe’s SPF record above, how many domains are authorized to send email on its behalf?</blockquote><p>Ans: 3</p><blockquote>What is the intended action of an email that returns a SoftFail verification result?</blockquote><p>Ans: Flag</p><h3><strong>DomainKeys Identified Mail(DMS)</strong></h3><p><strong>DomainKeys Identified Mail</strong> (<a href="https://dmarcian.com/what-is-dkim/"><strong>DKIM</strong></a>) is defined as follows:</p><p>“DKIM stands for DomainKeys Identified Mail and is used for the authentication of an email that’s being sent. Like SPF, DKIM is an open standard for email authentication that is used for DMARC alignment. A DKIM record exists in the DNS, but it is more complex than SPF. DKIM’s advantage is that it can survive forwarding, which makes it superior to SPF and a foundation for securing your email.”</p><p>Having a look at the workflow diagram for DKIM</p><p>Let’s break it down. When an email is sent, the sending mail server uses a private key to add a digital signature to the email. The receiving server retrieves the public key from the domain’s DKIM record to verify that the message truly came from the domain. If the signature matches, the email is authentic; otherwise, it may be flagged or rejected.</p><h3>DKIM Records</h3><p>Here is a sample DKIM record, along with its components.</p><p>v=DKIM1; k=rsa; p=&lt;public_key&gt;</p><ul><li>v=DKIM1 Specifies the version of DKIM being used (optional)</li><li>k=rsa The key type. The RSA encryption algorithm is standard</li><li>p= This is the public key that will be matched to the private key to verify the DKIM signature</li></ul><p>Note: <em>DKIM record formats vary and may include other tags depending on the mail provider or implementation.</em></p><p>Dmarcian has some great <a href="https://dmarcian.com/dkim-selectors/">resources</a> if you wish to learn further about DKIM. You can also check out their <a href="https://dmarcian.com/dkim-inspector/">DKIM Record Checker</a> and <a href="https://dmarcian.com/dkim-validator/">Validator</a>.</p><p><strong>Sample Spam Email Header</strong></p><p>The image below is a snippet of an email header that was marked as spam with a DKIM result of permerror, indicating a permanent failure in DKIM verification. This could be the result of an invalid signature, a missing or incorrect DNS record, a forwarding server making a modification, or a misconfiguration in DKIM setup.</p><p>Answer the questions below</p><blockquote>Based on the sample header above, what is the reason for the permerror?</blockquote><p>Ans: no key for signature</p><h3><strong>Domain-Based Message Authentication, Reporting, and Conformance (DMARC)</strong></h3><p><strong>Domain-Based Message Authentication, Reporting, and Conformance</strong> (<a href="https://dmarcian.com/getting-started-with-dmarc/"><strong>DMARC</strong></a>) is defined as follows:</p><p>“DMARC, an open source standard, uses a concept called alignment to tie the result of two other open source standards, SPF (a published list of servers that are authorized to send email on behalf of a domain) and DKIM (a tamper-evident domain seal associated with a piece of email), to the content of an email.”</p><p>This means that DMARC ensures the sender’s domain matches the domains verified by SPF and DKIM. If the alignment fails, DMARC instructs the recipient server on how to handle the email based on a policy specified in the record.</p><h3>DMARC Records</h3><p>Here is a breakdown of a DMARC record and its components.</p><p>v=DMARC1; p=quarantine; rua=mailto:postmaster@website.com</p><ul><li>v=DMARC1: The version of DMARC (required)</li><li>p=quarantine The DMARC policy (quarantine = move to the spam folder)</li><li>rua=mailto:postmaster@website.com An optional tag. In this case, aggregate reports will be sent to the email specified</li></ul><p>Here is some <a href="https://dmarcian.com/what-is-a-dmarc-record/">further reading</a> about DMARC records if you’re interested in learning more.</p><h3>Domain Checker</h3><p>Another great <a href="https://dmarcian.com/domain-checker/">tool</a> by dmarcian that inspects DMARC, SPF, and DKIM records to identify any issues. Let’s try it out on microsoft.com.</p><p>In the screenshot below, you can see that microsoft.com passed all the checks. Clicking the details will allow you to examine each record and policy more closely. As shown in the record below, all emails that fail the DMARC check will be rejected based on the p=reject policy tag.</p><p>Answer the questions below</p><blockquote>Which DMARC policy provides the greatest amount of protection by blocking emails that fail the DMARC check?</blockquote><p>Ans: p=reject</p><h3><strong>Secure/Multipurpose Internet Mail Extensions (S/MIME)</strong></h3><p><strong>Secure/Multipurpose Internet Mail Extensions</strong> (<a href="https://learn.microsoft.com/en-us/exchange/security-and-compliance/smime-exo/smime-exo"><strong>S/MIME</strong></a>) is a standard protocol for sending digitally signed and encrypted messages. It is based on public key cryptography, where the private key is never shared and the public key can be distributed openly. The two main components and security features of S/MIME are:</p><p><strong>Digital Signature</strong></p><p>The sender signs the message with their private key, the recepient verifies the sender’s identity using the sender’s public key. This security feature provides:</p><ul><li><strong>Authentication</strong>: Confirms the sender’s identity through their digital certificate</li><li><strong>Non-repudiation</strong>: Ensures the sender cannot deny sending the message</li><li><strong>Data Integrity</strong>: Detects any changes to the message after it’s signed</li></ul><p><strong>Encryption</strong></p><p>The sender encrypts the message using the recipient’s public key, allowing only the recipient to decrypt it with their private key. This security feature provides:</p><ul><li><strong>Confidentiality</strong>: Keeps the content private and readable only by the intended recipient</li></ul><h3>S/MIME Example</h3><ul><li>Bob wishes to securely send the email with S/MIME to Mary</li><li>Bob creates a digital certificate to generate the <strong>Digital Signature</strong></li><li>Bob “signs” the email message with his private key (<strong>Digital Signature</strong>)</li><li>Bob openly shares his public key with Mary (<strong>Digital Signature</strong>)</li><li>Bob also asks the public key of Mary to encrypt the email (<strong>Encryption</strong>)</li><li>Mary verifies Bob’s message with Bob’s public key (<strong>Digital Signature</strong>)</li><li>Mary decrypts the received message with her private key (<strong>Encryption</strong>)</li><li>To send a reply email, Mary performs the same procedure from the start</li><li>Both Bob and Mary will now have each other’s certificates for future correspondence</li></ul><p>Check out the graphic below for a visual representation of how public key cryptography works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WhD4EuXm4a4XSLqT.png" /></figure><p>Answer the questions below</p><blockquote>Which S/MIME component ensures that only the intended recipient can read the contents of an email message?</blockquote><p>Ans: Encryption</p><h3><strong>Analyzing SMTP Response</strong></h3><p>In this task, you will analyze a PCAP file with SMTP traffic. Some familiarity with traffic analysis using <a href="https://tryhackme.com/room/wireshark">Wireshark</a> will be helpful, as well as knowledge of <a href="https://www.wireshark.org/docs/dfref/s/smtp.html">SMTP Wireshark filters</a> and <a href="https://www.mailersend.com/blog/smtp-codes">status codes</a>.</p><p>Answer the questions below</p><blockquote>Which Wireshark filter can you use to narrow down your results based on SMTP response codes?</blockquote><p>smtp.response.code</p><blockquote>How many packets in the capture contain the SMTP response code 220 Service ready?</blockquote><p>19</p><blockquote>One SMTP response indicates that an email was blocked by spamhaus.org. What response code did the server return?</blockquote><p>553</p><blockquote>Based on the packet from the previous question, what is the full Response code: message?</blockquote><p>Requested action not taken: mailbox name not allowed (553)</p><blockquote>Search for response code 552. How many messages were blocked for presenting potential security issues?</blockquote><p>6</p><h3><strong>Inspecting Emails and Attachments</strong></h3><p>In this task, you’ll move beyond SMTP status codes and responses and begin analyzing SMTP traffic using the same traffic capture from the task above. You will utilize the <strong>Internet Message Format</strong> (<a href="https://www.wireshark.org/docs/dfref/i/imf.html"><strong>IMF</strong></a>) to examine the inner details of emails, such as sender and recipient fields, content type, and attachments.</p><p>Answer the questions below</p><blockquote>How many SMTP packets are available for analysis?</blockquote><p>512</p><blockquote>What is the name of the attachment in packet 270?</blockquote><p>document.zip</p><blockquote>According to the message in packet 270, which Host IP address is not responding, making the message undeliverable?</blockquote><p>212.253.25.152</p><blockquote>By filtering for imf, which email client was used to send the message containing the attachment attachment.scr?</blockquote><p>Microsoft Outlook Express 6.00.2600.0000</p><blockquote>Which type of encoding is used for this potentially malicious attachment?</blockquote><p>base64</p><h3><strong>How Organizations Stop Phishing</strong></h3><p>Now that you’ve explored how emails are authenticated through mechanisms like SPF, DKIM, and DMARC, and analyzed real SMTP traffic and message contents, let’s explore some modern solutions that enhance email security and reduce phishing risks.</p><h3>Technical Defenses</h3><p>Modern email systems employ various technical controls to help detect and block phishing messages before they reach users.</p><ul><li><a href="https://www.spamhaus.org/resource-hub/ip-domain-reputation/"><strong>Email Filtering</strong></a>:<strong> </strong>Provides filtering based on IP and domain reputation, allowing for blocking or quarantining of suspicious messages.</li><li><a href="https://www.cloudflare.com/learning/email-security/secure-email-gateway-seg/"><strong>Secure Email Gateways</strong></a> (SEGs): Scan messages to detect impersonation attempts, spoofing, and other phishing techniques that other filters might miss.</li><li><a href="https://learn.microsoft.com/en-us/defender-office-365/safe-links-about"><strong>Link Rewriting</strong></a>: Replaces suspicious or unknown URLs with safe, redirected ones, giving the system time to scan and verify the link.</li><li><a href="https://learn.microsoft.com/en-us/defender-office-365/safe-attachments-about"><strong>Sandboxing</strong></a>: Isolates and tests suspicious links or attachments in a secure, virtual environment to check for malicious behavior.</li></ul><h3>User-Facing Tools &amp; Training</h3><p>Even with strong technical defenses in place, some phishing emails will inevitably reach users. Giving users clear visual cues and education is essential.</p><ul><li><strong>Trust &amp; Warning Indicators</strong>: Modern email platforms display visual cues to help users understand if a message is safe. A banner may read “External Sender,” “Suspicious Link,” or signify that a message is from a trusted organization or sender.</li><li><strong>Phishing Reporting</strong>: Easy, in-email reporting options that let users quickly report suspicious messages.</li><li><strong>User Awareness Training</strong>: Train employees on identifying phishing attempts, social engineering tactics, and safe email practices.</li><li><strong>Phishing Simulation Exercises</strong>: Run controlled phishing campaigns to test and reinforce employee training.</li></ul><p>Answer the questions below</p><blockquote>A security team wants to implement a control to detect hidden malware inside email attachments.<br>They need a way to analyze suspicious files without risking infection on real systems.<br>Which protective technique would allow them to observe a file’s behavior safely?</blockquote><p>SandBoxing</p><h3><strong>Conclusion</strong></h3><p>In this room, you explored how technologies like SPF, DKIM, DMARC, and S/MIME work together to authenticate email and protect users against phishing. You then learned how to interpret SMTP response codes and analyze SMTP traffic to understand how email servers handle messages. Finally, you examined the tools and technologies organizations use to detect and prevent phishing attempts, combined with user-focused awareness and reporting mechanisms.</p><p>Explore the rooms below to expand your understanding of phishing.</p><ul><li>Check out <a href="https://tryhackme.com/room/phishingemails2rytmuv">Phishing Emails in Action </a>to learn about investigating suspicious emails.</li><li>Cover <a href="https://tryhackme.com/room/phishingemails3tryoe">Phishing Analysis Tools </a>for an overview of the tools available for email investigation.</li></ul><p>Answer the questions below</p><p>Complete the room and continue on your cyber learning journey!</p><p>No Answer Needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b23e0d57821" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing Analysis Tools-TryHackMe]]></title>
            <link>https://medium.com/@vishnuvardhan3530/phishing-analysis-tools-tryhackme-e131558c3177?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/e131558c3177</guid>
            <category><![CDATA[tryhack]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[soc]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 05:10:12 GMT</pubDate>
            <atom:updated>2026-10-28T05:10:12.952Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn the tools used to aid an analyst to investigate suspicious emails.</p><h3><strong>Introduction:</strong></h3><p>In the previous two rooms of the <a href="https://tryhackme.com/module/phishing">Phishing Analysis module</a>, you explored the fundamentals of email header and body analysis, along with how to investigate links and attachments by examining the email source code. In this room, you will build on that foundation by learning about the tools that enable deeper analysis, then apply your skills by investigating three real-world phishing cases.</p><h3>Objectives</h3><ul><li>Understand what information should be collected during an email analysis</li><li>Learn about the tools that enable effective email investigation</li><li>Explore IP and URL analysis, including reputation lookups</li><li>Investigate phishing cases to apply your understanding and strengthen your analysis skills</li></ul><h3>Prerequisites</h3><ul><li>Check out <a href="https://tryhackme.com/room/phishingemails1tryoe">Phishing Analysis Fundamentals</a> for an overview of email communications and analysis</li><li>Cover <a href="https://tryhackme.com/room/phishingemails2rytmuv">Phishing Emails in Action</a> to gain experience analyzing phishing emails</li></ul><p>Answer the questions below</p><p>I am ready to learn about phishing analysis tools!</p><p>No Answer Needed</p><h3><strong>Identifying Artifacts</strong></h3><p>When analyzing a suspicious or malicious email, your first goal is to collect key artifacts that can help determine its legitimacy and intent. These artifacts provide the foundation for deeper investigation, such as reputation checks, threat intelligence lookups, and behavioral analysis.</p><h3>Header Artifacts</h3><p>When you begin your analysis with the email header, you should take note of the following points:</p><ul><li><strong>Sender email address:</strong> Where did the email originate from?</li><li><strong>Sender IP address:</strong> What is the source IP, and what does a reverse lookup reveal?</li><li><strong>Email subject line:</strong> Does it contain urgency or a call to action?</li><li><strong>Recipient email address:</strong> Who is the intended recipient (To/CC/BCC)?</li><li><strong>Reply-To email address:</strong> Where are responses being directed?</li><li><strong>Date and time:</strong> When was the email sent?</li></ul><h3>Body Analysis</h3><p>Next comes the email body, which has its own set of artifacts to be aware of:</p><ul><li><strong>URLs and hyperlinks:</strong> Identify all links and expand shortened URLs to reveal their true destination</li><li><strong>Attachment name(s):</strong> What files are included, and do their names or extensions appear suspicious</li><li><strong>Attachment hash:</strong> Generate a hash value for threat intelligence lookups</li></ul><p>Answer the questions below</p><p>I understand the key indicators to look for when analyzing an email.</p><p>No Answer needed</p><h3><strong>Email Header Analysis</strong></h3><p>Some of the key information we need to collect can be viewed directly within an email or web client, such as Gmail or Yahoo!. However, other details, such as the sender’s IP address and Reply-To information, can only be obtained from the email header. In <a href="https://tryhackme.com/room/phishingemails1tryoe">Phishing Analysis Fundamentals</a>, we explored how to manually extract this data by analyzing the email’s source code. Now, we will look at tools that can help streamline and automate this process.</p><h3>Mail Header Analysis</h3><p><a href="https://toolbox.googleapps.com/apps/messageheader/analyzeheader">Messageheader</a>, part of the Google Admin Toolbox, helps analyze email headers. By simply pasting the full header into the tool, you can quickly extract key details such as the sender’s IP address, routing path, and potential misconfigurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IYg3FrDBuxHitcDn.png" /></figure><p>Another great tool, <a href="https://mha.azurewebsites.net/">Message Header Analyzer</a>, can perform the same type of analysis. Check it out in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IED_iXoH8Oqn20Jh.png" /></figure><h3>IP and URL Reputation Analysis</h3><p>When investigating suspected phishing emails, it is important to determine the origin of any identified IP addresses and assess the reputations of any associated IPs or URLs. These indicators can reveal whether the infrastructure is legitimate or tied to known malicious activity. Fortunately, several free tools are available that allow analysts to quickly perform these checks and gain valuable insight into potential threats.</p><p><a href="https://ipinfo.io/">IPinfo</a> is a simple and effective tool for gathering information about an IP address. By entering an IP, you can quickly view details such as its geographic location and associated organization. This helps analysts determine whether an IP is potentially malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SNUB4Ma70IpPsh0e.png" /></figure><p><a href="https://urlscan.io/">URLScan.io</a> is a tool that enables analysts to safely investigate websites without visiting them directly. By submitting a URL, the service simulates a real user browsing session and records all activity generated by the page. It also captures a screenshot of the site and provides insight into its behavior, helping analysts quickly identify suspicious or potentially malicious content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eWWF03INiehl9biq.png" /></figure><p>Talos <a href="https://talosintelligence.com/reputation_center/">IP &amp; Domain Reputation Center </a>is a threat intelligence tool from Cisco that enables analysts to assess the reputation of IP addresses, domains, and networks. By submitting an indicator, you can quickly assess whether it has been associated with malicious activity and view its classification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VRBf8FmBraRPO3da.png" /></figure><p>Answer the questions below</p><blockquote>According to the Messageheader analysis shown in this task, what is the SPF result for the email?</blockquote><p>Ans: pass</p><h3><strong>Email Body Analysis</strong></h3><p>Now it’s time to shift your focus to the email body, where the true intent of a phishing message is often revealed. This is typically where the malicious payload is delivered, either as a hyperlink designed to lure users to a phishing site or as an attachment intended to compromise the system. During analysis, links can be extracted manually from the visible email content or by examining the underlying HTML and raw source to uncover hidden or obfuscated URLs.</p><h3>Mail Body Analysis</h3><p>Determining the destination of a link within an email can be as easy as right-clicking the link and selecting Copy link address (the option&#39;s name may vary depending on your browser or email provider). From here, you can safely assess the URL without actually following it to the destination page.</p><p>Another effective way to identify URLs in an email is to use a <a href="https://www.convertcsv.com/url-extractor.htm">URL extraction tool</a>. These tools let you paste raw email content and automatically parse all embedded links, saving time and reducing the risk of missing hidden or obfuscated URLs. Tools like <a href="https://gchq.github.io/CyberChef/#recipe=Extract_URLs(false,false,false)">CyberChef</a> can also perform this function, making them a versatile option for email analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vW9jdPnMMdO271Vo.png" /></figure><p><strong>Email Attachments</strong></p><p>If the email you are investigating contains an attachment, it may be tempting to download it directly using your email client. However, attachments should only be downloaded in a controlled environment, such as a lab machine or sandbox, to reduce the risk of accidental execution. Once safely obtained, you can use tools like the sha256sum command in a Linux environment to generate a hash value for further analysis and reputation checks.</p><p>Obtain SHA256 Hash</p><pre>user@tryhackme$ sha256sum shady_attachment.pdf<br>025ba9ce4a2118a9ca7b115c8869ff73bc16bad3732ba359cef1e60ad8f961f9 shady_attachment.pdf</pre><p>Once you’ve obtained the hash value, several sites can safely assist with analyzing the attached file. Let’s return to Talos <a href="https://talosintelligence.com/reputation_center/">IP &amp; Domain Reputation Center</a> from the previous task and analyze the hash value from above. In this case, the file is labeled as <em>Phishing</em>, <em>Malicious</em>, and <em>Spam</em>, indicating that this file is likely harmful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jeMfmeoLdzwTHNi4.png" /></figure><p><a href="https://www.virustotal.com/gui/">VirusTotal</a> is a widely used tool that allows analysts to check the reputation of files, URLs, IP addresses, and domains using data from dozens of security vendors. By submitting a file or indicator, you can quickly determine whether it has been flagged as malicious and review detailed detection results. VirusTotal also allows users to upload files and submit URLs for analysis, making it a powerful resource for investigating suspicious artifacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*446BHs9MSSDxaAzQ.png" /></figure><p>Answer the questions below</p><blockquote>What command can you use in a Linux environment to obtain the SHA256 hash value of an attachment?</blockquote><p>Ans: sha256sum</p><h3><strong>Malware Sandboxes</strong></h3><p>Fortunately, as defenders, we don’t need advanced malware analysis skills to fully understand a malicious attachment. Instead, we can use online tools and services known as malware sandboxes, which allow files to be uploaded and analyzed in a controlled environment. This enables us to safely observe the behavior of a potentially malicious file without risking our own systems. For example, by uploading an attachment from a suspicious email, we can identify the URLs it attempts to contact, any additional payloads it downloads, and other indicators of compromise (IOCs).</p><p><strong>ANYRUN</strong></p><p><a href="https://app.any.run/">ANY.RUN</a> is an interactive malware sandbox that allows analysts to safely execute and observe suspicious files and URLs in real time. Unlike traditional sandboxes, it provides a hands-on experience in which you can interact with the environment, monitor processes, view network activity, and analyze system changes as they happen. This makes it a powerful tool for understanding how malware behaves and identifying key indicators of compromise in a controlled setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3sr2rcFuHPJcmB7i.png" /></figure><p><strong>Hybrid Analysis</strong></p><p>Similar to the tool above, <a href="https://hybrid-analysis.com/">Hybrid Analysis</a> is a free malware analysis sandbox that allows analysts to upload and examine suspicious files in a controlled environment. It provides detailed insights into file behavior, including system changes, network activity, and indicators of compromise, helping analysts better understand the potential impact of a malicious file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*CpwitmmgATThcYsm.png" /></figure><p><strong>JOESandbox</strong></p><p>JOESecurity created the <a href="https://www.joesandbox.com/">JOESandbox</a> for advanced malware analysis. It performs both static and dynamic analysis on suspicious files and URLs. It generates comprehensive reports that highlight behavior, indicators of compromise, and threat classifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sa9ZFwm_tLiMP_1s.png" /></figure><p>Answer the questions below</p><blockquote>I understand the available sandbox environments for safely analyzing files and URLs.</blockquote><p>No Answer Needed</p><h3><strong>Using Phishtool</strong></h3><p>A powerful platform that streamlines phishing investigations is <a href="https://www.phishtool.com/">PhishTool</a>. It is designed for security professionals across multiple disciplines. PhishTool automates much of the manual work involved in analyzing suspicious emails. Whether you are a SOC analyst triaging user-reported messages, a threat intelligence analyst collecting indicators, or a researcher investigating phishing kits, PhishTool brings everything together in one place. By combining threat intelligence, OSINT, email metadata, and automated analysis workflows, PhishTool provides a centralized view of phishing activity, helping you quickly identify malicious intent and extract valuable indicators of compromise.</p><h3>Identifying Artifacts</h3><p>Upon uploading an email to PhishTool, you are presented with many of the valuable artifacts that we discussed in the second task. On the right-hand side, the tool provides the rendered HTML view, similar to what you’d see in your inbox, the raw HTML, and also the message source. Pretty useful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QB7q6kxjO4_PVPMk.png" /></figure><h3>Further Analysis</h3><p>By navigating the tabs across the top of PhishTool, you can analyze key components of the email, including authentication results, transmission paths, and any embedded URLs. If the email contains attachments, they can also be reviewed and analyzed directly within the platform, giving you a comprehensive view of the message in one place.</p><p>One of PhishTool’s standout features is its integration with VirusTotal, allowing you to view reputation and detection results without leaving the tool. This seamless integration helps speed up investigations by bringing external intelligence directly into your workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y3gNmYN3oU7HmvT1.png" /></figure><h3>Resolving the Case</h3><p>Once your analysis is complete, PhishTool allows you to formally document your findings. As shown below, the email can be marked as malicious, with key artifacts, such as sender addresses, originating IP, and embedded URLs, to be flagged. You can then add investigation notes and click <strong>Resolve</strong>, mirroring the documentation and case closure process used in a real SOC environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*m8tsA7DPUdmEsCbK.png" /></figure><p>Answer the questions below</p><blockquote>According to the VirusTotal analysis from above, which vendor categorized the URLs as phishing?</blockquote><p>Ans: SafeToOpen</p><h3><strong>Your Account is on Hold</strong></h3><p>In this scenario, you are a level 1 SOC analyst. As the first line of defense, you have to identify phishing and spam emails reported by end users. In the following tasks, you will step into that role and analyze multiple suspicious emails that have been escalated by coworkers. Your objective is to carefully review each email, extract key indicators, and identify any signs of malicious activity. The findings you uncover will help your team develop detection rules to prevent similar threats from reaching other users in the future.</p><p>To begin, click the <strong>Start Lab Machine</strong> button to deploy the lab machine. Once the environment has loaded in the split-screen view, navigate to the desktop and open the file Phish3Case1.eml. From there, begin your investigation by reviewing the email header and body, and apply the analysis techniques covered throughout this room.</p><p><strong>Note</strong>: The domains, URLs, and IP addresses referenced in this task have hosted real malicious content and may still pose a risk. Do not access or interact with them outside of a controlled lab environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*d1a4-KMN4xUYAOC6.png" /></figure><p>Answer the questions below</p><blockquote>What reputable brand is this email tailored to impersonate?</blockquote><p>Ans: Netflix</p><blockquote>Based on the email headers, who is the intended recipient of this message?</blockquote><p>Ans: <a href="/service/mailto:redacted@yahoo.com">redacted@yahoo.com</a></p><blockquote>In Thunderbird mail use View → Message Source.<br>What is the Received: from IP address?</blockquote><p>Ans: 10.197.37.234</p><blockquote>Check out the Return-Path field in the message source.<br>What would you consider a domain of interest based on this field?</blockquote><p>Ans: etekno.xyz</p><blockquote>Investigate the UPDATE ACCOUNT NOW button.<br>What is the shortened URL?</blockquote><p>Ans: <a href="https://t.co/yuxfZm8KPg?amp=1">https://t.co/yuxfZm8KPg?amp=1</a></p><h3><strong>Update Payment Details</strong></h3><p>In this task, you will investigate a malicious attachment using <strong>ANYRUN</strong>. This is a suspected phishing email masquerading as a Netflix payment update notification. Using the <a href="https://app.any.run/tasks/8bfd4c58-ec0d-4371-bfeb-52a334b69f59">provided sandbox</a>, review the file’s behavior, network activity, and any indicators of compromise. Pay close attention to how the attachment executes and interacts with the system.</p><p><strong>Note</strong>: The domains, URLs, and IP addresses referenced in this task have hosted real malicious content and may still pose a risk. Do not access or interact with them outside of a controlled lab environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b-qmQUM7JvDRDqz7.png" /></figure><p><em>The labels on the image will help you with the questions</em></p><p>Answer the questions below</p><blockquote>How does ANYRUN classify this suspected phishing email?</blockquote><p>Ans: Suspicious activity</p><blockquote>What is the name of the malicious PDF attachment?</blockquote><p>Ans: Payment-updateid.pdf</p><blockquote>What is the MD5 hash of the PDF file from Q2?</blockquote><p>Ans: 4a2775eae2ebef41901a3f08d3b857c8</p><blockquote>The PDF attachment contains a malicious URL.<br>What URL is shown in the Processes tab on the right?</blockquote><p>Ans: <a href="https://lihi1.com/JqdmJ">https://lihi1.com/JqdmJ</a></p><blockquote>Navigate to the Connections (or DNS Requests) tab.<br>Which IP does the domain from Q4 resolve to?</blockquote><p>Ans: 35.244.149.249</p><h3><strong>Excel Executable</strong></h3><p>In this task, you will continue your investigation using <strong>ANYRUN</strong>, focusing on a different <a href="https://app.any.run/tasks/82d8adc9-38a0-4f0e-a160-48a5e09a6e83">sandbox analysis</a> of a suspected phishing attachment. Review the execution results to identify notable behaviors, including process activity, network connections, and any indicators of compromise. Use these insights to better understand how the file operates and what makes it malicious.</p><p><strong>Note</strong>: The domains, URLs, and IP addresses referenced in this task have hosted real malicious content and may still pose a risk. Do not access or interact with them outside of a controlled lab environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1i1Ag_bNMupCKA4m.png" /></figure><p><em>For the last four questions, use the “More Info” menu</em></p><p>Answer the questions below</p><blockquote>What is the file name of the malicious Excel attachment?</blockquote><p>Ans: CBJ200620039539.xlsx</p><blockquote>What suspicious process is created after the attachment is launched?</blockquote><p>Ans: EQNEDT32.EXE</p><blockquote>Select the process and open its details (“More Info” menu).<br>What is the full path to the malicious binary?</blockquote><p>Ans: C:\Program Files\Common Files\Microsoft Shared\EQUATION\EQNEDT32.EXE</p><blockquote>What vulnerability (CVE ID) does this malicious file attempt to exploit?</blockquote><p>Ans: CVE-2017–11882</p><blockquote>Next, the malicious file downloads COVID-themed malware.<br>What domain was it downloaded from (e.g., malware.thm)?</blockquote><p>Ans: biz9holdings.com</p><blockquote>What network threat is associated with the download?</blockquote><p>Ans: ET INFO Suspicious GET Request with Possible COVID-19 URI M1</p><h3><strong>Conclusion</strong></h3><p>Ans: No Answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e131558c3177" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Boundary — Crypto Write-up]]></title>
            <link>https://medium.com/@vishnuvardhan3530/the-boundary-crypto-write-up-90b45de7314b?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b45de7314b</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 17:48:12 GMT</pubDate>
            <atom:updated>2026-09-02T17:48:12.719Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Platform:</strong> SkilBit / MetaCTF<br> <strong>Category:</strong> Crypto<br> <strong>Challenge:</strong> The Boundary</p><blockquote>Beyond the boundary, instruments return impossible readings; inside it, corridors shift whenever the lights fail. The station’s final transmission arrived buried beneath layers of containment telemetry, followed by silence.</blockquote><h3>Introduction</h3><p>This challenge initially looks like a problem involving large random hexadecimal values and some kind of cryptographic transformation.</p><p>The provided generator, however, gives us an important clue:</p><pre>&quot;field&quot;: &quot;GF(2)&quot;</pre><p>and the dimensions are:</p><pre>C0 = 27<br>C1 = 96<br>C2 = 94<br>H1 = 7</pre><p>The challenge is actually built around <strong>linear algebra over GF(2)</strong> and the idea of a <strong>quotient space / homology space</strong>.</p><p>The main goal is to remove the random “boundary” component from every ciphertext vector.</p><p>Once that is done, each ciphertext character is reduced to a 7-bit representation. The remaining difficulty is that the 7 homology generators themselves have been randomly mixed.</p><p>Fortunately, the plaintext has a predictable format:</p><pre>SkillBit{...}</pre><p>That known plaintext gives us enough information to recover the hidden transformation.</p><p>The final flag is:</p><pre>SkillBit{th3_b0und4ry_c4nn0t_h1d3_1ts_h0l3s}</pre><h3>1. Reading the Generator</h3><p>The most important part of the generator is:</p><pre>EDGE_DIMENSION = 96<br>BOUNDARY_RANK = 62<br>HOMOLOGY_DIMENSION = 7<br>EXTRA_FACES = 32</pre><p>So our vector space is:</p><p>C1=GF(2)96C_1 = GF(2)^{96}</p><p>There are 62 dimensions belonging to the boundary space and 7 dimensions belonging to the hidden homology space.</p><p>The generator creates an initial basis:</p><pre>ambient_basis = [1 &lt;&lt; index for index in range(EDGE_DIMENSION)]</pre><p>This is simply the standard basis:</p><p>e0,e1,…,e95e_0,e_1,\ldots,e_{95}</p><p>It then randomly mixes these vectors:</p><pre>hidden_basis = mix_basis(ambient_basis, rng)</pre><p>The resulting basis is split into:</p><pre>boundaries = hidden_basis[:BOUNDARY_RANK]</pre><pre>homology = hidden_basis[<br>    BOUNDARY_RANK:<br>    BOUNDARY_RANK + HOMOLOGY_DIMENSION<br>]</pre><p>Therefore:</p><pre>62 vectors → boundary space<br>7 vectors  → homology space</pre><p>Everything happens over:</p><p>GF(2)GF(2)</p><p>which contains only two values:</p><pre>0<br>1</pre><p>The particularly useful property is:</p><p>1+1=01+1=0</p><p>When working with bit vectors, addition in GF(2) is therefore simply:</p><pre>a ^ b</pre><p>For example:</p><pre>101101<br>+<br>011001<br>------<br>110100</pre><pre>0b101101 ^ 0b011001</pre><pre>^</pre><p>The generator creates 62 boundary vectors:</p><pre>boundaries = hidden_basis[:BOUNDARY_RANK]</pre><p>B=span⁡(boundaries)B = \operatorname{span}(boundaries)</p><p>Since the rank is 62:</p><p>dim⁡(B)=62\dim(B)=62</p><p>The ciphertext, however, is constructed as:</p><pre>chain = random_combination(boundaries, rng)</pre><pre>for bit, generator in enumerate(message_generators):<br>    if (character &gt;&gt; bit) &amp; 1:<br>        chain ^= generator</pre><p>C=Bi⊕HiC = B_i \oplus H_i</p><p>where:</p><ul><li>BiB_i is a random combination of boundary vectors.</li><li>HiH_i is a combination of the seven hidden message generators.</li></ul><p>This is the fundamental structure of the challenge.</p><h3>4. The Encryption Formula</h3><p>Let’s rewrite the encryption process mathematically.</p><p>For every plaintext character mm:</p><p>m=∑j=06bj2jm = \sum_{j=0}^{6} b_j2^j</p><p>where bjb_j are the seven bits of the ASCII character.</p><p>The generator creates:</p><p>C=B+∑j=06bjGjC = B + \sum_{j=0}^{6}b_jG_j</p><p>where:</p><ul><li>B∈span⁡(boundaries)B \in \operatorname{span}(boundaries)</li><li>GjG_j are the seven message generators.</li></ul><p>Therefore:</p><p>C=B+∑bjGj\boxed{ C=B+\sum b_jG_j }</p><p>The random boundary component makes the ciphertext look completely unrelated to the plaintext.</p><p>But that randomness exists entirely inside the boundary space.</p><p>That gives us the attack.</p><h3>5. Removing the Boundary Component</h3><p>Suppose we work in the quotient space:</p><p>C1/BC_1/B</p><p>Two vectors that differ only by a boundary vector become equivalent.</p><p>For example:</p><p>XX</p><p>and:</p><p>X+BX+B</p><p>represent the same element in the quotient space because:</p><p>(X+B)+B=X(X+B)+B=X</p><p>over GF(2).</p><p>Therefore:</p><p>[C]=[B+H][C]=[B+H]</p><p>becomes:</p><p>[C]=[H][C]=[H]</p><p>because:</p><p>[B]=0[B]=0</p><p>in the quotient.</p><p>This means the random boundary component completely disappears.</p><p>So after reducing every ciphertext vector modulo the boundary space, we are left with:</p><p>[Ci]=∑j=06bj[Gj][C_i] = \sum_{j=0}^{6}b_j[G_j]</p><p>This is only <strong>7 dimensions</strong>.</p><h3>6. Computing the Quotient Representation</h3><p>The provided JSON contains:</p><pre>&quot;boundary_1&quot;: [...]</pre><pre>&quot;boundary_2&quot;: [...]</pre><p>The generator computes:</p><pre>cycle_tests = nullspace_rows(<br>    boundaries + homology,<br>    EDGE_DIMENSION<br>)</pre><pre>&quot;boundary_1&quot;: [...]</pre><pre>&quot;boundary_2&quot;: [...]</pre><p>There are 94 vectors in boundary_2:</p><pre>62 original boundaries<br>+<br>32 additional random combinations<br>=<br>94 vectors</pre><p>Thus:</p><p>rank⁡(boundary2)=62\operatorname{rank}(boundary_2)=62</p><h3>7. Gaussian Elimination over GF(2)</h3><p>To work with the boundary space, we perform Gaussian elimination using XOR.</p><p>A convenient representation is an integer where each bit represents one coordinate.</p><p>For a vector:</p><pre>101001...</pre><p>The basic elimination operation is:</p><pre>row ^= pivot</pre><p>This works because:</p><p>x−x=x+x=0x-x=x+x=0</p><p>in GF(2).</p><p>A typical elimination routine looks like:</p><pre>def insert_basis(v, basis):<br>    while v:<br>        p = v.bit_length() - 1</pre><pre>        if p in basis:<br>            v ^= basis[p]<br>        else:<br>            basis[p] = v<br>            return</pre><h3>8. Reducing the Ciphertext</h3><p>For each ciphertext vector, we perform the same elimination against the boundary basis.</p><p>If the vector can be completely reduced to zero, it belongs entirely to the boundary space.</p><p>Otherwise, the remaining vector is its representative in the quotient space.</p><p>Conceptually:</p><pre>ciphertext<br>     |<br>     v<br>remove boundary components<br>     |<br>     v<br>7-dimensional homology component</pre><p>96−62=3496–62=34</p><p>the quotient of the full 96-dimensional space by the boundary space has dimension 34.</p><p>However, the actual message generators occupy only a <strong>7-dimensional subspace</strong> inside that quotient.</p><p>So the meaningful plaintext information is only seven bits per character.</p><h3>9. The Hidden Message Generators</h3><p>The generator performs another random mixing:</p><pre>message_generators = mix_basis(homology, rng)</pre><pre>bit 0<br>bit 1<br>...<br>bit 6</pre><p>If the plaintext character has bits:</p><p>(b0,b1,…,b6)(b_0,b_1,\ldots,b_6)</p><p>then its reduced ciphertext is:</p><p>Ci=b0G0+b1G1+⋯+b6G6C_i = b_0G_0+b_1G_1+\cdots+b_6G_6</p><p>The GiG_i are unknown.</p><h3>10. The Known Plaintext Attack</h3><p>This is where the SkillBit flag format becomes extremely useful.</p><p>We know the plaintext starts with:</p><pre>SkillBit{</pre><pre>S<br>k<br>i<br>l<br>l<br>B<br>i<br>t<br>{</pre><pre>S = 0x53<br>k = 0x6b<br>i = 0x69<br>l = 0x6c<br>l = 0x6c<br>B = 0x42<br>i = 0x69<br>t = 0x74<br>{ = 0x7b</pre><pre>S = 1010011<br>k = 1101011<br>i = 1101001<br>l = 1101100<br>l = 1101100<br>B = 1000010<br>i = 1101001<br>t = 1110100<br>{ = 1111011</pre><p>Therefore we have equations of the form:</p><p>RS=M(1010011)R_S = M(1010011) Rk=M(1101011)R_k = M(1101011) Ri=M(1101001)R_i = M(1101001)</p><p>and so on.</p><p>Here MM represents the unknown 7×7 linear transformation created by the randomized message generators.</p><h3>11. Recovering the Transformation</h3><p>Because the transformation is linear, we don’t need to know the original random seed.</p><p>We simply solve the linear system.</p><p>The seven bits of the plaintext character form the input vector.</p><p>The reduced ciphertext gives us the corresponding output vector.</p><p>Using seven linearly independent known plaintext characters, we can construct:</p><p>Y=MXY = MX</p><p>where:</p><ul><li>XX is the known plaintext-bit matrix.</li><li>YY is the corresponding reduced-ciphertext matrix.</li><li>MM is the unknown transformation.</li></ul><p>Then:</p><p>M=YX−1M=YX^{-1}</p><p>Everything is over GF(2).</p><p>Once MM is recovered, we calculate:</p><p>X=M−1YX=M^{-1}Y</p><p>for every ciphertext character.</p><p>That gives us the original 7-bit ASCII values.</p><h3>12. Why SkillBit{ Is Enough</h3><p>We don’t actually need to know the whole flag.</p><p>The known prefix gives us enough information to identify the hidden linear mapping.</p><p>This is a classic <strong>known-plaintext attack</strong>.</p><p>The important distinction is that the encryption isn’t nonlinear.</p><p>The transformation is linear:</p><p>C=MxC=Mx</p><p>Therefore, known input/output pairs reveal the transformation.</p><p>Once the transformation is known, every other ciphertext character can be decoded.</p><h3>13. Solving the Complete Cipher</h3><p>The overall solving process is therefore:</p><pre>boundary_2<br>     |<br>     v<br>GF(2) Gaussian elimination<br>     |<br>     v<br>Boundary subspace<br>     |<br>     v<br>Reduce ciphertext modulo boundary space<br>     |<br>     v<br>7-dimensional message space<br>     |<br>     v<br>Use known &quot;SkillBit{&quot; prefix<br>     |<br>     v<br>Recover 7×7 linear transformation<br>     |<br>     v<br>Invert transformation<br>     |<br>     v<br>Decode every ciphertext character<br>     |<br>     v<br>FLAG</pre><p>A solver can be organized into four major components.</p><h3>Step 1 — Parse the hexadecimal vectors</h3><pre>vectors = [int(x, 16) for x in data]</pre><h3>Step 2 — Build the GF(2) basis</h3><p>Use XOR-based Gaussian elimination:</p><pre>def build_basis(vectors):<br>    basis = {}</pre><pre>    for v in vectors:<br>        while v:<br>            p = v.bit_length() - 1</pre><pre>            if p in basis:<br>                v ^= basis[p]<br>            else:<br>                basis[p] = v<br>                break</pre><pre>    return basis</pre><p>For each ciphertext vector:</p><pre>def reduce_vector(v, basis):<br>    while v:<br>        p = v.bit_length() - 1</pre><pre>        if p not in basis:<br>            break</pre><pre>        v ^= basis[p]</pre><pre>    return v</pre><h3>Step 4 — Recover the message mapping</h3><p>Take the reduced vectors corresponding to:</p><pre>SkillBit{</pre><pre>ASCII bits</pre><pre>homology coordinates</pre><h3>15. The Interesting Part: Topology as a Cipher</h3><p>The challenge uses terminology from algebraic topology.</p><p>The important concepts are:</p><h3>Boundary</h3><p>A boundary is represented as an element of a subspace generated by the boundary vectors.</p><h3>Cycle</h3><p>The generator creates:</p><pre>cycle_tests = nullspace_rows(boundaries + homology, EDGE_DIMENSION)</pre><h3>Homology</h3><p>The seven hidden vectors represent the actual message space.</p><p>The key idea is that homology classes identify structures that differ by boundaries.</p><p>In this challenge, that mathematical idea becomes the encryption mechanism.</p><p>The random boundary component is effectively noise that disappears when we move into the quotient space.</p><h3>16. Why the Cipher Looks Random</h3><p>Looking at the ciphertext:</p><pre>afab09bc74dd5ee740bae083<br>20fee4dad59e2cca08d7febe<br>5ee1d4910ed9184cec316d88<br>...</pre><p>That’s intentional.</p><p>Each character has been XORed with a random combination of the 62-dimensional boundary basis.</p><p>So even two characters with similar ASCII values can produce completely unrelated 96-bit vectors.</p><p>But that randomness is structured.</p><p>It doesn’t destroy the information.</p><p>It merely moves it inside the boundary subspace.</p><p>Once we quotient out that subspace, the hidden message structure becomes visible.</p><h3>17. Why the Extra 32 Faces Don’t Help</h3><p>The generator creates:</p><pre>face_boundaries = boundaries.copy()</pre><pre>for _ in range(EXTRA_FACES):<br>    face_boundaries.append(<br>        random_combination(boundaries, rng)<br>    )</pre><pre>62 + 32 = 94</pre><p>At first, this might look like 94 independent pieces of information.</p><p>They aren’t.</p><p>Every additional face is explicitly generated as a random combination of the existing boundary vectors.</p><p>Therefore:</p><p>span⁡(94 vectors)=span⁡(62 original boundaries)\operatorname{span}(94\ vectors) = \operatorname{span}(62\ original\ boundaries)</p><p>and the rank remains:</p><p>6262</p><p>So the extra 32 vectors are essentially camouflage.</p><h3>18. Why We Don’t Need the Seed</h3><p>The generator uses:</p><pre>rng = random.Random(seed)</pre><p>Normally, we might consider trying to recover the seed.</p><p>That would be unnecessary.</p><p>The important property is that all the information needed to remove the random boundary component is already contained in the published vectors.</p><p>We don’t care which random basis was generated.</p><p>We only care about the <strong>subspace it spans</strong>.</p><p>Linear algebra allows us to recover that subspace directly.</p><p>This is one of the most elegant aspects of the challenge.</p><h3>19. Final Flag</h3><p>After reducing the ciphertext vectors, recovering the hidden 7-dimensional transformation, and decoding the characters, the plaintext is:</p><pre>SkillBit{th3_b0und4ry_c4nn0t_h1d3_1ts_h0l3s}</pre><h3>🚩 Flag</h3><pre>SkillBit{th3_b0und4ry_c4nn0t_h1d3_1ts_h0l3s}</pre><p>This challenge combines several concepts that are useful in crypto CTFs.</p><h3>GF(2)</h3><p>Binary vector arithmetic where:</p><pre>addition = XOR</pre><p>Used to find a basis and perform vector reduction.</p><h3>Linear Algebra</h3><p>The encryption is ultimately a linear transformation:</p><p>y=Mxy=Mx</p><h3>Quotient Spaces</h3><p>The boundary component can be discarded by working modulo the boundary subspace:</p><p>C1/BC_1/B</p><h3>Homology</h3><p>The seven-dimensional homology space contains the actual message information.</p><h3>Known-Plaintext Attack</h3><p>The predictable:</p><pre>SkillBit{</pre><h3>Conclusion</h3><p>At first glance, <strong>The Boundary</strong> looks like an intimidating collection of 96-bit random hexadecimal values.</p><p>The generator reveals the real structure, though.</p><p>Every ciphertext character is constructed as:</p><p>C=B+∑j=06bjGj\boxed{ C=B+\sum_{j=0}^{6}b_jG_j }</p><p>The 62-dimensional boundary component BB is random, but it can be removed using GF(2) Gaussian elimination.</p><p>Once the ciphertext is projected into the relevant homology space, only seven dimensions remain.</p><p>The known SkillBit{ prefix then provides enough plaintext/ciphertext pairs to recover the hidden linear transformation. Inverting that transformation reveals the original ASCII characters.</p><p>The entire challenge can therefore be summarized as:</p><pre>96-bit ciphertext<br>       ↓<br>Remove 62-dimensional boundary<br>       ↓<br>Project into homology<br>       ↓<br>Recover 7×7 linear transformation<br>       ↓<br>Invert transformation<br>       ↓<br>ASCII plaintext<br>       ↓<br>SkillBit{th3_b0und4ry_c4nn0t_h1d3_1ts_h0l3s}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b45de7314b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keep it Secret, Keep it Signed — Crypto Write-up]]></title>
            <link>https://medium.com/@vishnuvardhan3530/keep-it-secret-keep-it-signed-crypto-write-up-18c5f70fbcde?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/18c5f70fbcde</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 17:31:28 GMT</pubDate>
            <atom:updated>2026-09-02T17:31:28.560Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Platform:</strong> SkilBit / MetaCTF<br><strong>Category:</strong> Crypto<br><strong>Challenge:</strong> Keep it Secret, Keep it Signed</p><blockquote>A grey wanderer sets a wax-sealed writ upon your palm and bids you carry it far, and swiftly, with nary a word to any soul who asks. Can you use it to access the magical vault?</blockquote><h3>Introduction</h3><p>This challenge is a classic example of why <strong>secret-prefix MACs using plain SHA-256 are vulnerable to length-extension attacks</strong>.</p><p>We are given the complete source code, so the important part of the challenge is identifying how the authentication mechanism works and finding a way to create a valid signature for a modified message without knowing the secret key.</p><p>The server uses:</p><pre>SHA-256(secret || message)</pre><p>where:</p><ul><li>secret is randomly generated for every connection.</li><li>The secret length is somewhere between <strong>16 and 32 bytes</strong>.</li><li>We are given a valid message and its SHA-256 digest.</li><li>We need to submit a message whose parsed cmd field is unseal.</li></ul><p>At first glance, this looks impossible because we don’t know the secret.</p><p>However, SHA-256 has a property that makes this construction vulnerable.</p><h3>1. Connecting to the Challenge</h3><p>The challenge provides an SSL service:</p><pre>ncat --ssl a69cfee9765f539b.live.sbhost.io 1337</pre><p>When connecting, we get:</p><pre>=== The Warden&#39;s Gate ===<br>The ring seals a writ as tag = SHA-256(secret || message).<br>The secret is 16..32 bytes, drawn anew for this audience.<br>Messages are key=value pairs joined by &#39;&amp;&#39;, exchanged as hex both ways.<br>The vault opens only for a writ whose cmd is &#39;unseal&#39;.</pre><p>The available commands are:</p><pre>HELP<br>WRIT<br>OPEN &lt;msg_hex&gt; &lt;seal_hex&gt;<br>QUIT</pre><p>The interesting command is WRIT.</p><p>It gives us a legitimate message and its corresponding MAC.</p><h3>2. Getting the Valid Message and MAC</h3><p>Sending:</p><pre>WRIT</pre><p>returns something similar to:</p><pre>message = 69643d636f757269657226657272616e643d64656c6976657226636d643d6361727279<br>seal    = &lt;64-character SHA-256 digest&gt;</pre><p>Converting the message from hexadecimal gives:</p><pre>id=courier&amp;errand=deliver&amp;cmd=carry</pre><p>The important part is:</p><pre>cmd=carry</pre><p>The vault, however, requires:</p><pre>cmd=unseal</pre><p>So our goal is essentially to transform:</p><pre>id=courier&amp;errand=deliver&amp;cmd=carry</pre><p>into something that the server parses as:</p><pre>cmd=unseal</pre><p>while still producing a valid MAC.</p><h3>3. Understanding the MAC</h3><p>The source code contains:</p><pre>def seal(message: bytes) -&gt; bytes:<br>    return hashlib.sha256(_SECRET + message).digest()</pre><p>So the MAC is:</p><pre>SHA256(secret || message)</pre><p>This is called a <strong>secret-prefix MAC</strong>.</p><p>The secret is unknown to us:</p><pre>_SECRET = os.urandom(_secret_len)</pre><p>and:</p><pre>_secret_len = SECRET_MIN + int.from_bytes(os.urandom(2), &quot;big&quot;) % (<br>    SECRET_MAX - SECRET_MIN + 1<br>)</pre><p>Therefore:</p><pre>16 &lt;= secret length &lt;= 32</pre><p>The challenge even explicitly tells us this range.</p><h3>4. The Important Vulnerability — Length Extension</h3><p>The critical weakness is using raw SHA-256 as:</p><pre>SHA256(secret || message)</pre><p>SHA-256 is based on the <strong>Merkle-Damgård construction</strong>.</p><p>Because of this construction, if we know:</p><pre>SHA256(secret || message)</pre><p>and know the length of:</p><pre>secret || message</pre><p>we can calculate the hash of:</p><pre>secret || message || padding || additional_data</pre><p>without knowing the secret itself.</p><p>This is called a:</p><h3>Length Extension Attack</h3><p>Conceptually, we have:</p><pre>Unknown secret<br>      |<br>      v<br>secret || message<br>      |<br>      v<br>SHA-256<br>      |<br>      v<br>known MAC</pre><p>We can take that known internal SHA-256 state and continue hashing:</p><pre>additional data</pre><p>producing a valid MAC for:</p><pre>secret || message || padding || additional_data</pre><p>The only unknown information we need is the secret’s length.</p><p>Fortunately, the challenge tells us:</p><pre>16..32 bytes</pre><p>That’s only 17 possibilities.</p><p>So we can simply try all of them.</p><h3>5. What Should We Append?</h3><p>The original message is:</p><pre>id=courier&amp;errand=deliver&amp;cmd=carry</pre><p>We want:</p><pre>cmd=unseal</pre><p>The natural thing to append is:</p><pre>&amp;cmd=unseal</pre><p>So our forged message becomes conceptually:</p><pre>id=courier&amp;errand=deliver&amp;cmd=carry<br>&lt;SHA-256 padding&gt;<br>&amp;cmd=unseal</pre><p>The padding looks like binary data, which is why the challenge asks us to exchange messages as hexadecimal.</p><h3>6. Why Does the Parser Help Us?</h3><p>The second vulnerability is in the query parser:</p><pre>def parse_query(message: bytes) -&gt; dict:<br>    fields = {}</pre><pre>    for pair in message.split(b&quot;&amp;&quot;):<br>        if b&quot;=&quot; in pair:<br>            key, value = pair.split(b&quot;=&quot;, 1)<br>        else:<br>            key, value = pair, b&quot;&quot;</pre><pre>        fields[key] = value</pre><pre>    return fields</pre><p>Notice:</p><pre>fields[key] = value</pre><p>If the same key appears multiple times, the later value overwrites the previous value.</p><p>For example:</p><pre>cmd=carry&amp;cmd=unseal</pre><p>is parsed as:</p><pre>{<br>    b&quot;cmd&quot;: b&quot;unseal&quot;<br>}</pre><p>because the second cmd wins.</p><p>This is exactly what we need.</p><p>Our forged message therefore contains:</p><pre>cmd=carry</pre><p>followed later by:</p><pre>cmd=unseal</pre><p>The parser keeps the second value.</p><h3>7. Putting the Two Vulnerabilities Together</h3><p>We have two important weaknesses.</p><h3>Vulnerability 1 — Weak MAC construction</h3><pre>SHA256(secret || message)</pre><p>allows a length-extension attack.</p><h3>Vulnerability 2 — Duplicate parameters</h3><p>The parser implements:</p><pre>last write wins</pre><p>for duplicate keys.</p><p>Combining them gives us:</p><pre>Original message:</pre><pre>id=courier&amp;errand=deliver&amp;cmd=carry<br></pre><pre>                |<br>                | Length extension<br>                v<br></pre><pre>Forged message:</pre><pre>id=courier&amp;errand=deliver&amp;cmd=carry<br>&lt;SHA-256 padding&gt;<br>&amp;cmd=unseal</pre><p>The server then parses the message.</p><p>The final dictionary effectively contains:</p><pre>cmd = unseal</pre><p>and therefore:</p><pre>fields.get(b&quot;cmd&quot;) == b&quot;unseal&quot;</pre><p>becomes true.</p><h3>8. Calculating the Forged MAC</h3><p>We know the original MAC:</p><pre>SHA256(secret || original_message)</pre><p>Suppose we guess:</p><pre>len(secret) = 20</pre><p>Then we know the length of:</p><pre>secret || original_message</pre><p>is:</p><pre>20 + len(original_message)</pre><p>We calculate the SHA-256 padding that would have been added after that data.</p><p>The forged message is:</p><pre>original_message<br>+<br>SHA256 padding<br>+<br>&quot;&amp;cmd=unseal&quot;</pre><p>Then we continue SHA-256 from the internal state represented by the original digest.</p><p>We repeat this for every possible secret length:</p><pre>16<br>17<br>18<br>...<br>31<br>32</pre><p>Only one will produce the correct MAC.</p><h3>9. Implementing the Attack</h3><p>I initially tried using hashpumpy, but depending on the Python version/environment it may not install cleanly.</p><p>Instead, I implemented the required SHA-256 compression functionality directly.</p><p>The important part of the exploit is:</p><pre>for secret_len in range(16, 33):</pre><pre>    forged_message, forged_mac = length_extension(<br>        original,<br>        seal_hex,<br>        b&quot;&amp;cmd=unseal&quot;,<br>        secret_len<br>    )</pre><pre>    command = (<br>        b&quot;OPEN &quot;<br>        + forged_message.hex().encode()<br>        + b&quot; &quot;<br>        + forged_mac.encode()<br>        + b&quot;\n&quot;<br>    )</pre><pre>    sock.sendall(command)</pre><p>We simply brute-force the unknown secret length.</p><p>Since there are only:</p><pre>32 - 16 + 1 = 17</pre><p>possibilities, this is trivial.</p><h3>10. The SHA-256 State</h3><p>A SHA-256 digest consists of eight 32-bit words:</p><pre>H0 H1 H2 H3 H4 H5 H6 H7</pre><p>For example, a digest:</p><pre>aabbccdd11223344...</pre><p>can be split into those internal state words.</p><p>The length-extension attack uses these values as the starting state for processing the appended data.</p><p>Instead of starting SHA-256 from its normal initial constants, we start from the state represented by the known MAC.</p><p>That allows us to calculate:</p><pre>SHA256(secret || message || padding || append)</pre><p>without knowing secret.</p><h3>11. Why the Secret Itself Isn’t Needed</h3><p>This is the most important concept in the challenge.</p><p>Normally, to calculate:</p><pre>SHA256(secret || message)</pre><p>we need the secret.</p><p>But after receiving the MAC, the server has effectively exposed the final SHA-256 state after processing:</p><pre>secret || message</pre><p>If we know how many bytes were processed, we can reproduce the padding and continue the computation.</p><p>We don’t need to know the actual bytes of the secret.</p><p>We only need:</p><pre>length(secret)</pre><p>And that is why the challenge’s restricted range of:</p><pre>16..32</pre><p>is so useful.</p><h3>12. Exploit Flow</h3><p>The complete attack can be summarized as:</p><pre>              SERVER<br>                |<br>                |<br>              WRIT<br>                |<br>                v<br>   message + valid SHA-256 MAC<br>                |<br>                v<br>       Guess secret length<br>          16 through 32<br>                |<br>                v<br>       SHA-256 length extension<br>                |<br>                v<br> original || padding || &amp;cmd=unseal<br>                |<br>                v<br>             OPEN<br>                |<br>                v<br>        Parser processes it<br>                |<br>                v<br>       duplicate cmd detected<br>                |<br>                v<br>          cmd = &quot;unseal&quot;<br>                |<br>                v<br>              FLAG</pre><h3>13. Result</h3><p>For the correct secret-length guess, the server accepts the forged MAC and reaches:</p><pre>if fields.get(b&quot;cmd&quot;) == b&quot;unseal&quot;:</pre><p>which releases the flag.</p><p>The successful response has the form:</p><pre>The warden&#39;s ring flares. The vault beneath the hill swings wide: SkillBit{l3ngth_3xt3ns10n_uns34ls_th3_v4ult}</pre><p>And that’s the flag.</p><h3>14. Why This Could Have Been Prevented</h3><p>The fundamental problem is the construction:</p><pre>SHA256(secret || message)</pre><p>Raw hash functions should generally <strong>not</strong> be used this way as MACs when the hash has a length-extension property.</p><p>A standard solution is <strong>HMAC</strong>:</p><pre>import hmac<br>import hashlib</pre><pre>def seal(message):<br>    return hmac.new(<br>        _SECRET,<br>        message,<br>        hashlib.sha256<br>    ).digest()</pre><p>HMAC is specifically designed to avoid this class of attack.</p><p>So instead of:</p><pre>SHA256(secret || message)</pre><p>we should use:</p><pre>HMAC-SHA256(secret, message)</pre><h3>15. Key Takeaways</h3><p>This challenge demonstrates several important cryptographic concepts:</p><h3>1. Never assume a hash is automatically a MAC</h3><p>A construction such as:</p><pre>SHA256(secret || message)</pre><p>can be vulnerable to length extension.</p><h3>2. SHA-256 has an exposed iterative structure</h3><p>The digest can be used as the internal state for continuing the computation.</p><h3>3. Secret length can be enough</h3><p>We don’t need to recover the secret itself. Knowing or guessing its length is sufficient for this attack.</p><h3>4. Input parsing can create a second vulnerability</h3><p>The duplicate-key behavior:</p><pre>cmd=carry&amp;cmd=unseal</pre><p>combined with:</p><pre>last write wins</pre><p>allows us to change the semantic meaning of the message.</p><h3>5. Small secret-length ranges are easy to brute-force</h3><p>There are only 17 possible lengths:</p><pre>16..32</pre><p>so trying every possibility is practical.</p><h3>Conclusion</h3><p><strong>Keep it Secret, Keep it Signed</strong> is a great demonstration of how cryptographic security can fail because of both the cryptographic construction and the application-layer parser.</p><p>The key observation was:</p><pre>SHA256(secret || message)</pre><p>is vulnerable to a <strong>length-extension attack</strong>.</p><p>The parser then gives us the final piece of the puzzle because duplicate keys overwrite previous values.</p><p>By extending the legitimate writ with:</p><pre>&amp;cmd=unseal</pre><p>and trying all possible secret lengths from 16 to 32 bytes, we can construct a valid MAC for the forged message without ever learning the secret.</p><p>The challenge therefore boils down to:</p><pre>Known MAC<br>    +<br>Length Extension<br>    +<br>Secret-length brute force<br>    +<br>Duplicate-key parser behavior<br>    =<br>Vault opened</pre><p><strong>Challenge solved. 🏰🔐</strong></p><h3>Tools &amp; Concepts Used</h3><ul><li>SHA-256</li><li>Secret-prefix MAC</li><li>Merkle-Damgård construction</li><li>SHA-256 length-extension attack</li><li>Hash internal state</li><li>Message padding</li><li>Duplicate parameter / last-write-wins parsing</li><li>Python</li><li>ncat --ssl</li></ul><p>If you’re working through crypto CTFs, <strong>length-extension attacks are definitely worth learning</strong>, especially for challenges involving constructions like:</p><pre>hash(secret + message)</pre><p>rather than proper HMAC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18c5f70fbcde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Kill Chain]]></title>
            <link>https://medium.com/@vishnuvardhan3530/cyber-kill-chain-c5fb78bbbccc?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5fb78bbbccc</guid>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 18:28:59 GMT</pubDate>
            <atom:updated>2026-08-19T18:28:59.984Z</atom:updated>
            <content:encoded><![CDATA[<p>The Cyber Kill Chain framework is designed for identification and prevention of the network intrusions. You will learn what the adversaries need to do in order to achieve their goals.</p><p><strong>Task1: Introduction</strong></p><p>The term <strong>kill chain</strong> is a military concept related to the structure of an attack. It consists of target identification, decision and order to attack the target, and finally the target destruction.</p><p>Thanks to Lockheed Martin, a global security and aerospace company, that established the Cyber Kill Chain® framework for the cybersecurity industry in 2011 based on the military concept. The framework defines the steps used by adversaries or malicious actors in cyberspace. To succeed, an adversary needs to go through all phases of the Kill Chain. We will go through the attack phases and help you better understand adversaries and their techniques used in the attack to defend yourself.</p><p>So, why is it important to understand how Cyber Kill Chain works?</p><p>The Cyber Kill Chain will help you understand and protect against ransomware attacks, security breaches as well as Advanced Persistent Threats (APTs). You can use the Cyber Kill Chain to assess your network and system security by identifying missing security controls and closing certain security gaps based on your company’s infrastructure.</p><p>By understanding the Kill Chain as a SOC Analyst, Security Researcher, Threat Hunter, or Incident Responder, you will be able to recognize the intrusion attempts and understand the intruder’s goals and objectives.</p><p>We will be exploring the following attack phases in this room:</p><ul><li>Reconnaissance</li><li>Weaponization</li><li>Delivery</li><li>Exploitation</li><li>Installation</li><li>Command &amp; Control</li><li>Actions on Objectives</li></ul><h3>Learning Objectives</h3><p>In this room, you will learn about each phase of the Cyber Kill Chain Framework, the advantages and disadvantages of the traditional Cyber Kill Chain.</p><p>Outcome<br>As a result, you will be ready to recognize different phases or stages of the attack carried out by an adversary and be able to break the “kill chain.”</p><p>no answer needed.</p><p><strong>Task2:</strong> <strong>Reconnaissance</strong></p><p><strong>Reconnaissance</strong> is the research and planning phase of an attack against a system or victim. Adversaries use this phase to gather information about their target to inform their next steps. This information can include infrastructure details, employee data, business processes, and exposed technologies. Reconnaissance is often passive and undetected.</p><p>Poor recon typically leads to sloppy attacks, while well informed adversaries can create highly targeted, believable payloads that increase their chances of success.</p><p>A valuable piece of recon is <strong>OSINT</strong> (Open-Source Intelligence). With OSINT, adversaries gather insights about their target through publicly available information. Some public sources where OSINT data can be collected from include:</p><ul><li>Search engines</li><li>Print and online media</li><li>Social media accounts</li><li>Online forums and blogs</li><li>Online public record databases</li><li>WHOIS and technical data</li></ul><p>Find out more about OSINT from this Varonis article, <a href="https://www.varonis.com/blog/what-is-osint/">“What is OSINT?”(opens in new tab)</a></p><h3>Reconnaissance Types</h3><ul><li><strong>Passive Recon:</strong> This involves having no direct interaction with the target. This may include WHOIS lookups, social media scraping, or reviewing breach data.</li><li><strong>Active Recon:</strong> This involves direct contact with the target with activities such as social engineering, port scanning, banner grabbing, or probing for open services.</li></ul><p>Let’s look at it from the attacker’s perspective, who initially doesn’t know what company he wants to attack.</p><p>A malicious attacker who names himself “Megatron” decides to conduct a very sophisticated attack that he has been planning out for years; he has been studying and researching different tools and techniques that could help him get to the last phase of the Cyber Kill Chain. But first, he needs to start from the Reconnaissance phase.</p><p>In order to operate in this phase, the attacker would need to conduct OSINT. Let’s have a look at Email harvesting.</p><p><strong>Email harvesting</strong> is the process of obtaining email addresses from public, paid, or free services. An attacker can use email-address harvesting for a phishing attack (a type of social-engineering attack used to steal sensitive data, including login credentials and credit card numbers). The attacker will have a big arsenal of tools available for reconnaissance purposes. Here are some of them:</p><ul><li><a href="https://github.com/laramies/theHarvester">theHarvester(opens in new tab)</a>: other than gathering emails, this tool is also capable of gathering names, subdomains, IPs, and URLs using multiple public data sources.</li><li><a href="https://hunter.io/">Hunter.io(opens in new tab)</a>: this is an email hunting tool that will let you obtain contact information associated with the domain.</li><li><a href="https://osintframework.com/">OSINT Framework(opens in new tab)</a>: OSINT Framework provides the collection of OSINT tools based on various categories.</li></ul><p>Answer the questions below</p><p>What is the name of the Intel Gathering Tool that is a web-based interface to the common tools and resources for open-source intelligence?</p><p><strong>Ans:</strong> OSINT Framework</p><p>What is the definition for the email gathering process during the stage of reconnaissance?</p><p><strong>Ans: </strong>email harvesting</p><p><strong>Task3: Weaponization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/0*xGYaDWrzXIpz1-qw.png" /></figure><p>After a successful reconnaissance stage, “Megatron” would work on turning the raw information into actionable attack tools through crafting <strong>malware</strong> and <strong>exploits</strong> into a <strong>payload</strong>. Most attackers usually use automated tools to generate the malware or refer to the <a href="https://www.kaspersky.com/resource-center/threats/deep-web">DarkWeb(opens in new tab)</a> to purchase the malware. More sophisticated actors or nation-sponsored APT (Advanced Persistent Threat Groups) would write their custom malware to make the malware sample unique and evade detection on the target.</p><p>Before we proceed, let’s define some key terminology.</p><p><strong>Malware</strong> is a program or software that is designed to damage, disrupt, or gain unauthorized access to a computer.</p><p><strong>Exploits</strong> are programs or code that take advantage of the vulnerability or flaw in the application or system.</p><p>A <strong>payload</strong> is a malicious code that the attacker runs on the system.</p><p>Continuing with our scenario, “Megatron” chooses to buy an already written payload from someone else in the DarkWeb, so that he can spend more time on the other phases.</p><p>In the Weaponization phase, the attacker can adopt the following tactics:</p><ul><li>Create an infected Microsoft Office document containing a malicious macros or VBA (Visual Basic for Applications) scripts.</li><li>Create a malicious payload or a very sophisticated worm, implant it on USB drives, and then distribute them in public.</li><li>Set up Command and Control (C2) infrastructure for executing the commands on the victim’s machine or deliver more payloads.</li><li>Infect the victim’s host with a backdoor, which would provide a way to access the computer system, and bypass the security mechanisms.</li><li>Tailoring phishing templates or OAuth-consent apps to look legitimate and dupe the victim.</li></ul><p>Answer the questions below</p><p>What is the term for automated scripts embedded in Microsoft Office documents that can be used to perform tasks or exploited by attackers for malicious purposes?</p><p><strong>Ans: macro</strong></p><p><strong>Task4: Delivery</strong></p><p>Delivery is when Megatron decides to choose the method for transmitting the payload or the malware onto the target environment. There are plenty of options to choose from:</p><ul><li>Phishing email: after conducting the reconnaissance and determining the targets for the attack, the malicious actor could craft a malicious email that would target either a specific person (spear phishing attack) or multiple people in the company. The email would contain a malicious link or email attachment that would result into a compromise.</li><li>USB drops offer the attacker a physical delivery medium into public places like coffee shops, car parks, or on the street. An attacker might decide to conduct a sophisticated USB Drop Attack by printing the company’s logo on the USB drives and mailing them to the company while pretending to be a customer sending the USB devices as a gift.</li><li>Watering hole attacks are targeted and designed to aim at a specific group of people by compromising the website they are usually visiting, redirecting them to a malicious website of the attacker’s choice or creation. Victims would unintentionally download malware or a malicious application to their computer, resulting in a drive-by download. An example can be a malicious pop-up asking to download a fake Browser extension.</li></ul><p>Answer the questions below</p><p>What do you call an attack targeting a specific group by infecting their frequently visited website?</p><p><strong>Ans:</strong> watering hole attack</p><p><strong>Task5: Exploitation</strong></p><p>Exploitation is the moment the attacker’s code executes on the target, taking advantage of a known vulnerability. In this phase, Megatron can opt to utilise a number of key techniques to gain access:</p><ul><li>Malicious macro execution: This may have been delivered through a phishing email, that would execute ransomware when the victim opens it.</li><li>Zero-day exploits: These leverages on unknown and unpatched flaws in a system. These exploits leave no opportunity for detection at the beginning.</li><li>Known CVEs: The attacker can choose to exploit unpatched public vulnerabilities found on the target environment.</li></ul><p>After gaining access to the system, the malicious actor could exploit software, system, or server-based vulnerabilities to escalate the privileges or move laterally through the network.</p><p>Signs of exploitation to look out for include:</p><ul><li>Unexpected process spawns.</li><li>Registry changes or new services created.</li><li>Suspicious command-line arguments found in system logs.</li></ul><p>Answer the questions below</p><p>What is the term for a cyber attack that exploits a software vulnerability that is unknown by software vendors?</p><p><strong>Ans:</strong> zero-day</p><p><strong>Task6: Installation</strong></p><p>As you have learned from the Weaponization phase, the backdoor lets an attacker bypass security measures and hide the access. A backdoor is also known as an access point.</p><p>Once the attacker gets access to the system, he would want to reconnect back to the system if he loses the connection to it or if he got detected and got the initial access removed. Or if the system is later patched, they will no longer have access to it. That is when the attacker needs to install a <a href="https://www.offensive-security.com/metasploit-unleashed/persistent-backdoors/"><strong>persistent backdoor(opens in new tab)</strong></a><strong>.</strong> A persistent backdoor will let the attacker access the system he compromised in the past. You can check out the <a href="https://tryhackme.com/room/windowslocalpersistence">Windows Persistence Room</a> to learn how an attacker can achieve persistence on Windows.</p><p>The persistence can be achieved through:</p><ul><li>Installing a <strong>web shell</strong> on the webserver. A web shell is a malicious script written in web development programming languages such as ASP, PHP, or JSP used by an attacker to maintain access to the compromised system. Because of the web shell simplicity and file formatting (.php, .asp, .aspx, .jsp, etc.) can be difficult to detect and might be classified as benign. You may check out this great article released by <a href="https://www.microsoft.com/security/blog/2021/02/11/web-shell-attacks-continue-to-rise/">Microsoft(opens in new tab)</a> on various web shell attacks.</li><li>Installing a backdoor on the victim’s machine. For example, the attacker can use <a href="https://www.offensive-security.com/metasploit-unleashed/meterpreter-backdoor/">Meterpreter(opens in new tab)</a> to install a backdoor on the victim’s machine. Meterpreter is a Metasploit Framework payload that gives an interactive shell from which an attacker can interact with the victim’s machine remotely and execute the malicious code.</li><li>Creating or modifying Windows services. This technique is known as <a href="https://attack.mitre.org/techniques/T1543/003/">T1543.003(opens in new tab)</a> on MITRE ATT&amp;CK (MITRE ATT&amp;CK® is a knowledge base of adversary tactics and techniques based on real-world scenarios). An attacker can create or modify the Windows services to execute the malicious scripts or payloads regularly as a part of the persistence. An attacker can use the tools like <strong>ssc.exe</strong> (sc.exe lets you Create, Start, Stop, Query, or Delete any Windows Service) and <a href="https://attack.mitre.org/software/S0075/">Reg(opens in new tab)</a> to modify service configurations. The attacker can also <a href="https://attack.mitre.org/techniques/T1036/"><strong>masquerade(opens in new tab)</strong></a> the malicious payload by using a service name that is known to be related to the Operating System or legitimate software.</li><li>Adding the entry to the “run keys” for the malicious payload in the Registry or the Startup Folder. By doing that, the payload will execute each time the user logs in to the computer. According to MITRE ATT&amp;CK, there is a startup folder location for individual user accounts and a system-wide startup folder that will be checked no matter what user account logs in.</li></ul><p>You can read more about the Registry Run Keys / Startup Folder persistence on one of the <a href="https://attack.mitre.org/techniques/T1547/001/">MITRE ATT&amp;CK techniques(opens in new tab)</a>.</p><p>In this phase, the attacker can also use the <a href="https://attack.mitre.org/techniques/T1070/006/"><strong>Timestomping(opens in new tab)</strong></a> technique to avoid detection by the forensic investigator and also to make the malware appear as a part of a legitimate program. The timestomping technique lets an attacker modify the file’s timestamps, including to modify, access, create and change times.</p><p>Answer the questions below</p><p>What technique is used to modify file time attributes to hide new or changes to existing files?</p><p><strong>Ans:</strong> Timestomping</p><p>What malicious script can be planted by an attacker on the web server to maintain access to the compromised system and enables the web server to be accessed remotely?</p><p><strong>Ans:</strong> web shell</p><p><strong>Task7: Command &amp; Control</strong></p><p>After getting persistence and executing the malware on the victim’s machine, Megatron opens up the C2 (Command and Control) channel through the malware to remotely control and manipulate the victim. This term is also known as <strong>C&amp;C or C2 Beaconing</strong> as a type of malicious communication between a C&amp;C server and malware on the infected host. The infected host will consistently communicate with the C2 server; that is also where the beaconing term came from.</p><p>The compromised endpoint would communicate with an external server set up by an attacker to establish a command &amp; control channel. After establishing the connection, the attacker has full control of the victim’s machine. Until recently, IRC (Internet Relay Chat) was the traditional C2 channel used by attackers. This is no longer the case, as modern security solutions can easily detect malicious IRC traffic.</p><p>The most common C2 channels used by adversaries include:</p><ul><li>HTTP on port 80 and HTTPS on port 443, where this type of beaconing blends the malicious traffic with the legitimate traffic and can help the attacker evade firewalls.</li><li>DNS (Domain Name Server), where the infected machine makes constant DNS requests to the DNS server that belongs to an attacker, this type of C2 communication is also known as DNS Tunneling</li></ul><p>Important to note that an adversary or another compromised host can be the owner of the C2 infrastructure.</p><p>Answer the questions below</p><p>What is the C2 communication where the victim makes regular DNS requests to a DNS server and domain which belong to an attacker.</p><p><strong>Ans: DNS tunneling</strong></p><p><strong>Task8: Actions of Objectives(Exfiltration)</strong></p><p>After going through six phases of the attack, Megatron can finally achieve his goals, which means taking action on the original objectives. With hands-on keyboard access, the attacker can achieve the following:</p><ul><li>Collect the credentials from users.</li><li>Perform privilege escalation (gaining elevated access like domain administrator access from a workstation by exploiting the misconfiguration).</li><li>Internal reconnaissance (for example, an attacker gets to interact with internal software to find its vulnerabilities).</li><li>Lateral movement through the company’s environment.</li><li>Collect and exfiltrate sensitive data.</li><li>Deleting the backups and shadow copies. Shadow Copy is a Microsoft technology that can create backup copies, snapshots of computer files, or volumes.</li><li>Overwrite or corrupt data.</li></ul><p>Answer the questions below</p><p>What technology is included in Microsoft Windows that can create backup copies or snapshots of files or volumes on the computer, even when they are in use?</p><p><strong>Ans: Shadow copy</strong></p><p><strong>Task9: Practice Analysis</strong></p><p>We really hope you enjoyed this room. In order to strengthen your knowledge, let’s do a practice analysis.</p><p><strong>Here is the real-world scenario for you to tackle:</strong></p><p><em>The infamous Target cyber-attack, which led to one of the largest data breaches in history took place on November 27, 2013.</em></p><p>On December 19th, 2013, Target released a <a href="https://corporate.target.com/news-features/article/2013/12/important-notice-unauthorized-access-to-payment-ca">statement(opens in new tab)</a> confirming the breach, stating that approximately 40 million credit and debit card accounts were impacted between Nov. 27 and Dec. 15, 2013. Target had to pay the fine of $18.5 million under the terms of the multistate <a href="https://www.nbcnews.com/business/business-news/target-settles-2013-hacked-customer-data-breach-18-5-million-n764031">settlement agreement(opens in new tab)</a>. This is considered to be the largest data-breach settlement in history.</p><p>How did the data breach happen? <strong>Deploy the static site</strong> attached to this task and apply your skills to<strong> build the Cyber Kill Chain of this scenario</strong>. Here are some tips to help you complete the practical:</p><p><strong>1. </strong>Add each of the 6 items on the list in the correct Kill Chain entry form on the <strong>Static Site</strong> Lab. Note that although the Cyber Kill Chain framework consists of 7 stages, only 6 are relevant to this specific scenario:</p><ul><li>exploit public-facing application</li><li>data from local system</li><li>powershell</li><li>dynamic linker hijacking</li><li>spearphishing attachment</li><li>fallback channels</li></ul><p><strong>2.</strong> Once you have placed all 6 items, use the <strong>Check answers</strong> button to verify your answers. Any item placed in the wrong Kill Chain stage will be underlined in red, so review those and try repositioning them until all answers are correct.</p><p><strong>Ans:</strong> THM{7HR347_1N73L_12_4w35om3}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5fb78bbbccc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unified Kill Chain]]></title>
            <link>https://medium.com/@vishnuvardhan3530/unified-kill-chain-e6d65023a439?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6d65023a439</guid>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 18:26:23 GMT</pubDate>
            <atom:updated>2026-08-19T18:26:23.458Z</atom:updated>
            <content:encoded><![CDATA[<p>The Unified Kill Chain is a framework which establishes the phases of an attack, and a means of identifying and mitigating risk to IT assets.</p><blockquote><strong>Task1: Introduction</strong></blockquote><p>Understanding the behaviours, objectives and methodologies of a cyber threat is a vital step to establishing a strong cybersecurity defence (known as a cybersecurity posture).</p><p>In this room, you will be introduced to the UKC (Unified Kill Chain) framework that is used to help understand how cyber attacks occur.</p><p><strong>Learning Objectives:</strong></p><ul><li>Understanding why frameworks such as the UKC are important and helpful in establishing a good cybersecurity posture</li><li>Using the UKC to understand an attacker’s motivation, methodologies and tactics</li><li>Understanding the various phases of the UKC</li><li>Discover that the UKC is a framework that is used to complement other frameworks such as MITRE.</li></ul><blockquote><strong>Task2: What is a “Kill Chain”</strong></blockquote><p>Originating from the military, a “Kill Chain” is a term used to explain the various stages of an attack. In the realm of cybersecurity, a “Kill Chain” is used to describe the methodology/path attackers such as hackers or APTs use to approach and intrude a target.</p><p>For example, an attacker scanning, exploiting a web vulnerability, and escalating privileges will be a “Kill Chain”. We will come to explain these stages in much further detail later in this room.</p><p>The objective is to understand an attacker’s “Kill Chain” so that defensive measures can be put in place to either pre-emptively protect a system or disrupt an attacker’s attempt.</p><p>Answer the questions below</p><p>Where does the term “Kill Chain” originate from?</p><p><strong>Ans</strong>: Military</p><blockquote><strong>Task3: What is “Threat Modelling”</strong></blockquote><p>Threat modelling, in a cybersecurity context, is a series of steps to ultimately improve the security of a system. Threat modelling is about identifying risk and essentially boils down to:</p><ol><li>Identifying what systems and applications need to be secured and what function they serve in the environment. For example, is the system critical to normal operations, and is a system holding sensitive information like payment info or addresses?</li><li>Assessing what vulnerabilities and weaknesses these systems and applications may have and how they could be potentially exploited</li><li>Creating a plan of action to secure these systems and applications from the vulnerabilities highlighted</li><li>Putting in policies to prevent these vulnerabilities from occurring again where possible (for example, implementing a software development life cycle (SDLC) for an application or training employees on phishing awareness).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*qh3ATQhV2XRtBZUz.png" /></figure><p>Threat modelling is an important procedure in reducing the risk within a system or application, as it creates a high-level overview of an organisation’s IT assets (an asset in IT is a piece of software or hardware) and the procedures to resolve vulnerabilities.</p><p>The UKC can encourage threat modelling as the UKC framework helps identify potential attack surfaces and how these systems may be exploited.</p><p>STRIDE, DREAD and CVSS (to name a few) are all frameworks specifically used in threat modelling. If you are interested to learn more, check out the “<a href="https://tryhackme.com/room/principlesofsecurity">Principles of Security</a>” room on TryHackMe.</p><p>Answer the questions below</p><p>What is the technical term for a piece of software or hardware in IT (Information Technology?)</p><p><strong>Ans:</strong> asset</p><blockquote><strong>Task4: Introducing the Unified Kill Chain</strong></blockquote><p>To continue from the previous task, Paul Pols’ <a href="https://www.unifiedkillchain.com/assets/The-Unified-Kill-Chain.pdf">Unified Kill Chain,(opens in new tab)</a> published in 2017, aims to complement (<strong>not compete</strong> with) other cybersecurity kill chain frameworks, such as Lockheed Martin’s and MITRE’s ATT&amp;CK.</p><p>The UKC states that there are 18 phases to an attack: Everything from reconnaissance to data exfiltration and understanding an attacker’s motive. These phases have been grouped together in this room into a few areas of focus for brevity, which will be detailed in the remaining tasks.</p><p>Some large benefits of the UKC over traditional cybersecurity kill chain frameworks include the fact that it is modern and extremely detailed (<strong>reminder</strong>: it has 18 phases officially, whereas other frameworks may have a small handful)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FQ1YV2EMclLCQqtz.png" /></figure><p><strong>Benefits of the Unified Kill Chain (UKC) FrameworkHow do Other Frameworks Compare?</strong>Modern (released in 2017, updated in 2022).Some frameworks, such as MITRE’s were released in 2013, when the cybersecurity landscape was very different.The UKC is extremely detailed (18 phases).Other frameworks often have a small handful of phases.The UKC covers an entire attack — from reconnaissance, exploitation, post-exploitation and includes identifying an attacker’s motivation.Other frameworks cover a limited amount of phases.The UKC highlights a much more realistic attack scenario. Various stages will often re-occur. For example, after exploiting a machine, an attacker will begin reconnaissance to pivot another system.Other frameworks do not account for the fact that an attacker will go back and forth between the various phases during an attack.</p><p>Answer the questions below</p><p>In what year was the Unified Kill Chain framework released?</p><p><strong>Ans:</strong> 2017</p><p>According to the Unified Kill Chain, how many phases are there to an attack?</p><p><strong>Ans:</strong> 18</p><p>What is the name of the attack phase where an attacker employs techniques to evade detection?</p><p><strong>Ans:</strong> Defence Evasion</p><p>What is the name of the attack phase where an attacker employs techniques to remove data from a network?</p><p><strong>Ans:</strong> Exfiltration</p><p>What is the name of the attack phase where an attacker achieves their objectives?</p><p><strong>Ans:</strong> Objectives</p><blockquote><strong>Task5: Goal: In(Initial Foothold)</strong></blockquote><p>The main focus of this series of phases is for an attacker to gain access to a system or networked environment. An attacker will employ numerous tactics to investigate the system for potential vulnerabilities that can be exploited to gain a foothold in the system. For example, a common tactic is the use of reconnaissance against a system to discover potential attack vectors (such as applications and services).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HHr_KF3DxLyXFHai.png" /></figure><p>This series of phases also accommodates for an attacker creating a form of persistence (such as files or a process that allows the attacker to connect to the machine at any time). Finally, the UKC accounts for the fact that attackers will often use a combination of the tactics listed above. We will explore the different phases of this section of the UKC in the headings below:</p><p><strong>Reconnaissance (</strong><a href="https://attack.mitre.org/tactics/TA0043/"><strong>MITRE Tactic TA0043(opens in new tab)</strong></a><strong>)</strong></p><p>This phase of the UKC describes techniques that an adversary employs to gather information relating to their target. This can be achieved through means of passive and active reconnaissance. The information gathered during this phase is used all throughout the later stages of the UKC (such as the initial foothold).</p><p>Information gathered from this phase can include:</p><ul><li>Discovering what systems and services are running on the target, this is beneficial information in the weaponisation and exploitation phases of this section.</li><li>Finding contact lists or lists of employees that can be impersonated or used in either a social engineering or phishing attack.</li><li>Looking for potential credentials that may be of use in later stages, such as pivoting or initial access.<br>Understanding the network topology and other networked systems can be used to pivot too.</li></ul><p><strong>Weaponization (</strong><a href="https://attack.mitre.org/tactics/TA0001/"><strong>MITRE Tactic TA0001(opens in new tab)</strong></a><strong>)</strong></p><p>This phase of the UKC describes the adversary setting up the necessary infrastructure to perform the attack. For example, this could be setting up a command and control server, or a system capable of catching reverse shells and delivering payloads to the system.</p><p><strong>Social Engineering (</strong><a href="https://attack.mitre.org/tactics/TA0001/"><strong>MITRE Tactic TA0001(opens in new tab)</strong></a><strong>)</strong></p><p>This phase of the UKC describes techniques that an adversary can employ to manipulate employees to perform actions that will aid in the adversaries attack. For example, a social engineering attack could include:</p><ul><li>Getting a user to open a malicious attachment in a phishing email.</li><li>Impersonating a web page and having the user enter their credentials.</li><li>Calling or visiting the target and impersonating a user (for example, requesting a password reset) or being able to gain access to areas of a site that the attacker would not previously be capable of (for example, impersonating a utility engineer).</li></ul><p><strong>Exploitation (</strong><a href="https://attack.mitre.org/tactics/TA0002/"><strong>MITRE Tactic TA0002(opens in new tab)</strong></a><strong>)</strong></p><p>This phase of the UKC describes how an attacker takes advantage of weaknesses or vulnerabilities present in a system. The UKC defines “Exploitation” as abuse of vulnerabilities to perform code execution. For example:</p><ul><li>Uploading and executing a reverse shell to a web application.</li><li>Interfering with an automated script on the system to execute code.</li><li>Abusing a web application vulnerability to execute code on the system it is running on.</li></ul><p><strong>Persistence (</strong><a href="https://attack.mitre.org/tactics/TA0003/"><strong>MITRE Tactic TA0003(opens in new tab)</strong></a><strong>)</strong></p><p>This phase of the UKC is rather short and simple. Specifically, this phase of the UKC describes the techniques an adversary uses to maintain access to a system they have gained an initial foothold on. For example:</p><ul><li>Creating a service on the target system that will allow the attacker to regain access.</li><li>Adding the target system to a Command &amp; Control server where commands can be executed remotely at any time.</li><li>Leaving other forms of backdoors that execute when a certain action occurs on the system (i.e. a reverse shell will execute when a system administrator logs in).</li></ul><p><strong>Defence Evasion (</strong><a href="https://attack.mitre.org/tactics/TA0005/"><strong>MITRE Tactic TA0005(opens in new tab)</strong></a><strong>)</strong></p><p>The “Defence Evasion” section of the UKC is one of the more valuable phases of the UKC. This phase specifically is used to understand the techniques an adversary uses to evade defensive measures put in place in the system or network. For example, this could be:</p><ul><li>Web application firewalls.</li><li>Network firewalls.</li><li>Anti-virus systems on the lab machine.</li><li>Intrusion detection systems.</li></ul><p>This phase is valuable when analysing an attack as it helps form a response and better yet — gives the defensive team information on how they can improve their defence systems in the future.</p><p><strong>Command &amp; Control (</strong><a href="https://attack.mitre.org/tactics/TA0011/"><strong>MITRE Tactic TA0011(opens in new tab)</strong></a><strong>)</strong></p><p>The “Command &amp; Control” phase of the UKC combines the efforts an adversary made during the “Weaponization” stage of the UKC to establish communications between the adversary and target system. An adversary can establish command and control of a target system to achieve its action on objectives. For example, the adversary can:</p><ul><li>Execute commands.</li><li>Steal data, credentials and other information.</li><li>Use the controlled server to pivot to other systems on the network.</li></ul><p><strong>Pivoting (</strong><a href="https://attack.mitre.org/tactics/TA0008/"><strong>MITRE Tactic TA0008(opens in new tab)</strong></a><strong>)</strong></p><p>“Pivoting” is the technique an adversary uses to reach other systems within a network that are not otherwise accessible (for example, they are not exposed to the internet). There are often many systems in a network that are not directly reachable and often contain valuable data or have weaker security.</p><p>For example, an adversary can gain access to a web server that is publically accessible to attack other systems that are within the same network (but are not accessible via the internet).</p><p>Answer the questions below</p><p>What is an example of a tactic to gain a foothold using emails?</p><p><strong>Ans:</strong> Phishing</p><p>Impersonating an employee to request a password reset is a form of what?</p><p><strong>Ans:</strong> Social Engineering</p><p>An adversary setting up the Command &amp; Control server is what phase of the Unified Kill Chain?</p><p><strong>Ans:</strong> Weaponization phase</p><p>Exploiting a vulnerability present on a system is what phase of the Unified Kill Chain?</p><p><strong>Ans:</strong> Exploitation</p><p>Moving from one system to another is an example of?</p><p><strong>Ans:</strong> Pivoting</p><p>Leaving behind a malicious service that allows the adversary to log back into the target is what?</p><p><strong>Ans:</strong> Persistence</p><blockquote><strong>Task6: Goal: Through(Network Propagation)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zfDj-pPXWtfb9oUU.png" /></figure><p>The “<strong>Through</strong>” goal follows a successful foothold being established on the target network. If defensive controls prevent the attacker from achieving their objective, they will seek to gain additional access and privileges to systems. The attacker would set up a base on one of the systems to act as their pivot point and use it to gather information about the internal network. The diagram below represents the individual attack phases of the “<strong>Through</strong>”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rLyFaeAl1HlV9aHH.png" /></figure><h4>Pivoting (<a href="https://attack.mitre.org/tactics/TA0008/">MITRE Tactic TA0008(opens in new tab)</a>)</h4><p>Once the attacker has access to the system, they would use it as their staging site and a tunnel between their command operations and the victim’s network. The system would also be used as the distribution point for all malware and backdoors at later stages.</p><h4>Discovery (<a href="https://attack.mitre.org/tactics/TA0007/">MITRE Tactic TA0007(opens in new tab)</a>)</h4><p>The adversary would uncover information about the system and the network it is connected to. Within this stage, the knowledge base would be built from the active user accounts, the permissions granted, applications and software in use, web browser activity, files, directories and network shares, and system configurations.</p><h4>Privilege Escalation (<a href="https://attack.mitre.org/tactics/TA0004/">MITRE Tactic TA0004(opens in new tab)</a>)</h4><p>Following their knowledge-gathering, the adversary would try to gain more prominent permissions within the pivot system. They would leverage the information on the accounts present with vulnerabilities and misconfigurations found to elevate their access to one of the following superior levels:</p><ul><li>SYSTEM/ ROOT</li><li>Local Administrator</li><li>A user account with Admin-like access</li><li>A user account with specific access or functions</li></ul><h4>Execution (<a href="https://attack.mitre.org/tactics/TA0002/">MITRE Tactic TA0002(opens in new tab)</a>)</h4><p>This is where they deploy their malicious code using the pivot system as their host. Remote trojans, C2 scripts, malicious links and scheduled tasks are deployed and created to facilitate a recurring presence on the system and uphold their persistence.</p><h4>Credential Access (<a href="https://attack.mitre.org/tactics/TA0006/">MITRE Tactic TA0006(opens in new tab)</a>)</h4><p>Working hand in hand with the Privilege Escalation stage, the adversary would attempt to steal account names and passwords through various methods, including keylogging and credential dumping. This makes them harder to detect during their attack as they would be using legitimate credentials.</p><h4>Lateral Movement (<a href="https://attack.mitre.org/tactics/TA0008/">MITRE Tactic TA0008(opens in new tab)</a>)</h4><p>With the credentials and elevated privileges, the adversary would seek to move through the network and jump onto other targeted systems to achieve their primary objective. The stealthier the technique used, the better.</p><p>Answer the questions below</p><p>As a SOC analyst, you pick up an alert pointing to failed logins from an administrator account.<br>What phase of the Unified Kill Chain would an attacker be seeking to achieve?</p><p>Ans: Privilege Escalation</p><p>Mimikatz, a known post-exploitation tool, was detected on the IT Manager’s workstation.<br>The Security logs show that the tool was attempting to dump OS and user secrets.<br>Which Unified Kill Chain phase does this activity correspond to?</p><p>Ans: Credential Access</p><p>Task7: Goal: Out(Action on Objectives)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*oVN6tlhmwG4NdX9l.png" /></figure><p>The “<strong>Out</strong>” goal wraps up the journey of an adversary’s attack on an environment, where they have critical asset access and can fulfil their attack goals. These goals are usually geared toward compromising the confidentiality, integrity and availability (CIA) triad. The tactics to be deployed by an attacker would include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S_AX_CR_mnPM1ioZ.jpg" /></figure><h4>Collection (<a href="https://attack.mitre.org/tactics/TA0009/">MITRE Tactic TA0009(opens in new tab)</a>)</h4><p>After all the hunting for access and assets, the adversary will be seeking to gather all the valuable data of interest. This, in turn, compromises the confidentiality of the data and would lead to the next attack stage — Exfiltration. The main target sources include drives, browsers, audio, video and email.</p><h4>Exfiltration (<a href="https://attack.mitre.org/tactics/TA0010/">MITRE Tactic TA0010(opens in new tab)</a>)</h4><p>To elevate their compromise, the adversary would seek to steal data, which would be packaged using encryption measures and compression to avoid any detection. The C2 channel and tunnel deployed in the earlier phases will come in handy during this process.</p><h4>Impact (<a href="https://attack.mitre.org/tactics/TA0040/">MITRE Tactic TA0040(opens in new tab)</a>)</h4><p>If the adversary seeks to compromise the integrity and availability of the data assets, they would manipulate, interrupt or destroy these assets. The goal would be to disrupt business and operational processes and may involve removing account access, disk wipes, and data encryption such as ransomware, defacement and denial of service (DoS) attacks.</p><h4>Objectives</h4><p>With all the power and access to the systems and network, the adversary would seek to achieve their strategic goal for the attack. For example, if the attack was financially motivated, they may seek to encrypt files and systems with ransomware and ask for payment to release the data. In other instances, the attacker may seek to damage the reputation of the business, and they would release private and confidential information to the public.</p><p>Answer the questions below</p><p>While monitoring the network as a SOC analyst, you observe a big traffic spike.<br>Most of the network traffic is sent to an unknown, suspicious IP address.<br>What Unified Kill Chain phase could describe this activity?</p><p>Ans: Exfiltration</p><p>Personally identifiable information (PII) has been released to the public by an adversary.<br>Your organisation is facing reputational losses and scrutiny for the breach.<br>What part of the CIA triad would be affected by this action?</p><p>Ans: Confidentiality</p><p>Task8: Practical</p><p><strong>Deploy </strong>the static site attached to the task. You will need to match the various actions of an attacker to the correct phase of the Unified Kill Chain framework to reveal the flag.</p><p>Answer the questions below</p><p>Match the scenario prompt to the correct phase of the Unified Kill Chain to reveal the flag at the end. What is the flag?</p><p>Ans: THM{UKC_SCENARIO}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6d65023a439" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pyramid Of Pain]]></title>
            <link>https://medium.com/@vishnuvardhan3530/pyramid-of-pain-302d5bde341c?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/302d5bde341c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 17:17:05 GMT</pubDate>
            <atom:updated>2026-08-18T17:17:05.820Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn what the Pyramid of Pain is and how it ranks indicators by how painful they are for an adversary to change.</p><p><strong>Task1: Introduction</strong></p><p>This well-renowned concept is being applied to cybersecurity solutions like <a href="https://gblogs.cisco.com/ca/2020/08/26/the-canadian-bacon-cisco-security-and-the-pyramid-of-pain/">Cisco Security(opens in new tab)</a>, <a href="https://www.sentinelone.com/blog/revisiting-the-pyramid-of-pain-leveraging-edr-data-to-improve-cyber-threat-intelligence/">SentinelOne(opens in new tab)</a>, and <a href="https://socradar.io/re-examining-the-pyramid-of-pain-to-use-cyber-threat-intelligence-more-effectively/">SOCRadar(opens in new tab)</a> to improve the effectiveness of CTI (Cyber Threat Intelligence), threat hunting, and incident response exercises.</p><p>Understanding the Pyramid of Pain concept as a Threat Hunter, Incident Responder, or SOC Analyst is important.</p><p>Are you ready to explore what hides inside the Pyramid of Pain?</p><p><strong>Ans: No answer needed</strong></p><p><strong>Task2: Hash Values(Trivial)</strong></p><p>As per Microsoft, the hash value is a numeric value of a fixed length that uniquely identifies data. A hash value is the result of a hashing algorithm. The following are some of the most common hashing algorithms:</p><ul><li><strong>MD5 (Message Digest, defined by </strong><a href="https://www.ietf.org/rfc/rfc1321.txt"><strong>RFC 1321(opens in new tab)</strong></a><strong>) </strong>— was designed by Ron Rivest in 1992 and is a widely used cryptographic hash function with a 128-bit hash value. MD5 hashes are <strong>NOT </strong>considered <strong>cryptographically secure</strong>. In 2011, the IETF published RFC 6151, <a href="https://datatracker.ietf.org/doc/html/rfc6151">“Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms(opens in new tab)</a>,” which mentioned a number of attacks against MD5 hashes, including the hash collision.</li><li>SHA-1 (Secure Hash Algorithm 1, defined by <a href="https://tools.ietf.org/html/rfc3174">RFC 3174(opens in new tab)</a>- was invented by United States National Security Agency in 1995. When data is fed to SHA-1 Hashing Algorithm, SHA-1 takes an input and produces a 160-bit hash value string as a 40 digit hexadecimal number. <a href="https://csrc.nist.gov/news/2017/research-results-on-sha-1-collisions">NIST deprecated the use of SHA-1 in 2011(opens in new tab)</a> and banned its use for digital signatures at the end of 2013 based on it being susceptible to brute-force attacks. Instead, NIST recommends migrating from SHA-1 to stronger hash algorithms in the SHA-2 and SHA-3 families.</li><li><strong>The SHA-2 (Secure Hash Algorithm 2) — </strong>SHA-2 Hashing Algorithm was designed by The National Institute of Standards and Technology (NIST) and the National Security Agency (NSA) in 2001 to replace SHA-1. SHA-2 has many variants, and arguably the most common is SHA-256. The SHA-256 algorithm returns a hash value of 256-bits as a 64 digit hexadecimal number.</li></ul><p>A hash is not considered to be cryptographically secure if two files have the same hash value or digest.</p><p>Security professionals usually use the hash values to gain insight into a specific malware sample, a malicious or a suspicious file, and as a way to uniquely identify and reference the malicious artifact.</p><p>You’ve probably read ransomware reports in the past, where security researchers would provide the hashes related to the malicious or suspicious files used at the end of the report. You can check out <a href="https://thedfirreport.com/">The DFIR Report(opens in new tab)</a> if you’re interested in seeing an example. Various online tools can be used to do hash lookups like <a href="https://www.virustotal.com/gui/">VirusTotal(opens in new tab)</a> and <a href="https://metadefender.opswat.com/?lang=en">Metadefender Cloud — OPSWAT(opens in new tab)</a>.</p><p><strong>VirusTotal:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Below the hash in the screenshot above, you can see the filename. In this case, it is “m_croetian.wnry”</p><p><strong>MetaDefender Cloud — OPSWAT:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*UcjX3czSeAdoFcvX.png" /></figure><p>As you might have noticed, it is really easy to spot a malicious file if we have the hash in our arsenal. However, as an attacker, modifying a file by even a single bit is trivial, which would produce a different hash value. With so many variations and instances of known malware or ransomware, threat hunting using file hashes as the IOC (Indicators of Compromise) can become difficult.</p><p>Let’s take a look at an example of how you can change the hash value of a file by simply appending a string to the end of a file using echo: File Hash (Before Modification)</p><pre>           PS C:\Users\THM\Downloads&gt; Get-FileHash .\OpenVPN_2.5.1_I601_amd64.msi -Algorithm MD5<br>Algorithm Hash                             Path                                                 <br>_________ ____                             ____                                                 <br>MD5       D1A008E3A606F24590A02B853E955CF7 C:\Users\THM\Downloads\OpenVPN_2.5.1_I601_amd64.msi</pre><pre>           <br>PS C:\Users\THM\Downloads&gt; echo &quot;AppendTheHash&quot; &gt;&gt; .\OpenVPN_2.5.1_I601_amd64.msi<br>PS C:\Users\THM\Downloads&gt; Get-FileHash .\OpenVPN_2.5.1_I601_amd64.msi -Algorithm MD5<br>Algorithm Hash                             Path                                                 <br>_________ ____                             ____                                                 <br>MD5       9D52B46F5DE41B73418F8E0DACEC5E9F C:\Users\THM\Downloads\OpenVPN_2.5.1_I601_amd64.msi</pre><p><strong>Analyse the report associated with the hash “b8ef959a9176aef07fdca8705254a163b50b49a17217a4ff0107487f59d4a35d” </strong><a href="https://assets.tryhackme.com/additional/pyramidofpain/t3-virustotal.pdf"><strong>here.</strong></a><strong> What is the filename of the sample?</strong></p><p><strong>Ans: </strong>Sales_Receipt 5606.xls</p><p><strong>Task3: IP Address(Easy)</strong></p><p>You may have learned the importance of an IP Address from the <a href="https://tryhackme.com/room/whatisnetworking">“What is Networking?”</a> room. An IP address is used to identify any device connected to a network. These devices range from desktops, to servers and even CCTV cameras! We rely on IP addresses to send and receive the information over the network. But we are not going to get into the structure and functionality of the IP address. As a part of the Pyramid of Pain, we’ll evaluate how IP addresses are used as an indicator.</p><p>In the Pyramid of Pain, IP addresses are indicated with the color green. You might be asking why and what you can associate the green colour with?</p><p>From a defense standpoint, knowledge of the IP addresses an adversary uses can be valuable. A common defense tactic is to block, drop, or deny inbound requests from IP addresses on your parameter or external firewall. This tactic is often not bulletproof as it’s trivial for an experienced adversary to recover simply by using a new public IP address.</p><p>Malicious IP connections (<a href="https://app.any.run/tasks/a66178de-7596-4a05-945d-704dbf6b3b90">app.any.run(opens in new tab)</a>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*zitYkURITvqu_ZdB.png" /></figure><p><strong>NOTE!</strong> Do not attempt to interact with the IP addresses shown above.</p><p>One of the ways an adversary can make it challenging to successfully carry out IP blocking is by using Fast Flux.</p><p>According to <a href="https://www.akamai.com/blog/security/digging-deeper-an-in-depth-analysis-of-a-fast-flux-network">Akamai(opens in new tab)</a>, Fast Flux is a DNS technique used by botnets to hide phishing, web proxying, malware delivery, and malware communication activities behind compromised hosts acting as proxies. The purpose of using the Fast Flux network is to make the communication between malware and its command and control server (C&amp;C) challenging to be discovered by security professionals.</p><p>So, the primary concept of a Fast Flux network is having multiple IP addresses associated with a domain name, which is constantly changing. Palo Alto created a great fictional scenario to explain Fast Flux: <a href="https://unit42.paloaltonetworks.com/fast-flux-101/">“(opens in new tab)Fast Flux 101: How Cybercriminals Improve the Resilience of Their Infrastructure to Evade Detection and Law Enforcement Takedowns”(opens in new tab)</a></p><p>Read the following report (generated from <a href="https://any.run/">any.run(opens in new tab)</a>) for this sample <a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf">here</a> to answer the questions below:</p><p>Read the following<a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf"> report</a> to answer this question. What is the <strong>first IP address</strong> the malicious process (<strong>PID 1632</strong>) attempts to communicate with?</p><p><strong>Ans: </strong>50.87.136.52</p><p>Read the following<a href="https://assets.tryhackme.com/additional/pyramidofpain/task3-anyrun.pdf"> report</a> to answer this question. What is the <strong>first domain name</strong> the malicious process ((<strong>PID 1632</strong>) attempts to communicate with?</p><p><strong>Ans: </strong>craftingalegacy.com</p><p><strong>Task4: Domain Names(Simple)</strong></p><p>Let’s step up the Pyramid of Pain and move on to Domain Names. You can see the transition of colors — from green to teal.</p><p>Domain Names can be thought as simply mapping an IP address to a string of text. A domain name can contain a domain and a top-level domain (e.g. evilcorp.com ) or a sub-domain followed by a domain and top-level domain (e.g. tryhackme.evilcorp.com ). But we will not go into the details of how the Domain Name System (DNS) works. You can learn more about DNS in this <a href="https://tryhackme.com/room/dnsindetail">&quot;DNS in Detail&quot; Room </a>.</p><p>Domain Names can be a little more of a pain for the attacker to change as they would most likely need to purchase the domain, register it and modify DNS records. Unfortunately for defenders, many DNS providers have loose standards and provide APIs to make it even easier for the attacker to change the domain.</p><p><strong>Malicious Sodinokibi C2 ( Command and Control Infrastructure) domains:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-spStzjTr16Ip-NG.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/0*bx_WuQ8z91iv3R5F.png" /></figure><p>Can you spot anything malicious in the above screenshot? Now, compare it to the legitimate website view below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*Gnww7y7Frc9GKDrw.png" /></figure><p>This is one of the examples of a Punycode attack used by the attackers to redirect users to a malicious domain that seems legitimate at first glance.</p><p>What is Punycode? As per <a href="https://www.jamf.com/blog/punycode-attacks/">Jamf (opens in new tab)</a>, “Punycode is a way of converting words that cannot be written in ASCII, into a Unicode ASCII encoding.”</p><p>What you saw in the URL above is adıdas.de which has the Punycode of <a href="http://xn--addas-o4a.de/">http://xn--addas-o4a.de/</a></p><p>Internet Explorer, Google Chrome, Microsoft Edge, and Apple Safari are now pretty good at translating the obfuscated characters into the full Punycode domain name.</p><p>To detect malicious domains, proxy logs or web server logs can be used.</p><p>Attackers usually hide the malicious domains under URL shorteners. A URL Shortener is a tool that creates a short and unique URL that will redirect to the specific website specified during the initial step of setting up the URL Shortener link. The attackers normally use the following URL-shortening services to generate malicious links:</p><ul><li>bit.ly</li><li>goo.gl</li><li>ow.ly</li><li>s.id</li><li>smarturl.it</li><li>tiny.pl</li><li>tinyurl.com</li><li>x.co</li></ul><p>You can see the actual website the shortened link is redirecting you to by appending “+” to it (see the examples below). Type the shortened URL in the address bar of the web browser and add the above characters to see the redirect URL.</p><p><strong>NOTE: The examples of the shortened links below are non-existent.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*71U6hidtcpc6C4B4.png" /></figure><p><strong>Viewing Connections in Any.run:</strong></p><p>Because Any.run is a sandboxing service that executes the sample, we can review any connections such as HTTP requests, DNS requests or processes communicating with an IP address. To do so, we can look at the “networking” tab located just below the snapshot of the machine.</p><p><em>Please note </em><strong>: </strong>you should be extremely cautious about visiting any of the IP addresses or HTTP requests made in a report. After all, these are behaviours from the malware sample — so they’re probably doing something dangerous!</p><p><strong>HTTP Requests:</strong></p><p>This tab shows the recorded HTTP requests since the detonation of the sample. This can be useful to see what resources are being retrieved from a webserver, such as a dropper or a callback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k3uyj0raVSZFwDtm.png" /></figure><p><strong>Connections:</strong></p><p>This tab shows any communications made since the detonation of the sample. This can be useful to see if a process communicates with another host. For example, this could be C2 traffic, uploading/downloading files over FTP, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dTWWx-NgZc4SZJR2.png" /></figure><p><strong>DNS Requests:</strong></p><p>This tab shows the DNS requests made since the detonation of the sample. Malware often makes DNS requests to check for internet connectivity (I.e. if It can’t reach the internet/call home, then it’s probably being sandboxed or is useless).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7vIpvmzlm4qITljw.png" /></figure><p>Answer the questions below</p><p><strong>Go to </strong><a href="https://app.any.run/tasks/a66178de-7596-4a05-945d-704dbf6b3b90"><strong>this report on app.any.run (opens in new tab)</strong></a><strong> and provide the first suspicious domain request you are seeing, you will be using this report to answer the remaining questions of this task.</strong></p><p><strong>Ans:</strong> craftingalegacy.com</p><p>What term refers to an address used to access websites?</p><p><strong>Ans: </strong>Domain Name</p><p>What type of attack uses Unicode characters in the domain name to imitate the a known domain?</p><p><strong>Ans: </strong>Punycode attack</p><p>Provide the redirected website for the shortened URL using a preview: <a href="https://tinyurl.com/bw7t8p4u">https://tinyurl.com/bw7t8p4u</a></p><p><strong>Ans: </strong><a href="https://tryhackme.com/">https://tryhackme.com/</a></p><p><strong>Task5: Host Artifacts(Annoying)</strong></p><p>Let’s take another step up to the yellow zone.</p><p>On this level, the attacker will feel a little more annoyed and frustrated if you can detect the attack. The attacker would need to circle back at this detection level and change his attack tools and methodologies. This is very time-consuming for the attacker, and probably, he will need to spend more resources on his adversary tools.</p><p>Host artifacts are the traces or observables that attackers leave on the system, such as registry values, suspicious process execution, attack patterns or IOCs (Indicators of Compromise), files dropped by malicious applications, or anything exclusive to the current threat.</p><p><strong>Suspicious process execution from Word:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*Ltt_KddzYbGmueHS.png" /></figure><p><strong>Suspicious events followed by opening a malicious application:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BliQeAvnWU5HfBXb.png" /></figure><p><strong>The files modified/dropped by the malicious actor:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cZAddKBIPsU6xMdB.png" /></figure><p>Answer the questions below</p><p>A security vendor has analysed the malicious sample for us.<br>Review the report <a href="https://assets.tryhackme.com/additional/pyramidofpain/task5-report.pdf">here</a> to answer the following questions.</p><p><strong>Ans:</strong> No answer needed.</p><p>A process named <strong>regidle.exe</strong> makes a POST request to an IP address based in the United States (US) on <strong>port 8080</strong>. What is the IP address?</p><p><strong>Ans: </strong>96.126.101.6</p><p>The actor drops a malicious executable (EXE). What is the name of this executable?</p><p><strong>Ans: </strong>G_jugk.exe</p><p>Look at this <a href="https://assets.tryhackme.com/additional/pyramidofpain/vtotal2.png">report</a> by VirusTotal. How many vendors determine this host to be malicious?</p><p><strong>Ans: </strong>9</p><p><strong>Task6: Network Artifact(Annoying)</strong></p><p>Network Artifacts also belong to the yellow zone in the Pyramid of Pain. This means if you can detect and respond to the threat, the attacker would need more time to go back and change his tactics or modify the tools, which gives you more time to respond and detect the upcoming threats or remediate the existing ones.</p><p>A network artifact can be a user-agent string, C2 information, or URI patterns followed by the HTTP POST requests.An attacker might use a User-Agent string that hasn’t been observed in your environment before or seems out of the ordinary. The User-Agent is defined by <a href="https://datatracker.ietf.org/doc/html/rfc2616#page-145">RFC2616(opens in new tab)</a> as the request-header field that contains the information about the user agent originating the request.</p><p>Network artifacts can be detected in PCAPs (file that contains the network packet dumps) by using a tool such as Wireshark or TShark, or exploring IDS (Intrusion Detection System) alerts from a tool such as <a href="https://www.snort.org/">Snort(opens in new tab)</a>. You will learn these tools in the following rooms, but in short, imagine a list of suspicious HTTP POST requests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ngg3LJbaZWdtG9L-.png" /></figure><p>It’s hard to attribute the requests to a specific malware from the first glance, but you can dig deeper and look for its network indicators, such as the <strong>User-Agent</strong>. In TShark, you could use the following command:</p><ul><li>tshark --Y http.request -T fields -e http.host -e http.user_agent -r analysis_file.pcap</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QjdhvR5T6QBg8tOc.png" /></figure><p>These are the most common User-Agent strings found for the <a href="https://www.mcafee.com/blogs/other-blogs/mcafee-labs/emotet-downloader-trojan-returns-in-force/">Emotet(opens in new tab)</a> trojan. If you can detect the custom User-Agent strings that the attacker is using, you might be able to block them, creating more obstacles and making their attempt to compromise the network more annoying.</p><p>Answer the questions below</p><p>Which network indicator helped us identify the malware type (Emotet)?</p><p><strong>Ans: User-Agent</strong></p><p>How many POST requests are in the screenshot from the PCAP file?</p><p><strong>Ans: 6</strong></p><p><strong>Task7: Tools(Challenging)</strong></p><p>Congratulations! We have made it to the challenging part for the adversaries!</p><p>At this stage, we have levelled up our detection capabilities against the artifacts. The attacker would most likely give up trying to break into your network or go back and try to create a new tool that serves the same purpose. It will be a game over for the attackers as they would need to invest some money into building a new tool (if they are capable of doing so), find the tool that has the same potential, or even gets some training to learn how to be proficient in a certain tool.</p><p>Attackers would use the utilities to create malicious macro documents (maldocs) for spearphishing attempts, a backdoor that can be used to establish <a href="https://www.varonis.com/blog/what-is-c2/">C2 (Command and Control Infrastructure)(opens in new tab)</a>, any custom .EXE, and .DLL files, payloads, or password crackers.</p><p><strong>A Trojan dropped the suspicious “Stealer.exe” in the Temp folder:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/0*fcp7VJrMNHY913Qh.png" /></figure><p><strong>The execution of the suspicious binary:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/0*iA8zn7UKUN4si4Rm.png" /></figure><p>Antivirus signatures, detection rules, and YARA rules can be great weapons for you to use against attackers at this stage.</p><p><a href="https://bazaar.abuse.ch/">MalwareBazaar (opens in new tab)</a>and <a href="https://malshare.com/">Malshare (opens in new tab)</a>are good resources to provide you with access to the samples, malicious feeds, and YARA results — these all can be very helpful when it comes to threat hunting and incident response.</p><p>For detection rules,<a href="https://tdm.socprime.com/"> SOC Prime Threat Detection Marketplace (opens in new tab)</a>is a great platform, where security professionals share their detection rules for different kinds of threats including the latest CVE’s that are being exploited in the wild by adversaries.</p><p>Fuzzy hashing is also a strong weapon against the attacker’s tools. Fuzzy hashing helps you to perform similarity analysis — match two files with minor differences based on the fuzzy hash values. One of the examples of fuzzy hashing is the usage of <a href="https://ssdeep-project.github.io/ssdeep/index.html">SSDeep(opens in new tab)</a>; on the SSDeep official website, you can also find the complete explanation for fuzzy hashing.</p><p>Example of SSDeep from VirusTotal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iB3cQBJPs1pc3NBN.png" /></figure><p>Answer the questions below</p><p>Provide the method used to determine similarity between the files</p><p><strong>Ans: </strong>Fuzzy Hashing</p><p>Provide the alternative name for fuzzy hashes without the abbreviation</p><p><strong>Ans:</strong> context triggered piecewise hashes</p><p><strong>Task8: TTPs(Tough)</strong></p><p>It is not over yet. But good news, we made it to the final stage or the apex of the Pyramid of Pain!</p><p>TTPs stands for Tactics, Techniques &amp; Procedures. This includes the whole <a href="https://attack.mitre.org/">MITRE (opens in new tab)ATT&amp;CK Matrix(opens in new tab)</a>, which means all the steps taken by an adversary to achieve his goal, starting from phishing attempts to persistence and data exfiltration.</p><p>If you can detect and respond to the TTPs quickly, you leave the adversaries almost no chance to fight back. For, example if you could detect a <a href="https://www.beyondtrust.com/resources/glossary/pass-the-hash-pth-attack">Pass-the-Hash(opens in new tab)</a> attack using Windows Event Log Monitoring and remediate it, you would be able to find the compromised host very quickly and stop the lateral movement inside your network. At this point, the attacker would have two options:</p><ol><li>Go back, do more research and training, reconfigure their custom tools</li><li>Give up and find another target</li></ol><p>Option 2 definitely sounds less time and resource-consuming.</p><p>Answer the questions below</p><p>Navigate to ATT&amp;CK Matrix webpage. How many techniques fall under the Exfiltration category?</p><p><strong>Ans:</strong> 9</p><p>Chimera is a China-based hacking group that has been active since 2018. What is the name of the commercial, remote access tool they use for C2 beacons and data exfiltration?</p><p><strong>Ans: </strong>Cobalt Strike</p><p><strong>Task9: Practical: The Pyramid of Pain</strong></p><p>Deploy the static site attached to this task and place the prompts into the correct tiers in the pyramid of pain!</p><p>Once you are sure, submit your answer on the static site to retrieve a flag!</p><p><strong>Ans: </strong>THM{PYRAMIDS_COMPLETE}</p><p>Task10: Conclusion</p><p>No answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=302d5bde341c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to SOAR-(TryHackMe)]]></title>
            <link>https://medium.com/@vishnuvardhan3530/introduction-to-soar-tryhackme-7f02e395c918?source=rss-b32d3e068a36------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f02e395c918</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vishnu Vardhan]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 14:23:31 GMT</pubDate>
            <atom:updated>2026-08-18T14:23:31.571Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn the concepts and methodology surrounding security orchestration, automation, and response.</p><p><strong>Task1 : Introduction</strong></p><p>To defend against attacks, a SOC team relies on various security solutions, such as SIEM, EDR, firewalls, and threat intelligence platforms. They also communicate with IT and management teams as part of their processes. However, as threats grow more complex and advanced, SOC teams face challenges like alert fatigue, manual processes, too many disconnected tools, and difficulties in communication across teams.</p><p>In this room, we will explore how the Security Orchestration, Automation, and Response (SOAR) tool overcomes these challenges for a SOC team.</p><h3>Learning Objectives</h3><ul><li>Understand the traditional SOC and its challenges</li><li>Explore how SOAR overcomes these challenges</li><li>Learn SOAR Playbooks</li><li>Practically walk through a threat intelligence workflow</li></ul><h3>Room Prerequisites</h3><p>A look at the following rooms would be helpful before starting this room:</p><ul><li><a href="https://tryhackme.com/room/socfundamentals">SOC Fundamentals</a></li><li><a href="https://tryhackme.com/room/jrsecanalystintrouxo">Junior Security Analyst Intro</a></li><li><a href="https://tryhackme.com/room/introtodetectionengineering">Intro to Detection Engineering</a></li></ul><p><strong>Ans: No answer needed</strong></p><p><strong>Task2 : Traditional SOC and Challenges</strong></p><h3>How Traditional SOCs Work</h3><p>Before we dive into learning the SOAR tool, let’s take a look at how traditional Security Operations Centers (SOC) work and the challenges they face.</p><p>Organisations have a Security Operations Center (SOC) as a centralised location for monitoring and protecting their digital assets. SOCs have evolved over time, with every generation adding new technology. The main advantage of an organisation having a SOC is to enhance its security incident handling through continuous monitoring and analysis. This is achievable by implementing the right amount of people, processes, and technologies to support the SOC’s capabilities and business goals.</p><p>Some key capabilities of a SOC include the following:</p><ul><li><strong>Monitoring and Detection:</strong> This focuses on continuously scanning and flagging suspicious activities within a network environment. It leads to awareness of emerging threats and how to prevent them in their early stages. The monitoring is mainly done through the SIEM. <br>For example, detecting numerous failed login attempts on a critical workstation, or detecting a login from an unknown location, etc.</li><li><strong>Recovery and Remediation:</strong> Organisations rely on their SOC to provide a hub for recovery and remediation when incidents occur. SOC teams operate as first responders when cyber threats are identified. They perform operations such as isolating or shutting down infected endpoints, removing malware, and stopping malicious processes. During this process, they often utilize other security solutions like EDR, firewalls, IAM, etc. <br>For example, isolating an endpoint through EDR, blocking an IP on the firewall, disabling a user on the IAM, etc.</li><li><strong>Threat Intelligence:</strong> Monitoring environments continuously requires a constant flow of threat intelligence. This ensures that SOC teams have continuous and the latest feeds of threat data, such as IP addresses, hashes, domains, and other indicators. <br>For example, blocking a malicious domain flagged by the threat intelligence feeds.</li><li><strong>Communication:</strong> The SOC teams not only detect and respond to threats but also coordinate with IT teams and management to effectively communicate the threats and ensure that the incidents are addressed.<br>For example, generating a ticket for the IT team to verify a recently deployed patch.</li></ul><p>You can see how SOC works on multiple tools and communicates with various teams to carry out its processes. While these many processes protect the organization, the SOC teams often face some challenges. Let’s discuss them.</p><h3>Challenges Faced by SOCs</h3><ul><li><strong>Alert Fatigue:</strong> Using numerous security tools triggers a large number of alerts within an SOC. Many of these alerts are false positives or insufficient for an investigation, leaving analysts overwhelmed and unable to address any serious security events.</li><li><strong>Too many Disconnected Tools:</strong> Security tools are often deployed without integration within an organisation. Security teams are tasked with navigating through firewall logs and rules, which are handled independently from endpoint security logs. This also leads to an overload of tools.</li><li><strong>Manual Processes:</strong> SOC investigation procedures are often not documented, leading to inefficient means of addressing threats. Most rely on established tribal knowledge built by experienced analysts, and the processes are never documented. This results in slowing down the investigation and increasing response times.</li><li><strong>Talent Shortage:</strong> SOC teams find recruiting and expanding their talent pool difficult to address the growing security landscape and sophisticated threats. Combining this with the alert overload teams face, security analysts become more overwhelmed with the responsibilities they have to undertake, resulting in less efficient work and extended incident response times that allow adversaries to wreak havoc within an organisation.</li></ul><p>How would you describe the experience of an overload of security events being triggered within a SOC?</p><p><strong>Ans: Alert Fatigue</strong></p><p><strong>Task3 : Overcoming SOC Challenges with SOAR</strong></p><p>In the previous task, we saw some challenges that Security Operations Centers (SOC) faced. In this task, we will learn about a tool that can overcome these challenges for a SOC team. This tool is called Security Orchestration, Automation, and Response (SOAR). Let’s discuss what this tool is and how it overcomes these challenges.</p><h3>What is SOAR?</h3><p>Security Orchestration, Automation, and Response (SOAR) is a tool that unifies all the security tools used in a SOC. With SOAR, SOC analysts do not need to switch between SIEM, EDR, Firewall, and other security tools for their investigations. They can operate all these tools within a single SOAR interface. Along with unifying the security tools, it also provides ticketing and case management features to the analysts, through which they can document, track, and resolve their incidents in a structured way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*vwuRVi1Iz1Z_-qPXqGYeYA.png" /></figure><p>The core strength of a SOAR tool comes from the following three main capabilities:</p><h3>1. Orchestration</h3><p>Traditionally, while investigating an alert, a SOC analyst has to switch between multiple security tools for the analysis. For example, during a VPN brute force, the analyst typically switches between the following tools:</p><ol><li><strong>SIEM </strong>to check if the user usually uses the subject IP for logging</li><li><strong>Threat Intelligence (TI) platforms </strong>to verify the IP’s reputation</li><li><strong>IAM tool </strong>to disable the user if there was any successful attempt</li><li><strong>Ticketing system</strong> to open and track the incident</li></ol><p>This manual switching between different tools slows down the process. Orchestration solves this problem by coordinating all these tools together inside the SOAR. It connects different tools from various vendors within the unified SOAR interface. It defines workflows for investigating various types of alerts, known as <strong>Playbooks</strong>. These playbooks are predefined steps that tell the SOAR how to investigate an alert.</p><p>For example, the VPN brute force alert we discussed above would have the following playbook:</p><ol><li>Received alert from SIEM</li><li>Query SIEM to check if the User normally uses the IP</li><li>Check TI platforms for the IP’s reputation</li><li>Query SIEM for any successful logins</li><li>Escalate to containment actions</li></ol><p>The above actions are predefined in a playbook for a specific alert. These playbooks are dynamic and usually contain different paths. The result of each step determines the next action. For example, if the user normally uses the IP and the failed attempts were minimal, the playbook may stop early. In the upcoming tasks, we will discuss some real playbooks.</p><h3>2. Automation</h3><p>The art of coordinating with multiple tools through predefined actions (Playbooks), which we studied in Orchestration, can be automated. Automation means no more manual clicks needed from SOC analysts. SOAR will itself follow the playbooks. Let’s resume the playbook for VPN brute force alert combined with the Automation.</p><ol><li>SOAR receives the alert from SIEM</li><li>It automatically queries the SIEM for the user’s historical logins</li><li>It automatically verifies the IP’s reputation through TI platforms</li><li>If the IP is malicious, it automatically disables the user from the IAM</li><li>Lastly, it automatically opens a ticket in the ticketing system with all the details to initiate an investigation</li></ol><p>This saves a tremendous amount of time for SOC analysts. They can handle hundreds of alerts without burning out.</p><h3>3. Response</h3><p>SOAR gives the ability to take actions using different tools from one unified interface. It also automates the response, as we saw earlier while looking at its Automation capability. For example, SOAR can follow the playbook of VPN Brute force and block the IP on the firewall, disable the user in the IAM, and open a ticket with all the details.</p><p>The Orchestration, Automation, and Response capabilities of SOAR solve the major challenges a SOC team faces. With SOAR, there is no more alert fatigue, most of the processes are automated, and all the different tools are connected for coordination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HjohaRLEW6L96EZr.png" /></figure><h3>Do We Still Need SOC Analysts?</h3><p>While a SOAR tool can automate the majority of repetitive tasks, it does not replace SOC analysts. Complex investigations still require an SOC analyst. SOAR cannot give a judgment call at some critical points, but an analyst can. A SOC analyst understands the threats in the broader business context. The playbooks for different types of alerts are also made by the SOC analysts. So, the answer to this question is that the SOAR would ease the burden of SOC by automating repetitive tasks and organizing everything in a simplified structure, but we still need SOC analysts.</p><p><strong>The act of connecting and integrating security tools and systems into seamless workflows is known as?</strong></p><p><strong>Ans: </strong>Orchestration</p><p><strong>What do we call a predefined list of actions to handle an incident?</strong></p><p><strong>Ans: </strong>Playbook</p><p><strong>Task4: Building SOAR Playbooks</strong></p><p>In the previous task, we studied how SOAR Playbooks are predefined workflows that tell the SOAR tool what actions to take during a specific investigation. SOC analysts make playbooks for a general category of recurring alerts. Let’s have a look at two different playbooks, one for Phishing and one for CVE Patching.</p><h3>Phishing Playbook</h3><p>Phishing attacks remain the most common attack vector used in breaches. Unfortunately for security analysts, investigating phishing emails becomes time-consuming and involves manual exercises such as analysing attachments and URLs and verifying through threat intelligence platforms. While other investigations are ongoing, SOAR solutions can execute these tasks in the background via a playbook. Additionally, remediation can be performed when a positive phishing email is identified.</p><p>Now, what would this playbook look like?</p><p>Imagine you are a SOC analyst experienced in dealing with phishing alerts. You are training a junior analyst on how to respond to a phishing alert. For this, you make a flow diagram for them to take help from while investigating such alerts. What would you like to add to that flow diagram to assist your junior analyst? Starting from receiving the alert “Suspicious email received”, you will probably tell them the next steps they should take. They should create a ticket and check if the email contains a URL or an attachment. If it does not, just notify the users, but if it does, what would be the next steps? The next steps would further depend on whether it contains a URL or an attachment. So, a lot of “if this happens, do this; else, do this” instructions. This is how a plabook is made. The flow diagram below shows a playbook of phishing, telling what to do at what step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5l9EehiLkUMgqNna.png" /></figure><h3>CVE Patching Playbook</h3><p>A CVE (Common Vulnerabilities and Exposures) is a vulnerability that is disclosed publicly and assigned a CVE number. As part of vulnerability management, the SOC team has to address newly released CVEs by verifying whether they exist in their network and patching them if they do. An analyst must always be on the lookout for publications on new CVEs and remediation plans. The process can become overwhelming, resulting in a mounting backlog and patches not being applied, leaving the environment more vulnerable. Moreover, this process can take a lot of time and resources of the SOC team since CVEs are released frequently. So, to solve this problem, we can make a playbook for handling the CVEs inside the SOAR tool, just like we did for the phishing case.</p><p>This playbook will analyse the CVE details, assess its risk threshold, create a patching ticket, and test the patch before being pushed to the production environment. The following is an example of a playbook made for CVE patching.</p><p><strong>Note: </strong>Please click to enlarge the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M_p97WNZiW3IYEtU.png" /></figure><p>As you can see in both the playbooks’ flow diagrams, most of the steps are automated, but a SOC analyst can be seen at a few points. This highlights that while SOAR reduces repetitive manual process burden, SOC analysts’ roles remain essential for crucial decisions and verifications.</p><p><strong>Is manual analysis vital within a SOAR workflow? Yay or Nay?</strong></p><p><strong>Ans: </strong>yay</p><p><strong>From where is the CVE Patching playbook fetching the new CVEs?</strong></p><p><strong>Ans: </strong>Advisory lists</p><p><strong>In the CVE Patching playbook, if the assets are found vulnerable even after the patch is deployed, what does the SOC develop next?</strong></p><p><strong>Ans: </strong>mitigation plan</p><p><strong>Task5 : Threat Intel workflow Practical</strong></p><h3>Scenario</h3><p>You are part of a SOC team that recently faced a large breach investigation that dragged on for ages due to a lack of automation. Your friend, McSkidy, recently advised adopting a SOAR and setting up automation workflows (also called playbooks) to help your security investigations. McSkidy sent you a checklist for a Threat Intelligence integration workflow, and your task is to figure out how it works.</p><p>In this scenario, your job is to determine and set which parts of the workflow should be manual or automated by clicking on the screens and toggling the switches. Click on the RUN command on the keyboard to check if your answers are correct.</p><p>Click the <strong>View site </strong>button below to launch the site in split view.</p><p><strong>Ans: </strong>THM{AUT0M@T1N6_S3CUR1T¥}</p><p><strong>Task6: Conclusion</strong></p><p>No Answer needed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f02e395c918" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>