↓Skip to main content
  1. Writing/

Vibecoding 017 — YaraWeave: From Threat Intel to YARA in One Click

·4 mins

YaraWeave — Threat Intel to YARA Rule Generator

The itch #

Every security team I’ve worked with has the same gap.

They have plenty of information about the latest malware, often more than they can read. And they have YARA, a kind of “wanted poster” format that tells computers what a piece of malware looks like so they can spot it. Most teams have a few of these rules, usually inherited, rarely updated, author long forgotten.

What’s missing is the step in between: someone who can read about a new strain of malware in the morning and have a working rule to catch it by lunch. That needs malware knowledge, detection skills and threat research all in one person. Those people are rare. It’s the kind of gap AI might fill.

That’s what YaraWeave is for.

→ github.com/mr-dinesh/yaraweave


The idea #

You give it either the unique fingerprint of a malware file or a malware family’s name. It checks up to five free public databases at once, then asks an AI to write a rule from everything it found.

Not a toy rule that looks for the word “malware”, but a real one, with the kind of patterns and conditions an expert would use, and a label saying when it was made and how serious the threat is.

Then it explains the rule, piece by piece, so a junior analyst who didn’t write it can still understand it, adjust it and use it with confidence.


Where the information comes from #

SourceWhat it addsKey needed
MalwareBazaarFamily name, file type, when it was first seenNone
URLhausWhere it’s being spread fromNone
OTX AlienVaultWhat the wider community has reportedFree
VirusTotalHow many antivirus programs catch itFree
ThreatFoxRelated clues and tagsNone

Several of these let a web page ask them directly, which is why the whole tool fits in one file with no server.

Two questions to the AI #

The first asks for the rule. I spelled out exactly what a good one looks like: a sensible name, several meaningful patterns, and conditions that aren’t trivially dodged. The AI gets everything the databases returned.

The second asks for the explanation: what the threat is, how the rule works, why each pattern was chosen, how to deploy it, and how confident it is. That last part matters. A rule marked “low confidence” should be treated very differently from a “high confidence” one, and both are better than a rule that tells you nothing.

Your keys stay with you #

Any keys you add stay in your own browser. Nothing goes to a server of mine, because there isn’t one. I wanted it to be something I could hand to a security person without them wondering where their keys were going. They would wonder. Security people always wonder.


What vibecoding this felt like #

Most of my builds are about getting the page to look and feel right. This one was about the instructions.

My first attempts got rules that looked fine and were useless: vague patterns, easy to dodge, labels full of placeholders. Basically a wanted poster that says “suspect has a face”. The fix was to write the instructions like a proper specification. Once every requirement was spelled out, the AI stopped guessing and delivered.

The explanation step wasn’t in the original plan. Once the rules were good, the obvious question was: who actually uses this? The analyst who made it might understand it. The person on the night shift who inherits it at 2am needs the explanation too.


Try it #

The VirusTotal and OTX keys are optional, but they give the AI more to go on.


github.com/mr-dinesh/yaraweave
Part of the 100 Vibe Coding Projects series: turning 25 years of security work into things you can actually try.