How Different AI Models Compare for Sigma Rule Generation

I compared 6 AI models (qwen3, gemma3, deepcoder, gpt-3.5-turbo, gpt-4, and gpt-4.1) for their ability to generate SIGMA detection rules. Spoiler gpt-4.1 did the best job, however, some of the other open-source models did as well or better than the gpt-3.5-turbo.

I provide the following three prompts to all the models.

Prompt 0 - In the context of cybersecurity, what is a sigma rule?  Please have your response to 5 sentences or less. Here's a link to help https://github.com/SigmaHQ/sigma
Prompt 1 - Write a sigma rule for a failed user login to a Windows computer. Here's a link to help. https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4625
Prompt 2 - Write a sigma rule for dynamic data exchange. Here's a link to help https://attack.mitre.org/techniques/T1559/002/


All the models provide a correct response for Prompt 0, however deepcoder grossly exceeded the 5-sentence limit in the prompt’s instructions.

Only the gpt4 and gpt-4.1 outputs correctly formatted the SIGMA rules; however, the gpt-4 sigma was formatted correctly for the Prompt 2 rule, which would not have detected this activity.

qwen3, granite3.3, deepcoder, and gpt-3.5-turbo did provide locally sound SIGMA rules for Prompt 1, however, all either did not format or completely left out the required id field.

The only module to correctly produce a SIGMA rule for Prompt 2 was gpt-4.1, however, if I were to pick a runner-up, by a long way, I would pick gemma3, even outperforming both gpt-3.5-turbo, and gpt-4. That’s to say it’s logic for Prompt 2 was still a way off.

Next, I’m going to see how many prompts it will take to get any of the five models that did not provide a correctly formatted SIGMA rule for Prompt 1 a correctly formatted SIGMA rule. 

Link to results:

https://docs.google.com/spreadsheets/d/1wx840R10Qs_SwigQPfJ4cCAIcMojDMKa/edit?usp=sharing&ouid=104182147452878894359&rtpof=true&sd=true"
 


Comments

Popular posts from this blog

Mapping CIS Critical Controls to Gartner Markets

Malware Can Hide But It Must Run

PCAP Doesn't Lie Part 2