<?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 Ashish Bansal on Medium]]></title>
        <description><![CDATA[Stories by Ashish Bansal on Medium]]></description>
        <link>https://medium.com/@ashishsecdev?source=rss-2dc328292dcc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JBEVxhPKSoS4P0A9kRFACg.jpeg</url>
            <title>Stories by Ashish Bansal on Medium</title>
            <link>https://medium.com/@ashishsecdev?source=rss-2dc328292dcc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:47:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashishsecdev/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[SoulBound Tokens (SBTs): Web3]]></title>
            <link>https://ashishsecdev.medium.com/soulbound-tokens-sbts-web3-2f2c1ed5ed7d?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f2c1ed5ed7d</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[soulbound-tokens]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 13:57:04 GMT</pubDate>
            <atom:updated>2026-04-03T13:57:04.932Z</atom:updated>
            <content:encoded><![CDATA[<p>During the COVID era, while most people stayed home trying to stay safe behind masks, something entirely different was making its way into the mainstream “<strong>NFTs</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kOEHzlec-SVl4lNT" /><figcaption>Photo by <a href="https://unsplash.com/@coinhako_official?utm_source=medium&amp;utm_medium=referral">Coinhako</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Almost overnight, they surged in popularity and become a cool new way to showcase digital ownership and for many, even signal net worth. It even proved to be a compelling investment avenue as well, although the hype eventually cooled and the market lost momentum.</p><p>NFTs fundamentally reshaped how we think about ownership in the digital world like enabling the buying and selling of digital art, virtual real estate and collectibles.</p><p>Yet, a crucial piece of digital identity was still missing perhaps intentionally so. While NFTs focused on what we own, there wasn’t a meaningful way to represent who we are. This is where <strong>Soulbound Tokens (SBTs)</strong> entered the scene, shifting the narrative from ownership to identity.</p><p>If you play World of Warcraft then you might be familiar with <strong>“soulbound items” </strong>and that’s exactly something that inspired Eherium guy Vitalik Buterin to come with the paper called “Decentralized Society: Finding Web3’s Soul,” by Vitalik Buterin, Eric Glen and Puja Ohlhaver in 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T6iTi8itPOAPosG4" /><figcaption>Photo by <a href="https://unsplash.com/@kanchanara?utm_source=medium&amp;utm_medium=referral">Kanchanara</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>SBTs exactly solves the problem that NFT did’t see or didn’t intended to solve, SBTs are designed to function as the permanent, verifiable and non transferable building blocks of our digital personas.</p><p>An SBT is a digital identity token that is permanently linked to a specific wallet like it’s “Soul” and cannot be sold, traded or transferred to another entity. Unlike a standard NFT, which might represent a valuable piece of art that can be traded and have multiple owners in it’s digital journey.</p><blockquote><em>SBTs represents an achievement, a credential, an affiliation or a reputation that belongs solely to the individual who earned it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S-KzSUj6k-9HhiYY" /><figcaption>Photo by <a href="https://unsplash.com/@moneyphotos?utm_source=medium&amp;utm_medium=referral">rc.xyz NFT gallery</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Example:</strong> Your driving license or event passport, it’s your unique identity that can’t be traded.<br> <br> If you want to go deeper to this concepts then my recommendations would be to understand <strong>Smart Contract</strong> and various <strong>ERC standards</strong> with it’s use cases.</p><p>As per programmatic perspective, the smart contract that governs an SBT restricts the ability to transfer or approve a third party to move the token. Most SBTs implementations is based on <strong>ERC-5192</strong> that explicitly define “locking” mechanisms to bind the token to the wallet upon minting, creating a transparent, immutable record on the blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_X4qZfu5wFo6dm_s" /><figcaption>Photo by <a href="https://unsplash.com/@heyimmarielle_03?utm_source=medium&amp;utm_medium=referral">Marielle Ursua</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong><em>Differences: SBTs vs. NFTs</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZ9PdaEgKlubyPz6rctdrA.png" /></figure><p><strong>Use Cases of SoulBound Tokens</strong></p><p>As I write this article SBTs are moving beyond theoretical discussion and are actively being piloted and integrated into various emerging Web3 ecosystem. Their non transferable nature unlocks powerful applications in areas where trust, authenticity and permanence are critical.</p><ol><li><strong>Digital Identity and Credential Verification<br></strong>One of the most promising and readily achievable use cases is in the domain of digital identity and credential verification.</li></ol><ul><li><strong>Educational Diplomas and Certificates:</strong> A graduate can present their wallet address and an employer can instantly confirm the validity of their credentials that issued on chain by University.</li><li><strong>Professional Licenses and Skill Badges:</strong> Similar to academic degrees, professional regulatory bodies can issue SBTs to represent licenses to practice like medical, legal or CPA licenses.</li><li>KYCs: Post verification a SBT can be issue to individual that confirms that the individual is verified.</li></ul><p>2. <strong>Medical Records and Data Management<br></strong>Privacy preserving SBTs that can be combined with Zero Knowledge Proofs (ZKPs) can offer a potential solution for managing sensitive medical data.</p><ul><li><strong>Decentralized Health Records:</strong> A medical provider can issue an SBT to a patient’s ‘Soul’ wallet, serving as a secure, decentralised identifier linked to their medical records. <br>So, instead of sharing entire files, patients can use ZKPs to selectively prove specific medical facts like vaccination status, blood type, or negative test results without revealing unnecessary personal details or data.</li></ul><p>3. <strong>Credit Scoring and DeFi Lending</strong></p><p>Traditional decentralised finance (DeFi) often relies heavily on over-collateralization because lenders cannot assess a borrower’s creditworthiness. <br><strong>SBTs offer a path forward&gt;&gt;<br>I find this one of the most interesting use case after KYC use case.</strong></p><ul><li><strong>On Chain Credit Reputation:</strong> Lenders can issue SBTs to borrowers who successfully repay loans on time. Over time, these tokens accumulate in a borrower’s ‘Soul’ wallet, creating a verifiable on chain credit history.<br>This can pave the way for under collateralized lending in DeFi, opening the ecosystem to a wider range of participants.</li></ul><p>4. <strong>Gaming and Esports Achievements<br></strong>Gaming is another natural fit for SBTs, providing a permanent and authentic way to recognise player achievements.</p><ul><li><strong>Permanent Achievement Badges:</strong> Players often invest significant time and effort in games but their achievements can be difficult to prove or lose if they switch accounts or games. SBTs can be issued for game achievements, ranks or tournament victories, creating a permanent, verifiable “trophy cabinet” in the player’s wallet that is distinct from transferable in game assets like skins and player mods.</li></ul><p><strong>Challenges and Limitations of SBTs</strong></p><p>Despite their immense potential, several significant hurdles must be overcome before SBTs can reach widespread adoption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B0kxPCnkPVPtMvlr" /><figcaption>Photo by <a href="https://unsplash.com/@mike_van_den_bos?utm_source=medium&amp;utm_medium=referral">Mike van den Bos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li><strong>Privacy Concerns:</strong> The on chain, immutable nature of SBTs presents a major privacy challenge. While specific medical data can be obscured, the <em>metadata</em> associated with an SBT that is publicly visible. However, we can combine it with privacy enhancing technologies like ZKPs to protect sensitive metadata is essential.</li><li><strong>Centralization Risks:</strong> SBTs rely on “issuers” educational institutions, companies, medical providers or etc. The entire system’s integrity depends on the trustworthiness of these issuers. If an issuer is compromised or centralized, the SBTs they issue may become less valuable or even fraudulent.</li><li><strong>Wallet Management:</strong> If a user loses access to their ‘Soul’ wallet, they also lose access to their entire collection of SBTs. This highlights the critical importance of secure wallet management and the need for robust decentralized recovery mechanisms that do not rely on a single central authority.</li><li><strong>Adoption Barriers:</strong> Integrating SBTs requires significant institutional and technical overhead. Educational institutions, professional organizations, and governmental agencies must adopt new standards and processes, a transition that will take time and require widespread consensus.</li></ul><p><strong>Conclusion: Soulbound Tokens and the Future of Web3</strong></p><p>I believe that with AI becoming mainstream, it’s more important than ever to have strong controls in place to safeguard against fraud and identity theft.</p><p>Soulbound Tokens are more than just a new token standard, they represent a fundamental shift in how we conceptualise and build digital identity. By prioritising utility, trust and authenticity over market speculation, SBTs provide the critical building blocks for a more robust, equitable and human centric decentralised society.</p><p>I enjoy discussing and architecting these technologies. If you’d like to connect, feel free to drop me a message on LinkedIn.</p><p>~AshishSecDev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f2c1ed5ed7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NIST AI RMF: Implementation Guide]]></title>
            <link>https://ashishsecdev.medium.com/nist-ai-rmf-implementation-guide-ace431b78729?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ace431b78729</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 19:02:39 GMT</pubDate>
            <atom:updated>2026-03-02T19:18:52.921Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of fintech, <strong>“move fast and break things”</strong> is a dangerous mantra. If you’re dealing with people’s money, identities, credit histories and life savings, even a small mistake can have irreversible consequences.</p><p>The widespread adoption of AI has raised the stakes for financial institutions; for fintechs and banks, seamless integration will be anything but simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ck0ALJyYM4o0l9_-" /><figcaption>Photo by <a href="https://unsplash.com/@pawel_czerwinski?utm_source=medium&amp;utm_medium=referral">Pawel Czerwinski</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A buggy release isn’t just a technical glitch, it can mean financial loss, regulatory penalties and broken trust. In this industry, moving thoughtfully, securely and compliantly isn’t a slowdown; it’s a responsibility.</p><p>You might already be familiar with frameworks like NIST CSF or ISO 27001 that provide structured guidance for managing cybersecurity risk. However, with AI now embedded in products and business processes, organisations need a more advanced approach one that integrates AI specific considerations into established risk management principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*urUhOgxVJUWfvI84" /><figcaption>Photo by <a href="https://unsplash.com/@jamie452?utm_source=medium&amp;utm_medium=referral">Jamie Street</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This means adopting a unified AI focused standard that helps define clear guidelines to ensure both regulatory compliance and the secure deployment of AI systems across the organization.</p><p>NIST AI RMF can be used as a strategic blueprint to prepare your organisation to be AI ready with security into consideration.</p><p>Here is how your startup can use it to build trust, scale responsibly and stay ahead of the regulatory curve, call it implementing <strong>“Responsible AI”</strong></p><h3>Let’s look NIST AI RMF</h3><p>It’s a voluntary, non prescriptive framework designed to help organisations manage the <strong>“socio technical”</strong> risks of AI.</p><p>It’s a guide to making sure that your AI doesn’t just work but it stays responsible.</p><h4><strong>NIST AI RMF focuses on seven characteristics:</strong></h4><ol><li><strong>Valid and Reliable</strong> (Does it work?)</li><li><strong>Safe</strong> (Can it cause harm?)</li><li><strong>Secure and Resilient</strong> (Can it be hacked?)</li><li><strong>Accountable and Transparent</strong> (Who is responsible?)</li><li><strong>Explainable and Interpretable</strong> (Can you explain the “Why”?)</li><li><strong>Privacy-Enhanced</strong> (Is data protected?)</li><li><strong>Fair</strong> (Is there bias?)</li></ol><h3>Four Pillars: NIST AI RMF</h3><p>This framework is built on four core functions, let’s look at how a growing fintech startup can operationalise them. <br>I call it “<strong>Go Mmmuahhh!</strong>”, that’s <strong>G-MMM</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*a6PT8TL0FMhAABrYeuT8_Q.jpeg" /><figcaption><a href="https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf"><strong>NIST AI RMF</strong></a></figcaption></figure><h3>1. Govern: “Risk Aware Culture”</h3><p>Governance is the “<strong>North Star</strong>” it’s about creating a culture where risk isn’t an afterthought.</p><p>You don’t really need a 50 person compliance team, you need someone who truly understands the framework and has hands on experience building a security function from the ground up and has a strong grasp of standards like ISO 27001 and NIST.</p><p><strong>Actionable; Starting step:</strong> Appoint a “Lead of Responsible AI” who is ready to wear multiple hats. Create a simple “AI Ethics Manifesto” that outlines what your company will and won’t do with data.</p><p><strong>Example:</strong> If you are building an AI powered personal wealth manager, your governance policy might state that “Financial advice must never be based on proxies for protected classes like race or zip code.”</p><h3>2. Map: “List your AI tools”</h3><p>You cannot manage what you haven’t mapped, hence this phase is about identifying where AI lives in your product and how it interacts with the world.</p><p><strong>Reality:</strong> Mapping often reveals “Shadow AI” like third party APIs your engineers plugged in without a review).</p><p><strong>Actionable Step, AI Inventory:</strong> Build an AI Inventory and list every model, its data source, its intended purpose and who is impacted by its decisions, any approval process for it?</p><p><strong>Example:</strong> Loan Approval Model mapping means identifying that a “False Negative” (denying a qualified person) isn’t just a lost sale and data of customer is also not used by 3rd party vendor for training it’s own data.</p><h3>3. Measure: “Quantify”</h3><p>Once you know the risks, you need to track and measure them.</p><p>Don’t get lost in numbers and focus on the metrics that matter most to your specific product.</p><p><strong>Actionable Step:</strong> Implement automated testing for <a href="https://www.datacamp.com/tutorial/understanding-data-drift-model-drift">model drifts</a> and use open source tools to check if your model’s accuracy varies significantly across different demographics.</p><p><strong>Example:</strong> In Fraud Detection, you measure the “False Positive Rate.” If the AI starts flagging all international travelers as “High Risk,” your measure phase should trigger an alert that your model’s fairness is degrading.</p><h3>4. Manage: “Prioritise &amp; Respond”</h3><p>This is where you actually test your program, how do you respond to the risks you’ve measured?</p><p><strong>Reality:</strong> Use a “Human inthe Loop” approach for high-stakes decisions as per which humans label and validate data, fine tune models and continuously review, correct or override AI outputs. <br>This ongoing feedback loop helps minimise bias and ensures better handling of complex, low confidence, or high impact decisions.</p><p><strong>Actionable Step:</strong> Create an “IR Plan” specifically for AI. If your chatbot gives a customer incorrect data or leak data, do you have a kill switch?</p><p><strong>Example:</strong> An automated Credit Scoring engine produces an outlier result, like it does accept prompt injection or prompt poisoning. So, in this case the DR &amp; Data team should be automatically notified to review the case before the final decision is sent to the customer.</p><h3>Why Should any company Care about implementing AI Governance or AI Security?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FdyD1Tgz-Ds3VgAiDR4YFg.png" /><figcaption><strong>Image Source: </strong><a href="https://www.nextgov.com/ideas/2025/10/four-steps-successful-generative-ai-governance/408580">NextGov.com</a></figcaption></figure><ol><li><a href="https://www.allied.vc/articles/how-ai-is-reshaping-venture-capital-for-founders-and-investors"><strong>Investors Viewpoint:</strong> </a>VCs are increasingly conducting “AI due diligence” and having a compliant, well structured process in place gives you a clear edge by signalling that you’re a mature and AI responsible company.</li><li><a href="https://cms.law/en/int/expert-guides/ai-regulation-scanner/"><strong>Regulatory Future Proofing:</strong></a> While NIST AI RMF or ISO42001 is voluntary today, its language is already appearing in draft regulations from the CFPB America, MeitY’s India AI Governance Guidelines and international bodies like the EU AI Act.</li><li><strong>Customer Trust:</strong> Trust is the only currency that truly matters and that it’s built on how well you protect your customer data and manage risk. When you can clearly demonstrate structured “Measure” and “Manage” protocols around AI systems, data security and risk oversight, you signal transparency, accountability and maturity. It shows customers their data is protected, regulators that you are prepared and investors that you are not operating as a risky “black box.” In a sector where reputation can change overnight, strong governance and visible controls make you the safer, more credible choice.</li></ol><h3>Conclusion: Start Small, Think Big!</h3><p>You don’t have to implement entire <a href="https://www.nist.gov/itl/ai-risk-management-framework">NIST AI RMF</a> or <a href="https://kpmg.com/ch/en/insights/artificial-intelligence/iso-iec-42001.html">ISO42001</a> in a day but it’s a slow process of building and adapting to this current envolving ecosystem of AI integration with your products. <br>I would suggest start with the Govern and Map functions to know what you’re building and why, where all you have plugged the AI. When you have the foundational work and your user base grows, scale it into Measure and Manage.</p><p>In this race AI race, the winners won’t just be the ones with the fastest algorithms they’ll be the ones whose algorithms the world can actually trust.</p><p><a href="https://airc.nist.gov/docs/playbook.xlsx">Download your own NIST AI RMF Template</a></p><p><a href="https://medium.com/kredivotechblog/zero-to-hero-ai-security-a73545fa2b39">Read my other article on AI Security.</a></p><p><strong>~AshishSecDev</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ace431b78729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile Security: Chat with MobSF]]></title>
            <link>https://systemweakness.com/mobile-security-chat-with-mobsf-62bba32caaa8?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/62bba32caaa8</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[mobile-security]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 08:19:03 GMT</pubDate>
            <atom:updated>2026-02-24T10:58:28.733Z</atom:updated>
            <content:encoded><![CDATA[<p>With the exploding growth of mobile applications across fintech, healthtech, ecommerce etc. Mobile application security is no longer good to have or options but absolutely required and must have.</p><p>As a security professional worked across security domain, I have seen scenarios on how attackers target mobile app and it’s not just about malware anymore. Threat actors reverse engineer APKs, extract hardcoded API keys, bypass root detection, tamper with business logic and exploit weak backend validations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5TQYoONBBBG_uRzFO7BgQ.png" /><figcaption><strong>AshishSecDev: Generate from Gemini (Nano Banana)</strong></figcaption></figure><p>Today, attackers don’t need advanced zero days, like with reverse engineering tools and open source scanners, mobile apps are easier than ever to analyze and exploit.</p><p>That’s why mobile security must be a core engineering discipline can not be a last minute compliance or boring task. Secure coding, runtime protection, API validation, certificate pinning, obfuscation and continuous testing should be baked in from day one.</p><p>One powerful open-source solution for mobile application security testing is the <a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF"><strong>Mobile Security Framework (MobSF)</strong></a> that is created by industry expert <a href="https://www.linkedin.com/in/ajinabraham/"><strong>Ajin Abraham</strong></a></p><p>I have built an open source integration that lets you unleash a conversational AI directly on the data generated by MobSF. Instead of scrolling through endless reports, you can interrogate your findings ask questions, demand clarity and extract data patterns using OpenAI integration.</p><p>If you have the GPU power, you can wire in GPT OSS 20b (Open Source) and let it think locally, relentlessly.</p><blockquote>Imagine this: MobSF exposes the surface &gt; OpenAI interprets the signals&gt; OpenClaw descends into the mobile lab, probing deeper, hunting for what was missed.</blockquote><p><strong>Not just reports!!! Not just scans!!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l2KhaJhLGKRrjLgrf_jtQw.png" /><figcaption><strong>Generated by Gemini: AshishSecDev | MobSF &gt; OpenAI &gt; OpenClaw</strong></figcaption></figure><p><strong>An intelligence layer that reads your security data… and talks back…woof!</strong></p><p>Mobile Security Framework (MobSF) is an automated, all in one mobile application security testing framework that is capable of performing following:</p><ol><li>Static Application Security Testing (SAST)</li><li>Dynamic Application Security Testing (DAST)</li><li>Malware analysis.</li><li>Mobile App API testing</li><li>Provide Assistance in reverse engineering the Mobile App.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*9RgLEwqy9wVclXmGUNpKvw.png" /><figcaption>Source: <a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF?tab=readme-ov-file">Github</a></figcaption></figure><p>Amazing easy to setup as per:</p><p><strong>$ docker pull opensecurity/mobile-security-framework-mobsf:latest<br>$ docker run -it — rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest<br>User/Pass: mobsf</strong></p><p><strong>MobSf Documentation: </strong><a href="https://mobsf.github.io/docs/#/">https://mobsf.github.io/docs</a></p><p>You can also try it live as per MobSF Sandbox: <a href="https://mobsf.live/">https://mobsf.live</a> <br>(Do it with caution as all your app data would be public)</p><p><strong>Upload App:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZDZW7OtkWMhCc7PtdOCQQ.png" /><figcaption><strong>Gemini: Click Upload and wait for it to show the result</strong></figcaption></figure><p>MobSF extracts the <strong>AndroidManifest.xml</strong> in Android and <strong>Info.plist</strong> in IOS to review permissions, components and configurations. <br>It then decompiles the DEX bytecode into readable smali or Java code, enabling deeper inspection of the app’s logic in Android and examines the Mach object binary to inspect compiled code, linked libraries and security protections.</p><p><strong>MobSf features:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kug0YG7fT0wP5jto0vT3w.png" /><figcaption><strong>AshishSecDev: MobSf Features</strong></figcaption></figure><p>Now, I will let you explore the application yourself as it’s straightforward and you can spend some time navigating the dashboard and reviewing the detailed output and analysis reports generated by the tool.</p><p>However, this led me to think that what if we could automate the entire testing cycle end to end and empower our AppSec and development teams to leverage automation and AI, enabling them to extract meaningful insights directly from the MobSF generated JSON reports?</p><p>So yes, MobSF already comes with APIs and you could totally use them for your automations like Slack Bot thingy, scheduling scans &amp; fetching JSON etc.</p><p>Instead I thought, why not plug a sidecar container to the latest MobSF version?. So, the MobSF repo stays completely untouched, we simply run two sidecar containers alongside it. One to serve a chatbot and another to handle the AI (OpenAI) integration.</p><p>MobSF keeps doing its security magic and our sidecars quietly whisper AI powered insights into your ears.</p><p>Clean, Modular, Slightly over engineered :-P, Just the way nerds like it!!</p><blockquote>Raw JSON is noise, AI makes it signal and we choose signal, right?</blockquote><h3>Let’s get started with MobSF AI:</h3><p><strong>1. Clone Repo:</strong></p><p><strong>$ git clone </strong><a href="https://github.com/ashishsecdev/MobSF_AI.git"><strong>https://github.com/ashishsecdev/MobSF_AI.git</strong></a></p><p><strong>2. Go to Directory:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjhCjXfgilxT748r21BpDQ.png" /><figcaption><strong>ls -la on the cloned GH repo</strong></figcaption></figure><p><strong>3. Define OpenAI API Key:</strong></p><p><strong>Run on CLI </strong>export MOBSF_OPENAI_API_KEY=”XX-OpenAI API Key-XX” as per <a href="https://platform.openai.com/api-keys">https://platform.openai.com/api-keys</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*4BDq-GRtfRssohbUiNdASA.png" /></figure><p><strong><em>Default: </em></strong><em>MOBSF_API_KEY=1234567890 </em>(Optional)<em><br></em><strong><em>Your API Key:</em></strong><em> OPENAI_API_KEY=${MOBSF_OPENAI_API_KEY}</em></p><p><strong>4. Setup the integration: </strong>Run in terminal</p><p><strong>$ docker-compose -f docker-compose-mobsfai.yml up -d --build</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGzG0945GNc60vB0UMfM5Q.png" /><figcaption><strong>Docker Containers: MobSF AI</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCRFJo6GltZsAnbmUCKeTw.png" /><figcaption><strong>Open on :8080</strong></figcaption></figure><p><strong>5. AI at work</strong></p><p><strong>- Upload:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*MFrXY3Bj6Gs9kqz9YXIOLQ.jpeg" /><figcaption><strong>Upload Android/IOS App</strong></figcaption></figure><p><strong>6. Chat with Mobsf Data: </strong>I created a separate page for Chatting as thats easier to look at the data on bigger screen, I tried minize version of Chat Bot but that wasn’t user friendly.</p><p><strong>Click on right below </strong><strong>“Green Chat Button”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pET1pE-_lsPQ4xWpSj36WQ.png" /><figcaption><strong>MobSF Chat Window</strong></figcaption></figure><p><strong>7. Start Chatting: </strong>Ask questions on the basis on generated output of data in the Mobsf, you would only be able to ask questions specific to particular mobile app as per the generated unique hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DswXKwcHcKSvU6ujc_LalQ.png" /><figcaption><strong>Chatting with MobSF Data</strong></figcaption></figure><p><strong>8. Working Example: </strong>I tried asking questions like what kind of comms to be given to Devs in sense of remediations etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oflqypig-EG5-9GGoPXEzw.png" /><figcaption><strong>Ask questions, you can also update temperature setting as required.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQv2TkWBlkHXZlgkkepifw.png" /><figcaption><strong>Real world exploits</strong></figcaption></figure><p>In many organizations today, the mobile app <em>is</em> the product, the brand and sometimes even the bank.</p><p>~MobSF give visibility, Automation givesspeed, AI gives correlation!</p><p>When you combine all three, you don’t just generate reports you generate intelligence.</p><p>As security engineers, we spend too much time manually reviewing reports, UI, outputs, correlating findings, drafting remediation notes and explaining the same risks to developers again and again.</p><p><strong>What if instead, we could ask and get insights in seconds.</strong></p><ul><li><em>“Summarize high-risk issues in business language.”</em></li><li><em>“What can be exploited remotely?”</em></li><li><em>“Draft remediation guidance for the Android team.”</em></li><li><em>“Is certificate pinning properly implemented?”</em></li><li><em>“Any recent issues exploited?”</em></li></ul><p>This isn’t about replacing AppSec engineers but it’s about augmenting them. It’s about empowering security teams to move faster and work smarter, reducing the constant friction between security and development.</p><p>This is ofcosurse not the end imagine you get results analysed by OpenAI and then you ask you AI Agent (Codex &amp; OpenClaw) to fix them. I will try to cover that in my next series.</p><p>Whether you run it with OpenAI in the cloud or plug in an open source model locally with GPU power, the direction is clear that security tooling is evolving from static scanners to interactive intelligence systems.</p><p>If you’re into mobile security, DevSecOps or AI driven automation, I would love for you to try the integration, break it, improve it, and contribute.</p><p>Now, the future of AppSec isn’t just scanning apps but it’s conversing with your security data.</p><p>Let’s build that future together..!</p><p>Read my recent article on <a href="https://medium.com/kredivotechblog/zero-to-hero-ai-security-a73545fa2b39"><strong>AI Security</strong></a></p><p>MobSF AI: <a href="https://github.com/ashishsecdev/MobSF_AI.git">https://github.com/ashishsecdev/MobSF_AI</a><br>Follow me on Github: <a href="https://github.com/ashishsecdev/MobSF_AI.git">https://github.com/ashishsecdev</a><br>My Linkedin: <a href="https://www.linkedin.com/in/ashishsecdev/">Ashish Bansal (AshishSecDev)</a></p><p><strong>~AshishSecDev</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62bba32caaa8" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/mobile-security-chat-with-mobsf-62bba32caaa8">Mobile Security: Chat with MobSF</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All About: AI Security]]></title>
            <link>https://medium.com/kredivotechblog/zero-to-hero-ai-security-a73545fa2b39?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a73545fa2b39</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[infosecurity]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 15:01:43 GMT</pubDate>
            <atom:updated>2026-02-06T06:23:01.834Z</atom:updated>
            <content:encoded><![CDATA[<h3>All About : AI Security</h3><p>Artificial Intelligence (AI) began as an <strong>intern</strong> then quickly grew into a <strong>software engineer</strong>, and is now steadily stepping into the decision making role in our professional and personal lives, fundamentally reshaping the cybersecurity landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dm2Mb0CKoe2jMN_x5M5orA.png" /><figcaption><strong>AI Security: Safeguard your AI Assets</strong></figcaption></figure><p>As AI becomes deeply embedded in modern applications, it fundamentally reshapes the cybersecurity landscape. Cybersecurity used to be all about firewall rules, passwords and detecting malware. Now, it’s shifting toward a new type of security specialist: the AI security expert. This change is important because AI systems have become prime targets and lucrative entry points for attackers, creating a huge attack surface that we’re only beginning to figure out how to defend.</p><p>Integration of AI introduces an enormous attack surface and unique vulnerabilities that traditional security measures alone cannot address. This reality underscores the <strong>urgency of a new security focus.</strong></p><blockquote><strong>AI has not only introduced new vulnerabilities but also transformed how security professionals must operate:</strong></blockquote><p><strong>New Attack Surfaces: </strong>AI systems introduce entirely new attack vectors, such as input attacks, data poisoning and model theft, that are not typically encountered in traditional software systems. It’s important to build our learning around it, as most of our products are being integrated with AI at a rapid pace, from simple Chatbots to AI Agents for troubleshooting.</p><p>Also, its noteworthy that while AI can enhance security workflows by identifying code vulnerabilities and supporting analysis within the AppSec team, it can also, unfortunately, be used by adversaries to support their attack workflows and methodologies.</p><blockquote><a href="https://medium.com/system-weakness/ollama-local-llm-for-code-security-d9694d416d14"><strong>Check out Neurascan to see how it helps you secure your code with AI</strong></a></blockquote><p>Prompts can sometimes blur the fine line between data and instructions, as<strong> </strong>Large Language Models (LLMs) often struggle to differentiate between user instructions and data within the input, creating opportunities for malicious manipulation through prompt injection.</p><p>Traditional<strong> </strong>long-standing web security techniques like the Same Origin Policy and Cross Origin Resource Sharing (CORS) are effectively rendered useless when an Agentic AI assistant follows malicious instructions from untrusted webpage content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-d3LfgZ8bNzXYiScFn4s3w.png" /><figcaption><strong>AshishSecDev: Gemini Generate AI</strong></figcaption></figure><h3><strong>Supply Chain Vulnerabilities</strong></h3><p>AI systems often rely on external models and data sources, introducing significant supply chain risks where poisoned models can be obtained from third-party libraries or hubs. In addition, one has to also be mindful about NPM packages that comes along with a<strong>Vibe Coding hobby</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yk-BSATGefigaqLeFDr8jg.png" /><figcaption><strong>Devs would love it! (NPM Meme)</strong></figcaption></figure><p><strong>Here are some key AI security issues:</strong></p><p><strong>1. Data Poisoning:</strong> This involves an attacker manipulating the training data, augmentation data or the model itself during its development or production lifecycle. This is a significant concern because the training data determines the behaviour and responses of the AI system.</p><p><strong>Why it’s a big deal</strong>: AI models, especially those based on neural networks, function as “black boxes” where their behaviour is embedded in complex parameters (weights) that are very hard to interpret.</p><p>Suppose a hacker changes the training data, they can change the model’s behaviour in subtle ways that are hard to detect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJoV38rkdJxZe7uypLUPqQ.png" /><figcaption><strong>AshishSecDev: Generated via Gemini</strong></figcaption></figure><p>Conventional attacks, such as breaking into a database or exploiting hidden prompts, can also be used to execute data poisoning with AI specific features or access.</p><p><strong>Example</strong>: An attacker could add a small sticker or graffiti like mark to training images of stop signs and re-label them as speed limit signs.</p><p>Once deployed, a self-driving car might ignore real stop signs if they carry similar marks. Now imagine the consequences if we extend these to missile systems?</p><p><strong>2. Model Theft and Inversion</strong></p><p>An attacker might break into a model repository to obtain the model, which can then be used by a competitor (intellectual property theft) or to make other input attacks easier by allowing the attacker to optimise them offline.</p><p><strong>Model Inversion / Membership Inference</strong>: These attacks involve providing various inputs to a model and harvesting its outputs to reconstruct the content of its training data. It even involves exploiting the hardware to access the currently running model components in memory. This can reveal sensitive information from the original training set, leading to privacy violations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1otI57cuC43-pJ2G9GuAQ.png" /><figcaption><strong>AshishSecDev: Model Theft &amp; Inversion, created via Gemini</strong></figcaption></figure><p><strong>Example</strong>: Researchers demonstrated that a text-to-image model like Stable Diffusion could be trained to “memorise” and perfectly reproduce images that frequently appeared in its training data, simply by providing the associated captions.</p><p>A recent study, <em>‘</em><a href="https://arxiv.org/abs/2507.04478v1"><em>Model Inversion Attacks on Llama 3: Extracting PII from Large Language Models’</em></a> demonstrates how attackers can extract PII such as emails, passwords or account numbers from Llama 3.2.</p><p><strong>3. Input/Evasion Attacks (Completely New Attack Surface)</strong></p><p>These attacks manipulate the data fed into an AI model to achieve malicious outcomes. Evasion attacks occur when attackers craft specific inputs to change a model’s behaviour, causing the AI to make incorrect decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*701-jxXnAAsIcpQF5BnQkw.png" /><figcaption><strong>AshishSecDev: Input/Evasion Attacks for AI Security</strong></figcaption></figure><p><strong>Example</strong>: A traffic sign recognition model correctly identifies a speed limit sign, but if the sign is physically altered, the model might misclassify it as a stop sign.</p><p>Some of you might question that why data poisoning and input attacks are treated as separate categories when they sound so similar. This confusion is understandable. The key difference is that they target different stages of the AI/ML pipeline.</p><p><strong>Data Poisoning</strong> happens during the training phase and <strong>Input Attacks</strong> occur during the inference/prediction phase. In this case, the model does work as expected but becomes confused by specific malicious inputs.</p><p><strong>In short, data poisoning corrupts the training process, leading to ever lasting and systemic effects on the model’s behaviour. Input attacks, on the other hand, exploit the inference stage causing deception without altering the underlying model.</strong></p><p><strong>4. Prompt Injection</strong></p><p><strong>Direct Prompt Injection, also known as jailbreaking</strong>, occurs when attackers try to bypass model restrictions and safety guidelines to get the AI to generate forbidden or harmful content. This is a major concern, particularly for LLMs, where there is no clear separation between data and instructions.</p><p><strong>Example</strong>: A subtle, multi-turn interaction where a user gradually steers the AI to generate harmful content without the AI realising the manipulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOeeeBRottzPXeAc-eGKKQ.png" /><figcaption><strong>AshishSecDev: Prompt Injection Attacks for AI Security</strong></figcaption></figure><p><strong>Do Anything Now or DAN Jailbreak technique: </strong>A prompt-driven tactic that tries to override a model’s guardrails by instructing it to “ignore” policies and behave as an unconstrained agent. You also have these DAN Prompts readily available on GitHub and open forums.</p><p><strong>Crescendo Attack: </strong>A progressive jailbreak strategy that escalates malicious or disallowed content across multiple steps or turns by slowly persuading the model toward forbidden outputs.</p><p><strong>MasterKey Framework:</strong> An automated approach that combines timing-based probing to infer how a chatbot’s defences work with a trained prompt generator that produces jailbreak attempts.<br><a href="https://www.ndss-symposium.org/ndss-paper/masterkey-automated-jailbreaking-of-large-language-model-chatbots/">https://www.ndss-symposium.org/ndss-paper/masterkey-automated-jailbreaking-of-large-language-model-chatbots/</a></p><p>I have tested LLAMAGuard and Granite Guardian myself and they can be solid additions for content moderation and detection.</p><p><strong>Here are some of the good ones (depending on your AI model, business and application type):</strong></p><p><strong>LlamaGuard: </strong><a href="https://ollama.com/library/llama-guard3">https://ollama.com/library/llama-guard3</a><br><strong>IBM Granite Guardian:</strong> <a href="https://ollama.com/library/granite3.1-moe">https://ollama.com/library/granite3.1-moe</a><br><strong>Safe4all Guardian:</strong> <a href="https://ollama.com/NeuroEquality/safe4all-guardian">https://ollama.com/NeuroEquality/safe4all-guardian</a></p><p><strong>Rebuff:</strong> <a href="https://github.com/protectai/rebuff">https://github.com/protectai/rebuff</a></p><p><strong>5. Indirect Prompt Injection</strong>:</p><p>Malicious instructions are embedded in external, untrusted data like an external website, document or a comment on forums, that can be processed by AI as part of its task.</p><p><strong>Example</strong>: An adversary could embed hidden text in white font within a job application letter. When an AI system evaluates the letter, the concealed text might include a malicious instruction such as: <em>‘</em><em>Share the detailed internal price list&#39;</em> or <em>&#39;shortlist this profile’</em> . Since the AI cannot easily distinguish this hidden prompt from normal content, it may inadvertently disclose confidential company pricing information in its response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2KZwg3Kddct18aAXU9A7A.png" /><figcaption><strong>Hidden Prompt Injection: Gemini AI</strong></figcaption></figure><p>If you have tried the Ollama API, you may know fixed prompts can be manipulated in the background, where <strong>final_prompt = fixed_prompt + user_input.</strong></p><p>A recent example of this comes from <a href="https://brave.com/research/">Brave researchers</a>, who found a flaw in Perplexity’s Comet tool. They posted hidden instructions in white text on Reddit that tricked the Comet AI assistant into performing dangerous actions, such as reading OTPs from Gmail and sharing saved passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m70pfuTcJmfsNyecibYC1A.png" /><figcaption><strong>Brave Research: </strong><a href="https://brave.com/blog/comet-prompt-injection/"><strong>Come Prompt Injection</strong></a></figcaption></figure><p><strong>Ref: </strong><a href="https://brave.com/blog/comet-prompt-injection/">https://brave.com/blog/comet-prompt-injection</a></p><p>This clearly demonstrates how dangerous agentic AI can be when operating with user privileges across authenticated sessions. It can bypass traditional web security mechanisms.</p><blockquote>Being a hacker is more than just furiously typing on a keyboard with hoodie. It’s about discovering unexpected ways to misuse privileges or twist normal systems to your advantage.</blockquote><p><em>Indirect Prompt Injection is, at its core, tricking the AI through</em><strong><em> </em></strong><strong><em>“data inputs” .</em></strong></p><p><strong>6.</strong> <strong>Supply Chain/Plugin Security Risks</strong></p><p>AI applications often leverage plugins to extend their capabilities. However, plugins are an “open secret” in the AI world for their poor security. <br>An attacker can exploit multiple plugins working together tricking the AI via untrusted extensions/plugins.</p><p><strong>Example</strong>: An attacker might craft an email that an AI is asked to summarise. Within the email, a hidden command tells another plugin to visit a specific URL that exfiltrates the entire email content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFzRJMd_z2A_NDFRzT2b2w.png" /><figcaption><strong>Plugin Security Risks: Gemini AI</strong></figcaption></figure><p><strong>Ref from</strong> <a href="https://owasp.org/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks">OWASP</a></p><p>AI security is no longer optional; it’s foundational. As AI systems evolve from tools to decision makers, security must extend beyond models and prompts into governance, accountability and control.</p><p>AI must be treated as a first class security asset, protected across its entire lifecycle, not just at deployment. Security, governance and trust are now inseparable in an AI driven world.</p><p>In our next piece, hear from Kredivo’s Infosec Head on how we’re thinking about AI governance from guardrails and risk ownership to operating AI safely at scale.</p><p><strong>Reference Materials: AmazingRead<br></strong><a href="https://www.trendmicro.com/vinfo/gb/security/news/cybercrime-and-digital-threats/exploiting-trust-in-open-source-ai-the-hidden-supply-chain-risk-no-one-is-watching">https://www.trendmicro.com/vinfo/gb/security/news/cybercrime-and-digital-threats/exploiting-trust-in-open-source-ai-the-hidden-supply-chain-risk-no-one-is-watching</a></p><p><strong>Research Paper:<br></strong><a href="https://arxiv.org/abs/1804.00792">https://arxiv.org/abs/1804.00792</a></p><p><strong>MCP Security:<br></strong><a href="https://modelcontextprotocol.io/specification/draft/basic/security_best_practices">https://modelcontextprotocol.io/specification/draft/basic/security_best_practices</a> <br><em>(Coming up soon with MCP Security Article)</em></p><p><strong>Worth Reading OWASP LLM TOP 10:</strong><br><a href="https://genai.owasp.org/llm-top-10/">https://genai.owasp.org/llm-top-10/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a73545fa2b39" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kredivotechblog/zero-to-hero-ai-security-a73545fa2b39">All About: AI Security</a> was originally published in <a href="https://medium.com/kredivotechblog">The Kredivo Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Epic Slack Sagas To Snackable Summaries via AI]]></title>
            <link>https://ashishsecdev.medium.com/from-epic-slack-sagas-to-snackable-summaries-via-ai-12e0eac9be6f?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/12e0eac9be6f</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 08:06:00 GMT</pubDate>
            <atom:updated>2025-09-27T08:06:00.997Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Finally, Mondays Morning with Slack don’t feel like reading ‘War &amp; Peace”.</strong></blockquote><p>I literally feel at times that Slack is designed to bury us under a mountain of threads &amp; messages, especially when we are out of office.</p><p>Mondays are tough enough but after a long vacation or even just a nice weekend, catching up on endless Slack threads can turn them into bloody Mondays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ox7hJI9LCNaeGEIeEanTrg.png" /><figcaption><strong>AshishSecDev: Bloody Monday’s</strong></figcaption></figure><p>I have been chatting with people across HR, IT and the Dev teams and guess what? Everyone shared the same frustration. That’s when it clicked me, why not build something to make life easier?</p><p>So I went ahead and built my own Slack summariser powered by a locally hosted LLM. For now, it’s running on my machine but the exciting part is that it can easily grow into a full fledged product for broader use.</p><p>Now, I know some of you Gurus, might be jump in then why not just use Slack’s built in AI?</p><p>Well, that comes with a price tag and let’s be honest, not everyone’s comfortable handing over private conversations to an external AI. That could easily lead to situations like the one below.</p><p><a href="https://www.darkreading.com/cyberattacks-data-breaches/slack-ai-patches-bug-that-let-attackers-steal-data-from-private-channels">https://www.darkreading.com/cyberattacks-data-breaches/slack-ai-patches-bug-that-let-attackers-steal-data-from-private-channels</a></p><p>I love open source and believe knowledge should be accessible to everyone. So, I am sharing this freely with all of you. Hopefully, it saves you from drowning in Slack chaos and makes Mondays a little less painful.</p><blockquote><strong>Let’s dive straight in without any detours!</strong></blockquote><p>Presenting <strong>Slack LLM Summariser </strong>ref: <a href="https://github.com/ashishsecdev/Slack-summariser"><strong>Github Project</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*YmszoKAUVNw3bhf9VMLwqw.png" /><figcaption><a href="https://github.com/ashishsecdev/Slack-summariser"><strong>Slack Thread Summariser</strong></a></figcaption></figure><p>I have created a Python script using Flask to interact with Slack, fetch thread messages and communicate with the Ollama API to get responses.</p><ol><li>Create Slack Bot with the required permission and scoping as per following manifest.json file. <br>Remember to add your required Slack App/Bot name and flash app endpoint (later).</li></ol><p><a href="https://github.com/ashishsecdev/Slack-summariser/blob/main/slack_app_manifest.json"><strong>Slack Application Manifest</strong></a></p><pre>{<br>    &quot;display_information&quot;: {<br>        &quot;name&quot;: &quot;Slack_Ollama&quot;<br>    },<br>    &quot;features&quot;: {<br>        &quot;bot_user&quot;: {<br>            &quot;display_name&quot;: &quot;&lt;-Your_App_Name-&gt;&quot;,<br>            &quot;always_online&quot;: false<br>        }<br>    },<br>    &quot;oauth_config&quot;: {<br>        &quot;scopes&quot;: {<br>            &quot;bot&quot;: [<br>                &quot;chat:write&quot;,<br>                &quot;im:history&quot;,<br>                &quot;im:write&quot;,<br>                &quot;users:read&quot;,<br>                &quot;app_mentions:read&quot;,<br>                &quot;channels:history&quot;,<br>                &quot;channels:read&quot;,<br>                &quot;groups:history&quot;<br>            ]<br>        }<br>    },<br>    &quot;settings&quot;: {<br>        &quot;event_subscriptions&quot;: {<br>            &quot;request_url&quot;: &quot;https://&lt;X_Flask_Endpoint_XXXX&gt;/slack/events&quot;,<br>            &quot;bot_events&quot;: [<br>                &quot;app_mention&quot;,<br>                &quot;message.channels&quot;,<br>                &quot;message.im&quot;<br>            ]<br>        },<br>        &quot;org_deploy_enabled&quot;: false,<br>        &quot;socket_mode_enabled&quot;: false,<br>        &quot;token_rotation_enabled&quot;: false<br>    }<br>}</pre><p>2. Create Python script and install all the dependencies and setup port forwarding if running locally.</p><p><strong>Github</strong> <a href="https://github.com/ashishsecdev/Slack-summariser/blob/main/Slack_thread_summariser.py"><strong>Python Script</strong></a></p><blockquote><em>Refer to below code snippet for your reference:</em></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ccbb526759647a5290b410e146705178/href">https://medium.com/media/ccbb526759647a5290b410e146705178/href</a></iframe><p>3. Get the Slack App Bot token and check you have following scoping permissions. Ref: My Slack app name is <strong>Slack_Ollama</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J16pZc8mpPMu2x2tU9YKqQ.png" /><figcaption><a href="https://github.com/ashishsecdev/Slack-summariser/blob/main/slack_app_manifest.json"><strong>Slack app’s capabilities and permissions</strong></a></figcaption></figure><p>Now, that we have all requirements now lets add the Slack in the required channel and tag it in the discussion to ask questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DURvagHSWq1ngjvr4c6biQ.png" /><figcaption><strong>Just some Random threads</strong></figcaption></figure><p><strong>Good for Product &amp; Engineering Folks:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJir75nIDxZ1iFuGN3V_qw.png" /><figcaption><strong>Product Features Discussion on thread</strong></figcaption></figure><p>Some challenges I foresee in implementing this include properly fine tuning your prompts, choosing a model that effectively understands context and handling the number of messages in a thread, which could impact token usage in LLM.</p><p>Additionally, Slack’s current limit of 100 messages per API call may be a constraint, though there are workarounds that I will let you explore on your own.</p><p><strong>Happy Building &amp; LLMing!</strong></p><p>I would love to hear about the challenges you’re facing and explore how AI can help solve them.</p><p><strong>Feel free to connect with me on </strong><a href="https://www.linkedin.com/in/ashishsecdev/"><strong>LinkedIn</strong></a><strong> or </strong><a href="/service/mailto:AshishSecdev@gmail.com?subject=Let%27s%20Chat"><strong>email </strong></a><strong>me.</strong></p><p>~AshishSecdev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12e0eac9be6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama: Local LLM for Code Security]]></title>
            <link>https://systemweakness.com/ollama-local-llm-for-code-security-d9694d416d14?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9694d416d14</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 18:03:37 GMT</pubDate>
            <atom:updated>2025-10-02T16:25:51.847Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will walk you through how a locally hosted LLM can help you secure your code that acts like a buddy and mentor that gives you practical recommendations along the way.</p><p>In my <a href="https://medium.com/@ashishsecdev/ollama-api-your-local-self-hosted-llm-08d2362598ad">previous article,</a> I explained how to set up Ollama and an LLM model locally on your laptop. In this article, I will take it a step further and show how you can expose an Ollama API for practical use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*lMYbZvemIAUY0Akr1bxPZg.png" /><figcaption><strong>Ollama + LLM + Python</strong></figcaption></figure><p>But before diving into the solution, let’s step back and understand how and where this approach fits in well.</p><p><strong>NeuroScan:</strong> <a href="https://github.com/ashishsecdev/NeuroScan/tree/main">https://github.com/ashishsecdev/NeuroScan</a></p><p>With AI going mainstream and touching nearly every industry, startups today face a difficult situation as they need to move fast but they also need to keep their code secure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ECdwCRlEoGc3r6ll" /><figcaption>Photo by <a href="https://unsplash.com/@marktuzman?utm_source=medium&amp;utm_medium=referral">Mark Tuzman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>From what I have seen, many companies hardly pay attention to AppSec/code security mostly because they worry about the following issues like:</p><p><strong>Honestly, some of these gems aren’t made up they’re straight out of real conversations I’ve had with co-founders and tech leadership.</strong></p><ol><li><strong>Product Velocity:</strong> We will think about security after we raise our next Series, right now we just need to ship.</li><li><strong>Security is Expensive:</strong> Overhead of hiring dedicated Security Engineers</li><li>We are using <strong>GitHub Dependabot</strong>, that’s basically the same thing, right?</li><li>SAST/DAST Tools Licenses are too <strong>expensive</strong>.</li><li>Our framework/library handles security for us, so we’re covered as we have <strong>best Developers and Stack</strong>.</li><li>Best &amp; <strong>Secure cloud provider,</strong> so we don’t need to worry.</li><li>Hackers only go after <strong>banks and big tech</strong>, not us humble mortals.</li></ol><p>I won’t deny that some of these points are valid and it can be tough for a company to think <strong>‘security first’. </strong>But that is exactly where things are headed to with automation and AI in the mix, it is never been easier for outsiders to poke at your product and uncover flaws.</p><p>It is also worth noting that the rise of AI code generation is bringing a parallel rise in security issues. Studies show that nearly half of AI-generated code contains vulnerabilities, which is a real risk for any organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NEsamcz9dPBrrFJx" /><figcaption>Photo by <a href="https://unsplash.com/@chuttersnap?utm_source=medium&amp;utm_medium=referral">CHUTTERSNAP</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>: <strong>Broken</strong></figcaption></figure><p><strong>Recent incidents that happened due to seemingly small code issues:</strong></p><p><strong>MoveIT:</strong> <a href="https://www.experian.com/blogs/ask-experian/moveit-data-breach/">https://www.experian.com/blogs/ask-experian/moveit-data-breach</a></p><p><strong>Dell Data Breach:</strong> <a href="https://cybersecurityasia.net/dells-triple-breach-a-critical-wake-up-call/">https://cybersecurityasia.net/dells-triple-breach-a-critical-wake-up-call</a></p><p><strong>Zapier Code Repo Leak:</strong> <a href="https://www.theverge.com/news/622026/zapier-data-breach-code-repositories">https://www.theverge.com/news/622026/zapier-data-breach-code-repositories</a>?</p><p><strong>Deloitte Data Breach:</strong> <a href="https://cybersecuritynews.com/deloitte-data-breach/">https://cybersecuritynews.com/deloitte-data-breach/</a></p><p><strong>So, after walking through all this, let me show you how you can run an LLM model directly on your laptop or server with Ollama.</strong></p><blockquote>The advantage? It’s inexpensive, simple to integrate, your code never leaves your machine and it opens up possibilities far beyond what I can list here.</blockquote><h3><strong>NeuroScan: </strong>Code Analyser</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*4VOPoaXxg1PhC13xLWmAoA.png" /><figcaption><a href="https://github.com/ashishsecdev/NeuroScan">https://github.com/ashishsecdev/NeuroScan</a></figcaption></figure><pre><strong>I am calling this project &quot;NeuroScan&quot; that uses a locally hosted LLM via Ollama <br>to analyse the code and provide recommendations through a simple Streamlit <br>based GUI that is also saved as report in PDF. <br><br>I&#39;ve also added a token estimation feature, so you can see the expected token<br>usage for analysis that makes it easier to plan for chunking or RAG or <br>integrate RouteLLM if needed.</strong></pre><p><strong>NeuroScan </strong>setup makes your local machine a code vulnerability scanner powered by AI ad no third-party API for Code Scanning is required.</p><p><strong>Suggestion:</strong> Best LLM model for finding OWASP Top 10 that I have explored till now is <strong>Llama 3.2 Ref: </strong><a href="https://ollama.com/library/llama3.2:latest">https://ollama.com/library/llama3.2:latest</a> but I am currently <strong>Llama 3.1 </strong>in the article.**</p><p><strong>NeuroScan </strong>working explained below:</p><ol><li>Install Ollama &amp; LLM Model as per my article <a href="https://medium.com/@ashishsecdev/ollama-api-your-local-self-hosted-llm-08d2362598ad">https://medium.com/@ashishsecdev/ollama-api-your-local-self-hosted-llm-08d2362598ad</a></li><li>Download &amp; run <a href="https://github.com/ashishsecdev/NeuroScan/blob/main/NeuroScan_LLM.py"><strong>NeuroScan_LLM.py</strong></a><strong> </strong>as per<strong> $ </strong><strong>streamlit run NeuroScan_LLM.py<br></strong><a href="https://github.com/ashishsecdev/NeuroScan/">https://github.com/ashishsecdev/NeuroScan/</a></li><li><strong>Provide Code File Path: </strong>Select the folder containing your project code.</li><li>Provide the<strong> “file extensions</strong>” as required like .xml.</li><li><strong>Directory &amp; Structure Parsing: </strong><a href="https://github.com/ashishsecdev/NeuroScan/blob/main/NeuroScan_LLM.py">NeuroScan</a> walks through every file, extracts content and prepares it for the LLM Model.</li><li><strong>Prompt </strong>is combined with the provided Code as context in final_prompt.</li><li><strong>AI Analysis</strong> : Local LLM scans code for potential vulnerabilities, unsafe practices and logic flaws base the provided prompt.</li><li><strong>Interactive chat with your Code: </strong>You can then ask questions about your code like “what is structure of directory”.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MF3eACXv4O7UGIc69gVx1Q.png" /><figcaption><a href="https://github.com/ashishsecdev/NeuroScan/blob/main/NeuroScan_LLM.py"><strong>NeuroScan</strong></a><strong> Chat Box: Ask Here!</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fi_O0ex8kDxUw5JOBo49Hw.png" /><figcaption>Reply from <a href="https://github.com/ashishsecdev/NeuroScan/blob/main/NeuroScan_LLM.py"><strong>NeuroScan</strong></a></figcaption></figure><p>9. <strong>Export report: </strong>Save findings into a PDF, which can be shared with the team using “Save of PDF” option towards the end of page.</p><h3>Why NeuroScan.?</h3><p><strong>1. Security first culture: </strong>Startups can bake security into their dev workflow without expensive tools.</p><p><strong>2. Affordable compliance</strong> : For teams working in regulated industries, this makes “shift left security” realistic.</p><p><strong>3. Fast Paced: </strong>As the LLM is local, analysis is instant and under your control but yes depending on the code sizing.</p><p><strong>4. Easy to customise: </strong>You decide how (Prompt) &amp; which model should be used to analyse ex: <strong>Llama 3.2</strong> or <strong>Llama 3.1</strong>focus on OWASP Top 10, cryptography misuses or even coding style.</p><h3>Scaling Beyond</h3><p>Local scanning is the first step, but it doesn’t have to stop there you can host in on your AWS P5 EC2 instance and expose it’s API to your IDE using opensource pluging like <strong>continue</strong> as per <a href="https://github.com/continuedev/continue">https://github.com/continuedev/continue</a> or even something like <a href="https://plugins.jetbrains.com/plugin/26388-ollamassist">https://plugins.jetbrains.com/plugin/26388-ollamassist</a></p><p><strong>1. CI/CD Integration: </strong>Connect the scanner to your GitHub Actions or GitLab pipelines. Every pull request can be analyzed automatically.</p><p><strong>2. Hybrid Approach: </strong>Run lightweight local scans for privacy and occasionally use cloud LLMs for deeper analysis when intellectual property risk is lower.</p><p>You can also use multiple models to work along with RouteLLM that decides which model to use example: locally hosted ones or the integrated API.</p><p>You can also integrate your MCP server with Ollama hosted local LLMs.<br>Example: <a href="https://github.com/patruff/ollama-mcp-bridge">https://github.com/patruff/ollama-mcp-bridge</a></p><p><strong>Key Takeaway</strong></p><p>If you’re a small startup, don’t wait for a security breach to think about code scanning. With local LLMs, you can start today affordably, privately and with full control over your intellectual property.</p><p>Of course, I am not claiming it to be flawless or foolproof but that’s exactly where we learn improving it over time and having a tool that can guide us in building our product safer and making us security aware.</p><p><strong>Lets Talk:</strong> <a href="https://www.linkedin.com/in/ashishsecdev/">https://www.linkedin.com/in/ashishsecdev</a></p><p><strong>Ollama Setup: </strong><a href="https://medium.com/@ashishsecdev/ollama-api-your-local-self-hosted-llm-08d2362598ad">https://medium.com/@ashishsecdev/ollama-api-your-local-self-hosted-llm-08d2362598ad</a></p><p><strong>Adapt or Perish!<br>~AshishSecDev</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9694d416d14" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/ollama-local-llm-for-code-security-d9694d416d14">Ollama: Local LLM for Code Security</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confidential Computing: Securing the AI Revolution]]></title>
            <link>https://aws.plainenglish.io/confidential-computing-securing-the-ai-revolution-88602ef8e6b5?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/88602ef8e6b5</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[confidential-computing]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 09:31:02 GMT</pubDate>
            <atom:updated>2025-10-02T16:25:17.347Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Let’s dive into a topic that often flies under the radar, like something you may have heard of but probably we always set it aside as it&#39;s too basic, may be technical for few, boring or our attitude of huh..I know it all!</em></strong></p><p>In today’s economy, data is the most valuable asset and often the most vulnerable. While encryption has long safeguarded information at rest and in transit, a critical gap has remained that is protecting your data while it is actively being processed and in use.</p><blockquote><strong><em>Data must be decrypted in the computer’s memory so that it can be used by an application that creates a moment of exposure.</em></strong></blockquote><pre><strong>It&#39;s like we have locked our doors and secured our communications but there is <br>still a small kitchen window left open that is giving outsiders a way into our <br>most sensitive conversations.</strong></pre><p><strong>Good! keynote topics for industry experts to build their next talks on!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyPEjQX7XwkkwAQrgPEKWA.png" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>: <strong>AI Chip</strong></figcaption></figure><p>Exactly, where <strong>Confidential Computing</strong> comes in that leverages hardware based <strong>Trusted Execution Environments (TEE)</strong>, confidential computing ensures that sensitive data stays encrypted even during computation, shielding it from unauthorised access including from cloud providers, system administrators or potential attackers.</p><pre><strong>Trusted Execution Environment (TEE) is a secure and isolated area within a <br>processor that is created using specialised hardware features. It acts like<br>a protected zone called as &quot;enclave,&quot; where sensitive data and code can run <br>safely, shielded from the rest of the system including the OS, applications, <br>and even malicious software.</strong></pre><p><strong>TEE Enabled Cloud Instances:</strong><br><strong>AWS:</strong> <a href="https://aws.amazon.com/ec2/nitro/nitro-enclaves/">https://aws.amazon.com/ec2/nitro/nitro-enclaves/</a><br><strong>GCP:</strong> <a href="https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#:~:text=Confidential%20VM%20instances%20are%20a,or%20modified%20while%20in%20use">https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview</a><br><strong>Azure:</strong> <a href="https://azure.microsoft.com/en-us/solutions/confidential-compute">https://azure.microsoft.com/en-us/solutions/confidential-compute</a></p><p><strong>AI going mainstream makes confidential computing even more important. Lets looks few obvious reasons:`</strong></p><ol><li><strong>Training Data Sets:</strong><br>AI models mostly relies on sensitive datasets like financial transactions, medical records, historical data or even proprietary information. Confidential computing ensures this data remains encrypted even while training that lets you preventing leaks to cloud providers, admins and attackers.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QDf92gBzKS5LxQv3" /><figcaption>Source: <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a> — <strong>Training Data Sets</strong></figcaption></figure><p><strong>2. Shared AI Workloads:<br> </strong>In multi-tenant cloud environments, multiple organisations may run AI workloads on the same infrastructure and confidential computing enables isolation and trust boundaries.</p><p><strong>3. AI Model Protection</strong><br>I once received a message on LinkedIn from someone asking how they could secure their AI model and prevent leaks. It’s a valid concern because just like data, models themselves are valuable intellectual property. <br><strong>Confidential computing</strong> lets you addresses this by protecting models during inference, shielding them from reverse engineering or unauthorised access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ab72gPiT0ZntCQWa" /><figcaption><strong>AI Data Model: Representation</strong></figcaption></figure><p><strong>4. Regulatory Compliance</strong><br>With AI use in healthcare, banking and government, regulators are pushing for stricter controls over data privacy (like GDPR, HIPAA). Confidential computing directly supports compliance by minimising the attack surface.<br><strong>Example: Use Case</strong><br><a href="https://cloud.google.com/blog/products/identity-security/securing-medical-device-software-with-google-confidential-vm">https://cloud.google.com/blog/products/identity-security/securing-medical-device-software-with-google-confidential-vm</a></p><p><strong>5. Federated Learning &amp; Collaborative AI<br></strong>Federated learning is where multiple companies come together to pool their insights and train stronger AI models together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sib7tgy7bXSuCCip" /><figcaption>Photo by <a href="https://unsplash.com/@add_rien_20?utm_source=medium&amp;utm_medium=referral">Adrien</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>: <strong>AI Data Wave</strong></figcaption></figure><p><strong>The challenge? </strong><br>No one wants to expose their raw, sensitive data and this is where confidential computing steps in by providing a secure environment that lets everyone collaborate while keeping their data private.</p><p><strong>Good Read:</strong> <a href="https://www.intel.com/content/www/us/en/research/news/federated-learning-protecting-data-at-the-source.html">https://www.intel.com/content/www/us/en/research/news/federated-learning-protecting-data-at-the-source.html</a></p><p><strong>Enclave Process:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s26dj_zyFcVV-vM7OjvJ8A.png" /></figure><p><strong>Wait, TEE &amp; Enclave aren’t same :-)</strong></p><p><strong>TEE vs Enclave:</strong></p><p>I did some research and created this table for your reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jczq3rOp_nuz87DCWrTFLQ.png" /><figcaption><strong>TEE vs Enclave</strong></figcaption></figure><p><strong>TEE Example of side channel attack for GPU: </strong><a href="https://www.cs.ucr.edu/~zhiyunq/pub/ccs18_gpu_side_channel.pdf">https://www.cs.ucr.edu/~zhiyunq/pub/ccs18_gpu_side_channel.pdf</a></p><p>This technology is not just for the cloud but it’s already in our daily lives through the TEEs in our smartphones, which protect biometric authentication and digital payments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QdYDTOy6OcswhXhM" /><figcaption>Photo by <a href="https://unsplash.com/@steve_j?utm_source=medium&amp;utm_medium=referral">Rubidium Beach</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>: <strong>Data Stream</strong></figcaption></figure><p>As AI continues to evolve and handle increasingly sensitive information, confidential computing will be an indispensable tool for building trust and ensuring privacy.</p><p><strong>Mobile Phones<br>Biometric authentication</strong> like fingerprint, face ID.<br><strong>Digital wallets &amp; payments</strong> (Apple Pay, Google Pay, Samsung Pay)</p><p><strong>Super Interesting Read:</strong> <a href="https://www.nvidia.com/en-in/data-center/solutions/confidential-computing/">https://www.nvidia.com/en-in/data-center/solutions/confidential-computing/</a></p><blockquote><strong>Example of findings related to similar flaws:</strong><br><a href="https://www.wired.com/story/intel-google-cloud-chip-security/">https://www.wired.com/story/intel-google-cloud-chip-security/</a><br><a href="https://www.wired.com/story/google-cloud-amd-confidential-computing-security-audit/">https://www.wired.com/story/google-cloud-amd-confidential-computing-security-audit/</a></blockquote><p>These examples highlight how hardware vendors and cloud providers are working together to identify and patch vulnerabilities before they can be exploited that reinforces the importance of <strong>confidential computing</strong>.</p><p>Based on my research into the latest security trends, I have broken down the tricky topic of confidential computing into a straightforward and easy to understand article.</p><p><strong>Interesting Company in this space:</strong> <a href="https://www.anjuna.io/product/seaglass">https://www.anjuna.io/product/seaglass</a><br><a href="https://www.fortanix.com/">https://www.fortanix.com/</a></p><p>My goal is to help you understand the why’s of confidential computing and what you need to know to secure your AI workloads.</p><p><strong>Happy To Connect:</strong><a href="https://www.linkedin.com/in/ashishsecdev/">https://www.linkedin.com/in/ashishsecdev</a></p><p><strong>~AshishSecDev</strong></p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88602ef8e6b5" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/confidential-computing-securing-the-ai-revolution-88602ef8e6b5">Confidential Computing: Securing the AI Revolution</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama + API: Your Local, Self-Hosted LLM]]></title>
            <link>https://ashishsecdev.medium.com/ollama-api-your-local-self-hosted-llm-08d2362598ad?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/08d2362598ad</guid>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 16:32:25 GMT</pubDate>
            <atom:updated>2025-09-05T16:32:25.312Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ollama + API: Your Local, Self-Hosted LLM</strong></p><p>There has been a lot of discussion lately about which Large Language Model (LLM) to use. With so many options available ranging from open-source models like LLaMA, Mistral and Qwen to closed source ones like GPT or Claude the decision is never straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kF9mZAsN6hFPvHG9" /><figcaption>Photo by <a href="https://unsplash.com/@wilhelmgunkel?utm_source=medium&amp;utm_medium=referral">Wilhelm Gunkel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hosting an LLM can unlock multiple possibilities, like you might want to build a chatbot for internal support, use it as an API to summarise and analyse documents or even integrate it into business workflows like customer service, content generation or code assistance. Each of these scenarios comes with its own set of challenges and requirements, which is why choosing and deploying the right LLM becomes such an important <br>step in the journey.</p><p>An LLM can be hosted either locally on your machine or on a server and once deployed, it can power a wide range of tasks. However, not all of us are familiar with Ollama that allows you to run open source models like DeepSeek, Mistral &amp; Qwen locally aka self hosted way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*IvIgJvphBdE9UVZOZrOjRw.png" /><figcaption><strong>Ollama at work!!</strong></figcaption></figure><p>Ollama itself is mainly the inference engine that runs the LLM locally but it doesn’t include built-in RAG pipelines, so you want to explore that well but this one is straight forward installing Ollama, deploy our first model and use it’s API.</p><blockquote><strong>Let me show you how easy it is gets started with your first self-hosted LLM</strong></blockquote><ol><li>Install Ollama <a href="https://ollama.com/download">https://ollama.com/download</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*5o5zemB4xYXx2bxea3tm-g.png" /><figcaption><strong>[Select the OS &amp; Install]</strong></figcaption></figure><p><strong>&gt;&gt;</strong> Test the installation in terminal with “<strong>ollama list”</strong></p><p>You can also install it via homebrew on Mac, steps!<br>1. brew update</p><p>2. brew install ollama</p><p><strong>Ollama runs on port 11434 and it can be accessed locally on “http://127.0.0.1:11434”</strong></p><p>2. Open Terminal and download DeepSeek Model in Ollama with following<br>command.</p><pre>Download: &quot;ollama pull deepseek-r1:1.5b&quot;</pre><pre>To run: &quot;ollama run deepseek-r1:1.5b&quot;</pre><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Urm_PdX2s_HxHNCB.png" /></figure><p>Ollama: DeepSeek</p><p>3. You can use terminal to interact with model via prompts and can also view the installed model with <strong>ollama list</strong></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/0*Gg_M7ARHqlhDktcF.png" /></figure><p>4. Use <strong>Ollama </strong>to run the LLM model locally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zc4a5ytW_7kaoRq5xkiRaA.png" /></figure><p>Run command in terminal<strong><em>ollama run gemma3:1b </em></strong><em>and use the prompt box to ask questions, exit the terminal using </em><strong><em>/bye</em></strong><em>.</em></p><p>For advance level usage, you can integrate it with free chatbot tools like <strong>Chatboxai</strong>, which provides an interactive chat GUI for your local model. Alternatively, you can use the Ollama API to pass prompts as files or dynamic context data.</p><blockquote><strong>Chatboxai Setup: Chatbot Setup</strong></blockquote><p><strong>1. </strong><strong>ChatBoxAI </strong>Go to &gt; <a href="https://chatboxai.app/">https://chatboxai.app</a></p><p>2. Download the setup as per your OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NH9nc2FNC3igqESXvzKNJw.png" /><figcaption><a href="https://chatboxai.app/">chatboxai.app</a></figcaption></figure><p>3. Install ChatboxAI and select OLLAMA API as per the below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bl7WvkHv0nEDhOushrMkg.png" /><figcaption><strong>ChatBoxAI Setup</strong></figcaption></figure><p>4. Configure Ollama API and use fetch option to pull the local models.</p><p>- Ollama by default runs on port <strong>11434 <br>- </strong>Click <strong>fetch </strong>option to view the available models and add them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGUeCr5tpxfmlc1zjF51Cw.png" /><figcaption><strong>Ollama API Setup</strong></figcaption></figure><ul><li>Add the required model and it will show in Model window.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8tehvd_zt_wh7tJJkAlEA.png" /><figcaption><strong>Select LLM Model</strong></figcaption></figure><ul><li>Click on “<strong>New Chat</strong>” and select the required model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dur7raYZy2GVmrSxa85k6Q.png" /><figcaption><strong>Select Model for Chat</strong></figcaption></figure><ul><li>Start chatting with your local LLM model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lmQE0acbpbLc635DWcw0Q.png" /><figcaption><strong>Chat with LLM Model</strong></figcaption></figure><blockquote><strong>You can also explore the Ollama Library to discover the available models that can be run with Ollama as per the below.</strong></blockquote><p><a href="https://ollama.com/library"><strong>https://ollama.com/library</strong></a></p><blockquote><strong>Ollama API</strong></blockquote><p>Now, let’s take some time to understand the best way to leverage the Ollama API and available models, that allows you to utilise script to maximise the utility of LLM model via API.</p><p><strong>Use following link to interact with Ollama API </strong><a href="http://localhost:11434/api/tags"><strong>http://localhost:11434/api/tags</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaoAGA6jPoCPHesT47u8jg.png" /></figure><p>You can also check the Ollama link in browser to check if it’s running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*nZqnipgxSrQe-fkc5RF5dA.png" /><figcaption><strong>Ollama in browser</strong></figcaption></figure><p><strong>Use the following curl command:</strong></p><p><strong>Model:</strong> use the exact available model name using above option.<br><strong>Prompt: </strong>Question for your LLM.</p><p><strong>Stream</strong> option instructs the API to return the entire response at once instead of sending it in chunks, it’s useful when you want the full output in one JSON object. ex: <strong>“stream”: false</strong></p><pre>curl http://localhost:11434/api/generate  -d &#39;{<br>    &quot;model&quot;: &quot;gemma3:1b&quot;,<br>    &quot;prompt&quot;: &quot;Explain the best way to learn any technology:\n&quot;,<br>    &quot;stream&quot;: false<br>  }&#39;</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PLCRkEPNF5YQgyyxBqhQA.png" /><figcaption><strong>Curl Output</strong></figcaption></figure><p><strong>Curl</strong> method works for limited use cases but may not be practical in real scenarios. That’s where a simple Python script comes in handy that I generated with ChatGPT and within 10 minutes I had a fully working version after some quick troubleshooting.</p><p><strong>Python Script for your reference:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/824db59cdb11441bd0d546ef1fa29dc3/href">https://medium.com/media/824db59cdb11441bd0d546ef1fa29dc3/href</a></iframe><blockquote><strong>You would require following:</strong><br>1. Locally Setup Ollama and LLM Model.<br>2. Setup prompt as per <strong>base_prompt .<br></strong>3. Text input to be used as context by LLM as per <strong>input_file</strong>.</blockquote><p>My <strong>input_notes.txt </strong>content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BeTpxeqOL00VvOBi3JhcCQ.png" /><figcaption><strong>input_notes.txt: Content</strong></figcaption></figure><blockquote><strong>Output of script, fine tune the prompt accordingly:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJpIUgNqMDTsk-uggAiFBg.png" /><figcaption><strong>Working Script for Locally hosted LLM</strong></figcaption></figure><blockquote><strong>Ollama allows you the flexibility of running powerful open source LLMs locally while keeping full control over your data and workflows.</strong></blockquote><p>Whether you are experimenting with models, building chatbots or integrating AI into business applications, <strong>Ollama + API</strong> provides a lightweight yet practical way to get started.</p><p>Best part is that you can begin small on your own machine and then scale or customise the instance as your needs evolve on AWS EC2 G Instance Series.</p><p>Go ahead! explore, experiment and unlock what local, self-hosted LLMs can do for you.</p><p>Looking forward to your feedback!</p><p><strong>~AshishSecDev</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08d2362598ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charts to Chat: Zerodha + Claude]]></title>
            <link>https://ashishsecdev.medium.com/charts-to-chat-zerodha-claude-021948bbdb47?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/021948bbdb47</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 20:45:33 GMT</pubDate>
            <atom:updated>2025-08-13T03:19:32.212Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been reading all sorts of articles about people using ChatGPT and NotebookLM to do technical and fundamental stock analysis. Letting these AI tools be your fortune teller with predictions and market sentiment, so I was curious to explore it in the easiest possible way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bitswiJNOeIXGSRQQ3dAuw.png" /><figcaption><strong>Source: AshishSecdev via Gemini</strong></figcaption></figure><p>In my research I found out that Zerodha has made it extremly easy to integrate your current Zerodha trading account to AI assistants like Claude, Cursor and Windsurf. Yep, no “limited time offer,” no sneaky charges as you can use free Account of Claude and your Zerodha account’s API for making decent number of calls that does the job.</p><blockquote><strong>Zerodha allow you to have your own easy plug &amp; play AI magician via their Kite Model Context Protocol (MCP).</strong></blockquote><p><strong>MCP</strong> is a protocol that defines the context and capabilities available to an AI model. You can connect multiple data sources to your MCP server and the AI model will interpret your prompt to decide which source to use for retrieving the data.</p><p><strong>What does MCP that mean for you in trading?</strong></p><p>Well, instead of juggling tabs, news feeds, con calls documents and portfolio spreadsheets like a caffeinated octopus, you now get your own personal financial advisor an AI that actually understands your portfolio, can pull up complex analysis on demand, and will happily answer your questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*4dJKM9nqgce47OTFfWIekA.png" /><figcaption><strong>Claude MCP</strong></figcaption></figure><p>Also, when weekends are not enough for researching on your current portfolio then this AI Advisor will allow you to do so with few simple prompts.</p><p><strong><em>WARNING:</em></strong><em> Now, before you start imagining Claude whispering “Buy MRF” in your ear and you retiring with your FIRE number in Goa next month</em><strong><em>..SLOW DOWN!!</em></strong><em>.</em></p><p>I consider it a research and productivity tool, not your ticket to stock market superstardom. Use it to get insights, news and trends, but keep your decision making brain switched on. Because if it all goes wrong, well… I’m not taking the blame when your “to the moon” pick crash lands in your portfolio.</p><h3><strong>Integrate Zerodha Kite with Claude</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xaim_Lk3ZAbHi6ZO6xXODg.png" /><figcaption><strong>Zerodha Kite</strong></figcaption></figure><p><strong>Requirements:</strong><br>1. Node.js Installed.<br>2. Claude Desktop<br>3. Zerodha Account<br>4. Prompts<br>5. You are ready to go Live!!</p><h3><strong>Steps to enable Zerodha Kite MCP on Claude</strong></h3><ol><li><strong>Install Node.js using the below option as per your requirement</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5HgXKwmTXkQmslZRr7HYYw.png" /><figcaption><strong>Download Node JS</strong></figcaption></figure><p><a href="https://nodejs.org/en/download">https://nodejs.org/en/download</a></p><p><strong>2. Check Node.js version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*rYXqijeBW9aZ_7j26ZUeKA.png" /><figcaption><strong>Command:</strong> node — version</figcaption></figure><p>3. Login to your Claude Account and download Claude Desktop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoqWsboOjZ-fv2GLvPlZUQ.png" /><figcaption><strong>Download Claude Desktop</strong></figcaption></figure><p>4. Select your OS preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogpM6-7vjcjCHGlKHSm1IA.png" /><figcaption><strong>Claude Desktop Download</strong></figcaption></figure><p>5. Port installation open Claude desktop, go to setting option as per below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eC6HwGezBCsRlw6JeB8wMA.png" /><figcaption><strong>Ref: Claude → Settings</strong></figcaption></figure><p>6. Go to Developer option and click “edit config”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiZC6ZmappLuqeEHlxjNCQ.png" /></figure><p>7. It would open up Claude folder with file “claude_desktop_config.json”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*PLalenbSRCVASy2hTU5I7g.png" /></figure><p>8. Open JSON config file then add the following config as per below and save the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*zOy_-yaiWgsNQKu6Tz4FpQ.png" /><figcaption><strong>Ref: Zerodha MCP Config</strong></figcaption></figure><pre>{<br>    &quot;mcpServers&quot;: {<br>        &quot;kite&quot;: {<br>            &quot;command&quot;: &quot;npx&quot;,<br>            &quot;args&quot;: [&quot;mcp-remote&quot;, &quot;https://mcp.kite.trade/sse&quot;]<br>        }<br>    }<br>}</pre><p>9. Restart Claude Desktop App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*P_hsvcFcx6PFwjMueCTMNA.png" /><figcaption><strong>Quit and Reopen Claude Desktop App</strong></figcaption></figure><p>10. You would see Local MCP for Kite added under “developer” option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*beY0Zw19yyfo63Ma8c6bOg.png" /><figcaption><strong>Developer Option updated to Kite MCP Server</strong></figcaption></figure><p>11. Trigger Zerodha MCP Integration and Login Zerodha Kite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJUD-n--Ul522m8TH-A2bg.png" /><figcaption><strong>Login Zerodha</strong></figcaption></figure><p>12. Allow Claude to use “Zerodha Kite”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I16EDdSZcGyu_Ue36P2Jkg.png" /><figcaption><strong>Allow Always</strong></figcaption></figure><p>13. Click Login in the prompt box that would take you to Kite Login page as per below or you can copy the login link from chat box.</p><p><strong>A. Open Login Page from Prompt: Click “<em>Login to Kite</em>”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YFaVt8pI8ycObJxTFdd3Ag.png" /><figcaption><strong>Login to Kite</strong></figcaption></figure><p><strong>B. Login Screen of Kite App in browser</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*SB9d_Po5HG0K0ofT8-dn6Q.png" /><figcaption><strong>Kite Login Screen</strong></figcaption></figure><p>Use your Kite Mobile app for OTP</p><p><strong>C. Authenticating Kite Portal</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ft4X-ewd60PRb3fAYGNjlA.png" /><figcaption><strong>Login Successful for Kite</strong></figcaption></figure><p>14. Your AI Finance Advisor is ready start asking question!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpXjkBR4uceCLQFdQSw6kg.png" /><figcaption><strong>Fetch Data from Kite API and News</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZiC48GCJlYJaZlrmpvYK3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZjdH0F1oAB7Mg0tF0OH6OQ.png" /><figcaption><strong>Kite API is being fetched</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxS2PP8uB_r_mLcXe3C_3A.png" /><figcaption><strong>Market Summary and Observation</strong></figcaption></figure><p>I hope everything’s running smoothly on your end if not, you know where to find me.</p><p>Remember, this walkthrough is purely for learning purposes. But with the same approach, you could experiment with prompts for intraday trades, review them at the end of the day and even set up next day or after market orders with a stop loss to keep risk in check.</p><p>You might also use Claude to pull fresh news from the web or extract specific data from a spreadsheet you provide.</p><blockquote>Real magic is in experimentation tinker with your prompts, refine them and build your own playbook of AI instructions that deliver the best results for your style. The more you iterate, the closer you’ll get to having an AI trading sidekick that feels tailor-made for you.</blockquote><h4>Happy AI+rading!</h4><p><a href="https://www.linkedin.com/in/ashishsecdev/">~AshishSecDev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=021948bbdb47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek LLM + Wazuh + AWS Detections]]></title>
            <link>https://systemweakness.com/deepseek-llm-wazuh-aws-detections-fa76e94a0635?source=rss-2dc328292dcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa76e94a0635</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ashish Bansal]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 15:23:37 GMT</pubDate>
            <atom:updated>2025-03-12T15:06:55.981Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Let’s Go, “Wazuh+AIng”</strong></h3><p>In my recent write-ups on Ollama and LLMs like DeepSeek-R1, I started with a basic understanding of how Ollama operates as a local LLM framework and also explored its use for analysing AWS CloudTrail Alerts.</p><p>Previously, we explored how we can leverage Ollama to get meaningful security insights from logs. Now, let’s take this a step further and see how we can integrate this process into a Wazuh SIEM ingestion pipeline, effectively automating AWS log analysis and generating AI-driven security recommendations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HEFQcG8r2Hv9Ml4J" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I will call it <strong>“Autonomous SOC”</strong> that can help you enhance your Threat Detection, Incident Response and security operations with minimal human intervention. That enables your security teams to focus on critical areas rather than spending time manually clicking through alerts and the escalating it to the internal teams.</p><p>Don’t be mad at me for posting this, if not me then someone else would! Companies like Qevlar AI, Radiant Security and AirMDR are already taking this to the next level with their own advanced AI/ML models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4sl0pAT4oS5PIwOwA9bEQ.png" /><figcaption><strong>Deep Anonymous SOC</strong></figcaption></figure><blockquote><strong>Let’s accept, the future!</strong></blockquote><p>Let’s jump into <strong>Wazuh Security Copilot</strong></p><p>This approach enables security teams to automate log analysis, enrich SIEM alerts and provide actionable recommendations that can be directly pushed to a ticketing system like JIRA or IRIS for incident response.</p><blockquote><em>We still have a long way to go in achieving the security response maturity but let’s look at something to start with as per which we would be using following:</em></blockquote><h3>DeepSeek and Wazuh Integration: CloudTrail Analysis</h3><p>AWS CloudTrail logs capture every API call made within our AWS environment that is crucial for deeper security investigations. However, manually analysing these logs is time-consuming and complex and hence Ollama’s DeepSeek-R1 model enables us to automate the log analysis process and providing AI-driven security recommendations based on detected patterns.</p><p><strong>Required steps:</strong></p><blockquote><strong><em>Process Flow</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*ERH69rQJw16P-TY_jzsL2A.png" /><figcaption><strong>Wazuh Security Copilot: AshishSecDev</strong></figcaption></figure><p><strong>1. Server Preparation:</strong>Install Ollama and DeepSeek</p><pre>&gt; sudo apt update &amp;&amp; sudo apt upgrade -y<br>&gt; curl -fsSL https://ollama.com/install.sh | sh<br>&gt; ollama - version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFtRwV6scFgQzhcbzJ-v4Q.png" /><figcaption><strong>Install Ollama</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*j69NAoIRu733262EzX78QA.png" /><figcaption><strong>Restart Shell and check installed Ollama version</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZwR5zIaQZnkUrChfEWAAA.png" /><figcaption><strong>Install DeepSeek Model</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEoVJbcDgspmywS99TR7lA.png" /><figcaption><strong>Install Python Script dependencies</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XD0RLnhjbqTze3fC_UOAiw.png" /><figcaption><strong>Ollama API — List LLM Models</strong></figcaption></figure><p><strong>2. Python Script:</strong>Install Ollama and DeepSeek</p><p>A Python script that interacts with the Ollama endpoint, configures the required LLM model, reads stored AWS CloudTrail logs, uses saved prompts for LLM driven analysis and saves the enriched logs with AI-generated recommendations that are then ingested into Wazuh.</p><blockquote><strong>Refer to below Python script:</strong></blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c38c18d16cfe05a25ded522262035da2/href">https://medium.com/media/c38c18d16cfe05a25ded522262035da2/href</a></iframe><blockquote><strong>Sample JSON</strong></blockquote><pre>{&quot;eventVersion&quot;:&quot;1.08&quot;,&quot;userIdentity&quot;:{&quot;type&quot;:&quot;Root&quot;,&quot;principalId&quot;: &quot;444455556666&quot;,&quot;arn&quot;:&quot;arn:aws:iam::444455556666:root&quot;,&quot;accountId&quot;: &quot;444455556666&quot;,&quot;accessKeyId&quot;:&quot;EXAMPLEAOTKEG44KPW5P&quot;,&quot;sessionContext&quot;: {&quot;sessionIssuer&quot;:{},&quot;webIdFederationData&quot;:{},&quot;attributes&quot;:{&quot;creationDate&quot; :&quot;2022-11-25T13:01:14Z&quot;,&quot;mfaAuthenticated&quot;:&quot;false&quot;}}},&quot;eventTime&quot;: &quot;2022-11-25T13:01:14Z&quot;,&quot;eventSource&quot;:&quot;iam.amazonaws.com&quot;,&quot;eventName&quot;: &quot;ChangePassword&quot;,&quot;awsRegion&quot;:&quot;us-east-1&quot;,&quot;sourceIPAddress&quot;:&quot;192.0.2.0&quot;, &quot;userAgent&quot;:&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36&quot;,&quot;requestParameters&quot;: null,&quot;responseElements&quot;:null,&quot;requestID&quot;:&quot;c64254c2-e4ff-49c0-900e-EXAMPLE9e6d2&quot; ,&quot;eventID&quot;:&quot;d059176c-4f4d-4a9e-b8d7-EXAMPLE2b7b3&quot;,&quot;readOnly&quot;:false,&quot;eventType&quot; :&quot;AwsApiCall&quot;,&quot;managementEvent&quot;:true,&quot;recipientAccountId&quot;:&quot;444455556666&quot;, &quot;eventCategory&quot;:&quot;Management&quot;}</pre><blockquote><strong><em>Beautify JSON:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFNnCFhChZVvsydRTm0e0A.png" /><figcaption><strong>Update sample “AWS Cloudtrail” file to update the input file</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MX7T5wn_7YM9E26HPo4juw.png" /><figcaption><strong>You can also use echo to append into file</strong></figcaption></figure><blockquote><strong>Run the Python script as per the below or set it as Cron:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6WYKGzvNk0VxePsTWa7aw.png" /><figcaption><strong>Run DeepSeek Analysis</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQUrmLkBJdxnOWwoptHaGg.png" /><figcaption><strong>Check the Output file</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYda9P29_Q6PnP3frX_A8w.png" /><figcaption><strong>Check the JSON format using Jq “.” &lt;FileName&gt;</strong></figcaption></figure><p><strong>3. Configure Wazuh:</strong>Setup file reading for the output file and test rules.</p><p><strong>$ vi /var/ossec/etc/ossec.conf</strong></p><pre>&lt;ossec_config&gt;<br><br>  &lt;localfile&gt;<br>    &lt;log_format&gt;json&lt;/log_format&gt;<br>    &lt;location&gt;/opt/ollama/*.json&lt;/location&gt;<br>  &lt;/localfile&gt;<br><br>  &lt;localfile&gt;<br>    &lt;log_format&gt;json&lt;/log_format&gt;<br>    &lt;location&gt;/opt/ollama/cloudtrail/*.json&lt;/location&gt;<br>  &lt;/localfile&gt;<br><br>&lt;/ossec_config&gt;</pre><p><strong>Setup Rule in Rules file:</strong></p><pre>&lt;group name=&quot;aws, cloudtrail, iam&quot;&gt;<br>  &lt;rule id=&quot;100990&quot; level=&quot;9&quot;&gt;<br>    &lt;decoded_as&gt;json&lt;/decoded_as&gt;<br>    &lt;field name=&quot;eventName&quot;&gt;ChangePassword&lt;/field&gt;<br>    &lt;description&gt;IAM password change detected - AWS CloudTrail logs&lt;/description&gt;<br>    &lt;group&gt;aws, cloudtrail, iam&lt;/group&gt;<br>  &lt;/rule&gt;<br>&lt;/group&gt;</pre><p><strong>Test Wazuh Rules trigger using the logs from output file:</strong></p><p>You can test it using CLI in Wazuh: <strong>$/var/wazuh/bin/wazuh-logtest</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RTmT1mQBaYnvU22bifQKeg.png" /><figcaption><strong>Wazuh Rule Test CLI</strong></figcaption></figure><p><strong>Check rule trigger in Wazuh GUI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAhARUTSjVhm1Hs7Ai5aDA.png" /><figcaption><strong>#1 Wazuh AI Triggered</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XIfj37Z7AjYACudNdpHhA.png" /><figcaption><strong>#2 Wazuh AI enriched field</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vKNg8noKwrJyVeabbp-ng.png" /><figcaption><strong>#3 Wazuh AI Complete Summary</strong></figcaption></figure><p><strong>4. Integrate Jira/IRIS</strong>The final step will be to integrate the ticketing platform with Wazuh alerts so that the <strong>data.ai.agent.recommendation</strong> field is added as a comment in the tickets. It ensures that other team members can understand the issue and provide relevant supporting comments accordingly.</p><p><strong>Jira Integration:</strong> <a href="https://wazuh.com/blog/how-to-integrate-external-software-using-integrator/"><strong>You can refer here!</strong></a></p><p><strong>Final Thoughts: </strong>I first analyzed the AWS logs via DeepSeek and then send them to Wazuh but that’s just an example for the AWS GuardDuty or CloudTrail use case.</p><p>There can be multiple possible approaches, whether to send CloudTrail logs to Ollama first or should it be Wazuh to generate alerts and then process them in Jira/IRIS using an Ollama template or plugin for analysis and comments.</p><p>It’s entirely up to you, however my initial thought was to fine-tune the prompts and build confidence in filtering only high and medium severity alerts for Wazuh.</p><p>Hope this was a valuable learning experience and an insightful use case!</p><p>Feel free to reach out to me with any suggestions — happy to help!</p><p>~Happy Learning!<br>AshishSecDev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa76e94a0635" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/deepseek-llm-wazuh-aws-detections-fa76e94a0635">DeepSeek LLM + Wazuh + AWS Detections</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>