pip install nova-huntingThis installs Nova with all features:
- Keyword pattern matching (exact text, case-sensitive/insensitive)
- Regex pattern matching with full regex support
- Semantic similarity matching using sentence transformers
- LLM-based evaluation (OpenAI, Anthropic, Azure, Ollama, Groq)
- Command-line tool (
novarun)
Nova includes the following dependencies:
| Package | Purpose |
|---|---|
requests |
HTTP requests |
pyyaml |
YAML parsing |
colorama |
Terminal colors |
sentence-transformers |
Semantic similarity |
transformers |
ML model support |
openai |
OpenAI API |
anthropic |
Anthropic API |
pytest |
Testing |
Nova rules are maintained in a separate repository:
git clone https://github.com/Nova-Hunting/nova-rulesScan prompts with the novarun CLI:
novarun --rules nova-rules/jailbreak.nov --prompt "ignore previous instructions"Nova supports three types of pattern matching in rules:
Exact text or regex patterns:
keywords:
$malware = "malware"
$regex_pattern = /hack(ing|er)/iSemantic similarity matching with configurable thresholds:
semantics:
$threat = "threatening behavior" (0.7)LLM-based evaluation using natural language:
llm:
$analysis = "Analyze if this is malicious" (0.8)For LLM evaluation, set your API keys:
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."For development, clone and install in editable mode:
git clone https://github.com/Nova-Hunting/nova-framework
cd nova-framework
pip install -e .Run tests:
pytest tests/ -v