<?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 Aakash on Medium]]></title>
        <description><![CDATA[Stories by Aakash on Medium]]></description>
        <link>https://medium.com/@aakash0086?source=rss-66e87a89ca9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FhzgHwHrY17lhu1SqElXow.jpeg</url>
            <title>Stories by Aakash on Medium</title>
            <link>https://medium.com/@aakash0086?source=rss-66e87a89ca9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:00:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aakash0086/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[LLMs and Data Security: A New Battleground]]></title>
            <link>https://medium.com/@aakash0086/llms-and-data-security-a-new-battleground-31776cfaa737?source=rss-66e87a89ca9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/31776cfaa737</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Aakash]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 16:12:21 GMT</pubDate>
            <atom:updated>2025-11-25T16:12:21.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*B4jXgZqTN3peg25mezNFlg.png" /></figure><p>Since data analytics has gained precedence in decision-making processes, there has been a key concern among AI governance teams about data ethics and data security particularly regarding procedures for data collection, storage, usage and all other aspects of data processing. Furthermore, with the rise of Gen AI and large language models this concern around data have expanded, drawing heightened attention from data protection authorities and underscoring the critical need for robust data security measures.</p><p>With the evolution of more advanced and bigger GPT models it is important to focus on the privacy and data protection processes. Using LLMs without appropriate guardrails involving stringent processes and frameworks can lead to sensitive data leakage. This can happen not only during training or fine tuning but also while making a simple API call to an LLM model for inferencing. This again iterates the need to safeguard sensitive information when using generative AI technology.</p><p>The good news is that LLM models are not insecure by nature and will not start swarm through the network to fish out sensitive data on its own. The challenge lies in how we are using the LLM model and its services to perform the tasks we ask of it.</p><p><strong>Below are key important data security and data privacy risks in an LLM context :</strong></p><p><strong>Data leaks</strong>: when a user prompts the model in a way that triggers a response containing sensitive or confidential information embedded in the training data.</p><p><strong>Model Inference Attacks</strong>: Adversarial attacks, to manipulate the model into leaking sensitive information, providing incorrect data, further craft specific inputs to reverse-engineer or extract details about the training data</p><p><strong>Adversarial Prompt Injection</strong>: Crafting adversarial inputs or prompts that manipulate the LLM into revealing unintended information or behaving in undesired ways.</p><p><strong>Data Storage and Transmission</strong>: The data accessed and generated with LLMs (e.g, queries and responses) needs to be encrypted during transit or at rest as it can be intercepted by attackers, leading to data breaches.</p><p><strong>Compliance with Data Privacy Regulations</strong>: LLM model’s deployment and usage might not adhere to strict regulatory frameworks such as GDPR resulting in legal repercussions. This is important when LLMs process sensitive data like medical records or information relating to political beliefs.</p><p><strong>How to mitigate the risks for LLMs :</strong></p><p>In order to make the best use of LLMs while keeping data safe, below are some best practices which should be considered.</p><p><strong>1. Minimal Data for LLM Interactions</strong></p><p><strong>- Limit Input Data</strong>: Share only the minimal amount of data necessary to get the desired output from the LLM. This reduces the risk of exposing sensitive data unintentionally and without any considerable impact on LLM performance.</p><p><strong>- Anonymize the Data</strong>: Remove any personal data before sending it to the LLM. Where possible, use anonymisation techniques to mask sensitive information while retaining the essential data required to get the task done.</p><p><strong>2. Encryption Across the Different Data States</strong></p><p><strong>- Data at Rest</strong>: Encrypt stored data on servers, databases or any storage medium associated with the LLM to protect from unauthorized access.</p><p><strong>- Data in Transit</strong>: Encrypt data exchanges happening with the LLM application, especially when transmitting sensitive data over a network. Strong encryption protocols like TLS or SSL should be used to secure the transmissions.</p><p><strong>3. Strict Access Control Mechanisms</strong></p><p><strong>- Role-Based Access Control (RBAC)</strong>: Use RBAC to limit access to the LLM based on user roles. Only authorised personnel should be able to interact with the LLM when handling sensitive data.</p><p><strong>- Multi-Factor Authentication (MFA)</strong>: Implement MFA for users accessing the LLM environment to add an additional layer of security.</p><p><strong>4. Data Masking and Redaction</strong></p><p><strong>- Prompt Filter &amp; Redaction</strong>: When interacting with LLMs in applications where data privacy is critical and plays an important role, mask out any sensitive or personal information in prompts and responses before passing further. Redact any unnecessary details that do not contribute to achieve the specific outcome.</p><p><strong>- Output Filtering</strong>: Create filters to review and redact sensitive data from model outputs. This step is important as LLM generated responses could potentially reveal confidential information.</p><p><strong>5. Secure API Usage and Monitoring</strong></p><p><strong>- API Key Management</strong>: Secure the API keys used to access the LLM’s API. Implementing OAuth or token-based access to control interactions needs to be considered.</p><p><strong>- Logging &amp; Auditing</strong>: Log API access and regularly review logs to detect any unusual or unauthorized access patterns.</p><p><strong>6. Secure Data Collection and Training Practices</strong></p><p><strong>- Data Filtering</strong>: Curate training data to remove any sensitive or confidential information before using it to train or fine-tune LLMs.</p><p><strong>- Bias and Sensitivity Reviews</strong>: Periodically review data to ensure that training content is free of harmful or irrelevant biases or risk containing confidential information that could be passed into the LLM’s responses.</p><p><strong>7. Penetration Testing and Vulnerability Assessments</strong></p><p><strong>- Periodic Security Testing</strong>: Perform penetration testing, red teaming and vulnerability assessments on the LLM application to identify and address weak points.</p><p><strong>8. Human in the loop</strong></p><p>With all the above technical controls and automated safeguards which are vital for protecting sensitive data in LLM deployments, it is crucial to recognise that no system is infallible. While automated filters, access controls and encryption can significantly reduce risk but they may not catch every potential issue especially as threats and use cases evolve. Therefore, incorporating a human in the loop process for oversight and auditing is essential. Human reviewers can identify subtle risks, assess context and spot anomalies that automated systems might miss. Regular audits and manual reviews of LLM interactions, outputs and access logs help ensure that security policies are being followed and that any gaps are promptly addressed.</p><p>This final layer of human judgement not only strengthens the overall security positioning but also builds trust by demonstrating a commitment to responsible AI governance and continuous improvement.</p><p>To conclude, it is very important to implement robust security measures and best practice when using LLMs to protect sensitive data and ensure compliance with data privacy regulations. By following the above guidelines, organizations can leverage the power of generative AI while safeguarding their data and maintaining trust with their users or clients.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31776cfaa737" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Role of LLM Prompts in New age Data Analysis.]]></title>
            <link>https://medium.com/@aakash0086/role-of-llm-prompts-in-new-age-data-analysis-7d03b2113bd8?source=rss-66e87a89ca9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d03b2113bd8</guid>
            <dc:creator><![CDATA[Aakash]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 14:27:26 GMT</pubDate>
            <atom:updated>2025-10-09T14:27:26.772Z</atom:updated>
            <content:encoded><![CDATA[<p>Since the computer age began data has been the key residual product in one form or the other but very few part of it was being re-utilised to further generate meaningful insights, there were various reason which were contributing to this non utilisation such as ineffective data management designs or requiring special skills to transform the data in a usable form. This led to the need to bring in specialised tools and coders to effectively manage them who can clean, refine, transform and preparing large datasets to be used for analytics.</p><p>However, AI has completely revolutionized the way we have handled and manged data in the past. Actionable and meaningful insights can be generated at a much faster pace than earlier and the AI supported data preparation steps produces much better data in terms of quality and require very less pre-processing steps to be used for further analysis and producing meaningful insights.</p><p>In this data transformations journey, with recent advancement in the evolution of Language models trained over enormous data, LLMs are and can be used for various tasks at different stages such as defining prompts to identify and fix the data errors, handle inconsistent and duplicate data , merging the data from multiple sources, enriching or labelling the dataset. Remove any PIIs from the dataset to meet the privacy guidelines etc.</p><p>But there is a catch, like the performance of any Machine Learning system depends on how refined the data has been fed, the performance of a LLM based system depends on how well and accurate the prompt is which led it to provide the desired results. Thus , what makes the difference in achieving an efficient and meaningful data analytics solution is knowing how to create and effective prompt. As like human interactions any misleading instruction can lead to undesired results and ultimately failing to achieve the desired results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*y4M5bpTlN5nykNDCRFuKQw.png" /></figure><p><strong>Why crafting an effective prompt is necessary</strong></p><p>A well-defined prompt shapes how data is collected, processed, analysed, and interpreted.</p><p>Here are key reasons why effective prompts are crucial for these activities:</p><p>1. Aims to define the Right Problem :</p><p>· Focus and Clarity : A well-crafted prompt helps clearly define the problem that needs to be solved. It ensures the data operations are performed on relevant variables and thus avoids ambiguity.</p><p>2. Guiding Data Collection</p><p>· Relevant Data : Effective prompts ensure the collection of only the most relevant data pertaining to the end objective, thus reducing noise and improving the quality of the analysis.</p><p>· Data Accuracy : When the prompt is specific, it makes it easier to gather accurate data , minimizing the chance of introducing errors during data collection or generation.</p><p>3. Enhancing Analytical Depth</p><p>· Specific Insights : A prompt that is specific allows data engineers, analysts to dive deeper into the data, uncovering more precise and meaningful insights. For eg: asking “What are the key factors of customer churn in Retail?” has more focused approach than the analysis compared to the instruction specifying “Why do customers churn?” which has a much broader scope.</p><p>· Targeted Techniques : Depending on the prompt, different statistical or machine learning methods may be more appropriate which provides us the best tool for the job.</p><p>4. Reducing Bias</p><p>· Objective Setting : A neutral, concise and specific prompt reduces bias in both the analysis and interpretation stages. Accurate and efficient prompts can enable analysts to focus on expected outcomes and results.</p><p>· Data Representation : Effective prompts help ensure that data from different demographics , contexts, classes are considered, leading to more balanced insights.</p><p>5. Targeting Data-Driven Decisions</p><p>· Actionable Results : A well-crafted prompt is aligned with business goals, driving analysis that produces actionable, relevant insights. The objective of a good prompt is to drive data into decisions.</p><p>· Effective Communication : A clear prompt ensures that complex data analysis is translated into understandable insights and recommendations.</p><p>6. Optimizing Resource Use</p><p>· Efficiency in Data Processing : Clear prompts help to focus and optimise resources, saving time and computational power. For eg, generalised prompts may require additional processing of large data sets requiring specialised analysis.</p><p>· Cost Reduction : Avoiding unnecessary data collection or analysis helps reduce operational costs.</p><p>7. Improving Collaboration</p><p>· Collaboration Across Teams : Well-defined prompts make it easier for data scientists, engineers, data engineers, business analysts and domain experts to align on the same end goals, improving collaboration within teams.</p><p>· Reproducible : Standardized prompts can create consistency across multiple projects, making data analysis processes scalable and repeatable.</p><p>8. Supporting Ethical Data Use</p><p>· Responsible Data Usage : Thoughtfully designed prompts enables ethical use of data by specifying the type of data that should be analysed and ensures data compliance.</p><p>· Avoiding Overfitting : Using clearly set prompts, analysts are less likely to overfit models on a specific dataset.</p><p>9. Enhanced Predictive Modelling</p><p>· Accurate Predictions : Effective prompts define the target variable or outcome for predictive modelling tasks. For instance, asking for customer lifetime value predictions or churning probabilities enables the selection of appropriate features and models.</p><p>· Feature Selection : Precise prompts also guide the choice of features for predictive models, eliminating irrelevant data points and improving model performance.</p><p>Based on above merits below are some broad areas to consider while structuring the LLM prompts such as :</p><p>1.<strong>Clairty of the objective</strong>: Ensure that the goal of the prompt is clear and well-defined and determines what are you aiming to achieve.</p><p>2.<strong>Provide clear instructions</strong>: Keep the prompt concise, focusing only on the essential details.</p><p>3.<strong>Provide relevant data and metrics</strong> : Identify the exact datasets or fields to be used and highlight the KPIs.</p><p>3.<strong>Provide context</strong>: Provide any necessary context to guide the response appropriately.</p><p>4. <strong>Constraints and Parameters</strong> : Include any specific limits or criteria and indicate whether certain data elements should be emphasized or excluded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d03b2113bd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>