<?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 Nanthagopal J on Medium]]></title>
        <description><![CDATA[Stories by Nanthagopal J on Medium]]></description>
        <link>https://medium.com/@nanthagopal_86712?source=rss-b732d4105910------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8sxDDoRzSeh1FEtU</url>
            <title>Stories by Nanthagopal J on Medium</title>
            <link>https://medium.com/@nanthagopal_86712?source=rss-b732d4105910------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:21:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nanthagopal_86712/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[How to Create a Statement of Applicability (SoA) for a Cloud Service Provider]]></title>
            <link>https://medium.com/@nanthagopal_86712/how-to-create-a-statement-of-applicability-soa-for-a-cloud-service-provider-6a15ad06b328?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a15ad06b328</guid>
            <category><![CDATA[iso-27001-isms]]></category>
            <category><![CDATA[security-audit]]></category>
            <category><![CDATA[grc]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[security-compliance]]></category>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 07:54:08 GMT</pubDate>
            <atom:updated>2026-11-23T07:54:08.513Z</atom:updated>
            <content:encoded><![CDATA[<p>The Statement of Applicability (SoA) is the document an ISO/IEC 27001:2022 auditor reads first, because it shows which controls an organization chose and why. To practice writing one, I created a fictional company, NimbusGrid Cloud Services Pvt. Ltd., and built its SoA step by step. This post walks through the method, with examples you can adapt.</p><h3>What the SoA must contain</h3><p>Clause 6.1.3 of ISO/IEC 27001:2022 requires the organization to produce an SoA that contains:</p><ol><li>The necessary controls, chosen from the risk treatment process.</li><li>A justification for including each control.</li><li>Whether each control is implemented or not.</li><li>A justification for excluding any Annex A control.</li></ol><p>The SoA does not exist on its own. It sits between the risk assessment (clause 6.1.2) and the risk treatment plan, and an auditor will trace each control back to a risk, a legal requirement or a contract.</p><h3>The scenario</h3><p>NimbusGrid Cloud Services Pvt. Ltd. is a fictional infrastructure and platform provider based in Bengaluru, with about 180 employees. It offers virtual machines, managed databases and object storage to roughly 300 business customers from two leased data center facilities, with a 24/7 network operations center (NOC). Customers contractually expect ISO 27001 certification, and some of them store personal data, so the company is also subject to India’s Digital Personal Data Protection Act, 2023.</p><p>This profile matters because it drives the SoA. A cloud provider holds customers’ data and runs the infrastructure under it, so controls on physical security, segregation of customers, cryptography and availability carry far more weight than they would in a small consulting firm.</p><h3>Step 1: Complete the inputs first</h3><p>An SoA written before its inputs exist is only a copy of Annex A. Before starting, NimbusGrid needs:</p><ul><li><strong>A defined ISMS scope (clause 4.3):</strong> the platform, both data centers, the NOC and the supporting HR, IT and finance functions.</li><li><strong>A documented risk assessment (clause 6.1.2):</strong> a risk register with assets, threats, scores and risk owners.</li><li><strong>A list of legal, regulatory and contractual requirements:</strong> the DPDP Act, customer security clauses and uptime commitments.</li><li><strong>A risk treatment decision for each risk:</strong> reduce, accept, avoid or transfer.</li></ul><h3>Step 2: Identify the necessary controls</h3><p>Clause 6.1.3 asks for the controls needed to treat the risks you chose to reduce. The practical sequence is:</p><ol><li>For each risk to be reduced, decide which controls would lower it.</li><li>Compare that list with the 93 controls in Annex A to check that no necessary control was missed.</li><li>Add any control that Annex A does not cover. Annex A is a reference, not a complete list.</li><li>Walk through the legal and contractual list to check each requirement is supported by at least one control.</li></ol><p>For NimbusGrid, a risk such as “unauthorized access to customer virtual machines by an administrator” (R-03) leads to controls on privileged access, authentication, logging and segregation of duties.</p><h3>Step 3: Design the SoA table</h3><p>A workable SoA has one row for every Annex A control, 93 in total, with these columns:</p><ul><li><strong>Control ID and name:</strong> taken from Annex A.</li><li><strong>Applicable (Yes or No):</strong> the decision.</li><li><strong>Justification:</strong> the reason, tied to a risk ID, a legal requirement, a contract or a business need.</li><li><strong>Implementation status:</strong> implemented, partially implemented or planned.</li><li><strong>Reference:</strong> the policy, procedure or record that proves it.</li><li><strong>Owner:</strong> the person responsible for the control.</li></ul><p>NimbusGrid uses short justification codes so the table stays readable: R (risk assessment), L (legal), C (contractual), B (business need) and BP (good practice).</p><h3>Step 4: A worked example</h3><p>Here is an extract of the NimbusGrid SoA. The risk IDs and document references are fictional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHyY1vGQmDKlE9kXs2NOjg.png" /></figure><p>Two details are worth noting. First, the exclusion has a reason that an auditor can verify, together with a trigger for reviewing it. Second, the SoA admits that A.5.19 is only partially implemented and A.8.16 is only planned. An honest status is better than a column of identical “implemented” entries, because an auditor will test the claim.</p><p>For a cloud provider, almost every control ends up applicable. That is normal, and a long list of exclusions would be more suspicious than a short one.</p><h3>Step 5: Add cloud-specific guidance</h3><p>Because NimbusGrid is a cloud provider, it also uses ISO/IEC 27017 (security controls for cloud services) and ISO/IEC 27018 (protection of personal data in public clouds) when writing control descriptions. They are not required for ISO 27001 certification, but they help describe responsibilities such as customer data segregation and shared responsibility with customers.</p><h3>Common mistakes</h3><ul><li><strong>Copying a template:</strong> a generic SoA with no link to the company’s risks will not survive questioning.</li><li><strong>No link to the risk register:</strong> every justification should point to a risk, a law or a contract.</li><li><strong>Excluding controls casually:</strong> each exclusion needs a verifiable reason.</li><li><strong>Stale statuses:</strong> a control marked “implemented” without evidence is a likely nonconformity.</li><li><strong>No ownership or version control:</strong> the SoA should be versioned, approved and reviewed whenever the risk assessment changes.</li></ul><h3>How an auditor will use it</h3><p>An auditor typically picks a risk and follows the chain: risk register entry, then the SoA row, then the policy, then the records that show the control working. If any link is missing, it becomes a finding. Writing the SoA with that chain in mind makes the later audit much smoother.</p><h3>Key takeaways</h3><ul><li>The SoA is built from the risk assessment, not from Annex A alone.</li><li>Each row needs a justification, a status and evidence.</li><li>Exclusions must be reasoned and reviewable.</li><li>Honest status reporting protects you in an audit.</li><li>Review the SoA whenever the scope, risks or contracts change.</li></ul><h3>Limitations</h3><p>NimbusGrid is fictional, so its risks, references and statuses are assumptions. A real SoA depends on a real risk assessment and real evidence, and I plan to test this method against both as I gain experience.</p><h3>References</h3><ul><li>ISO/IEC 27001:2022, Information security management systems: Requirements (clauses 4.3, 6.1.2, 6.1.3, Annex A)</li><li>ISO/IEC 27002:2022, Information security controls</li><li>ISO/IEC 27017:2015 and ISO/IEC 27018:2019, cloud security and PII protection guidance</li><li>ISO 19011:2018, Guidelines for auditing management systems</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a15ad06b328" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a Complete ISO/IEC 27001:2022 Internal Audit Plan (Full Walkthrough + Free Template…]]></title>
            <link>https://medium.com/@nanthagopal_86712/how-i-built-a-complete-iso-iec-27001-2022-internal-audit-plan-full-walkthrough-free-template-acb303ca2fe7?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb303ca2fe7</guid>
            <category><![CDATA[internal-audit]]></category>
            <category><![CDATA[iso-27001-isms]]></category>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 16:28:15 GMT</pubDate>
            <atom:updated>2026-11-13T16:28:15.489Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Built a Complete ISO/IEC 27001:2022 Internal Audit Plan (Full Walkthrough + Free Template Logic)</h3><p>If you’re preparing for your first ISO/IEC 27001:2022 certification, the internal audit is the step most teams underestimate. I built a full internal audit plan for a fictional SaaS company — Veridian CloudWorks Pvt. Ltd. — and in this post I’ll walk you through the structure, the decisions, and the details you can copy into your own plan.</p><p>Whether you’re a GRC analyst, a CISO, or a consultant, this breakdown should save you hours.</p><h3>Why the internal audit matters (especially before certification)</h3><p>ISO/IEC 27001:2022 Clause 9.2 requires an internal audit programme. But for a first-time certification, the internal audit is more than a compliance checkbox — it’s your dress rehearsal for the Stage 1 and Stage 2 external audits.</p><p>The goal of the plan I built was simple: find the gaps <em>before</em> the certification body does, and prove the ISMS is not just documented but operating effectively.</p><h3>The scenario at a glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdy8p3dF1QTWKYUpSQ_IZA.png" /></figure><p>This matters because scope definition drives everything — schedule, sampling, team composition, and evidence requests.</p><h3>1. Document control: the boring page that protects you</h3><p>Every audit plan needs a document control block. Mine included:</p><ul><li>Document ID (e.g., VCW-ISMS-IAP-2026-01) — version-controlled and traceable</li><li>Version — “1.0 (Draft for approval)”</li><li>Audit type — internal (first-party), full-scope</li><li>Audit period and report issue date</li><li>Prepared by / Approved by — Lead Auditor and CISO</li><li>Classification — Internal — Confidential</li></ul><h3>2. Company profile and ISMS scope: set the boundary</h3><p>Before you audit anything, you need to know exactly what’s in and out of scope.</p><p>Veridian’s ISMS scope covered:</p><ul><li>In scope: HRConnect, PayStream, the Veridian API platform, supporting IT, HR, physical security, and third-party services — at the Chennai office and the public cloud (Mumbai region).</li><li>Out of scope: Marketing website hosting and the Sales CRM (managed by an independent vendor).</li><li>SoA: v1.2 dated 30 September 2026.</li><li>Certifications: None yet (targeting Q2 2027).</li></ul><p>Lessons learned: Explicitly naming what’s <em>out</em> of scope is just as important as what’s <em>in</em>. Certification bodies will challenge vague boundaries</p><h3>3. Objectives, scope, and criteria</h3><p>The plan defined five audit objectives:</p><ol><li>Confirm conformity with ISO/IEC 27001:2022 clauses 4–10.</li><li>Verify the Annex A controls selected in the SoA are implemented and effective.</li><li>Assess whether the risk assessment and risk treatment plan are consistent, current, and approved by risk owners.</li><li>Evaluate the status of actions from the 2025 gap assessment and the previous management review.</li><li>Identify nonconformities and opportunities for improvement before the external audit.</li></ol><h3>Audit criteria</h3><ul><li>ISO/IEC 27001:2022, clauses 4–10 and Annex A (93 controls)</li><li>The ISMS policy, procedures, SoA, and risk treatment plan</li><li>Legal and contractual requirements — including India’s Digital Personal Data Protection (DPDP) Act, 2023 and customer security clauses</li></ul><h3>Reference standards</h3><ul><li>ISO 19011:2018 — guidelines for auditing management systems</li><li>ISO/IEC 27002:2022 — information security controls</li><li>ISO/IEC 27003:2017 and ISO/IEC 27005:2022 — implementation and risk guidance</li></ul><h3>4. Audit team and auditee contacts: independence is non-negotiable</h3><p>ISO 19011 requires auditors to be independent of the areas they audit. Here’s how the team was structured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*nmEkVu_EQnHCT9Uy4Rrm1w.png" /></figure><p><strong>Key rule</strong>: No auditor assesses a process they operate or manage. Even the technical auditor from Platform Security was assigned only areas <em>outside</em> his own team.</p><p><strong>Lessons learned</strong>: The observer role is a smart way to train future auditors — but make it explicit that observers do not produce findings, to preserve independence.</p><h3>5. Approach and methodology: risk-based, not checklist-based</h3><p>The plan follows ISO 19011:2018 and is risk-based — more time goes to higher-risk areas, recent changes, and past weaknesses.</p><h3>Evidence collection methods</h3><ul><li>Document review: policies, procedures, records, risk register, SoA, logs, reports</li><li>Interviews with process owners and staff at different levels</li><li>Observation of processes, the office, and the server/network environment</li><li>Technical sampling: configuration checks, access reviews, backup restoration tests, vulnerability scan reports</li></ul><h3>Five risk-based focus areas for 2026</h3><ol><li>Access management &amp; privileged accounts — past exceptions in the Q2 access review</li><li>Secure development &amp; change management — two major releases this year</li><li>Supplier security — especially the cloud provider and an offshore support vendor</li><li>Incident management — three reportable incidents in 2026</li><li>Business continuity — DR test not yet repeated since the cloud migration</li></ol><h3>Sampling approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*HJCUC0EPaNsPd4UWTCLDHw.png" /></figure><h3>6. The 5-day audit schedule: what a real plan looks like</h3><p>Here’s the high-level flow (time in IST):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*fqQ38okZOZKwOYLnxp7cWw.png" /></figure><h3>Conduct of the audit</h3><ul><li>Opening meeting on Day 1 to confirm scope, schedule, and communication</li><li>Daily 15-minute auditor briefing at 17:00 to share emerging findings</li><li>Closing meeting on Day 5 to present findings and agree timelines</li><li>All findings must be supported by objective evidence and agreed with the auditee before the closing meeting</li></ul><h3>7. Annex A control coverage: all 93 controls, none skipped</h3><p>The plan covers all 93 controls across the four areas:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*5XRESxDLg2oPeYG2VhlEzg.png" /></figure><h3>The 11 new 2022 controls get full-depth testing</h3><p>This is where the plan really shines. Each of the 11 controls introduced in the 2022 edition has defined evidence to examine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*mQgtmjF_7T3QpfaNCvyAUw.png" /></figure><h3>8. Findings and reporting: grades that drive action</h3><p>Every finding is written against a specific clause or control, supported by objective evidence, and graded:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*LOhyr4JwgGAprxC1SS2m5g.png" /></figure><h3>Follow-up milestones</h3><ul><li>18 Dec 2026 — Closing meeting, draft findings shared</li><li>23 Dec 2026 — Final report issued to CISO and CEO</li><li>30 Dec 2026 — Major corrective action plans submitted</li><li>6 Jan 2027 — Minor corrective action plans submitted</li><li>By 22 Jan 2027 — Major closure verified</li><li>By 22 Feb 2027 — Minor closure verified</li><li>March 2027 — Results presented to management review</li></ul><h3>9. Logistics, confidentiality, and approval</h3><h3>Logistics</h3><ul><li>Interviews in the Chennai office; Conference Room 2 reserved as the audit room for all five days</li><li>Remote interviews on Microsoft Teams</li><li>Auditees must make themselves (or a nominated deputy) available</li><li>Auditors need read-only access to the ticketing system, cloud console, SIEM, and document repository by 11 December 2026</li></ul><h3>Documents to be ready by 7 December 2026</h3><ul><li>ISMS scope, information security policy, SoA v1.2</li><li>Risk assessment methodology, risk register, risk treatment plan</li><li>Asset inventory, classification scheme, data flow diagrams</li><li>Previous internal audit report, management review minutes, corrective action log</li><li>Training and awareness records; onboarding/exit checklists for 2026</li><li>Supplier register, assessments, and contracts for the 9 critical suppliers</li><li>Incident register, DR/backup test reports, change and release records</li><li>Legal and regulatory register, including DPDP Act compliance records</li></ul><h3>Confidentiality and conduct</h3><ul><li>Auditors sign a non-disclosure undertaking</li><li>No personal or customer data is copied out of the environment</li><li>Only evidence <em>references</em> needed to support findings are recorded</li><li>Working papers retained for three years</li></ul><h3>Approval</h3><p>The plan closes with sign-off from the Lead Auditor, CISO, and CEO — a simple but essential governance step.</p><h3>Key takeaways for your own audit plan</h3><ol><li>Scope defines everything. Be explicit about what’s in and out.</li><li>Risk-based beats checklist-based. Give more time to high-risk and recently changed areas.</li><li>Independence is mandatory. No auditor audits their own work — including technical auditors.</li><li>Sampling must be defensible. Define populations and percentages up front.</li><li>The 11 new 2022 controls deserve extra depth. Map evidence to each one.</li><li>Grade findings consistently. Clear definitions of major/minor/OFI prevent disputes.</li><li>Follow-up deadlines matter. A finding without a closure date is just an observation.</li><li>Confidentiality is operational. NDA, no data exfiltration, evidence references only.</li></ol><h3>Final thought</h3><p>An internal audit plan is more than a schedule — it’s a contract with your auditees about what will be examined, how, and by whom. The clearer the plan, the smoother the audit, and the fewer surprises when the certification body arrives.</p><p><em>This walkthrough is based on a fictional practice scenario (Veridian CloudWorks Pvt. Ltd.). Use it as a template, adapt the scope, sampling, and controls to your own ISMS — and always validate against the current ISO/IEC 27001:2022 requirements.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb303ca2fe7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Cyber Tool With LangChain: Building an Advanced Python Agent]]></title>
            <link>https://medium.com/@nanthagopal_86712/automating-cyber-tool-with-langchain-building-an-advanced-python-agent-deb346c29d45?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/deb346c29d45</guid>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 11:40:04 GMT</pubDate>
            <atom:updated>2025-11-15T11:40:04.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>This article guides you through building a LangChain-powered agent that automates running multiple system/network diagnostic tools, captures their command outputs, and generates a structured TXT report file. By using LangChain, LLMs, and Python’s subprocess and file management modules, you’ll learn to orchestrate automated cyber auditing workflows — great for IT professionals, sysadmins, and cybersecurity learners.</p><h3>Prerequisites</h3><ul><li>Python 3.8+</li><li>Install the following:</li></ul><pre>pip install langchain openai</pre><ul><li><a href="https://platform.openai.com/account/api-keys">Obtain your OpenAI API key</a></li><li>Ensure you are running as a user with permission to execute system commands.</li></ul><h3>Agent Features</h3><ul><li>Execute multiple “cyber tool” commands:<br>(ping, ipconfig / ifconfig, whoami, etc.)</li><li>Parse and collect the outputs.</li><li>Store the results as a readable TXT report.</li><li>Respond to queries or run all tools at once.</li></ul><h3>Code: langchain_cyber_report_agent.py</h3><pre>from langchain.agents import initialize_agent, Tool<br>from langchain.llms import OpenAI<br>from langchain.memory import ConversationBufferMemory<br>import subprocess<br><br># Tool 1: Ping tool<br>def ping_tool(query):<br>    host = query.split()[-1]  <br>    try:<br>        result = subprocess.check_output([&#39;ping&#39;, &#39;-c&#39;, &#39;2&#39;, host], text=True)<br>        return result<br>    except Exception as e:<br>        return f&quot;Ping failed: {e}&quot;<br><br># Tool 2: Get network info<br>def network_info(_):<br>    import platform<br>    cmd = &quot;ipconfig&quot; if platform.system() == &quot;Windows&quot; else &quot;ifconfig&quot;<br>    try:<br>        result = subprocess.check_output(cmd, shell=True, text=True)<br>        return result<br>    except Exception as e:<br>        return f&quot;Network info failed: {e}&quot;<br><br># Tool 3: User info<br>def user_info(_):<br>    try:<br>        result = subprocess.check_output(&#39;whoami&#39;, shell=True, text=True)<br>        return result.strip()<br>    except Exception as e:<br>        return f&quot;User info failed: {e}&quot;<br><br>tools = [<br>    Tool(name=&quot;PingTool&quot;, func=ping_tool, description=&quot;Runs ping (use &#39;ping [host]&#39;)&quot;),<br>    Tool(name=&quot;NetworkInfo&quot;, func=network_info, description=&quot;Shows network configuration info&quot;),<br>    Tool(name=&quot;UserInfo&quot;, func=user_info, description=&quot;Shows current user info&quot;)<br>]<br><br>llm = OpenAI(model=&quot;gpt-3.5-turbo&quot;, openai_api_key=&quot;YOUR_OPENAI_API_KEY&quot;)<br>memory = ConversationBufferMemory()<br><br>agent = initialize_agent(<br>    tools,<br>    llm=llm,<br>    agent_type=&quot;openai-functions&quot;,<br>    memory=memory<br>)<br><br>commands = [<br>    &quot;ping google.com&quot;,<br>    &quot;Show my network info&quot;,<br>    &quot;Who am I?&quot;<br>]<br><br>report = []<br>for command in commands:<br>    output = agent.run(command)<br>    print(f&quot;Command: {command}\n{output}\n{&#39;-&#39;*40}&quot;)<br>    report.append(f&quot;Command: {command}\n{output}\n{&#39;-&#39;*40}\n&quot;)<br><br>report_filename = &quot;cyber_agent_report.txt&quot;<br>with open(report_filename, &quot;w&quot;) as f:<br>    f.writelines(report)<br>print(f&quot;Report generated in {report_filename}&quot;)</pre><p>What is happening</p><ul><li>ping_tool: Runs a ping command to the given host and collects the output.</li><li>network_info: Gets network configuration; uses ipconfig (Windows) or ifconfig (Unix).</li><li>user_info: Reports the current logged-in user.</li><li>Agent and memory: Uses LangChain to select the right tool based on query text and keeps conversation history.</li><li>Report creator: Loops through pre-set commands, saves all results, and writes a summary TXT file.</li></ul><p>Run the code</p><pre>python langchain_cyber_report_agent.py</pre><h3>Warnings and Safety!</h3><ul><li>Only use this pattern on trusted machines.</li><li>Never pass untrusted queries to a tool that runs shell commands — sanitize inputs to avoid security risks.</li><li>You may need to run with administrative privileges for some system info commands (ifconfig/ipconfig); use responsibly.</li></ul><h3>Learn More</h3><ul><li><a href="https://docs.langchain.com/">LangChain Documentation</a></li><li><a href="https://docs.langchain.com/docs/modules/agents/">LangChain Agents</a></li><li><a href="https://docs.python.org/3/library/subprocess.html">Python subprocess module</a></li><li><a href="https://www.cyberseek.org/">Cybersecurity beginner resources</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deb346c29d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Multi-Tool, Memory-Powered AI Agent with LangChain (Python Example)]]></title>
            <link>https://medium.com/@nanthagopal_86712/how-to-build-a-multi-tool-memory-powered-ai-agent-with-langchain-python-example-f88ea100d478?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/f88ea100d478</guid>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 13:45:19 GMT</pubDate>
            <atom:updated>2025-11-03T13:45:19.947Z</atom:updated>
            <content:encoded><![CDATA[<p>LangChain agents can do more than just simple tasks — they can use multiple tools, remember conversation history, and solve more complex requests. This article will guide you through building and running an intermediate agent. You’ll also find concise code explanations and useful resources.</p><h3>What Will This Agent Do?</h3><ul><li>Use two tools: one for adding numbers, one for reporting your OS version.</li><li>Remember previous user messages to answer follow-up questions.</li><li>Respond intelligently by selecting the correct tool for each query.</li></ul><h3>Prerequisites</h3><ul><li>Python 3.8+</li><li>Install required packages</li></ul><pre>pip install langchain openai</pre><ul><li><a href="https://platform.openai.com/account/api-keys">Get your OpenAI API key</a></li></ul><pre>from langchain.agents import initialize_agent, Tool<br>from langchain.llms import OpenAI<br>from langchain.memory import ConversationBufferMemory<br>import platform<br><br><br>def add_numbers(query):<br>    numbers = [int(s) for s in query.split() if s.isdigit()]<br>    if len(numbers) &lt; 2:<br>        return &quot;Please provide at least two numbers to add.&quot;<br>    return f&quot;The sum is {sum(numbers)}&quot;<br><br>def get_os_version(_):<br>    os_name = platform.system()<br>    os_release = platform.release()<br>    os_version = platform.version()<br>    return f&quot;OS: {os_name}, Release: {os_release}, Version: {os_version}&quot;<br><br>tools = [<br>    Tool(name=&quot;AddNumbers&quot;, func=add_numbers, description=&quot;Adds numbers given in the query.&quot;),<br>    Tool(name=&quot;OSVersion&quot;, func=get_os_version, description=&quot;Reports the operating system version.&quot;)<br>]<br><br>llm = OpenAI(model=&quot;gpt-3.5-turbo&quot;, openai_api_key=&quot;YOUR_OPENAI_API_KEY&quot;)<br><br>memory = ConversationBufferMemory()<br><br>agent = initialize_agent(<br>    tools,<br>    llm=llm,<br>    agent_type=&quot;openai-functions&quot;,<br>    memory=memory<br>)<br><br>queries = [<br>    &quot;Add 5 and 7.&quot;,<br>    &quot;What&#39;s my operating system version?&quot;,<br>    &quot;Add 12 and 8.&quot;,<br>    &quot;What was my last question?&quot;<br>]<br><br>for q in queries:<br>    print(f&quot;User: {q}&quot;)<br>    print(&quot;Agent:&quot;, agent.run(q))<br>    print(&quot;-&quot; * 30)</pre><h3>How to Run</h3><ul><li>Save the code to a file named intermediate_langchain_agent.py.</li><li>Replace &quot;YOUR_OPENAI_API_KEY&quot; with your actual key.</li><li>Open your terminal and run:</li></ul><pre>python intermediate_langchain_agent.py</pre><h3>Code Highlights</h3><ul><li>add_numbers: Extracts numbers from the user’s query and adds them.</li><li>get_os_version: Collects and reports your system’s OS information.</li><li>ConversationBufferMemory: Lets the agent remember previous messages, so it can reference or answer follow-up questions.</li><li>initialize_agent: Combines tools, memory, and the language model into a single agent that picks the best tool based on your query.</li></ul><h3>Learn More</h3><ul><li><a href="https://docs.langchain.com/">LangChain Documentation</a></li><li><a href="https://docs.langchain.com/docs/modules/agents/">LangChain Agents</a></li><li><a href="https://platform.openai.com/docs/">OpenAI LLMs</a></li><li><a href="https://docs.python.org/3/library/platform.html">Python platform module</a></li></ul><h4>Summary:</h4><p>This agent demonstrates using multiple tools, integrating memory for conversational context, and selecting the right tool for each query. With LangChain, you can expand agents’ abilities by adding more tools, custom workflows, or external APIs. Continue exploring the docs to build even more advanced solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f88ea100d478" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with AI Agent Development Using LangChain: A Beginner’s Guide]]></title>
            <link>https://medium.com/@nanthagopal_86712/getting-started-with-ai-agent-development-using-langchain-a-beginners-guide-8ff79015ed16?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ff79015ed16</guid>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 13:26:00 GMT</pubDate>
            <atom:updated>2025-11-03T13:29:00.852Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial intelligence agents are changing the way we interact with technology. Instead of only answering questions, modern AI agents can remember what you said, use external tools, and perform a series of steps to help you accomplish real-world tasks.<a href="https://docs.langchain.com/"> <strong>LangChain</strong></a> is a popular open-source framework that makes it much easier for anyone, including beginners, to build these kinds of advanced agents.</p><h3>What Is LangChain?</h3><p>LangChain is a Python library designed to help developers create and manage AI agents powered by large language models (LLMs) like OpenAI’s GPT, Gemini, or DeepSeek. With LangChain, you can build agents that:</p><ul><li>Understand and generate human language</li><li>Remember context or previous conversations</li><li>Use external tools (like searching the internet or sending an email)</li><li>Handle complex, multi-step tasks</li></ul><h3>Your First LangChain Agent in Python</h3><p>Let’s walk through a simple example to help you get started. Here’s how you can build a basic agent that uses a language model and an external tool.</p><h4>1. Install python</h4><p>Download from <a href="https://www.python.org/downloads/">python.org</a> if you don’t have it already.</p><h4>2. Install LangChain and LLM Dependencies.</h4><pre>#Install dependencies<br>pip install langchain openai</pre><h4>3. Write Your First Agent</h4><pre>#main.py<br>from langchain.agents import initialize_agent, Tool<br>from langchain.llms import OpenAI<br>import platform<br><br>def get_os_version(_):<br>    os_name = platform.system()<br>    os_release = platform.release()<br>    os_version = platform.version()<br>    return f&quot;Operating System: {os_name}\nRelease: {os_release}\nVersion: {os_version}&quot;<br><br>tools = [<br>    Tool(<br>        name=&quot;OSVersion&quot;,<br>        func=get_os_version,<br>        description=&quot;Returns the current operating system version.&quot;<br>    )<br>]<br><br>llm = OpenAI(model=&quot;gpt-3.5-turbo&quot;, openai_api_key=&quot;YOUR_OPENAI_API_KEY&quot;)<br><br><br>agent = initialize_agent(<br>    tools,<br>    llm=llm,<br>    agent_type=&quot;openai-functions&quot;<br>)<br><br>question = &quot;What is my operating system version?&quot;<br>answer = agent.run(question)<br>print(answer)</pre><h4>3. Run the program</h4><pre>#Execute it in the terminal<br>python main.py</pre><ul><li><strong>get_os_version:</strong><br>This is your agent’s tool — a Python function that your agent calls whenever it thinks you’re asking for details about your computer’s operating system. It uses Python’s built-in platform module to get information like your OS name, release, and version directly from your device.</li><li><strong>Tool registration:</strong><br>You wrap this function as a Tool object, providing both a clear name and a description. LangChain uses these to help the agent select which tool fits the user’s request.</li><li><strong>LLM setup:</strong><br>OpenAI’s language model manages the “thinking” and “talking” parts for your agent. You supply your API key so the agent can access this model.</li><li><strong>Agent initialization:</strong><br>The agent combines the OS version tool (function) and the LLM. It decides, based on your instructions, whether it can respond directly or should use the tool.</li><li><strong>Running the agent:</strong><br>When you call agent.run(query), the agent passes your prompt to the LLM. If the agent recognizes your question as needing OS details, it calls the get_os_version tool and returns your current operating system information.</li></ul><h3>Tips for Beginners</h3><ul><li>Start Small: Begin with simple tasks — like looking up information — before moving on to more complex workflows.</li><li>Use Built-In Tools: LangChain comes with many pre-made components, making it easier to experiment and learn.</li><li>Check the Documentation: The <a href="https://docs.langchain.com/oss/python/langchain/overview">LangChain documentation</a> is a great resource, with guides, examples, and best practices.</li></ul><h3><strong>Warning</strong></h3><ul><li>Only let your agent run safe commands. Don’t let it execute anything that could harm your computer, change files, or affect system settings without your approval. Always check what a tool is allowed to do, especially if you share your code with others.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ff79015ed16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Computer Won’t Let AI Be Your All-Powerful Assistant (And That’s Probably a Good Thing)]]></title>
            <link>https://medium.com/@nanthagopal_86712/why-your-computer-wont-let-ai-be-your-all-powerful-assistant-and-that-s-probably-a-good-thing-4ee1610677e3?source=rss-b732d4105910------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ee1610677e3</guid>
            <dc:creator><![CDATA[Nanthagopal J]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 13:01:40 GMT</pubDate>
            <atom:updated>2025-11-03T13:01:40.366Z</atom:updated>
            <content:encoded><![CDATA[<p>You’ve heard the dream: a digital butler who places your Amazon orders, answers your calls, dings off annoying emails, deletes your ex’s old photos (no judgment), and installs literally any app you can name. A Jarvis, an Alfred, a Her — that dazzling assistant that works for you, on your device, like magic.</p><h4>it’s not possible (yet). In fact, your computer and phone create more hurdles for an aspiring super-agent than trying to renew your driver’s license at the DMV.</h4><p>Let’s stroll down the boulevard of broken AI-dreams, and see why the “Agent Freedom” movement keeps getting tripped up — pain point by very real <strong>pain point</strong>.</p><h3>1. Security Risks: Welcome to the No Fun Zone</h3><p>Let’s be honest, giving a robot free reign over your files sounds cool — right until it decides your thesis.pdf and Monday_budget.xlsx look “a bit cluttered.” Poof, gone.</p><p>Unrestricted agent access is a hacker’s fantasy and an IT admin’s fever nightmare. Malware, ransomware, identity theft — these aren’t sci-fi plot devices, they’re Tuesday for folks who let just any script run wild.</p><p>Can you imagine your AI agent, completely unfettered, buying $500 in dogecoin on your behalf because it “sensed market optimism”? Caution, meet reason.</p><h3>2. Privacy Laws: Bureaucracy in Your Pocket</h3><p>Your agent wants to read your emails, dig through your dating app messages , and peek at your medical records. Great… until the <strong>GDPR, CCPA</strong>, and an alphabet soup of privacy regulators descend upon you wielding legal batons.</p><p>you have a right to control who (or what) sees your stuff. That right doesn’t dissolve for a perky assistant. Consent is as much a requirement as in any human interaction. Any agent with “read all my data” powers needs a user permission slip longer than your Terms of Service.</p><h3>3. OS Sandboxes and Permissions: Walls, Popups, and Moats</h3><p>Operating systems are like helicopter parents. Try asking Windows, Mac, iOS, or Android to let just any app play with everything. What do you get? Permission popups, sandboxes, restricted folders, and apps begging “pretty please, may I use the camera?”</p><p>Your AI may beg and cajole, but until it clicks “Allow” itself (don’t give it that power!), it’s staying outside the sandbox. And rightly so. Even your favorite social media app can’t auto-text your crush, so why should your agent be any different?</p><h3>4. Anti-Abuse: CAPTCHA and the Bot-Bouncers</h3><p>Websites invented CAPTCHAs for one singular reason: stop bots from running amok. Your agent with universal powers would hit CAPTCHAs like a speed bump every five minutes, probably before it finishes reading your inbox.</p><p>If you’ve ever watched your AI assistant freeze at a distorted series of letters or traffic light pictures, you know: the internet is a tough place for free spirits and bad actors alike.</p><h3>5. Human Safety: Oops, It Deleted My Life</h3><p>Every user knows (and dreads) the feeling: one wrong click, and the system is trashed. Now imagine your AI agent, misinterpreting <strong><em>“clear old files”</em></strong> as <strong><em>“delete system32.” </em></strong>You’re not getting those vacation photos back (or your operating system).</p><p>Unfettered access means the agent could theoretically erase, overwrite, or break anything. Unintended consequences make for great sitcoms, but terrible user experiences.</p><h3>6. Permissions Fragmentation: Herding Digital Cats</h3><p>Devices, browsers, email clients, chat apps — they all have their private little castles. There’s no single spell to make every gate open at once. If your agent wants to “do absolutely everything,” it needs a permission slip for every app, system, device, and file.</p><p>In short, granting “total access” is a logistical mess. You’ll spend more time managing permissions than the agent does managing tasks.</p><h3>7. Audit Logging: Who Did This?</h3><p>Let’s say something mysterious (or catastrophic) happened. Without systematic logging and audit trails, you’ll never know if it was your agent, your cousin, or that one flaky browser extension. Good luck convincing tech support it wasn’t you.</p><p>For real freedom, you need real accountability. Logging every action is non-negotiable, unless you enjoy weeks of digital forensics.</p><h3>8. Explainability: “Why Did You Eat My Homework, Bot?”</h3><p>AI agents — especially those powered by large language models — aren’t exactly known for their crystal-clear motives. If unlimited freedom means they can do literally anything, you’ll want answers. “It seemed like a good idea at the time” doesn’t cut it, whether from a toddler or a robot.</p><h3>Final Thoughts: Freedom Versus Protection (And Why You Secretly Want the Fences)</h3><p>Your computer, your phone, and every app you use are there to help you, not to be punked by an overly eager digital assistant. The layers of security, privacy, permissions, and oversight aren’t annoyances — they are hard-earned lessons from decades of real-world <strong>“oops” </strong>moments.</p><p>The dream of the all-powerful agent will get closer, year by year, but only when safety, privacy, and trust can keep pace. So yes, your agent may be locked in a digital playpen today — but it’s for your own good. And who knows: the next time your agent wants to buy a pizza, you might just be glad it asks before it orders <em>extra anchovies</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ee1610677e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>