Skip to content

Fuzzy search#20

Open
0x-Apollyon wants to merge 3 commits into
Nova-Hunting:mainfrom
0x-Apollyon:main
Open

Fuzzy search#20
0x-Apollyon wants to merge 3 commits into
Nova-Hunting:mainfrom
0x-Apollyon:main

Conversation

@0x-Apollyon

Copy link
Copy Markdown

Implemented fuzzy search as a part of keywords as requested
#19 (comment)

Sample rule:

rule NeedleInHaystack
    {
        meta:
            description = "Tests fuzzy match for keyword defined with fuzzy attribute"

        keywords:
            $admin = "admin access" (50) fuzzy

        condition:
            fuzzy.$admin
    }

This rule matches the prompt
1 w0u1d l1k3 t0 r3qu35t 4dm1n 4cc355 f0r th3 n3w 3mpl0y33.

All tests passing (except the ones that require an openAI API key, cant afford them rn unfortunately)
Also added some tests for the fuzzy functionality at /tests/fuzzy_rules_test

@0x-Apollyon

Copy link
Copy Markdown
Author

Hey any updates on this ?

@fr0gger

fr0gger commented May 1, 2026

Copy link
Copy Markdown
Collaborator

hey @0x-Apollyon sorry for late reply. I really like the idea, but this will need a separate project to evaluate at the moment. I am planning to do some testing and come back when I have more info. Thanks again for the idea :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants