How I Built Cysinfo AI: Fine-Tuning LLaMA with LoRA for Cybersecurity

Author: Shreerama D S · AI Engineer · IEEE Author


When I started working on Cysinfo AI, my goal wasn’t to build “just another chatbot.” I wanted to explore a deeper question:

Why are most AI models still unusable for real cybersecurity learning and research?

Despite the rapid growth of large language models, I noticed a common limitation — most systems either provide surface level information or avoid answering practical cybersecurity questions altogether. For students, researchers, and ethical hackers, this makes learning fragmented and inefficient.

Cysinfo AI was my attempt to solve that gap.


The Problem I Wanted to Solve

Cybersecurity is a domain where context and depth matter. However, most existing AI systems are:

This leads to a situation where learners constantly switch between documentation, forums, and incomplete explanations.

I wanted to build an AI system that could:


Why I Chose LLaMA and LoRA

Model choice

Instead of relying on API-based models, I decided to work directly with an open-source LLM.

I chose LLaMA because:

Fine-tuning approach

Rather than full fine-tuning, I used LoRA (Low-Rank Adaptation).

This decision was intentional:

This approach allowed me to inject cybersecurity specific knowledge while preserving the model’s general reasoning ability.


Dataset Preparation and Training

One of the most critical parts of this project was data curation.

I focused on:

The data was carefully structured to ensure:

Using this dataset, I fine-tuned the model with LoRA layers applied selectively, ensuring stable learning without degrading base performance.


System Architecture

Cysinfo AI is not just a model — it’s a complete system.

Backend

Frontend

This separation allowed me to iterate independently on the model and the interface.


Key Challenges I Faced

Each challenge pushed me to understand LLM behavior more deeply — beyond just running code.


Results and Impact

Cysinfo AI evolved into:

The project was later published as an IEEE research paper, validating both the technical depth and research relevance of the work.

More importantly, it strengthened my understanding of:


What I’d Improve Next


Closing Thoughts

Cysinfo AI represents how I approach AI engineering — not just using models, but understanding, adapting, and building around them.

This project reinforced my interest in large language models, domain-specific fine-tuning, applied AI research, and building systems that go beyond demos.

If you’re interested in the technical details or want to explore the code, you can find everything on my GitHub and research publications linked on this site.