Skip to content
Y

Yuddha

Find. Exploit. Patch. Before hackers do.

Created on 12th April 2026

•

Y

Yuddha

Find. Exploit. Patch. Before hackers do.

The problem Yuddha solves

Most companies are permanently one step behind attackers.
Security teams run penetration tests once a year: expensive, manual, and instantly outdated the moment a new CVE drops. When a vulnerability is found, a human has to read the report, understand the context, find the right patch, test it, and deploy it. That process takes days. Sometimes weeks. Attackers need minutes.

Yuddha is built for the teams who cannot afford to wait.

Security engineers get a continuous red team running 24/7 against a live digital twin of their stack; no scheduling, no vendor calls, no waiting for a quarterly report
Developers get auto-generated, sandbox-verified pull requests the moment a vulnerability is found, review the diff, merge, done
CISOs and compliance teams get every patch automatically tagged to the relevant DPDP Act 2023 clause, with a breach cost estimate in INR audit-ready without manual documentation
Small and mid-size businesses that cannot afford a dedicated security team get enterprise-grade continuous pen testing at open-source cost

The core shift Yuddha makes: security tools today alert humans and wait. Yuddha closes the loop: detect, isolate, patch, verify, commit autonomously, in minutes.

Challenges we ran into

1. LangGraph State Lost on Container Restart

Mid-cycle, if the ARES or KAVACH container crashed, the entire agent graph state was wiped. This was particularly painful during long attack cycles where ARES had already completed recon and was mid-exploit — a crash meant starting from zero.

Fix: Graph state now persists in Redis, so a restarted container picks up exactly where it left off.


2. Out-of-Memory Crashes in the Akhara

The root cause was that running nmap, ZAP, sqlmap, and the LangGraph agent simultaneously inside the same network was hammering RAM, causing Docker to OOM-kill containers mid-cycle.

Fix: Added Docker healthchecks to every service and built watchdog a background script that monitors container health every 15 seconds and automatically restarts anything that goes unhealthy.


3. Mostly False Positives from the Anomaly Detector

The Isolation Forest model was flagging almost everything as anomalous in early runs, essentially useless signal. The problem was we were training it on too little baseline data before the attack cycle started.

Fix: Added a 60-second baseline collection window before each cycle starts, giving the model enough normal traffic patterns to actually distinguish attack behaviour. Combined Isolation Forest with Suricata's rule-based IDS as a second layer so both need to agree before KAVACH acts.


4. All LangGraph Nodes Using Mistral Large

Early builds routed every single agent node through mistral-large. This made every cycle painfully slow and burned through API credits fast.

Fix: Built a model selector. Simple classification and labelling nodes now use mistral-small. Only patch generation and attack planning use the large model. Cycle time dropped significantly.


5. ARES and the Database on the Same Network

Early in Phase 1 we realised ARES could theoretically reach Postgres and Redis directly, meaning it could read its own findings queue or accidentally write to the DB. This would have made the whole red vs blue separation meaningless.

Fix: Split into two isolated Docker networks: attack-net for ARES and targets, backend-net for KAVACH and the data layer. Only the FastAPI container bridges both, acting as the controlled gateway.

Discussion

Builders also viewed

See more projects on Devfolio