<?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 Chandrak Trivedi on Medium]]></title>
        <description><![CDATA[Stories by Chandrak Trivedi on Medium]]></description>
        <link>https://medium.com/@chandrak.trivedi?source=rss-9c25cc19c7cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xASr0C6DINoQZE5OodFKyw.png</url>
            <title>Stories by Chandrak Trivedi on Medium</title>
            <link>https://medium.com/@chandrak.trivedi?source=rss-9c25cc19c7cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 05:34:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandrak.trivedi/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[Hunting with Precision: Introducing PurpleHawk TALON™]]></title>
            <link>https://medium.com/@chandrak.trivedi/hunting-with-precision-introducing-purplehawk-talon-ffefffd43cdd?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffefffd43cdd</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 01:01:02 GMT</pubDate>
            <atom:updated>2026-11-12T01:01:02.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93TymE9xrQQLJlfdX8sBVQ.jpeg" /><figcaption>PurpleHawk TALON</figcaption></figure><p><strong>Threat hunting has evolved dramatically over the last decade.</strong></p><p>Organizations continue to invest heavily in top-tier security platforms — Microsoft Defender XDR, CrowdStrike Falcon, Sentinel, Splunk, and QRadar — yet sophisticated adversaries still manage to evade detection and maintain persistence inside enterprise networks.</p><p>Why? <strong>The challenge isn’t always a lack of technology; it’s the lack of a repeatable methodology that turns raw intelligence into actionable outcomes.</strong></p><p>To bridge this gap, we are introducing <strong>PurpleHawk TALON™</strong> — an intelligence-driven threat hunting framework designed to bring structure, discipline, and precision to proactive threat discovery.</p><h3>Why TALON?</h3><p>A hawk does not hunt randomly.</p><p>It identifies a target, observes its environment, formulates a plan, adapts to new information, and strikes with precision. Its most formidable tool is its <strong>talons</strong>: sharp, deliberate, and purpose-built to secure its goal.</p><p>Threat hunting should operate with that same discipline.</p><p>PurpleHawk TALON™ provides security teams with a structured roadmap to test hypotheses, adapt investigations, and transform raw findings into permanent defensive capabilities.</p><h3>What is PurpleHawk TALON™?</h3><p>PurpleHawk TALON™ is an intelligence-driven threat hunting methodology that creates a repeatable process for proactive threat discovery and validation.</p><h3>Key Benefits</h3><ul><li><strong>Proactive Discovery:</strong> Uncover adversary activity before alerts trigger.</li><li><strong>Hypothesis Testing:</strong> Develop and validate assumptions using actual telemetry.</li><li><strong>Structured Learning:</strong> Continuously refine investigations through dynamic feedback loops.</li><li><strong>Operational Value:</strong> Convert hunt findings into new detections and capabilities.</li><li><strong>Stakeholder Impact:</strong> Deliver clear, actionable intelligence across the business.</li></ul><h3>The 5 Phases of TALON</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qgwdP-u390g3u9A1ZgwEA.jpeg" /><figcaption>TALON Framework</figcaption></figure><h3>1. Target — Identify What Matters Most</h3><p>Every successful hunt starts with a clearly defined objective. The <strong>Target</strong> phase establishes the mission scope by leveraging threat intelligence, business risk, and attack surface exposure.</p><p><strong>Key Activities:</strong></p><ul><li>Threat intelligence and adversary TTP review</li><li>Identifying high-value assets and attack surfaces</li><li>Formulating the core hunting hypothesis</li></ul><p><strong>Key Question:</strong> <em>What threat, adversary behavior, or anomaly are we targeting?</em></p><p><strong>Outputs:</strong> Threat hypothesis, hunting scope, ATT&amp;CK mapping, data source requirements, success criteria.</p><h3>2. Analyze — Search for Evidence</h3><p>The <strong>Analyze</strong> phase actively examines environment telemetry to validate or challenge the hypothesis.</p><p><strong>Key Activities:</strong></p><ul><li>Hunt query development across SIEM and EDR</li><li>Data correlation, identity, and cloud telemetry investigations</li><li>IOC/IOA hunting, behavioral analytics, and query mapping using community resources such as the <a href="https://github.com/chandraktrivedi/PurpleHawkS/">PurpleHawkS Repository</a></li></ul><p><strong>Key Question:</strong> <em>What evidence exists within our environment that supports or disproves the hypothesis?</em></p><p><strong>Outputs:</strong> Executed queries, indicators, artifacts, suspicious behaviors, investigative leads.</p><h3>3. Learn — Validate, Adapt, and Evolve</h3><p>Threat hunting is rarely linear. As evidence emerges, hunters must challenge assumptions, identify visibility gaps, and decide whether to expand, refine, or conclude the hunt.</p><p><strong>Key Activities:</strong></p><ul><li>Evidence validation and gap analysis</li><li>Sub-hypothesis development and ATT&amp;CK technique expansion</li><li>Query refinement and adversary emulation</li></ul><p><strong>Key Question:</strong> <em>What have we learned, and how should the hunt evolve?</em></p><p><strong>Outputs:</strong> Refined hypotheses, increased confidence, new investigative paths, visibility improvements.</p><h3>🔄 The Heart of TALON: The Analyze–Learn Loop</h3><p>The core strength of TALON lies in its iterative <strong>Analyze–Learn Loop</strong>:</p><p>Rather than stopping at the first finding, defenders continuously execute queries, validate evidence, and adjust their scope. This loop continues until one of three definitive outcomes is reached:</p><ul><li><strong>Hypothesis Validated</strong> — Threat/anomaly confirmed.</li><li><strong>Hypothesis Disproven</strong> — Activity ruled benign.</li><li><strong>Insufficient Evidence</strong> — Visibility gaps identified for remediation.</li></ul><p>Like a hawk circling above, each loop gathers more context and increases confidence.</p><h3>4. Operationalize — Turn Findings into Capability</h3><p>A threat hunt has limited long-term value if its insights remain trapped inside a report. The <strong>Operationalize</strong> phase converts hunt discoveries into permanent security upgrades.</p><p><strong>Key Activities:</strong></p><ul><li>Detection engineering &amp; analytics development</li><li>Playbook enhancements &amp; security control tuning</li><li>Threat intelligence enrichment and leveraging open-source libraries (e.g., <a href="https://github.com/chandraktrivedi/PurpleHawkS/">PurpleHawkS IoA / Detection Repository</a>)</li></ul><p><strong>Key Question:</strong> <em>How can these findings improve our day-to-day security operations?</em></p><p><strong>Outputs:</strong> New SOC detections, enhanced monitoring rules, updated response procedures, reduced coverage gaps.</p><h3>5. Notify — Drive Action Through Communication</h3><p>The final phase ensures discoveries and recommendations reach the right stakeholders.</p><p><strong>Key Activities:</strong></p><ul><li>Executive summaries &amp; detailed technical reports</li><li>SOC briefings &amp; incident escalation</li><li>Building future threat hunting roadmaps</li></ul><p><strong>Key Question:</strong> <em>Who needs to know, and what actions should be taken?</em></p><p><strong>Outputs:</strong> Actionable threat intelligence, executive visibility, remediation guidance, future hunt roadmap.</p><h3>Final Thoughts</h3><p>Threat hunting isn’t just about querying logs or triage — it’s a disciplined methodology of hypotheses, evidence collection, and adaptive learning. <strong>PurpleHawk TALON™</strong> gives defenders a repeatable framework to move from reactive alerting to proactive threat discovery.</p><blockquote><strong><em>Target. Analyze. Learn. Operationalize. Notify.</em></strong></blockquote><p><em>Follow </em><a href="https://www.linkedin.com/company/purplehawk-security/"><strong><em>PurpleHawk Security on LinkedIn</em></strong></a><em> and explore our open-source research and IoA Library on </em><a href="https://github.com/chandraktrivedi/PurpleHawkS/"><strong><em>GitHub (chandraktrivedi/PurpleHawkS)</em></strong></a><em> for more insights on proactive security operations.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffefffd43cdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Intelligence using open-source Tool — Yeti]]></title>
            <link>https://medium.com/@chandrak.trivedi/threat-intelligence-using-open-source-tool-yeti-b83bd8ec014d?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b83bd8ec014d</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[purple-team]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 14:02:49 GMT</pubDate>
            <atom:updated>2026-01-11T14:02:49.000Z</atom:updated>
            <content:encoded><![CDATA[<h3>Threat Intelligence using open-source Tool — YETI</h3><p>In the modern cybersecurity landscape, <strong>Threat Intelligence (TI)</strong> is the backbone of proactive defense. It provides the essential data needed to understand malware behavior, track threat groups, and identify vulnerability exploitation.</p><p>Typically, this data is categorized into three critical areas:</p><ul><li><strong>Indicators of Compromise (IoC):</strong> Evidence that a system has already been breached.</li><li><strong>Indicators of Attack (IoA):</strong> Evidence of an ongoing attempt to compromise a system.</li><li><strong>Common Vulnerabilities and Exposures (CVE):</strong> Standardized identifiers for known software vulnerabilities.</li></ul><p>By integrating these data points into systems like <strong>EDR (Endpoint Detection and Response)</strong> and <strong>SIEM (Security Information and Event Management)</strong>, organizations can significantly enhance their <strong>Threat Hunting</strong> and <strong>Purple Teaming</strong> workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*xPWO87DJWjgSY8KwliyCUw.png" /></figure><blockquote><strong>YETI</strong> is a powerful, open-source platform designed to streamline the collection and management of threat intelligence. It excels at mapping technical indicators (IoCs, IoAs and CVEs) to higher-level entities like threat actor campaigns and specific attack patterns.</blockquote><p>If you are new to the proactive side of security, I highly recommend checking out these foundational guides:</p><ul><li><a href="https://medium.com/@chandrak.trivedi/threat-hunting-important-things-on-how-to-start-hunting-2b0f2efc90ac">Threat Hunting: Important things on how to start hunting?</a></li><li><a href="https://medium.com/@chandrak.trivedi/purple-teaming-how-to-get-started-using-mitre-engenuity-tools-and-projects-b5073adce201">Purple Teaming: How to get started using Mitre Engenuity Tools and Projects</a></li></ul><h3>YETI: Your Everyday Threat Intelligence</h3><p>The YETI platform comes pre-loaded with several reputable open-source feeds. Once enabled, these feeds automatically ingest data into your database, providing a steady stream of intelligence without manual intervention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeF_wwr7ffKa9iEay1ju0w.png" /></figure><p>Once the Sync is completed, YETI allows to search for this feed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBd57RcpmnVocVvoRawnAA.png" /></figure><h3>Walkthrough: Building Your Intelligence Pipeline</h3><h4>STEP 1: Understanding the Data Architecture</h4><p>Beyond automated feeds, YETI allows you to manually add proprietary intelligence tailored to your specific industry. The platform organizes data into four key sections:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*feKJCQOW87urOAXpU87J1w.png" /></figure><h4>Observables</h4><p>This section is the foundation of your data collection. It is used to store <strong>Indicators of Compromise (IoCs)</strong> — the technical “breadcrumbs” left behind by an attacker.</p><p><strong><em>Examples:</em></strong><em> IP addresses, file hashes (SHA256/MD5), domain names, and URLs.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/1*S4tAUsILD7JoqP9u4gL7pQ.png" /></figure><h4>Indicators</h4><p>While observables are raw data, the <strong>Indicators</strong> section adds context. This is where you document <strong>Indicators of Attack (IoAs)</strong> and the logic needed to find them.</p><p><strong><em>Examples:</em></strong><em> Detection rules (YARA, Sigma), forensic artifacts, and specific database or SIEM queries.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*K_pJ8X8Y86qQ-qYMwltY-Q.png" /></figure><h4>Entities</h4><p>The <strong>Entities</strong> section provides the “Who” and the “How.” This is used to catalog high-level threat details and the strategic side of security.</p><p><strong><em>Examples:</em></strong><em> Threat actors (APTs), specific malware families, campaigns, and recommended </em><strong><em>mitigation actions</em></strong><em> to harden the environment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*lzSNGPnlxt4IlT_jJc4T7g.png" /></figure><h4>DFIQ</h4><p>The <strong>DFIQ</strong> section is designed for operational workflow. It focuses on the “Questions” an investigator needs to answer during an incident.</p><p><strong><em>Examples:</em></strong><em> Specific investigative scenarios, step-by-step forensic questions, and the logic required to validate a threat.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*mltEIoUmQAwnsoqDEODqBQ.png" /></figure><h4>STEP 2: Building a Threat Intelligence Case</h4><p>To demonstrate YETI’s power, let’s look at how we can structure an Intelligence case. By linking different data types, you create a “web” of intelligence that is much more valuable than a list of IP addresses.</p><p>In YETI, you can start adding the case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_Zd0xTSpVTJ6p4p1ZDWyw.png" /></figure><p><strong>Threat Actor:</strong> Identifying who is behind the activity (e.g., APT29).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0m4Bda3ukm61JjTQaHCEw.png" /></figure><p><strong>Tools:</strong> The specific software or scripts they use (e.g., Cobalt Strike).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLudEoi-FELO58ORI4UkoQ.png" /></figure><p><strong>Attack Patterns:</strong> Mapping behaviors to the <strong>MITRE ATT&amp;CK</strong> framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTwnzwn5JG3VSk_7lqhXlg.png" /></figure><p><strong>Regular Expression:</strong> The specific artifacts associated with the campaign that can be used for adversary emulation or threat hunt.</p><blockquote>Please Note: YETI uses “Indicators” as part of IoAs</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1gTOmsveRQug5mOt8f17sw.png" /></figure><p><strong>Detections:</strong> The logic or rules (like Sigma or Yara) used to catch them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5FIPDFtZrrrh7JnCUFhCjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfDSuRCLuGCcfAxJ1aOQKA.png" /></figure><p><strong>IP Address: </strong>The specific IPs associated with the campaign.</p><blockquote>Please Note: YETI uses “Observables” as part of IoCs</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*YGGI98QP8452vMK8b7p36Q.png" /></figure><h4>Final Results</h4><p>Once your data is populated, you have a centralized repository that serves as a single source of truth for your security operations. This database doesn’t just store information; it empowers your team to pivot from a single indicator to a full understanding of a threat actor’s tactics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mq5j9DFhDB7wnfgTUFD9iQ.png" /></figure><h4>Conclusion</h4><p>Building a robust threat intelligence database is the first step toward a mature security posture. Tools like YETI make it accessible for any organization to start collecting data that fuels effective Purple Teaming and Threat Hunting exercises.</p><p><strong>References:</strong></p><p>[1] <a href="https://yeti-platform.io/">https://yeti-platform.io/</a></p><p>[2] <a href="https://thedfirreport.com/2025/11/17/cats-got-your-files-lynx-ransomware/">https://thedfirreport.com/2025/11/17/cats-got-your-files-lynx-ransomware/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b83bd8ec014d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lab for Students — PurpleHawkS v1.0]]></title>
            <link>https://medium.com/@chandrak.trivedi/lab-for-students-purplehawks-v1-0-570be8b76e62?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/570be8b76e62</guid>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[labs]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 06 May 2024 01:02:53 GMT</pubDate>
            <atom:updated>2024-05-06T01:02:53.589Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lab for Students — PurpleHawkS v1.0</h3><h4><strong>PurpleHawkS</strong>-tudent version is created to educate cybersecurity students on Mitre ATT&amp;CK-D3FEND Framework, Purple teaming exercise, Adversary Emulation and Detection Engineering with open-source tools.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*9cjVnN8i5fm52OgIndMc0Q.png" /></figure><h4>These labs will highlight in your resume and are well situated for:</h4><ul><li>SOC Analyst — Level 1 &amp; 2</li><li>Cybersecurity Analyst — Entry/Associate level</li><li>Offensive Analyst — Level 1</li></ul><h4>This is a pre-built Virtual Machines that includes open-source tools:</h4><ul><li>Bookmarks: Mitre Navigator, Top 10 Mitre Attack, Github Project and more..</li><li><a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attck-workbench/">Workbench</a></li><li><a href="https://caldera.mitre.org/">CALDERA</a></li><li><a href="https://vectr.io/">VECTR</a></li><li><a href="https://github.com/rabobank-cdc/DeTTECT">DeTT&amp;CT</a></li><li><a href="https://github.com/MazX0p/ThreatHound">ThreatHound</a></li><li><a href="https://github.com/wagga40/Zircolite">Zircolite</a></li><li><a href="https://github.com/Telefonica/ATTPwn">ATTPwn</a></li></ul><h4>VM Details:</h4><ul><li>VMware Workstation Player</li><li>Ubuntu Desktop 22.04</li><li>Username: phstudent | Password: Let$Purple</li><li>2 processor cores</li><li>25GB HD/4GB RAM (Expand it as needed locally)</li><li>Bridged Network Connection</li></ul><h4>Diagram:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*y6A1h3Y_9ZK_lzMfl-72wg.png" /></figure><h4>Runbook:</h4><p><strong>STEP0:</strong> Threat Reports <em>//Up to date with security trends and adversary behaviors</em></p><p><strong>STEP1:</strong> Workbench <em>//Collection on adversary TTPs</em></p><p><strong>STEP2a</strong>: Vectr Assessment and Campaign <em>//Purple Teaming TTPs collection</em></p><p><strong>STEP2b:</strong> DeTTECT Technique <em>//Purple Teaming TTPs collection</em></p><p><strong>STEP3:</strong> Caldera Adversary Emulation <em>//Red Teaming</em></p><p><strong>STEP4a:</strong> Vectr Red Team details <em>//Attack tracking</em></p><p><strong>STEP4b:</strong> DeTTECT Red Team details <em>//Attack tracking</em></p><p><strong>STEP5:</strong> Export Windows Logs and Sysmom-View <em>//Evidence collection</em></p><p><strong>STEP6a:</strong> ThreatHound <em>//Detection</em></p><p><strong>STEP6b:</strong> Zircolite <em>//Detection</em></p><p><strong>STEP7a:</strong> Vectr Blue Team details <em>//Defense tracking</em></p><p><strong>STEP7b:</strong> DeTTECT Blue Team details <em>//Defense tracking</em></p><p><strong>STEP8:</strong> Gap Analysis <em>//Report Writing</em></p><p><strong>STEP9:</strong> Detection Engineering <em>//Enrichment</em></p><h3>Labs to understand the tools</h3><p><strong>PurpleHawkS VMware download: </strong><a href="https://sharedby.blomp.com/b22YB3">https://sharedby.blomp.com/b22YB3</a><strong><br></strong>sha256: 87f9362864f96d07cf5b9546624d17cf2c1a99093035550e4468fd49e5c51c9c</p><p><strong>Lab instructions on GitHub: </strong><a href="https://github.com/chandraktrivedi/PurpleHawkS/tree/main/v1">PurpleHawkS/v1 at main · chandraktrivedi/PurpleHawkS (github.com)</a></p><p><strong>Lab Guidance:</strong> <a href="https://medium.com/@chandrak.trivedi">Chandrak Trivedi — Medium</a></p><h4>[1] Mitre ATT&amp;CK Navigator Tool — Mapping Threat Intelligence Report</h4><h4>[2] Mitre ATT&amp;CK-D3FEND — Identify TTPs and Countermeasures</h4><h4>[3] Workbench and DeTT&amp;CT — Collection on Threat group TTPs. Compare with current detection and conduct gap analysis.</h4><pre>:~$ cd workbench/attack-workbench-frontend/<br>:~/workbench/attack-workbench-frontend$ sudo docker-compose up -d<br><br>Visit the URL http://localhost in your browser (Bookmarked)</pre><pre>:~$ cd DeTTECT/<br>:~/DeTTECT$ sudo python3 dettect.py e<br><br>Log in to http://localhost:8080 (Bookmarked)</pre><h4>[4] Caldera and Sysmon-View — Adversary Emulation and logs.</h4><pre>:~$ cd caldera/<br>:~/caldera$ python3 server.py --insecure<br><br>Log in to http://localhost:8888 (Bookmarked and saved on browser)<br>Password found in the ~/caldera/conf/default.yml</pre><p><strong>Windows 10 (ISO):</strong> <a href="https://www.microsoft.com/en-us/software-download/windows10">Download Windows 10 (microsoft.com)</a></p><p><strong>Sysmon Download:</strong> <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">Sysmon — Sysinternals | Microsoft Learn</a></p><p><strong>Sysmon-View Download:</strong> <a href="https://github.com/nshalabi/SysmonTools/tree/master/SysmonView">SysmonTools/SysmonView at master · nshalabi/SysmonTools · GitHub</a></p><p><strong>ProcessHacker:</strong> <a href="https://processhacker.sourceforge.io/">Overview — Process Hacker (sourceforge.io)</a></p><h4>[5] Zircolite — Detection test and report</h4><pre>:~$ cd Zircolite/<br>:~/Zircolite$ sudo python3 zircolite.py --help</pre><h4>[6] SIGMA — Detection Rule Creation</h4><p><strong>Sigma Rules:</strong> <a href="https://sigmahq.io/docs/basics/rules.html">Rules | Sigma Website (sigmahq.io)</a></p><h4>[7] VECTR — Purple Teaming Manager</h4><pre>:~$ cd vectr/<br>:~/vectr$ sudo docker compose up -d<br><br>Log in to https://localhost:8081 (Bookmarked and saved on browser)<br>User: admin &amp;&amp; Password: 11_ThisIsTheFirstPassword_11</pre><h4>[8] ThreatHound — Detection Engineering</h4><pre>:~$ cd ThreatHound/<br>:~/ThreatHound$ sudo python3 ThreatHound.py --help</pre><h4>[9] Purple Teaming Exercise 1 — Scenario using Workbench, Caldera, Vectr and ThreatHound</h4><h4>[10] Purple Teaming Exercise 2— Create your own scenario using ATTPwn</h4><pre>:~$ cd ATTPwn/<br>:~/ATTPwn$ sudo python3 app.py<br><br>Log in to http://localhost:5000 (Bookmarked)<br>User: root &amp;&amp; Password: toor</pre><p>I hope this exercises with open source tools help you to build the foundation on Purple Teaming and Detection Engineering. Please reach out on Topmate or LinkedIn for any further guidance needed.</p><p>HAPPY PURPLING!!</p><blockquote><strong>Roadmap:</strong> PurpleHawkS v2 with more new open-source tools and exercises become more professionals.</blockquote><blockquote>Feedbacks are always welcome</blockquote><p>Thank you for your support and time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=570be8b76e62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Hunting: Open-source Tools — APT-Hunter and Chainsaw]]></title>
            <link>https://medium.com/@chandrak.trivedi/threat-hunting-open-source-tools-apt-hunter-and-chainsaw-bd510a14d6bd?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd510a14d6bd</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[threat-detection]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 02:01:39 GMT</pubDate>
            <atom:updated>2024-03-04T12:17:34.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>Threat Hunting: Open-source Tools — Chainsaw and APT-Hunter</h3><p>Threat Hunting is a proactive approach to reduce the dwell time and stop the adversary to stop before reaching the goals. Threat Hunter needs to think like attacker and understand the Cyber Kill Chain.</p><p>There is two methods of Threat Hunting:</p><ul><li>Structured — IOA</li><li>Un-structured — IOC</li></ul><p>For more details:</p><p><a href="https://medium.com/@chandrak.trivedi/threat-hunting-important-things-on-how-to-start-hunting-2b0f2efc90ac">Threat Hunting: Important things on how to start hunting?</a></p><p>SIEM is the best place to start hunting for threats, but we would concentrate on two hunt tools with no SIEM — <strong>Chainsaw </strong>and<strong> APT-Hunter</strong>.</p><p><em>Please Note: I am using these tools as part of purple teaming exercise on hunting threats via adversary emulation and creating attack flow. These tools are used assuming the adversary emulation is completed.</em></p><h4>Purple Teaming Emulation TTP Report</h4><p>Example: This was perform by the red team and wants us to hunt on RED TTPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMCDToswzV3wqhsIUYk2_Q.png" /></figure><h3>Chainsaw</h3><h4>STEP1: Export the Windows Event/Sysmon logs.</h4><h4>Un-structured Hunt</h4><p>This is data driven hunt so we will start with detections query and pivot from there to hunt for undetected TTP.</p><h4>STEP2a: Run the chainsaw.exe against the logs with our existing detection to identify which threat were detection.</h4><pre>$PATH\chainsaw&gt;chainsaw.exe hunt $PATH\EVTX-ATTACK-SAMPLES\ -s $PATH\sigma\ --mapping mappings/sigma-event-logs-all.yml --csv --output results</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2aLsbd2kLwN8UzzhgcLOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ME_6qsUYjxbtELU5yAIjsg.png" /></figure><p>These incident data would help to review more logs surrounding to find more evidences. We can also call this as PIVOT point.</p><h4>Structured Hunt</h4><p>This is Threat-Intel driven hunt so will start some research on TTP and hunt.</p><h4>STEP2b: Run the chainsaw.exe against the logs with keywords to hunt for threat which was researched.</h4><p><a href="https://attack.mitre.org/techniques/T1018/">Remote System Discovery</a></p><p>T1018 — Uses “net view”</p><pre>$PATH\chainsaw&gt;chainsaw.exe search -t &quot;net view&quot; $PATH\EVTX-ATTACK-SAMPLES\</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9m0qA3keXvLaQNzNPLOog.png" /></figure><p>We had a match on the search but there was no detection. This give us opportunity to add new detection. Additionally, further investigation can be done with other tool called “<a href="https://www.sans.org/tools/timeline-explorer/">Timeline Explorer</a>”.</p><h3>APT-Hunter</h3><h4>Un-structured Hunt</h4><h4>STEP1: Export the Windows Event/Sysmon logs.</h4><h4>Un-structured Hunt</h4><p>This is data driven hunt so we will start with detections query and pivot from there to hunt for undetected TTP.</p><h4>STEP2a: Run the APT-Hunter.exe against the logs with our existing detection to identify which threat were detection.</h4><pre>$PATH\apt-hunter&gt;APT-Hunter.exe -sigma -rules $PATH\rules.json -p $PATH\EVTX-ATTACK-SAMPLES\ -o OutFileName</pre><blockquote>Please Note: This cmd is not working on Windows device. Please try on Linux — <a href="https://github.com/ahmedkhlief/APT-Hunter/issues/31">SigmaHunter module is not loading · Issue #31 · ahmedkhlief/APT-Hunter (github.com)</a></blockquote><h4>Structured Hunt</h4><h4>STEP2b: Run the APT-Hunter.exe against the logs with keywords to hunt for threat which was researched.</h4><pre>$PATH\apt-hunter&gt;APT-Hunter.exe hunt &quot;net view&quot; -p $PATH\EVTX-ATTACK-SAMPLES\ -o OutFileName</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQpga4J3WAZNnhnqO2cBKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHXLCd3PBPMmQtyebnO4Wg.png" /></figure><h3>Threat Hunt Report</h3><p>Report can be created after hunt is completed. According to the hunt, we were able to get most of the finding on the red team emulation. Using this report, we can review the detections and add new detection found on the hunt for example “Remote System Discovery”. Additionally, we can also tune the current detection for example “WMI”.</p><p>Hence, in this case detection/visibility gap is less. Overall outcome from this hunting was SUCCESS.</p><p><strong>Final Detection:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*tTs1RuTSvksR-Ac9zi2U0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ltJDlCT4RonGaSka6al4w.png" /></figure><p>I hope that these tools help to hunt to reduce dwell time and detect suspicious behavior on the network and also help enriching the detection engineering to protect against threat.</p><p>References:</p><p>[1] <a href="https://github.com/WithSecureLabs/chainsaw">https://github.com/WithSecureLabs/chainsaw</a></p><p>[2] <a href="https://github.com/ahmedkhlief/APT-Hunter">https://github.com/ahmedkhlief/APT-Hunter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd510a14d6bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detection Engineering using Open-Source Tools —   ThreatHound and Zircolite]]></title>
            <link>https://medium.com/@chandrak.trivedi/detection-engineering-using-open-source-tools-threathound-and-zircolite-8b2b82651d73?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b2b82651d73</guid>
            <category><![CDATA[detection]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 05 Feb 2024 02:02:11 GMT</pubDate>
            <atom:updated>2024-02-05T02:02:11.003Z</atom:updated>
            <content:encoded><![CDATA[<h3>Detection Engineering using Open-Source Tools — ThreatHound and Zircolite</h3><p>Detection Engineering is the important part in cybersecurity since this trigger an alert that something suspicious is going on the network by matching applied signatures. These signatures are created in multiple form. Most widely used are:</p><ul><li>Sigma — System/Cloud logs</li><li>YARA — File strings</li><li>Snort/Suricata — Network traffic</li><li>SIEM — Logical query</li></ul><p>Keeping up to date on the adversary’s trend is the best way to enrich the detection and catch the threat before reaching the objective.</p><p>Additionally, purple teaming exercise would also be a great way to improve detection and gaps.</p><p><em>Please Note: I am using these tools as part of purple teaming exercise on reviewing the gap analysis report and enriching the detections (sigma rules).</em></p><h4>Purple Teaming Emulation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXsfOho_F_IVb08qImzm_A.png" /></figure><p><em>Please Note: These tools are used assuming the adversary emulation is completed.</em></p><h3>ThreatHound</h3><h4>STEP1: Export the Windows Event/Sysmon logs.</h4><h4>STEP2: Run the threathound.py against the logs with our existing detection to identify which threat were detection.</h4><pre>python3 ThreatHound.py ~/EVTX-ATTACK-SAMPLES/Execution/exec_persist_rundll32_mshta_scheduledtask_sysmon_1_3_11.evtx --sigma ~/sigma/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MlP9jqZ49a8hZJQmEGA0Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nj7bDjrwLQcpTA6-9WOW9A.png" /></figure><h4>STEP3: Update the purple teaming exercise results and run the report to conduct detection gap analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAhtxLFz2R98SZ0QrYW4FA.png" /></figure><h4>STEP4: Add or Enrich Detection</h4><p>We need to improve the detection on LSASS Memory and Remote Service.</p><p><a href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_rundll32_process_dump_via_comsvcs.yml">sigma/rules/windows/process_creation/proc_creation_win_rundll32_process_dump_via_comsvcs.yml at master · SigmaHQ/sigma</a></p><h4>STEP5: Repeat STEP2 to verify new or refine detection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aTTQLhg15QFhl0VXbpAQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9XMeWC5X7Dr1sDR7gIBag.png" /></figure><h3>Zircolite</h3><h4>STEP1: Export the Windows Event/Sysmon logs.</h4><h4>STEP2: Run the zircolite.py against the logs with our existing detection to identify which threat were detection.</h4><pre>python3 zircolite.py --evtx ~/EVTX-ATTACK-SAMPLES/ --rules ~/Zircolite/rules/rules_windows_sysmon_full.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYNCTOcwpGUS9iKVBHvVxg.png" /></figure><h4>STEP3: Update the purple teaming exercise results and run the report to conduct detection gap analysis.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAhtxLFz2R98SZ0QrYW4FA.png" /></figure><h4>STEP3.1: Zircolite also has a cool GUI based report which can be used to conduct detection gap analysis.</h4><pre>python3 zircolite.py --evtx ~/EVTX-ATTACK-SAMPLES/ --rules ~/Zircolite/rules/rules_windows_sysmon_full.json --template templates/exportForZircoGui.tmpl --templateOutput data.js<br>unzip gui/zircogui.zip<br>mv data.js zircogui/</pre><p>Then you just have to open index.html to review the report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1RQ3Jm659SWNuUta7w05_A.png" /></figure><h4>STEP4: Add or Enrich Detection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NgYrb0F5saVEjinvygKCA.png" /></figure><h4>STEP5: Repeat STEP2 to verify new or refine detection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkxuUk8Wh9lVwRzT9V6VLg.png" /></figure><p><em>Please Note: Zircolite has ruleset in JSON format which is different from YML file, so we need to manually create rule to match.</em></p><p>I hope that these tools help to detect suspicious behavior on the network and also help enriching the detection engineering to protect against threat.</p><p>References:</p><p>[1] <a href="https://github.com/MazX0p/ThreatHound">https://github.com/MazX0p/ThreatHound</a></p><p>[2] <a href="https://github.com/wagga40/Zircolite">https://github.com/wagga40/Zircolite</a></p><p>[3] <a href="https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES">https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES</a></p><p>[4] <a href="https://vectr.io/">https://vectr.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b2b82651d73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Purple Teaming: Best Gap Analysis open-source tool — VECTR and DeTTECT]]></title>
            <link>https://medium.com/@chandrak.trivedi/purple-teaming-best-gap-analysis-open-source-tool-vectr-and-dettect-c969b19590c9?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c969b19590c9</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gap-analysis]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[threat-detection]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 02:02:23 GMT</pubDate>
            <atom:updated>2024-01-08T02:02:23.660Z</atom:updated>
            <content:encoded><![CDATA[<h3>Purple Teaming: Best Gap Analysis Open-source Tools — VECTR and DeTTECT</h3><p>Gap analysis is the most important stage in purple teaming exercises. This analysis would be crucial for enriching detection engineering, visibility and analyst training.</p><p>This analysis can be conducted by executing adversary behavior or it can be compared with the existing data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*Z4nFrw8uZhkq0G2mblS-BQ.png" /><figcaption>Gap Analysis Cycle — ctrivedi</figcaption></figure><blockquote><strong>VECTR</strong> and <strong>DeTTECT</strong> are great open-source tools that can be used to perform excellent gap analysis as part of purple teaming.</blockquote><h3>VECTR — Purple Teaming and Gap Analysis</h3><p>This tool is very much suitable for conducting entire purple teaming exercise which can be completed with gap analysis report.</p><h4>STEP1: Getting started with creating Environment and Assessments.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4azbf5UaBPEgDwcTYvrfQ.png" /></figure><h4>STEP2: Campaign creation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7B7O7tBpjsrNPs9Z8L5D2Q.png" /></figure><h4>STEP3: Adding campaign TTP details</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHiDliwVTWn3RNpMdc_0CA.png" /></figure><h4>STEP4: Executed (Red Team) using Adversary emulation tools and fill out red team details.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*hlpG_MldtnYEZ6oo37UdVA.png" /></figure><h4>STEP5: Review the executed on SIEM or EDR (Blue Team). Depending on the output fill out blue team details.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*4qnvGytnFm6hOTb7TeuXXg.png" /></figure><h4>STEP6: Repeat STEP 4 &amp; 5 until completed</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6LQjjnX6Vvxw8hJMok2Vg.png" /></figure><h4>STEP7: Gap Analysis Report</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjcXDw_BH8XTUn4ePMlC2w.png" /></figure><h4>STEP8: Review the report and improve on detection/visibility gap. Furthermore, this will also train analyst on Incident handling.</h4><h3>DeTTECT — Gap Analysis</h3><p>This tool is very much suitable for gap analysis on Data source, Visibility and Techniques. Furthermore, it can also compare the detection data gap with any threat group w.r.t TTPs.</p><h4>STEP1: Add Techniques details</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pX-ExCUDwcPlxUOYxF5IA.png" /></figure><h4>STEP2: Executed (Red Team) using Adversary emulation tools.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XzVii3Q804uzYKaspTRQBw.png" /></figure><h4>STEP3: Review the executed on SIEM or EDR (Blue Team). Depending on the output fill out detection and visibility score.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*aZRvK_HcjFAVvOLUmDx2SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*jVODkHKGK3zAT9VbhHffFQ.png" /></figure><h4>Additionally, you can track Score logs.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypEfIzmUuwGRX5hV2RTzGg.png" /></figure><h4>STEP4: Repeat STEP 2 &amp; 3 until completed</h4><p>Once completed downloaded the YAML file and convert to JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nS0uxVXO-D1jt2-sveplgA.png" /></figure><h4>STEP5: Upload to Mitre Navigator</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qkl5jLQJrAZqr9FTUyVGrg.png" /></figure><h4>STEP6: Reviewing the output on Mitre Navigator so that we can conduct gap analysis and improve detection.</h4><p>My favorite part with DeTTECT is that we can directly do gap analysis using the details of threat group against our existing detection. Additionally, can also compare with red team exercise.</p><h4>STEP1: Add Group — Details collected from the threat report or APT.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zWsni6FJhd2WQksqEBp4w.png" /></figure><h4>STEP2: Download the YAML file and convert to JSON file.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bZclCNTOxBsfJRRWHsEOg.png" /></figure><h4>STEP3: Upload to Mitre Navigator</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8jLgTYMxdS42cYDNjI1Dw.png" /></figure><h4>STEP4: Reviewing the output on Mitre Navigator so that we can conduct gap analysis and improve detection/visibility.</h4><p>I hope this write-up and tools helps you to perform gap analysis to enrich your detection, visibility, and analyst training.</p><p>Happy Purpling!!!</p><p>References:</p><p>[1] <a href="https://thedfirreport.com/2023/10/30/netsupport-intrusion-results-in-domain-compromise/">https://thedfirreport.com/2023/10/30/netsupport-intrusion-results-in-domain-compromise/</a></p><p>[2] <a href="https://vectr.io/">https://vectr.io/</a></p><p>[3] <a href="https://github.com/rabobank-cdc/DeTTECT">https://github.com/rabobank-cdc/DeTTECT</a></p><p>[4] <a href="https://academy.picussecurity.com/">https://academy.picussecurity.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c969b19590c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Hunting: Important things on how to start hunting?]]></title>
            <link>https://medium.com/@chandrak.trivedi/threat-hunting-important-things-on-how-to-start-hunting-2b0f2efc90ac?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b0f2efc90ac</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity-importance]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 02:02:06 GMT</pubDate>
            <atom:updated>2024-01-17T18:53:19.118Z</atom:updated>
            <content:encoded><![CDATA[<p>Threat Hunting is one of the important part of cybersecurity to hunt manually for threats on the network to help reduced the dwell time and minimise the breach impact. This can be achieved by proactively searching data for signs of compromise and discovering cyber threats. The goal is to detect threat that none of technology can detect.</p><p><strong>Type of Hunters:</strong></p><blockquote>Ad-hoc — <em>are suitable for Small-size business and execute hunt as needed.</em></blockquote><blockquote>Analyst and Hunter — <em>are suitable for Commercial/Medium-size business and execute hunts regularly.</em></blockquote><blockquote>Dedicated Hunter — <em>are more suitable for Enterprise business and execute hunts constantly.</em></blockquote><h3>Runbook</h3><p>This six stages is what we would need to achieve excellent outcome on Threat hunting and stop adversary objectives (Kill Chain):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*Tc1CDT0mf6lVwgOS95OOvA.png" /><figcaption>Threat Hunting Process by Chandrak Trivedi</figcaption></figure><h3>Prepare</h3><p>This stage helps you establish your hunting foundations. The important points to consider in this stage are:</p><blockquote>Business objective — <em>This can be related to specific organization sector threat hunt like Health, IT, Telecom etc where the adversary is targeting. Additionally, the hunt can be defined by risk analysis report and hunt on critical assets. The important goal for this is to know how well you are protected by technology and hunt accordingly.</em></blockquote><blockquote>Threat Intelligence collection — <em>There are multiple sources for new threat feeds and can be used to hunt with IOA/IOC. So, keeping up to date on TI would be really curial for hunting new threats. Furthermore, POC collection or CVSS on CVEs would be also consider as important to hunt for any vulnerability exploitation.</em></blockquote><blockquote>Security Frameworks — <em>Mapping the threats into framework would help organize the hunt and know better about the adversary behaviour. There are few frameworks that can be used: Mitre ATT&amp;CK, Diamond Model, Sqrrl and knowledge on Cyber Kill Chain, Pyramid of Pain.</em></blockquote><h4>EXAMPLE: Threat Intel Report</h4><p>[1] <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-165a">https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-165a</a></p><p>[2] <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-325a">https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-325a</a></p><h3>Scope</h3><p>This stage helps to you create a path on threat hunting which will lead by the foundation describe in first stage. Scoping has two important steps:</p><h4>STEP1: Selecting Threat Hunt type</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*JZh7a347XidSH2OwrJEsoQ.png" /></figure><p>Structured hunt can also be referred as “K<strong><em>nown bad hunt</em></strong>”. A structured hunt is informed by indicators of attack (IoAs) through threat intelligence, high-risk/high-value entities, or known threat actor TTPs. In contrast, unstructured hunt can also be referred as “<strong><em>Anomaly-based</em></strong>”. An unstructured hunt is informed by indicators of compromise (IoCs) or through anomalous data observation.</p><h4>EXAMPLE: Reviewing the threat report</h4><p>[1] I would choose to go with Structured — TTP-Driven</p><p>[2] I would choose to go with Unstructured — Data-Driven</p><h4>STEP2: Hypothesis Creation</h4><p>This will help in Identify specific behaviour to hunt:</p><ul><li>Creating a Hypothesis using structured type, hunter needs to be Strategic, Tactical and Operational. For example: Asking questions to scope: “What — they do” | “How — the adversary does”?</li><li>Creating a Hypothesis using unstructured type, hunter need to be analytical. For example: Asking questions to scope: Did….this happen in my network? Does anything in….data look malicious?</li></ul><h4>EXAMPLE: Hypothesis</h4><p>According to threat Intelligence, Lockbit Ransomware group is targeting various organizations. If LockBit ransomware attacks are present on the network, we should be able to find traces on vary significantly in observed tactics, techniques, and procedures (TTPs) used by the group.</p><h3>Data</h3><p>This stage helps to gather all the important information for your hunting. Important details to be collected are:</p><blockquote>Tactic and Technique — <em>Based on the intelligence, hunter need to identify all the tactics, techniques used by threat and if needed re-define the hypothesis.</em></blockquote><blockquote>Data source and requirement — <em>Based on techniques collected, data source requirements are also documented. </em>[<a href="https://attack.mitre.org/datasources/">https://attack.mitre.org/datasources/</a>]</blockquote><p><strong><em>TIP: </em></strong><em>I would recommend to use</em><strong><em> </em></strong><a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attck-workbench/"><em>WORKBENCH</em></a><em> tool by Mitre Engenuity on the stage.</em></p><h4>EXAMPLE: Tactic and Technique for LockBit</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqSn9H8OT0JVD0eIcmcmCw.png" /><figcaption><a href="https://mitre-attack.github.io/attack-navigator/">https://mitre-attack.github.io/attack-navigator/</a></figcaption></figure><h3>Plan</h3><p>This stage helps to determine gaps and research on adversary based on intelligence. The important planning points are:</p><blockquote>Tools and Adversary Patterns — <em>This would be deep dive research on all the procedure(s) and tools used by adversary based on the data stage. This research would also help building sub-hypothesis and hunt individually on each sub-hypothesis.</em></blockquote><blockquote>Identify Gaps — <em>A final review on any gaps in data sources and threat details so that there is no waste of time and inaccurate outcome.</em></blockquote><h4>EXAMPLE: Research on procedures</h4><ul><li><a href="https://www.cybereason.com/blog/threat-analysis-report-lockbit-2.0-all-paths-lead-to-ransom">THREAT ANALYSIS REPORT: LockBit 2.0 - All Paths Lead to Ransom</a></li><li><a href="https://research.nccgroup.com/2022/08/19/back-in-black-unlocking-a-lockbit-3-0-ransomware-attack/">Back in Black: Unlocking a LockBit 3.0 Ransomware Attack</a></li></ul><h3>Execute</h3><p>On this stage actual hunting starts based on all knowledge gather from pervious stages. The most important thing on this stage is to be excited to hunt and stop adversary before reaching the goals. Additionally, some main things to know to execute hunting:</p><blockquote>Adversary Emulation —<em>This can be helpful to get</em> <em>accurate pattern on the threat and support to re-define sub-hypothesis.</em></blockquote><blockquote>Test —<em>Start with the broad hunt search to see the output and move to more narrow hunts search specific to the threat TTP defined in sub-hypothesis.</em></blockquote><p><strong><em>PLEASE NOTE:</em></strong><em> Emulation can be skipped if research on threat procedure(s) are well gathered.</em></p><p>Start the HUNT!!</p><h3>Result</h3><p>This is the final stage where you would document all the finding on the hunts executed.</p><blockquote>SUCCESS — <em>create a report that will summarize the hunt details and any opportunity for detection engineering or incident response engagement.</em></blockquote><blockquote>FAIL— <em>create a report that will summarize the hunt details and review the “PLAN” stage for any gaps, if correct, we can conclude with on intrusion on the network and verify any opportunity for detection engineering.</em></blockquote><p>Once the final report is completed, move to another threat hunt…</p><p>HAPPY HUNTING!!</p><h3>Sqrrl hunting loop is the perfect summarization for Threat Hunting.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*CBbW70-Pa994tDsFynSLwg.png" /></figure><p>References:</p><p>[1] <a href="https://my.ine.com/">https://my.ine.com/</a></p><p>[2] <a href="https://academy.picussecurity.com/home">https://academy.picussecurity.com/home</a></p><p>[3] <a href="https://www.immersivelabs.com/">https://www.immersivelabs.com/</a></p><p>[4] <a href="https://www.threathunting.net/sqrrl-archive">https://www.threathunting.net/sqrrl-archive</a></p><p>[5] <a href="https://www.nist.gov/system/files/documents/2017/04/20/2017-04-10_-_sqrrl_enterprise.pdf">https://www.nist.gov/system/files/documents/2017/04/20/2017-04-10_-_sqrrl_enterprise.pdf</a></p><p>[6] <a href="https://sansorg.egnyte.com/dl/hfu5PAbiPz">https://sansorg.egnyte.com/dl/hfu5PAbiPz</a></p><p>[7] <a href="https://www.cybrary.it/">https://www.cybrary.it/</a></p><p>[8] <a href="https://chandraktrivedi.blogspot.com/2022/06/threat-hunting-introduction.html">https://chandraktrivedi.blogspot.com/2022/06/threat-hunting-introduction.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b0f2efc90ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Purple Teaming: How to get started using Mitre Engenuity Tools and Projects]]></title>
            <link>https://medium.com/@chandrak.trivedi/purple-teaming-how-to-get-started-using-mitre-engenuity-tools-and-projects-b5073adce201?source=rss-9c25cc19c7cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5073adce201</guid>
            <category><![CDATA[purple-team]]></category>
            <category><![CDATA[mitre-attack-framework]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <dc:creator><![CDATA[Chandrak Trivedi]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 02:01:57 GMT</pubDate>
            <atom:updated>2023-11-06T02:01:57.842Z</atom:updated>
            <content:encoded><![CDATA[<p>Most organizations have blue team (SOC) which monitors the network and, conduct red teaming (Penetration Testing) to find the weakness on the network. Adversaries still finds ways to intrude the network and achieve the objective. The top reasons are weak detection engineering, analyst training and inefficient pentest. To address these reasons purple teaming is very important.</p><h3>Purple Team</h3><ol><li>Adversary emulation</li><li>Live co-ordination with blue team when adversary emulation is conducted to get efficient result.</li><li>Gap Analysis Report on the adversary emulation results.</li><li>Security Posture Improvement with gaps found.</li></ol><h3>Runbook</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*OgreQBX4lCI2ybrgFSPglw.png" /><figcaption>Flowchart by Chandrak Trivedi</figcaption></figure><p>I have divided this process into 5 stages:</p><h4>Collection</h4><p>There are many sources to get Threat Intelligence report by which we can collect data on adversaries methods to attack or breach the organizations.</p><ul><li><a href="https://thedfirreport.com/">The DFIR Report | Actionable Cyber Threat Intelligence</a></li><li><a href="https://www.cisa.gov/news-events/cybersecurity-advisories">Cybersecurity Alerts &amp; Advisories | CISA</a></li></ul><p>From this TI source we can use <a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/threat-report-attck-mapper-tram/">Threat Report ATT&amp;CK Mapper (TRAM)</a> which will help to find TTPs on the threat. These TTPs can be collected and recorded using <a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attck-workbench/">Workbench</a> to better track and manage locally.</p><p><em>Purple teamer — </em>This stage will help to collect all the adversary TTPs, data sources needed, software’s and tools used etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izc3W65ZZgO2n41n0yPMUQ.png" /><figcaption>TRAM — Report Uploaded</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IS6fwxviX8vu8I142Ri5Cw.png" /><figcaption>TRAM — Mapping</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7KBKmsiDCyYOZOKrrJBjRg.png" /><figcaption>Workbench — TTP database</figcaption></figure><h4>Preparation</h4><p>We need to be prepared on different ways adversary access, maintain, hide, execute, and exploit on the network.</p><p><a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attack-flow/">ATTACK FLOW</a> is a great tool to create flowchart on the adversary intrusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCgpGvbHczJ8VUHZJOXDaw.png" /><figcaption>Attack Flow Example</figcaption></figure><p>Recent years, exploitation on external exposed vulnerability has increased so keeping track on CVE is very important and how its exploited. <a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/mapping-attck-to-cve-for-impact/">MAPPING ATT&amp;CK TO CVE FOR IMPACT</a> can be used for vulnerability assessment and know adversary pattern on successfully exploitation.</p><p><em>Purple teamer — </em>Its always said “Know your enemy better” so this stage will help you to know better about adversary actions, behaviour, and patterns.</p><h4>Execution</h4><p>To better test the technology, monitoring tools and SOC team we need to simulate or emulate adversary actions.</p><p><a href="https://caldera.mitre.org/">CALDERA</a> is open-source tool which would emulated adversary (threats) behaviour. This helps with testing defenses and training blue teams on how to detect specific threats.</p><figure><img alt="Test" src="https://cdn-images-1.medium.com/max/1024/1*b6CRJKw-PxHFKho3MzOlDg.png" /><figcaption>CALDERA</figcaption></figure><p>There are too many adversary TTPs so <a href="https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/top-attack-techniques/">Top ATT&amp;CK Techniques</a> would help focus and prioritize on important threats that can be used to emulate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrRWoyQYUUKk_ykkq85_vA.png" /><figcaption>Top 10 — Techniques</figcaption></figure><p><em>Purple teamer — </em>This stage is to execute as many threats TTPs as possible to test the defensive side and detections.</p><h4>Mapping</h4><p>Once the attacks are performed, <a href="https://mitre-attack.github.io/attack-navigator/">MITRE ATT&amp;CK® Navigator</a> is the best tool to map those TTPs w.r.t adversary behaviours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xy0uQRwYQa4P_6z_OIa3Yw.png" /><figcaption>Mitre Navigator</figcaption></figure><p><em>Purple teamer — </em>The emulation result can be map to navigator with different colour code if the threat is detect, no detect, no alert, no data source etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjfhmb3L1MNDVY5gbuSG2g.png" /><figcaption>Navigator - Color Coding</figcaption></figure><h4>Analysis</h4><p>This manual analysis on attacks would boost your organization protection and defenses against the threats.</p><p><em>Purple teamer — </em>This would be the final report on gap analysis which includes detection improvement, visibility, training, defensive tools.</p><p>I hope this runbook will help you to start with purple teaming in your organization using open-source tools from Mitre Engenuity and enhancing your overall defensive side (Detections, Visibility, Training blue team etc).</p><p><strong>HAPPY PURPLING!!</strong></p><p><strong>Purple teaming can be summarized with this great quote:</strong></p><blockquote>“If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle.”</blockquote><blockquote>― Sun Tzu, The Art of War</blockquote><p>References:</p><p>[1] https://caldera.mitre.org/</p><p>[2] https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attack-flow/</p><p>[3] https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/threat-report-attck-mapper-tram/</p><p>[4] https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/attck-workbench/</p><p>[5] https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/mapping-attck-to-cve-for-impact/</p><p>[6] https://mitre-engenuity.org/cybersecurity/center-for-threat-informed-defense/our-work/top-attack-techniques/</p><p>[7] https://mitre-attack.github.io/attack-navigator/</p><p>[8] https://attack.mitre.org/</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5073adce201" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>